From c819acc62ed562954f01822d2d8b2ce1d66094ae Mon Sep 17 00:00:00 2001 From: YaelAnaya Date: Mon, 24 Aug 2026 01:48:38 -0700 Subject: [PATCH 1/5] refactor(annotator): the annotation workspace draws Tabler The primitives and the screens converged on `@tabler/icons-react` in earlier phases, which left the annotator as the one place `lucide-react` still drew: eleven modules, sixty-one call sites, thirty-one distinct glyphs. Every one of them now imports the same set the rest of the frontend does. The glyphs are chosen by what they mean here, not by which name matches. Most are direct, and two deliberately are not. `GeometryIcon` documents that a polygon has to read as a closed path and a lane as an open one, and the old set inverted that by calling the polygon's glyph `Spline`; the polygon now takes `IconPolygon` and the polyline `IconVectorSpline`, so the distinction survives the rename rather than the spelling doing. Sizes and accessible names are carried over untouched - `size-6` included, where the compact geometry is a separate question from which set draws it. Two comments claimed `DESIGN.md` pins three specific glyphs; it pins none, and they no longer say so. --- .../ui-core/src/annotator/AddClassDialog.tsx | 6 +- .../ui-core/src/annotator/AnnotationPage.tsx | 74 +++++++++---------- .../ui-core/src/annotator/AnnotatorPanel.tsx | 14 ++-- frontend/ui-core/src/annotator/AssetImage.tsx | 4 +- .../ui-core/src/annotator/CanvasReassign.tsx | 4 +- .../ui-core/src/annotator/ClassRegion.tsx | 6 +- .../ui-core/src/annotator/GeometryIcon.tsx | 24 +++--- .../ui-core/src/annotator/ReassignMenu.tsx | 4 +- .../ui-core/src/annotator/SuggestPanel.tsx | 30 +++++--- .../ui-core/src/annotator/ToolPalette.tsx | 29 ++++---- frontend/ui-core/src/annotator/ZoomWidget.tsx | 10 +-- 11 files changed, 106 insertions(+), 99 deletions(-) diff --git a/frontend/ui-core/src/annotator/AddClassDialog.tsx b/frontend/ui-core/src/annotator/AddClassDialog.tsx index 934be458..e67e356e 100644 --- a/frontend/ui-core/src/annotator/AddClassDialog.tsx +++ b/frontend/ui-core/src/annotator/AddClassDialog.tsx @@ -85,7 +85,7 @@ * where every other refusal here renders. */ -import { Plus, X } from "lucide-react"; +import { IconPlus, IconX } from "@tabler/icons-react"; import { useEffect, useRef, useState, type JSX } from "react"; import { asApiError } from "../data/errors"; @@ -634,7 +634,7 @@ export function AddClassDialog({ onBank?.(banked); }} > -