From 46018c9f898059bc8258df12a745ce6df2bce171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Thu, 16 Jul 2026 01:01:08 +0200 Subject: [PATCH] feat(planner): move "computing route" from topbar to a map overlay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The topbar's "Route wird berechnet…" text appeared/disappeared with routing, shifting the topbar layout. Move it onto the map as a floating status pill (spinner + label, top-center, pointer-events-none) that appears temporarily without affecting the topbar. Restyle the ambient top-edge progress bar to accent tokens. Drop the now-unused `computing` prop from Topbar. Co-Authored-By: Claude Opus 4.8 --- apps/planner/app/components/SessionView.tsx | 17 ++++++++++++----- apps/planner/app/components/Topbar.tsx | 7 ------- apps/planner/app/routes/dev.ui.tsx | 3 +-- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/apps/planner/app/components/SessionView.tsx b/apps/planner/app/components/SessionView.tsx index f7e0b16..a558528 100644 --- a/apps/planner/app/components/SessionView.tsx +++ b/apps/planner/app/components/SessionView.tsx @@ -236,7 +236,6 @@ export function SessionView({ sessionId, hasJournalCallback, returnUrl, initialW canRedo={canRedo} onUndo={undo} onRedo={redo} - computing={computing} profileSlot={} actions={ <> @@ -255,11 +254,19 @@ export function SessionView({ sessionId, hasJournalCallback, returnUrl, initialW
{computing && ( -
-
-
+ <> + {/* Ambient indeterminate progress along the top edge */} +
+
+
+
-
+ {/* Floating status pill — overlays the map without shifting layout */} +
+ + {t("computingRoute")} +
+ )} void; onRedo: () => void; - computing?: boolean; /** App-specific interactive slot (profile selector). */ profileSlot?: ReactNode; /** Right-aligned action slot (save-to-journal, export). */ @@ -43,7 +42,6 @@ export function Topbar({ canRedo, onUndo, onRedo, - computing = false, profileSlot, actions, }: TopbarProps) { @@ -86,11 +84,6 @@ export function Topbar({
{actions} - {computing && ( - - {t("computingRoute")} - - )} - +