Update progress: Task 9 completed (PatientSummary tile)
This commit is contained in:
@@ -89,10 +89,10 @@ Replace the "CareerRecord PMR" sidebar-nav + view-switching interface with a til
|
|||||||
|
|
||||||
#### Task 9: Build PatientSummary tile
|
#### Task 9: Build PatientSummary tile
|
||||||
> Detail: `Ralph/refs/ref-05-card-and-top-tiles.md` (PatientSummary section)
|
> Detail: `Ralph/refs/ref-05-card-and-top-tiles.md` (PatientSummary section)
|
||||||
- [ ] Create `src/components/tiles/PatientSummaryTile.tsx`
|
- [x] Create `src/components/tiles/PatientSummaryTile.tsx`
|
||||||
- [ ] Full-width card, first in grid
|
- [x] Full-width card, first in grid
|
||||||
- [ ] Personal statement from `src/data/profile.ts`
|
- [x] Personal statement from `src/data/profile.ts`
|
||||||
- [ ] Run quality checks
|
- [x] Run quality checks
|
||||||
|
|
||||||
#### Task 10: Build LatestResults tile
|
#### Task 10: Build LatestResults tile
|
||||||
> Detail: `Ralph/refs/ref-05-card-and-top-tiles.md` (LatestResults section)
|
> Detail: `Ralph/refs/ref-05-card-and-top-tiles.md` (LatestResults section)
|
||||||
|
|||||||
@@ -231,3 +231,20 @@
|
|||||||
**Quality checks:** typecheck ✓, lint ✓ (1 pre-existing warning), build ✓
|
**Quality checks:** typecheck ✓, lint ✓ (1 pre-existing warning), build ✓
|
||||||
**Visual review:** Not applicable — base component, will be visible once integrated into tiles
|
**Visual review:** Not applicable — base component, will be visible once integrated into tiles
|
||||||
|
|
||||||
|
### Iteration 7 — Task 9: Build PatientSummary tile
|
||||||
|
**Status:** Complete
|
||||||
|
**Changes:**
|
||||||
|
- Created `src/components/tiles/PatientSummaryTile.tsx` — simple read-only tile displaying personal statement
|
||||||
|
- Full-width card (via `full` prop on Card component) with teal dot CardHeader
|
||||||
|
- Body text: 13px, line-height 1.6, text-primary color, font-ui (Elvaro Grotesque)
|
||||||
|
- Content sourced from `src/data/profile.ts` (personalStatement export)
|
||||||
|
- Updated `src/components/DashboardLayout.tsx` to import and render PatientSummaryTile as first tile in grid
|
||||||
|
**Learnings:**
|
||||||
|
- PatientSummaryTile is the simplest tile — no expansion, no interactivity, just display
|
||||||
|
- The `full` prop on Card correctly spans both grid columns (grid-column: 1 / -1)
|
||||||
|
- CardHeader with teal dot + "PATIENT SUMMARY" matches the spec exactly
|
||||||
|
- Personal statement text is substantial (4 sentences, ~110 words) — 13px with 1.6 line-height provides readable density
|
||||||
|
- This is the first tile actually visible in the dashboard — sets the visual tone for subsequent tiles
|
||||||
|
**Quality checks:** typecheck ✓, lint ✓ (1 pre-existing warning), build ✓
|
||||||
|
**Visual review:** Skipped — no browser tools available. Will verify visually after multiple tiles are in place.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user