feat: build ProblemsView with traffic light status system

- Create ProblemsView with two tables: Active Problems and Resolved Problems
- Traffic light indicators: 8px circles with text labels (green=Active/Resolved, amber=In Progress)
- Expandable rows showing full narrative and linked consultations
- Linked consultations navigate to Consultations view
- Proper semantic table markup with scope="col"
- Height animation for expand/collapse (200ms, respects reduced motion)
- Task 9 complete
This commit is contained in:
2026-02-11 01:58:32 +00:00
parent 81e8fdf7c7
commit f20791a7ff
4 changed files with 328 additions and 1 deletions
+3
View File
@@ -5,6 +5,7 @@ import { PatientBanner } from './PatientBanner'
import { SummaryView } from './views/SummaryView'
import { ConsultationsView } from './views/ConsultationsView'
import { MedicationsView } from './views/MedicationsView'
import { ProblemsView } from './views/ProblemsView'
interface PMRInterfaceProps {
children?: React.ReactNode
@@ -43,6 +44,8 @@ export function PMRInterface({ children }: PMRInterfaceProps) {
return <ConsultationsView />
case 'medications':
return <MedicationsView />
case 'problems':
return <ProblemsView onNavigate={handleNavigate} />
default:
return (
<div className="bg-white border border-gray-200 rounded p-6">