fix(cortex): update date handling in API and UI components

- Adjusted date handling in the agenda API to ensure optional parameters for start, end, and label are correctly processed.
- Enhanced chat input and action parser to support optional date labels for relative dates.
- Updated agenda components to handle date ranges and loading states more effectively.
- Improved error handling and loading indicators in the agenda block for better user experience.

This commit ensures consistency in date handling across the application, aligning with the new requirements for relative date inputs.
This commit is contained in:
colinislit
2026-01-02 09:21:37 +01:00
parent 011815072b
commit 52e07aaf80
20 changed files with 2092 additions and 65 deletions

View File

@@ -43,6 +43,7 @@ export interface ChatEntities {
datetime?: {
date?: string;
time?: string;
label?: string; // Voor relatieve datums: vandaag, morgen, etc.
};
appointmentType?: string;
location?: string;
@@ -50,6 +51,7 @@ export interface ChatEntities {
newDatetime?: {
date?: string;
time?: string;
label?: string; // Voor relatieve datums
};
}