Web fix: deterministic feature strings, suggest_category vectors, raw bodies in the fake server
- Root cause of the raw keys (web_accounts_load_failed, the settle missing state) on main: Vitest 5's file-system module cache (on by default) skips only modules whose source contains the literal `import.meta.glob(`. catalog.ts wrote `import.meta.glob<…>(`, so its transform was cached by its own content and kept the glob result from before a feature added its i18n/*.json; the main checkout's node_modules/.vitest-cache served that stale catalog until a config change invalidated it. Fresh worktrees passed. - catalog.ts: glob without a type argument (typed by annotation), with the reason. - catalog.test.ts: the loaded feature catalogs must equal the i18n files on disk. - A string two features render moves to the shared catalog: web_accounts_load_failed (accounts/PageStates, also rendered by Home) is now web_ledger_load_failed in src/i18n/web-strings.csv; sv.json/en.json regenerated. - vectors.test.ts: suggest_category is PORTED and runs against features/expenses/suggest. - fakeServer: bodies by Content-Type (JSON parsed, text/* as text, else raw bytes); ProfilePage's picture test asserts the uploaded bytes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"web_accounts_load_failed": "Kunde inte hämta hushållets utgifter",
|
||||
"web_accounts_split_presets": "Snabbval",
|
||||
"web_accounts_saving": "Sparar…",
|
||||
"web_accounts_not_found_body": "Kontot kan ha tagits bort på en annan enhet."
|
||||
|
||||
Reference in New Issue
Block a user