diff --git a/frontend/AGENTS.md b/frontend/AGENTS.md new file mode 100644 index 00000000..4ff903a0 --- /dev/null +++ b/frontend/AGENTS.md @@ -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. diff --git a/frontend/src/app.html b/frontend/src/app.html index 505b1b20..2b36ec6e 100644 --- a/frontend/src/app.html +++ b/frontend/src/app.html @@ -8,9 +8,16 @@ %sveltekit.head%