Home: aligned list icons, rebuilt main table, and Note 4 redesigns

Merged
BI
3d ago
+704-172

Requested by Josh · project thread

Josh's notes 4 for Home, combined into one PR under Josh's keep-PRs-few rule (9 Nov).

Done

  • Issue 1, right column: Placement now appears only once someone is chosen, because the at-rest prompt repeated the top of My list. In Beds that fit, each bed type opens to show the discharges behind tomorrow's figure, with a link to chase them on Capacity. These are counts only, taken from the existing forecast.
  • Issue 2, list icons: group heading glyphs now line up with the row glyphs on desktop and phone (measured equal at 390 and 1280 px).
  • Issue 3, Ward calls (replaces the Call sheet):
    • Wards are numbered in call order, using recorded times only.
    • Each ward has one tag saying why it sits where it does.
    • Each referral is listed in full only under the first ward; later wards fold it and name the ward(s) where it is listed. Printing expands the folds.
    • Counts are by referral, never by the patient link (D-14 default-deny).
    • Times sit behind one disclosure whose summary states any time already chosen.
    • The record and save logic is unchanged.
  • Main table: the desktop and phone rows are rebuilt so they read patient, then issue label, then place, with the time and action in the end column. Alerts' accepted-to-pull rows use the same row.
  • ED tiles: the tone-coloured outline is removed. Beds that fit: columns are aligned and the words are neutral.
  • Help and walk-round: the Placement step now points at the Needs you list it opens from, the Needs you step describes both row behaviours, and the printable guide is regenerated.
  • Dead code: placement-prompt.tsx is deleted. The dead-code check refused it because it is under 30 days old. Josh approved the deletion in the project thread on 9 Nov 2026, so the check ran once with DEAD_CODE_OWNER_APPROVED=1. npm run check:knip reports no new unused items.
  • Review: 18 bot review points fixed and resolved.

Not in this PR

  • Issue 4, Today's review: Josh chose to ship this PR now and do it next, in its own PR. It needs a database change and a governance call.

Tests

  • Locally, the related unit and DOM test files pass, including the D-14 guard, Help, tours and call commitments; the coordinator tour-targets browser test passes on desk, tablet and phone.
  • Hosted CI: one unit shard failed a timing budget (ward-help-suggest, 2.04 ms against 2 ms) unrelated to this diff; re-run once.
  • Not yet checked: 200% text and a physical phone.

Review page: https://claude.ai/artifact/5sfYXvpF6pwVzKf1mhb2Ua

No clinical change. Synthetic data only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01J352nhg2K8zpH8GxYjE83G