Commit Graph

4 Commits

Author SHA1 Message Date
colinislit
0130e28f1e feat: move patient info to top header with React Context
Refactored patient display from separate ClientHeader to integrated EPDHeader.

Architecture changes:
- Implemented React Context pattern for patient data sharing
- Created PatientContext with useState + setPatient for dynamic updates
- Created useSetPatient hook for patient injection from nested layouts
- Created EPDLayoutClient wrapper with PatientProvider
- Context flow: EPDLayout → EPDLayoutClient → EPDHeader (consumer)

UI improvements:
- Removed "Mini-ECD" logo from header
- Left-aligned patient info: name + status + John Doe indicator
- Added geboortedatum (dd-mm-yyyy Dutch format)
- Added BSN extraction from FHIR identifiers
- Compact layout: Patient details | Timestamp | Actions ⋮ | Search
- Actions dropdown with "Nieuwe rapportage" (expandable)

Cleanup:
- Deleted ClientHeader component (141 lines duplicate code)
- Simplified PatientLayoutClient (only useSetPatient hook)
- Single source of truth for patient display

Result: Clean context-based architecture, improved UX, -141 LOC

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 14:11:35 +01:00
colinislit
290d78b6d7 docs: add lead dev code audit report 2025-11-23 12:20:46 +01:00
colinislit
fac27cdb0f docs: add build fix verification report
Added comprehensive verification report documenting the complete build
fix process from initial failure to successful compilation.

Report includes:
- Root cause analysis (archive exclusion + database types issues)
- Step-by-step fix verification
- All 10+ TypeScript errors identified and resolved
- Build configuration changes
- Recommendations for future improvements

File: docs/reports/verification-report-20251123.md (45KB)

This serves as documentation for:
- Understanding what went wrong
- How the issues were systematically resolved
- Best practices for database type management
- Reference for similar issues in the future

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 12:20:35 +01:00
colinislit
00ca026382 fix: stabilize build and archive configs 2025-11-23 11:42:40 +01:00