2.0 KiB
2.0 KiB
Ralph Continuation Plan — Latest Results KPI Compaction
Objective
Amend the existing GP dashboard implementation to tighten the Latest Results KPI section while preserving current copy and visual style.
Requested Changes
- Remove the pulsing coachmark text:
- Remove
Open any metric to see evidence. - Remove the pulse behavior tied to that coachmark.
- Reposition instructional helper copy:
- Keep this exact text and formatting:
Select a metric to inspect methodology, impact, and outcomes.
- Move it to the right of the
Latest Resultstitle area (same row as the section heading).
- KPI grid layout and spacing:
- For viewports
>= 768px(md and above): render KPI cards in a single row with 4 columns. - For viewports
< 768px(mobile): render as 1 column x 4 rows. - Keep all existing KPI text/content unchanged.
- Reduce whitespace inside KPI cards so each row/card is compact but readable.
Implementation Scope
Primary file:
src/components/tiles/PatientSummaryTile.tsx
Likely edits:
- Remove
KPI_COACHMARK_KEYlocalStorage logic and relatedshowCoachmarkstate. - Simplify
MetricCardprops by removing coachmark/pulse hooks. - Move helper text from standalone paragraph into the header-right area.
- Update KPI container classes/styles for responsive
1x4mobile and4x1md+ behavior. - Tighten paddings/font spacing in KPI card internals without changing content or hierarchy.
Acceptance Criteria
- No coachmark text appears anywhere in
Latest Results. - Instruction line appears to the right of
Latest Resultsheading, unchanged in copy/styling. - KPI layout:
- mobile: 4 compact rows, 1 column
- md+: 1 row, 4 columns
- Existing interactions still work (metric click/keyboard opens evidence panel).
- No KPI data values/labels/subtext changed.
Validation
Run after implementation:
npm run typechecknpm run lintnpm run build
Manual checks:
- Confirm layout at ~375px width and ~1024px width.
- Confirm no regressions in focus, keyboard activation (
Enter/Space), and detail panel opening.