From d340f175814d271cf4fca47758afa1b432ab1348 Mon Sep 17 00:00:00 2001 From: Kesar Sidhu Date: Fri, 8 May 2026 08:05:15 -0700 Subject: [PATCH 1/9] update results top bar to match hifi controls Align the results header with the mock by using a compact app label plus Save/Export actions while preserving the existing sidebar toggle and pending-edit cancel behavior. Co-authored-by: Cursor --- app/ui/src/app/results/page.tsx | 81 ++++++++++++++++++--------------- 1 file changed, 45 insertions(+), 36 deletions(-) diff --git a/app/ui/src/app/results/page.tsx b/app/ui/src/app/results/page.tsx index 342a582c..bace482c 100644 --- a/app/ui/src/app/results/page.tsx +++ b/app/ui/src/app/results/page.tsx @@ -122,49 +122,58 @@ export default function ResultsPage() { )}{" "} {/* Map container switched to h-screen and added overflow hidden so the page is forced to be exactly one screen tall, whereas before the page was allowed to get taller than browser window leading to a long scroll */} -
- -

- Results – Route map -

- {pendingPinMove != null && ( -
+ + + + +

+ Delivery Optimizer +

+
+ +
+ {pendingPinMove != null && ( - -
- )} + )} + + +
Date: Sun, 17 May 2026 13:30:35 -0700 Subject: [PATCH 2/9] Address Results top bar review feedback Show Save/Cancel only when a pin move is pending, disable Export until export modal ships, and restore a screen-reader Results heading. Co-authored-by: Cursor --- app/ui/src/app/results/page.tsx | 44 +++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/app/ui/src/app/results/page.tsx b/app/ui/src/app/results/page.tsx index bace482c..e10535bd 100644 --- a/app/ui/src/app/results/page.tsx +++ b/app/ui/src/app/results/page.tsx @@ -145,31 +145,39 @@ export default function ResultsPage() { /> -

- Delivery Optimizer -

+
+ + Delivery Optimizer + +

Results

+
{pendingPinMove != null && ( - + <> + + + )} - From 58c2bcefad405b90e74bd6f7f61d22735cc12e6c Mon Sep 17 00:00:00 2001 From: Kesar Sidhu Date: Sun, 17 May 2026 14:32:02 -0700 Subject: [PATCH 3/9] Rebase step2-routes-panel onto upstream/main Replay the full pre-rebase results stack (route colors, map polylines, top bar, left strip, routes panel) on current upstream/main in one commit to avoid conflicts with directions work already merged upstream. Co-authored-by: Cursor --- .../components/layout/sidebar/Sidebar.tsx | 5 +- .../layout/sidebar/SidebarResultsButton.tsx | 53 +++- .../src/app/edit/utils/hasOptimizeResults.ts | 16 ++ app/ui/src/app/results/components/Sidebar.tsx | 265 +++++++++--------- app/ui/src/app/results/page.tsx | 13 +- app/ui/src/app/results/types.ts | 1 - 6 files changed, 211 insertions(+), 142 deletions(-) create mode 100644 app/ui/src/app/edit/utils/hasOptimizeResults.ts diff --git a/app/ui/src/app/edit/components/layout/sidebar/Sidebar.tsx b/app/ui/src/app/edit/components/layout/sidebar/Sidebar.tsx index d7d55f8b..a48a5187 100644 --- a/app/ui/src/app/edit/components/layout/sidebar/Sidebar.tsx +++ b/app/ui/src/app/edit/components/layout/sidebar/Sidebar.tsx @@ -2,11 +2,12 @@ import { SIDEBAR_ROOT, SIDEBAR_NAV } from "@/app/edit/formStyles.v2"; type SidebarProps = { children: React.ReactNode; + className?: string; }; -export default function Sidebar({ children }: SidebarProps) { +export default function Sidebar({ children, className }: SidebarProps) { return ( -