From b09d81030123d53f13612428ff3a55dbbe97c977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Thu, 16 Jul 2026 00:39:12 +0200 Subject: [PATCH] feat(planner): restyle sidebar on tokens (waypoints, notes, days) Migrate the whole sidebar surface onto the design system: - SidebarTabs: token tab bar, sage active indicator. - WaypointSidebar: token surfaces/text; sage number badges; overnight marker uses the Badge (stop tone) primitive; route summary + stats footer in Geist Mono; destructive delete signalled via bg-nogo. - NotesPanel + DayBreakdown headers/rows on tokens. - i18n the previously-hardcoded empty-state string (en + de). Co-Authored-By: Claude Opus 4.8 --- apps/planner/app/components/DayBreakdown.tsx | 12 ++-- apps/planner/app/components/NotesPanel.tsx | 4 +- apps/planner/app/components/SessionView.tsx | 8 +-- .../app/components/WaypointSidebar.tsx | 69 ++++++++++--------- packages/i18n/src/locales/de.ts | 1 + packages/i18n/src/locales/en.ts | 1 + 6 files changed, 49 insertions(+), 46 deletions(-) diff --git a/apps/planner/app/components/DayBreakdown.tsx b/apps/planner/app/components/DayBreakdown.tsx index 58cfa9c..4500f76 100644 --- a/apps/planner/app/components/DayBreakdown.tsx +++ b/apps/planner/app/components/DayBreakdown.tsx @@ -19,27 +19,27 @@ export function DayBreakdown({ days, children }: DayBreakdownProps) {
{isExpanded && ( <> -
+
↑ {day.ascent} m ↓ {day.descent} m
diff --git a/apps/planner/app/components/NotesPanel.tsx b/apps/planner/app/components/NotesPanel.tsx index 179d9ac..9954733 100644 --- a/apps/planner/app/components/NotesPanel.tsx +++ b/apps/planner/app/components/NotesPanel.tsx @@ -94,8 +94,8 @@ export function NotesPanel({ yjs }: NotesPanelProps) { return (
-
-

+
+

{t("sidebar.notes")}

diff --git a/apps/planner/app/components/SessionView.tsx b/apps/planner/app/components/SessionView.tsx index a1b4a66..f7e0b16 100644 --- a/apps/planner/app/components/SessionView.tsx +++ b/apps/planner/app/components/SessionView.tsx @@ -119,17 +119,17 @@ function SidebarTabs({ yjs, routeStats, days, onWaypointHover, onWaypointSelect const [tab, setTab] = useState<"waypoints" | "notes">("waypoints"); return ( -