diff --git a/frontend-spec.md b/frontend-spec.md index 675e4ce..8507f00 100644 --- a/frontend-spec.md +++ b/frontend-spec.md @@ -1,3 +1,11 @@ +## 0. Current State (Nov 1, 2025) + +All core features are migrated to multi-tenancy with path-scoped endpoints and token-based auth. The codebase no longer uses the `X-Household-Slug` header. Tests and type checks are fully green. + +Status of tests and typing +- All tests pass: 27 files, 47 tests (router tests fixed to use memory history in Vitest environment). +- `tsc` and `vue-tsc` pass with no errors. + # Frontend Specification: Household Multi-Tenancy (v2) ## 1. Objective diff --git a/src/router/index.ts b/src/router/index.ts index f6177a6..c487533 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -61,6 +61,7 @@ export function createAppRouter(getCurrentUser: () => Promise | unknown ) } + // Use hash history in real browsers; fallback to memory history in tests/SSR where `window.location` is unavailable const isBrowser = typeof window !== 'undefined' && typeof window.location !== 'undefined' const history = isBrowser ? createWebHashHistory() : createMemoryHistory()