Skip to content

fix: reset user preferences on logout - #418

Closed
basedlsg wants to merge 1 commit into
ApexChainx:mainfrom
basedlsg:codex/bounty-413-reset-preferences
Closed

fix: reset user preferences on logout#418
basedlsg wants to merge 1 commit into
ApexChainx:mainfrom
basedlsg:codex/bounty-413-reset-preferences

Conversation

@basedlsg

Copy link
Copy Markdown

Summary

  • Import resetPreferences into src/providers/session.tsx and invoke it in clearSession, the shared boundary used by both explicit logout and forced 401 logout.
  • Add three regression tests in tests/session-persistence.test.tsx covering explicit logout, forced 401 logout, and a fresh mount.

Fixes #413.

Testing

  • npm run test -- tests/session-persistence.test.tsx — passed (8 tests)
  • npm run build — passed
  • git diff --check — passed

Note: full npm test baseline is already red with 13 pre-existing failures in contract/settings/payment/useOutagesTableState tests, unrelated to this two-file change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preferences survive logout: resetPreferences has no callers, so the next user inherits density, presets, and column layout

2 participants