T04 — Simplify navigation and decouple page health¶
Depends on: none. Status: planned.
Read ../README.md and ../PLAN.md first. Paths are discovery anchors, not permission to skip caller analysis.
Likely files¶
anvil_serving/observability/dashboard/static/observatory.jsanvil_serving/observability/dashboard/static/workbench.cssanvil_serving/observability/dashboard/static/index.htmltests/workbench/test_frontend_contracts.py
Implementation steps¶
- Inspect current navigation toggle and responsive styles; extend rather than add a second menu implementation. Identify the actual HTML entry file before editing if packaging changes its name.
- Move global destinations into an accessible hamburger drawer with optional desktop pinning. Rename the Playground display label/page title to Pi while preserving
#/playgroundand existing bookmarks. Keep local project/thread navigation independent. - Separate page data loading from optional fleet/HUD telemetry and update status regions without replacing active page DOM. Preserve routes, selection, focus, scroll and drafts.
- Scope persistence to ordinary UI preferences. Do not store prompts, credentials or transcripts in browser storage.
Acceptance¶
- [ ] Keyboard and touch can open/close/navigate the drawer; Escape returns focus and mobile background is inert.
- [ ] At narrow and wide widths the composer stays reachable and panes do not force horizontal page overflow.
- [ ] A failed fleet read shows a status warning while Playground and Anvil Work remain usable if their own source is healthy.
- [ ] Existing bookmarks resolve and a HUD update does not erase draft text or interrupt a running session.
Focused checks¶
Use the existing checkout Python environment and repository test wrapper. These are planned checks, not test results.
python scripts/run_tests.py tests/workbench/test_frontend_contracts.py tests/workbench/test_javascript_modules.py -x -q
Add behavioral regression coverage in the existing suite for new contracts; source-string assertions alone are insufficient. Run browser checks described above. Run broader checks only for changed shared seams or failures.
Stop boundary¶
No framework migration or global periodic page replacement.
Completion receipt¶
Record commit/files, actual commands and results, browser observations, unresolved items, schema decisions and next eligible packet. Raw deployment evidence stays private. Do not change acceptance boxes without measured proof.
Engineering references¶
Read the implementation guide section and
verified source map for this packet. tasks.json selects the
relevant code/data examples and primary external references. Current APIs and
proposed contracts are labeled separately; examples grant no live authority.