+
+
+
+
+ Route {idx + 1}
+
+
+ {route.vehicleType ?? "Vehicle"} {route.vehicleId}
+
-
-
- DISTANCE
-
-
- {route.distanceMi != null
- ? `${route.distanceMi}mi`
- : "—"}
+
+
+
+ STOPS
+
+
+ {sortedStops.length}
+
-
-
-
- EST. TIME
+
+
+ DISTANCE
+
+
+ {route.distanceMi != null
+ ? `${route.distanceMi}mi`
+ : "—"}
+
-
- {formatEstTime(route.estimatedTimeMinutes)}
+
+
+ EST. TIME
+
+
+ {formatEstTime(route.estimatedTimeMinutes)}
+
+
+
+ Driver:
+ {" "}
+ {route.driverName}
+
-
-
- Driver:
- {" "}
- {route.driverName}
-
-
-
-
+
+
- {isExpanded && (
-
-
- {sortedStops.map((stop) => (
- -
-
- onUpdateStopNote(route.vehicleId, stop.id, note)
- }
- />
-
- ))}
-
-
- )}
-
- );
- })}
-
- )}
+ {isExpanded && (
+
+
+ {sortedStops.map((stop) => (
+ -
+
+ onUpdateStopNote(
+ route.vehicleId,
+ stop.id,
+ note,
+ )
+ }
+ />
+
+ ))}
+
+
+ )}
+
+ );
+ })}
+
+ )}
+
+
+
+ b²
+
+
+ Built with ❤️ for Humanity.
+
+
+ The Benevolent Bandwidth Foundation
+
+
);
diff --git a/app/ui/src/app/results/page.tsx b/app/ui/src/app/results/page.tsx
index 342a582c..b087f378 100644
--- a/app/ui/src/app/results/page.tsx
+++ b/app/ui/src/app/results/page.tsx
@@ -3,6 +3,11 @@
"use client";
import { useCallback, useEffect, useState } from "react";
+import { NAVBAR_V2_LOGO, NAVBAR_V2_ROOT } from "../edit/formStyles.v2";
+import styles from "../edit/edit.module.css";
+import EditSidebar from "../edit/components/layout/sidebar/Sidebar";
+import SidebarEditButton from "../edit/components/layout/sidebar/SidebarEditButton";
+import SidebarResultsButton from "../edit/components/layout/sidebar/SidebarResultsButton";
import MapComponent from "./components/Map";
import Sidebar from "./components/Sidebar";
import type { PendingPinMove, Route } from "./types";
@@ -36,7 +41,7 @@ export default function ResultsPage() {
}
}, [initialRoutes.length]);
- const [isSidebarOpen, setIsSidebarOpen] = useState(true);
+ const isSidebarOpen = true;
const [isEditMode, setIsEditMode] = useState(false);
const [pendingPinMove, setPendingPinMove] = useState
(
null,
@@ -107,7 +112,9 @@ export default function ResultsPage() {
const cancelPendingPinMove = useCallback(() => setPendingPinMove(null), []);
return (
-
+
{error && (
@@ -122,53 +129,46 @@ 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 */}
-
-
+
+
+
+
+
-
+
+ {isEditMode && (
+
+ You are now in editing mode
+
+ )}