feat: enhance login tracking and logout functionality

- Added session storage flag to track local login success, ensuring OAuth flows do not double track login events.
- Implemented tracking for logout events in both UserDropdown and AppSidebar components, resetting PostHog identity accordingly.
- Minor formatting adjustments in GoogleLoginButton and footer-new components for consistency.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-01-02 01:10:16 -08:00
parent 458c152032
commit d20aef2957
8 changed files with 84 additions and 4 deletions

View file

@ -96,9 +96,8 @@ export function FooterNew() {
</div>
<div className="mt-2 ml-2">
&copy; SurfSense {new Date().getFullYear()}. All rights reserved.
&copy; SurfSense {new Date().getFullYear()}. All rights reserved.
</div>
</div>
<div className="grid grid-cols-2 lg:grid-cols-4 gap-10 items-start mt-10 sm:mt-0 md:mt-0">
<div className="flex justify-center space-y-4 flex-col w-full">