Skip to content

Card-based H&S overview with legacy fallback - #687

Merged
jb3 merged 8 commits into
masterfrom
feat/hs-ui
Oct 15, 2026
Merged

jb3 merged 8 commits into
masterfrom
feat/hs-ui

Conversation

@jb3

@jb3 jb3 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

The H&S overview was a wide table where you had to hunt across the row to see what was missing. This swaps it for one card per event, so what's done and what isn't is visible at a glance.

Each card shows the event's status, dates and MIC, then its risk assessment, checklists and power tests, each marked as reviewed or awaiting review with view/edit/mark reviewed buttons next to it. At the top there's a quick count of events missing an RA and documents still waiting for review on the page.

RAG status

Confirmed and booked events get a red/amber/green badge (and a matching card border). Provisional events don't get one. Hover the badge to see the reason.

  • Red: no MIC, or no risk assessment
  • Amber: the RA is unreviewed, or any power test record is unreviewed
  • Green: RA and all power test records reviewed

Checklists don't affect the colour. An event with no power test record at all can still be green.

Legacy version

The old table is still there, unchanged, behind a "Hate it? Legacy version" link (?legacy=1). hs_list.html isn't touched. The legacy page gets a small "Back to the new version" link, added by a thin template that extends the old one.

Screenshots

Light

hs-overview-light

Dark

hs-overview-dark

Tooltip on an amber event (outstanding power test)

hs-tooltip

Other bits

  • The list query now prefetches power tests and the reviewers, so the page doesn't do a query per row
  • Tests added for the RAG rules and the legacy toggle

@jb3

jb3 commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

Also adds a toggle for "Only show needing action" that will filter down to only events in the R or A category above (e.g. events marked as confirmed that don't have an MIC, a risk assessment or have unreviewed power test records). Checklists remain excluded from the Amber category as we aren't in the regular habit of reviewing those looking at existing data.

image

@jb3
jb3 merged commit ed55162 into master Oct 15, 2026
7 checks passed
@jb3
jb3 deleted the feat/hs-ui branch October 15, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant