wulf-pulse/components
lorentz f32403ee35 fix(theme): guard ThemeSessionBridge sync with hasSynced ref
The dep-only fix wasn't enough: better-auth's useSession (nanostores) can
re-emit on focus / store refresh, transitioning session.user.id through
undefined and back. Each transition re-fires the effect, which then calls
setTheme(session.user.theme) with the stale cached value and reverts the
user's selection.

Track "have we synced this tab session" with a ref. After the first
successful sync, no subsequent effect fire can revert.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 21:58:35 -04:00
..
admin feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
analytics feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
analyzer feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
auth fix(auth): reduce mobile sign-in friction (PWA + auto-redirect) 2026-05-07 07:05:52 -04:00
backup feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
branding feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable 2026-05-03 09:33:13 -04:00
companies Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
configuration-items feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
dashboard feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
kiosk feat: kiosk UI updates - new cards, gauge chart, performance improvements 2026-02-19 15:31:23 -05:00
mobile fix(theme): guard ThemeSessionBridge sync with hasSynced ref 2026-05-14 21:58:35 -04:00
navigation fix(nav): replace NavigationMenu submenus with DropdownMenu 2026-05-03 11:18:52 -04:00
quotes feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
rmm feat: RMM Overshell, IT Glue audit/write-back, LogLift, link-aware bundles, dashboard overhaul 2026-05-03 07:13:18 -04:00
settings feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
status feat(07.1-05): user-tz on shared client components 2026-05-07 08:43:27 -04:00
tasks Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
tickets Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
ui feat(nav): global ⌘K command palette 2026-05-03 10:11:08 -04:00
zabbix feat: Morning NOC Summary adaptive card for Teams 2026-03-11 09:34:51 -04:00
theme-provider.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
theme-toggle.tsx feat(09-05): ThemeSessionBridge + ThemeToggle write-through to /api/me/theme 2026-05-10 07:48:57 -04:00