Analyzer update

jeremy
jeremy · Oct. 19, 2025, 7:35 p.m.

Major Enhancements: 1. Collapsible Add Annotation Form Card with collapsible form to add new annotations Clear fields for label and confidence score Info message for photo types to click on canvas first 2. Annotations List Card Shows count badge in header Each annotation displayed as a colored tile Empty state with helpful message when no annotations 3. Annotation Tiles - Each tile shows: Numbered badge with unique color (distinct hue for each) Label prominently displayed Confidence score with star icon (if provided) Point coordinates with location icon (if on image) Timestamp of when it was added Edit button to modify the annotation Delete button to remove it Border color matching the point color on the canvas 4. Interactive Features Click on Tile: Highlights the corresponding point on the canvas with a flashing yellow circle Scrolls the canvas into view Helps locate annotations visually Edit Annotation: Loads annotation data into the form Removes from list temporarily User can modify and re-add Delete Annotation: Confirmation dialog Removes from list and canvas Saves changes immediately 5. Canvas Improvements Color-coded points: Each annotation gets a unique color Numbered markers: Shows 1, 2, 3, etc. on each point Temporary "NEW" marker: Red dot with "NEW" label before saving Larger, more visible points: 8px radius with white stroke Centered numbers: Numbers displayed in the center of markers 6. Data Management Multiple annotations stored as array Each annotation object contains: label, score, point (x,y coordinates), timestamp Auto-saves to database on add/delete Loads existing annotations on page load Summary stored in anomaly_label field (all labels joined) Maximum score stored in anomaly_score field 7. User Experience Add one annotation at a time Click canvas to place marker, fill form, click "Add Annotation" Form clears after adding Success feedback with green checkmark Edit by clicking edit button Delete with confirmation Visual feedback when highlighting points The system now supports unlimited annotations per media item, each with its own point, label, score, and timestamp!