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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user