feat(cortex): implement activePatient fallback in various components

- Updated DagnotatieBlock to use activePatient for prefill if no patientId is provided.
- Enhanced PatientDashboardBlock to fallback to activePatient for patientId and name.
- Adjusted usePatientSelection to handle pending actions and re-route after patient selection.
- Refined chat components to manage nudge messages and integrate them into the chat flow.
- Improved UI elements for better patient selection experience.

This update enhances user experience by ensuring that the active patient context is utilized across multiple components, streamlining workflows and reducing manual input.
This commit is contained in:
colinislit
2026-01-03 22:18:30 +01:00
parent 7040241f7d
commit 05836c5c6a
18 changed files with 472 additions and 93 deletions

View File

@@ -169,7 +169,7 @@ export function LoginForm() {
<Zap className="w-5 h-5" />
<div className="text-left">
<div className="font-medium text-sm">Cortex</div>
<div className="text-xs opacity-70">Spraak & AI</div>
<div className="text-xs opacity-70">Je EPD dat meedenkt</div>
</div>
</button>
</div>