Files
triqura-ecd/docs/release/ops-log.md
colinislit 50dc2a57d7 refactor: remove duplicate ClientSidebar component
Bug fix: Dubbele sidebar verwijderd in patient detail routes.

ClientSidebar was een duplicate van EPDSidebar's Level 2 navigatie.
EPDSidebar is al context-aware en switcht automatisch tussen Level 1
(behandelaar context) en Level 2 (patient context) navigatie.

Changes:
- Removed: ClientSidebar component (117 lines duplicate code)
- Removed: EPDLayoutClient wrapper (conditional sidebar hiding)
- Simplified: Patient detail layout uses only PatientLayoutClient
- Restored: EPD layout to direct EPDSidebar rendering

Result: Single sidebar component, -117 lines code, DRY principle restored

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 20:22:15 +01:00

2.3 KiB

2025-11-23 — Clients → Patients datafix + seeds (Colin)

  • Clients die na de hoofdrelease nog in clients stonden opgespoord met clients LEFT JOIN patients sanity check (Supabase SQL editor)
  • Idempotente blok uit 20241121_migrate_legacy_to_fhir.sql opnieuw gedraaid zodat alle ontbrekende clients nu als patients bestaan
  • Verification DO-block uitgevoerd zodat de teller op 0 missing clients staat en de migratie gelogd
  • Default organisatie opnieuw gezaaid met pnpm tsx scripts/seed-organization.ts (env geladen via .env.local)

2026-02-XX — Screening Intake Fase 1 & 2 (Colin)

  • TipTap placeholder hints toegevoegd + styled zodat behandeladvies-sectie guidance toont
  • Metadata-sectie, afrondingsworkflow en behandelaarselecties bouwden de behandeladvies-tab af
  • Intake-tabs (contact, kindcheck, risico, anamnese, onderzoeken/ROM, diagnose, behandeladvies) compleet met Supabase CRUD
  • Status dropdowns gecorrigeerd (bezig/afgerond) en dokument flows afgerond
  • Supabase migratiestappen wachten nog op einde maintenance (fase 0 runbook ligt klaar)

2025-11-23 — Universele Rapportage backend + modal (Colin)

  • API: /api/reports (GET/POST) + /api/reports/[reportId] (GET/PATCH/DELETE) + /api/reports/classify staan, met Zod-validatie en soft delete
  • Supabase: reports tabel + migratie + RLS policies uitgerold, types toegevoegd in lib/supabase/database.types.ts
  • Server actions: app/epd/patients/[id]/rapportage/actions.ts + gedeelde lib/server/api-client.ts houden fetch logic DRY
  • UI: shadcn-dialog gebaseerd Rapportage Modal met textarea, speech recorder, AI-analyse en save flow (E2.S1)

2025-11-23 — ClientSidebar duplicate cleanup (Colin)

  • Bug fix: Dubbele sidebar (EPDSidebar + ClientSidebar) in patient detail routes verwijderd
  • ClientSidebar (app/epd/patients/[id]/components/client-sidebar.tsx) blijkt 100% duplicate van EPDSidebar Level 2 navigatie
  • EPDSidebar is al context-aware: detecteert patient routes en switcht automatisch tussen Level 1 (behandelaar) en Level 2 (patient) navigatie
  • Verwijderd: ClientSidebar component (117 regels) + EPDLayoutClient wrapper (conditionele sidebar hiding)
  • Vereenvoudigd: patient detail layout gebruikt nu alleen PatientLayoutClient zonder eigen sidebar rendering
  • Resultaat: Eén sidebar component die automatisch switcht, -117 regels duplicate code, DRY principle hersteld