Keep people on the page: decide referrals on Home, bookings pop-up, Log a delay form

Merged
BI
2d ago
+619-36

Friction pass item 6, approved by Josh on 9 Nov 2026 ("Yes, build after page tops"). Built around the page-tops v6 design.

What changed

  • 6a. Decide a referral in Home's panel. For the bed coordinator, My list's Decide opens the referral in Home's side panel with the same decision view as the Referrals board (accept, not suitable, with Undo). Other desks keep their existing actions. The link still opens the board in a new tab or on a middle click.
  • 6b. Alerts "Open bookings" as a pop-up. A planned-admission alert opens that ward's bookings list (the same panel as the ward page's ?bookings=1) in a side panel, or a bottom sheet on a phone. The ward page stays one link away. Desks that may not open the ward page keep the plain link.
  • 6c. Log a delay in Tools. A short form: pick the person (search by name or UR number), say what is holding them up, Log delay. It records the same note as the movement panel (RECORD_MOVEMENT_BLOCKER), with the same roles and the same words-only hint. The phone menu's Log a delay row now opens this tool.
  • Executive and admin quick controls: covered by page tops (#1581), nothing built here.

No clinical change. No thresholds, rules or wording of clinical guidance changed.

Phone size limits

The bookings sheet and the Log a delay form load on first use. Even so, the local build put statistics at its line (612.2 KB) and ED at 519.5 KB against 519.9 KB, because each lazily loaded part adds a little to the shared loader map. ED and statistics rise by 1.0 KB each (within the 5 KB per-screen allowance). A history note follows in its own file.

Checks run (local)

  • Typecheck and lint: clean.
  • 319 related test files (2,603 tests) passed; new tests/ward-friction-item6-panels.dom.test.tsx.
  • Ward raw-colour, text-size, control-character, legal-language and policy-contract checks passed; journey digest check passed.
  • Production build and check-script-budget passed after the raise.
  • Screenshots checked in light and dark, desktop and phone, for all three panels.

Hosted CI is the proof for the merge; these are local results.


Generated by Claude Code