Rewrite the panel, sidebar, top bar, page routing and layout rules #132

Merged
jcoffey-dev merged 1 commits from phase5/shell into main 2026-10-19 05:21:30 +00:00
Owner

Phase 5 of the console rewrite, part 1: the shell.

Rewritten from what it does, with new tests written first; the layout and navigation tests passed on the old code before the rewrite.

  • layout.ts: which pages an account sees is now one table of rules.
  • adminRoute.ts (new): reading the path, the page title, the session and where to land; AdminPanel is rewritten around it.
  • pageRoute.ts (new): which kind of page a path shows; MainContent is rewritten around it.
  • The sidebar, top bar and nav tree are rewritten with the same markup. The icon lookup is shared, and the Ctrl+K check moves to shortcuts.ts.

Dropped: an unused layout helper and an unused parameter.

After this PR: 88.3% not upstream's (was 87.0%), 8,880 upstream lines left in 28 files, 14 dual headers. Tests: 865 → 929.

Visual check: on a local preview I screenshotted all 168 pages in light and dark plus the menus, palette and dialogs, first on main and then on this branch, on the same data. Nothing changed apart from live dashboard numbers and one extra audit log row from the second run's own sign-in. A scripted run of the shell (landing redirects, page titles, section tabs, the account menu, Ctrl+K, the legacy sidebar, the rail and the phone menu) also matched, screen for screen and line for line.

Typecheck, lint, i18n:check, tests, build and notice check pass locally. No new strings.

Phase 5 of the console rewrite, part 1: the shell. Rewritten from what it does, with new tests written first; the layout and navigation tests passed on the old code before the rewrite. - `layout.ts`: which pages an account sees is now one table of rules. - `adminRoute.ts` (new): reading the path, the page title, the session and where to land; `AdminPanel` is rewritten around it. - `pageRoute.ts` (new): which kind of page a path shows; `MainContent` is rewritten around it. - The sidebar, top bar and nav tree are rewritten with the same markup. The icon lookup is shared, and the Ctrl+K check moves to `shortcuts.ts`. Dropped: an unused layout helper and an unused parameter. After this PR: 88.3% not upstream's (was 87.0%), 8,880 upstream lines left in 28 files, 14 dual headers. Tests: 865 → 929. **Visual check:** on a local preview I screenshotted all 168 pages in light and dark plus the menus, palette and dialogs, first on main and then on this branch, on the same data. Nothing changed apart from live dashboard numbers and one extra audit log row from the second run's own sign-in. A scripted run of the shell (landing redirects, page titles, section tabs, the account menu, Ctrl+K, the legacy sidebar, the rail and the phone menu) also matched, screen for screen and line for line. Typecheck, lint, i18n:check, tests, build and notice check pass locally. No new strings.
jcoffey-dev added 1 commit 2026-10-19 05:19:20 +00:00
Rewrite the panel, sidebar, top bar, page routing and layout rules
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / notices (pull_request) Successful in 1m8s
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m3s
ec3f6daa46
jcoffey-dev merged commit bf69c2e6ed into main 2026-10-19 05:21:30 +00:00
jcoffey-dev deleted branch phase5/shell 2026-10-19 05:21:30 +00:00
Sign in to join this conversation.