hensei-web/components
Justin Edmund 9b60134933 Fix header not reflecting logged-in state after login
- Add useSnapshot from Valtio to make Header reactive to state changes
- Replace accountState references with accountSnap for reactive updates
- Add missing router import for navigation methods
- Fix router.reload() to router.refresh() for Next.js 13+
- Create AccountStateInitializer component to load auth from cookies
- Add initializer to root layout to ensure state is set on page load

The header now properly updates to show user avatar and authenticated menu when logging in.

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-03 16:01:46 -07:00
..
about Fix roadmap page useTranslation error 2025-09-03 16:00:17 -07:00
AccountStateInitializer Fix header not reflecting logged-in state after login 2025-09-03 16:01:46 -07:00
auth refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
character Fix dynamic translation key error handling 2025-09-02 21:15:55 -07:00
common refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
dialogs refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
ElementToggle refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
ErrorSection refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
extra refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
filters refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
head refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
Header Fix header not reflecting logged-in state after login 2025-09-03 16:01:46 -07:00
HovercardHeader Migrate all remaining components to App Router navigation 2025-09-01 16:31:18 -07:00
job Fix broken locale assignment in JobSkillItem 2025-09-03 15:58:12 -07:00
LanguageSwitch Migrate all remaining components to App Router navigation 2025-09-01 16:31:18 -07:00
Layout Migrate all remaining components to App Router navigation 2025-09-01 16:31:18 -07:00
mastery refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
MentionList refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
party Fix Link component legacy behavior and tab switching 2025-09-03 15:58:12 -07:00
raids refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
reps refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
search refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
summon Fix dynamic translation key error handling 2025-09-02 21:15:55 -07:00
toasts Fix translation pluralization format for next-intl 2025-09-02 21:15:35 -07:00
uncap refactor: migrate all components from next-i18next to next-intl 2025-09-02 19:48:04 -07:00
weapon Fix dynamic translation key error handling 2025-09-02 21:15:55 -07:00