From 9ffed8d15331351044cadb514052f3067fffa89e Mon Sep 17 00:00:00 2001 From: Andy Charlwood Date: Sat, 14 Feb 2026 18:14:16 +0000 Subject: [PATCH] feat: US-009 - Move Education into Patient Pathway as subsection --- src/components/DashboardLayout.tsx | 8 ++++---- ...EducationTile.tsx => EducationSubsection.tsx} | 16 ++++------------ 2 files changed, 8 insertions(+), 16 deletions(-) rename src/components/{tiles/EducationTile.tsx => EducationSubsection.tsx} (91%) diff --git a/src/components/DashboardLayout.tsx b/src/components/DashboardLayout.tsx index ba4dcc8..4fbeb11 100644 --- a/src/components/DashboardLayout.tsx +++ b/src/components/DashboardLayout.tsx @@ -8,7 +8,7 @@ import { CommandPalette } from './CommandPalette' import { DetailPanel } from './DetailPanel' import { CardHeader } from './Card' import { PatientSummaryTile } from './tiles/PatientSummaryTile' -import { EducationTile } from './tiles/EducationTile' +import { EducationSubsection } from './EducationSubsection' import { ProjectsTile } from './tiles/ProjectsTile' import { ParentSection } from './ParentSection' import CareerConstellation from './CareerConstellation' @@ -389,10 +389,10 @@ export function DashboardLayout() { - - {/* EducationTile — full width */} - + {/* Education subsection */} + + diff --git a/src/components/tiles/EducationTile.tsx b/src/components/EducationSubsection.tsx similarity index 91% rename from src/components/tiles/EducationTile.tsx rename to src/components/EducationSubsection.tsx index 7efbaaf..8f520c9 100644 --- a/src/components/tiles/EducationTile.tsx +++ b/src/components/EducationSubsection.tsx @@ -1,30 +1,22 @@ import { useState } from 'react' -import { Card, CardHeader } from '../Card' +import { CardHeader } from './Card' import { useDetailPanel } from '@/contexts/DetailPanelContext' import { documents } from '@/data/documents' import { educationExtras } from '@/data/educationExtras' -/** - * Education tile - displays academic qualifications - * Full-width card below Career Activity - * Each entry is clickable to open detail panel - */ -export function EducationTile() { +export function EducationSubsection() { const { openPanel } = useDetailPanel() const [hoveredIndex, setHoveredIndex] = useState(null) - // Filter to main education entries in reverse chronological order const educationDocuments = [ documents.find((d) => d.id === 'doc-mary-seacole')!, documents.find((d) => d.id === 'doc-mpharm')!, documents.find((d) => d.id === 'doc-alevels')!, ] - // Look up education extras by document ID const getExtras = (docId: string) => educationExtras.find((e) => e.documentId === docId) - // Build rich inline content for each entry const getInlineDetails = (doc: (typeof educationDocuments)[0]) => { const extras = getExtras(doc.id) @@ -67,7 +59,7 @@ export function EducationTile() { } return ( - +
@@ -154,6 +146,6 @@ export function EducationTile() { ) })}
- +
) }