From 173623a432ccef3714533aa247c5ec31bbf1e9c4 Mon Sep 17 00:00:00 2001 From: Marko Djordjevic Date: Fri, 20 Feb 2026 22:26:39 +0100 Subject: [PATCH] Move span-label-types and annotation-types links from sidebar settings menu to settings page Co-Authored-By: Claude Sonnet 4.6 --- src/app/app/page.tsx | 38 ++------------------------------- src/app/app/settings/page.tsx | 40 ++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 37 deletions(-) diff --git a/src/app/app/page.tsx b/src/app/app/page.tsx index c206ca9..51882b9 100644 --- a/src/app/app/page.tsx +++ b/src/app/app/page.tsx @@ -22,7 +22,7 @@ import { DialogClose, } from '@/components/ui/dialog'; import { useTheme } from 'next-themes'; -import { Settings, Tag, Layers } from 'lucide-react'; +import { Settings } from 'lucide-react'; import type { PredictionState, PredictionSpan, PerCandlePrediction, ModelInfoResponse, Disagreement, DisagreementType, PredictionSummary } from '@/types/predictions'; import type { Candle, SpanAnnotation, SpanLabelType } from '@/types'; import type { Geometry } from '@/types/annotations'; @@ -147,8 +147,7 @@ interface Annotation { export default function Home() { const { theme, setTheme } = useTheme(); - const [settingsOpen, setSettingsOpen] = useState(false); - const [shortcutsOpen, setShortcutsOpen] = useState(false); +const [shortcutsOpen, setShortcutsOpen] = useState(false); const [activeTool, setActiveTool] = useState(null); const [selectedColor, setSelectedColor] = useState('#3b82f6'); const [selectedLabelId, setSelectedLabelId] = useState(null); @@ -978,39 +977,6 @@ export default function Home() { - {/* Settings */} -
- - {settingsOpen && ( - <> - {/* backdrop */} -
setSettingsOpen(false)} /> - {/* menu */} - - - )} -
{/* Main chart area */} diff --git a/src/app/app/settings/page.tsx b/src/app/app/settings/page.tsx index 1b36220..16cd72b 100644 --- a/src/app/app/settings/page.tsx +++ b/src/app/app/settings/page.tsx @@ -14,7 +14,7 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog"; -import { CheckCircle, AlertCircle, Trash2, ChevronLeft } from "lucide-react"; +import { CheckCircle, AlertCircle, Trash2, ChevronLeft, Tag, Layers, ChevronRight } from "lucide-react"; import Link from "next/link"; export default function SettingsPage() { @@ -359,6 +359,44 @@ export default function SettingsPage() { )} + {/* Configuration section */} + + + Configuration + + Manage annotation and span label types used across charts. + + + + +
+ +
+

Annotation Types

+

Manage marker and line annotation types

+
+
+ + + +
+ +
+

Span Label Types

+

Manage pattern labels for span annotations

+
+
+ + +
+
+ {/* Danger Zone section */}