Skip to content

web: make the everyday screens usable and presentable (shell, home, tables, error states, phone width) #84

Closed

Description

@TusanHomichi

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:

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.py receipt or equivalent); hosted pr-gate observed.

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.

Activity

  1. TusanHomichi commented on Oct 14, 2026

    @TusanHomichi
    MemberAuthor

    Closure record

    Merged by #85 as a5033e4. Merged-main tree d8f65c72e4b53160adb91b4eed66dd584085de31 equals the tested candidate 08a2af1.

    Acceptance:

    • No horizontal page scroll at 390 px: met. Screenshot tour re-run: 0 of 51 screens overflow, down from every signed-in page. The before and after captures exist from the working session but are not attached here, because this session cannot upload images to GitHub; the comparison is described in web: make the everyday screens usable and presentable #85.
    • Sign out and the signed-in name on every signed-in page: met. They are in the shell header.
    • Each role's home leads with its work: met. Installation facts are folded into "About this installation".
    • Refused and missing draft and enrollment pages explain themselves: met. ProblemState gives a heading, a plain explanation, the server detail, and a link home.
    • Full gates and hosted pr-gate: met. Local receipt on 08a2af1 (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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions