Repository navigation
web: make the everyday screens usable and presentable - #85
Conversation
The shell now names who is signed in, offers sign out on every page, marks the current section, and wraps at phone width. Sign out leaves the page by ordinary navigation first, so a draft with unsaved or refused text can still refuse while the session works; a browser test with a negative control covers it. Home leads with each role's work (review queue, sessions, trainees), shows unread notices compactly with "Mark all read", and folds the installation facts into "About this installation" with readable capability names. Session times read as a date and a range, statuses are pills, and on a phone each session stacks as a card. Tables scroll inside their cards instead of pushing the page sideways, dates do not wrap, and disabled buttons read as unavailable. Refused and missing draft and enrollment pages explain themselves with a heading, plain words, the server's detail folded away, and a link home. The trainee's evaluations lead My records with a count of those awaiting acknowledgment. A finalized record's integrity and export controls move below attribution. Refs #84 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The full local gates failed two browser tests on bee5b1d. A page whose load fails now offers "Back to Home", so an unscoped getByRole('link', { name: 'Home' }) matched two links; scope every such click to the Primary navigation. Restore the parentheses around a session's time zone on the enrollment page, which a sessions test reads. Refs #84 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
Local proof receipts
Fixed in
Hosted Generated by Claude Code |
Primary Issue
Closes #84
Problem And Outcome
A screenshot tour of all 51 screens, using invented data at 1280×800 and 390×844, showed that the workflows work but present badly:
After this PR, each role lands on its own work. Identity and sign out are on every page. No page scrolls sideways at 390 px (tour re-run: 0 of 51 screens overflow, down from every signed-in page). Refused and missing pages explain themselves.
Changes
+layout.svelte):aria-current); the nav wraps on phones; the unread badge sits on Home.+page.svelte):<h1>is "Home". Sections run review queue → My sessions → My trainees → a trainee records card → Notices → exports → people admin.capabilityName).2026-06-04/07:00–15:00 local, vialocalSpan), status pills, and a visibly labelled close-session control. On phones each session stacks as a card.table.gridis its own scroller..nowrapfor dates.div.rowwraps.ProblemState(src/lib/ui/): a heading, plain explanation, the server detail under "Details", and a link home, keyed on HTTP status (401/403/404/other). Used by the draft and enrollment pages when their load fails.Authorization is unchanged; the server still decides, and the UI only presents.
Correction rung: 2 (mechanical) for the sign-out ordering hazard. A browser test with a negative control was added: with the naive logout-first order it fails with
Expected: 200, Received: 401. The rest is presentation, held by the existing e2e suite.Scope
Homelevel 1; the session-time and capability assertions follow the new presentation.Verification
08a2af1(this branch merged withmainate992101)08a2af1: all 7 steps, 57 browser tests including the new sign-out test, permission-bypass capabilities dropped, system Chromium 141. Receipt: web: make the everyday screens usable and presentable #85 (comment)bee5b1dfailed 2 browser tests from this PR's own changes. Both were fixed inb2cb996; details in the same receipt comment.pr-gatepassed on08a2af1: https://github.com/FieldmouseWorks/consolebook/actions/runs/38596659350/job/11596569466308a2af1with no findings.signing out from a draft with a failed save keeps the draft and the session:Expected: 200, Received: 401), then restored.Review And Merge Notes
+layout.svelte; theProblemStatestatus mapping; home section gating, which still uses the existing capability checks.<h1>changes from "Installation status" to "Home".🤖 Generated with Claude Code
https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts