colinislit
dce3943963
feat: rapportage UI refactor, speech streaming, docs & seed data
...
Rapportage:
- Refactor workspace into modular components (quick-actions, timeline-card, timeline-sidebar)
- Add updateReport action for inline editing
- Improve report timeline with better UX
Speech:
- Add Deepgram token API endpoint
- Add use-deepgram-streaming hook
- Add confidence-text component
Docs:
- Add architecture documentation
- Add performance optimization plan
- Add speech specs and seed data docs
Scripts & Data:
- Add seed-reports script and migration
- Update AGENTS.md guidelines
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-25 14:07:08 +01:00
colinislit
7033329e0f
feat: add speech telemetry and bundle guard
2025-11-25 13:37:00 +01:00
colinislit
a789bebe96
feat: rapportage API, speech recorder refactor, docs reorganisatie
...
Multiple features and improvements:
Reports/Rapportage API:
- Created REST API endpoints: /api/reports (GET/POST), /api/reports/[id] (GET/PATCH/DELETE)
- Added /api/reports/classify endpoint for AI classification
- Supabase migrations: reports table + RLS policies
- Server utilities: api-client.ts for DRY fetch logic
- Type definitions: lib/types/report.ts with Zod schemas
- Removed old rapportage-modal component (replaced by split-view)
Speech Recorder Refactor:
- Moved speech-recorder from intake-specific to shared components/
- Updated treatment-advice-form to use new location
- Updated intake actions for speech functionality
UI Components (shadcn):
- Added dialog, dropdown-menu, toast, toaster components
- Added use-toast hook for toast notifications
Documentation:
- Reorganized docs/release/ → docs/reports/ for better structure
- Archived old specs to docs/specs/archive/
- Added screening-system.mdx documentation
- Added rapportage-split-view-design.md
- Added UI screenshots for troubleshooting
Dependencies:
- Updated package.json and pnpm-lock.yaml
- Regenerated database.types.ts from Supabase
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-24 14:14:06 +01:00
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