fix(front): clean localStorage on user change
- fix issue with selected drive and user logout/login via another user
(was raising a "404 not found")
- normalize all localStorage to "oxi-" prefix
- add a specific frontend/AGENTS.md for frontend part (stop increasing the global AGENTS.md)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# AGENTS.md — Frontend
|
||||
|
||||
Complements the repo-root `/AGENTS.md`. Not shipped (adapter-static
|
||||
copies only `frontend/static/`).
|
||||
|
||||
## localStorage keys
|
||||
|
||||
Prefix `oxi-`, kebab-case separators. Example: `oxi-view-mode`.
|
||||
Enforced by `$lib/utils/localStoragePrefs::wipeAppKeys()` which sweeps
|
||||
every `oxi-*` key on user-account switches — any other prefix leaks the
|
||||
previous user's state into the new one.
|
||||
Reference in New Issue
Block a user