Progress update: Mark Task 11 complete and log iteration
This commit is contained in:
@@ -147,7 +147,7 @@ src/
|
|||||||
|
|
||||||
Create `src/components/views/InvestigationsView.tsx`. Projects presented as diagnostic investigations. Table: Test Name | Requested | Status | Result. Status badges: Complete (green dot), Ongoing (amber dot), Live (pulsing green dot for PharMetrics). 5 investigations: PharMetrics Interactive Platform, Patient Switching Algorithm, Blueteq Generator, CD Monitoring System, Sankey Chart Analysis Tool. Click row to expand "results panel" with tree-indented structure: Date Requested, Date Reported, Status, Requesting Clinician, Methodology, Results, Tech Stack. PharMetrics has "View Results" button linking to medicines.charlwood.xyz.
|
Create `src/components/views/InvestigationsView.tsx`. Projects presented as diagnostic investigations. Table: Test Name | Requested | Status | Result. Status badges: Complete (green dot), Ongoing (amber dot), Live (pulsing green dot for PharMetrics). 5 investigations: PharMetrics Interactive Platform, Patient Switching Algorithm, Blueteq Generator, CD Monitoring System, Sankey Chart Analysis Tool. Click row to expand "results panel" with tree-indented structure: Date Requested, Date Reported, Status, Requesting Clinician, Methodology, Results, Tech Stack. PharMetrics has "View Results" button linking to medicines.charlwood.xyz.
|
||||||
|
|
||||||
- [ ] **Task 11: Build DocumentsView for education/certifications**
|
- [x] **Task 11: Build DocumentsView for education/certifications**
|
||||||
|
|
||||||
Create `src/components/views/DocumentsView.tsx`. Education presented as attached documents. Table: Type (icon), Document, Date, Source. Icons: FileText (certificates), Award (registrations), GraduationCap (academic), FlaskConical (research). 4 documents: MPharm (Hons) 2:1 UEA 2015, GPhC Registration 2016, Mary Seacole Programme 2018, A-Levels 2011 + Drug Delivery Research. Click to expand "preview" panel with tree-indented details: Type, Date Awarded, Institution, Classification, Duration, Research details, Notes. Consistent with Investigations expanded view style.
|
Create `src/components/views/DocumentsView.tsx`. Education presented as attached documents. Table: Type (icon), Document, Date, Source. Icons: FileText (certificates), Award (registrations), GraduationCap (academic), FlaskConical (research). 4 documents: MPharm (Hons) 2:1 UEA 2015, GPhC Registration 2016, Mary Seacole Programme 2018, A-Levels 2011 + Drug Delivery Research. Click to expand "preview" panel with tree-indented details: Type, Date Awarded, Institution, Classification, Duration, Research details, Notes. Consistent with Investigations expanded view style.
|
||||||
|
|
||||||
|
|||||||
@@ -336,3 +336,31 @@ This is a complete redesign of the CV presentation, moving from the ECG animatio
|
|||||||
- Live status uses Tailwind animate-ping for pulsing effect (requires relative container)
|
- Live status uses Tailwind animate-ping for pulsing effect (requires relative container)
|
||||||
- Tree-indented structure uses flex with fixed-width labels for clean alignment
|
- Tree-indented structure uses flex with fixed-width labels for clean alignment
|
||||||
- Results as bullet list provides better readability than comma-separated text
|
- Results as bullet list provides better readability than comma-separated text
|
||||||
|
|
||||||
|
### Iteration 11 — Task 11: Build DocumentsView for education/certifications
|
||||||
|
- **Completed**: Task 11 - Created DocumentsView with expandable rows and preview panel
|
||||||
|
- **Files created**:
|
||||||
|
- `src/components/views/DocumentsView.tsx` - Full Documents view with 5 document entries
|
||||||
|
- **Files modified**:
|
||||||
|
- `src/components/PMRInterface.tsx` - Added DocumentsView to renderView switch
|
||||||
|
- **Design decisions**:
|
||||||
|
- Document type icons: FileText (Certificate), Award (Registration), GraduationCap (Results), FlaskConical (Research)
|
||||||
|
- Table columns: Type (icon), Document, Date, Source
|
||||||
|
- Expandable rows: click to show tree-indented preview panel
|
||||||
|
- Preview panel uses key-value layout with fixed-width labels (w-40) for alignment
|
||||||
|
- Shows: Type, Date Awarded, Institution, Classification, Duration, Research (with grade), Notes
|
||||||
|
- Height animation: 200ms ease-out for expand/collapse
|
||||||
|
- Accordion behavior: only one row expanded at a time (global)
|
||||||
|
- Hover state: blue-50 (#EFF6FF) background tint
|
||||||
|
- Consistent with InvestigationsView expanded view style
|
||||||
|
- **Accessibility**:
|
||||||
|
- Proper semantic `<table>` markup with `scope="col"` on headers
|
||||||
|
- `aria-expanded` on clickable rows
|
||||||
|
- Screen reader-only column header for expand button
|
||||||
|
- Respects `prefers-reduced-motion`: height transition disabled
|
||||||
|
- **Quality checks**: `npm run typecheck` ✓, `npm run lint` ✓, `npm run build` ✓
|
||||||
|
- **Learnings**:
|
||||||
|
- Document type icons from Lucide match design spec exactly
|
||||||
|
- Research documents show both detail and grade in same field with line break
|
||||||
|
- Tree-indented structure consistency across Investigations and Documents views
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user