Repository navigation
Closed
Description
Problem
A screenshot tour of every screen, using invented data at 1280×800 and 390×844 on main at 2679b66, shows the workflows function but present badly enough to get in the way:
- Shell. Sign out exists only as a button at the bottom of the home page. The header does not show who is signed in or which page is active. At phone width the nav does not wrap, so "Programs", "Retention", "My records" and the notice badge sit off-screen and the whole page scrolls sideways.
- Home. Every role lands on "Installation status": a server and database fact sheet with raw capability identifiers (
author_evaluation, view_assigned_records). Below it is an unbounded list of near-identical notices (a trainer had 10, each with its own "Mark read"), and only then the actual work (sessions, trainees, review queue). - Tables. Date and time cells wrap one fragment per line ("2026-/06-/05/07:00 –…"). On desktop the trainer's "My sessions" table overflows its card. At phone width, tables push the page 240–540 px sideways (enrollment, home sessions, records, program versions).
- Error states. A refused or missing record renders as a bare red box with raw lowercase server text that names internal capabilities ("this requires the assign_training capability, or author_evaluation within the record's scope"), with no heading and no way back.
- Controls. Disabled primary buttons are pale blue and read as faint rather than unavailable. The close-session time input on home has no visible label.
Outcome
A trainer, coordinator, administrator, or trainee signing in lands on a page about their work. They can see who they are and sign out from any page, and nothing scrolls sideways at phone width. A refused or missing page explains itself in plain words with a way back. Authorization is unchanged: the server still decides; the UI only presents.
Scope
- In scope:
- Shell: user identity, sign out, active link, wrapping nav.
- Home: role-first ordering; compact unread notices with "Mark all read"; installation facts moved into a collapsed "About this installation" with readable capability names.
- Sessions table: readable "when" column and status pill.
- Global responsive table containment and date no-wrap.
- Shared error/empty-state presentation for refused and missing pages, with the server detail kept.
- Stronger disabled styling.
- Updated browser tests.
- Out of scope:
- Server API changes (e.g. notice link targets).
- Who may read programs or retention (policy, not presentation).
- Splitting the large route files (refactor(web): split large workflow pages and domain API contracts #59).
- Redesigning the draft editor, which already reads well.
Acceptance
- Screenshot tour re-run: no horizontal page scroll at 390 px on signed-in pages; before/after captures attached.
- Sign out and the signed-in name are reachable from every signed-in page.
- Each role's home leads with its work; installation facts are available but not first.
- Refused and missing draft and enrollment pages show a heading, plain explanation, and a link home.
- Full required gates pass (
scripts/proof.pyreceipt or equivalent); hostedpr-gateobserved.
Authorization source: the maintainer's request in the working session ("get this at least usable and not look terrible", with explicit permission to proceed). No owner-set effort budget.
Metadata
Metadata
Assignees
Labels
No labels
Activity
test(e2e): click the primary navigation's Home link explicitly
TusanHomichi commentedon Oct 14, 2026
Closure record
Merged by #85 as
a5033e4. Merged-main treed8f65c72e4b53160adb91b4eed66dd584085de31equals the tested candidate08a2af1.Acceptance:
ProblemStategives a heading, a plain explanation, the server detail, and a link home.pr-gate: met. Local receipt on08a2af1(57 browser tests); hosted run 38596659350 green.Follow-up found while verifying: #83, an intermittent draft-recovery browser test that this change does not touch.
Generated by Claude Code