fix routes

This commit is contained in:
Frederik Spirgi
2026-09-23 10:41:00 +02:00
parent e7e2ef7543
commit 11320f381c
5 changed files with 40 additions and 12 deletions
+3 -3
View File
@@ -212,7 +212,7 @@ Legacy `chats` migration is handled during startup. New code only reads the sess
## Frontend Structure
The browser UI remains framework-free and uses native ES modules. Shared behavior lives under `public/app/`:
The browser UI remains framework-free and uses native ES modules. Shared behavior lives under `public/js/`:
- `api.js`: JSON and streaming request helpers
- `constants.js`: theme and onboarding metadata
@@ -222,7 +222,7 @@ The browser UI remains framework-free and uses native ES modules. Shared behavio
- `statusNotice.js`: shared status and error presentation
- `dom.js`: cached chat-page DOM references
`public/style.css` is a self-contained design system rebuilt around semantic tokens, shared components, and deliberate responsive breakpoints. It contains the six visual identities and their dark variants without legacy imports or precedence layers. `public/legal.css` contains only the legal-page layout.
`public/css/style.css` is a self-contained design system rebuilt around semantic tokens, shared components, and deliberate responsive breakpoints. It contains the six visual identities and their dark variants without legacy imports or precedence layers. `public/css/legal.css` contains only the legal-page layout.
Pure chat message, retry, memory, summary, and persona-state formatting lives in `src/services/chatMessageHelpers.js`; `chatService.js` remains responsible for orchestration and persistence.
@@ -280,6 +280,6 @@ Run `node --test --test-isolation=none` and `npm run lint` to check the feature
Protected pages redirect to sign-in with a local return destination. Public discovery only returns published persona summaries; using a persona requires an account.
All page routes render the same navigation from `src/pageLayout.js` into the `<!-- site-header -->` placeholder. `public/shell.css` owns the shared header, page spacing, and mobile navigation; `public/app/workspaceNavigation.js` owns sign-out. Page-specific headers contain only local titles and actions. The chat sidebar is reserved for conversation history. Public and home content share `public/pages.css` and `public/pages.js`. Page routes run before static assets and authenticated API routers; rendered pages use private, non-cacheable responses.
All page routes render the same navigation from `src/pageLayout.js` into the `<!-- site-header -->` placeholder. `public/css/shell.css` owns the shared header, page spacing, and mobile navigation; `public/js/workspaceNavigation.js` owns sign-out. Page-specific headers contain only local titles and actions. The chat sidebar is reserved for conversation history. Public and home content share `public/css/pages.css` and `public/js/pages.js`. Page routes run before static assets and authenticated API routers; rendered pages use private, non-cacheable responses.
For environments that block child-process test workers, run `node --test --test-isolation=none`.