feat: annotation UX improvements

- Custom calendar (DatePicker) instead of native date input
- Custom dropdown (Select) instead of native select
- EU date format (DD/MM/YYYY) in tooltips and form
- Right-click context menu on chart to add annotations
- Optional time field (HH:MM) for precise timestamps
- Escape key to dismiss, loading state on save
- Bump @ciphera-net/ui to 0.0.95
This commit is contained in:
Usman Baig
2026-03-09 04:17:58 +01:00
parent 4d99334bcf
commit 5fc6f183db
5 changed files with 201 additions and 54 deletions

View File

@@ -6,6 +6,7 @@ export interface Annotation {
id: string
site_id: string
date: string
time?: string | null
text: string
category: AnnotationCategory
created_by: string
@@ -15,12 +16,14 @@ export interface Annotation {
export interface CreateAnnotationRequest {
date: string
time?: string
text: string
category?: AnnotationCategory
}
export interface UpdateAnnotationRequest {
date: string
time?: string
text: string
category: AnnotationCategory
}