Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +7 -1
- VERSION +1 -1
- web/src/customer-grid/CustomerGrid.tsx +8 -0
- web/src/customer-grid/MapView.tsx +2 -14
- web/src/customer-grid/viewModes.tsx +17 -1
- web/src/index.css +12 -1
RELEASES.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
{
|
| 5 |
"version": "v42",
|
| 6 |
"sha": "25b885e",
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "v43 (e2ba461)",
|
| 3 |
"releases": [
|
| 4 |
+
{
|
| 5 |
+
"version": "v43",
|
| 6 |
+
"sha": "e2ba461",
|
| 7 |
+
"date": "2026-08-23",
|
| 8 |
+
"subject": "release v43"
|
| 9 |
+
},
|
| 10 |
{
|
| 11 |
"version": "v42",
|
| 12 |
"sha": "25b885e",
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
v43 (e2ba461)
|
web/src/customer-grid/CustomerGrid.tsx
CHANGED
|
@@ -1940,6 +1940,10 @@ function CustomerGridSurface({
|
|
| 1940 |
// the same reason grouping is off there).
|
| 1941 |
const displaySpec = cleanDisplay(config.display);
|
| 1942 |
const displayMode: DisplayMode = serverWindowed ? "grid" : displaySpec?.mode ?? "grid";
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1943 |
|
| 1944 |
// ═══════════════════════════════════════════════════════════════════════════════════════
|
| 1945 |
// ⭐⭐ WAVE 30 · W30-T42 (contract C2) — PAGING A READ-THROUGH GRID.
|
|
@@ -6867,6 +6871,9 @@ function CustomerGridSurface({
|
|
| 6867 |
sizeField={mapSizeField}
|
| 6868 |
sizeChoices={sizeFieldChoices}
|
| 6869 |
onPickSizeField={(key) => setDisplayField("sizeField", key)}
|
|
|
|
|
|
|
|
|
|
| 6870 |
/>
|
| 6871 |
)}
|
| 6872 |
{/* Wave-10 item 9: the view's description used to render HERE, as a full-width band
|
|
@@ -7372,6 +7379,7 @@ function CustomerGridSurface({
|
|
| 7372 |
patchAndRecord(w.pid, { [mapCoordField.key]: w.value }, "a lookup");
|
| 7373 |
}}
|
| 7374 |
onRouteFieldCreated={revealRouteField}
|
|
|
|
| 7375 |
selectedPids={selectedPids}
|
| 7376 |
onSelectPids={selectPids}
|
| 7377 |
onOpen={setDetailPid}
|
|
|
|
| 1940 |
// the same reason grouping is off there).
|
| 1941 |
const displaySpec = cleanDisplay(config.display);
|
| 1942 |
const displayMode: DisplayMode = serverWindowed ? "grid" : displaySpec?.mode ?? "grid";
|
| 1943 |
+
const [routePanelOpen, setRoutePanelOpen] = useState(false);
|
| 1944 |
+
useEffect(() => {
|
| 1945 |
+
if (displayMode !== "map") setRoutePanelOpen(false);
|
| 1946 |
+
}, [displayMode]);
|
| 1947 |
|
| 1948 |
// ═══════════════════════════════════════════════════════════════════════════════════════
|
| 1949 |
// ⭐⭐ WAVE 30 · W30-T42 (contract C2) — PAGING A READ-THROUGH GRID.
|
|
|
|
| 6871 |
sizeField={mapSizeField}
|
| 6872 |
sizeChoices={sizeFieldChoices}
|
| 6873 |
onPickSizeField={(key) => setDisplayField("sizeField", key)}
|
| 6874 |
+
routeOpen={routePanelOpen}
|
| 6875 |
+
selectedCount={selectedPids.size}
|
| 6876 |
+
onToggleRoute={() => setRoutePanelOpen((open) => !open)}
|
| 6877 |
/>
|
| 6878 |
)}
|
| 6879 |
{/* Wave-10 item 9: the view's description used to render HERE, as a full-width band
|
|
|
|
| 7379 |
patchAndRecord(w.pid, { [mapCoordField.key]: w.value }, "a lookup");
|
| 7380 |
}}
|
| 7381 |
onRouteFieldCreated={revealRouteField}
|
| 7382 |
+
routePanelOpen={routePanelOpen}
|
| 7383 |
selectedPids={selectedPids}
|
| 7384 |
onSelectPids={selectPids}
|
| 7385 |
onOpen={setDetailPid}
|
web/src/customer-grid/MapView.tsx
CHANGED
|
@@ -217,6 +217,7 @@ export function MapView({
|
|
| 217 |
onOpen,
|
| 218 |
onGeocoded,
|
| 219 |
onRouteFieldCreated,
|
|
|
|
| 220 |
}: {
|
| 221 |
/** DISTINCT data rows from the full pipeline, overlay edits layered — the
|
| 222 |
* calendar/kanban contract, verbatim. */
|
|
@@ -253,11 +254,11 @@ export function MapView({
|
|
| 253 |
*/
|
| 254 |
onGeocoded?: (writes: { pid: number; value: string }[]) => void;
|
| 255 |
onRouteFieldCreated?: (key: string) => void;
|
|
|
|
| 256 |
}) {
|
| 257 |
const [hoverPid, setHoverPid] = useState<number | null>(null);
|
| 258 |
// I18-R — the route planner. Off until asked for: a route drawn over a
|
| 259 |
// selection nobody asked to route is just clutter.
|
| 260 |
-
const [routePanelOpen, setRoutePanelOpen] = useState(false);
|
| 261 |
const [routeOn, setRouteOn] = useState(false);
|
| 262 |
const [roundTrip, setRoundTrip] = useState(false);
|
| 263 |
const [routeStartPid, setRouteStartPid] = useState<number | null>(null);
|
|
@@ -1437,19 +1438,6 @@ export function MapView({
|
|
| 1437 |
</a>
|
| 1438 |
</span>
|
| 1439 |
)}
|
| 1440 |
-
{/* I18-R — the route planner. Appears only with a multi-pin selection, so
|
| 1441 |
-
it is mutually exclusive with the single-pin links above and the bar
|
| 1442 |
-
never carries both. */}
|
| 1443 |
-
<button
|
| 1444 |
-
type="button"
|
| 1445 |
-
className={"cg-map-route-toggle" + (routePanelOpen ? " is-open" : "")}
|
| 1446 |
-
aria-expanded={routePanelOpen}
|
| 1447 |
-
aria-controls="cg-route-popover"
|
| 1448 |
-
onClick={() => setRoutePanelOpen((open) => !open)}
|
| 1449 |
-
title="Show or hide route planning"
|
| 1450 |
-
>
|
| 1451 |
-
Route{selectedPids.size >= 2 ? ` · ${selectedPids.size} selected` : ""}
|
| 1452 |
-
</button>
|
| 1453 |
{routePanelOpen && (
|
| 1454 |
<aside id="cg-route-popover" className="cg-route-popover" aria-label="Route navigation">
|
| 1455 |
<div className="cg-route-popover-head">
|
|
|
|
| 217 |
onOpen,
|
| 218 |
onGeocoded,
|
| 219 |
onRouteFieldCreated,
|
| 220 |
+
routePanelOpen,
|
| 221 |
}: {
|
| 222 |
/** DISTINCT data rows from the full pipeline, overlay edits layered — the
|
| 223 |
* calendar/kanban contract, verbatim. */
|
|
|
|
| 254 |
*/
|
| 255 |
onGeocoded?: (writes: { pid: number; value: string }[]) => void;
|
| 256 |
onRouteFieldCreated?: (key: string) => void;
|
| 257 |
+
routePanelOpen: boolean;
|
| 258 |
}) {
|
| 259 |
const [hoverPid, setHoverPid] = useState<number | null>(null);
|
| 260 |
// I18-R — the route planner. Off until asked for: a route drawn over a
|
| 261 |
// selection nobody asked to route is just clutter.
|
|
|
|
| 262 |
const [routeOn, setRouteOn] = useState(false);
|
| 263 |
const [roundTrip, setRoundTrip] = useState(false);
|
| 264 |
const [routeStartPid, setRouteStartPid] = useState<number | null>(null);
|
|
|
|
| 1438 |
</a>
|
| 1439 |
</span>
|
| 1440 |
)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1441 |
{routePanelOpen && (
|
| 1442 |
<aside id="cg-route-popover" className="cg-route-popover" aria-label="Route navigation">
|
| 1443 |
<div className="cg-route-popover-head">
|
web/src/customer-grid/viewModes.tsx
CHANGED
|
@@ -408,6 +408,9 @@ export function MapSettings({
|
|
| 408 |
sizeField,
|
| 409 |
sizeChoices,
|
| 410 |
onPickSizeField,
|
|
|
|
|
|
|
|
|
|
| 411 |
}: {
|
| 412 |
coordField?: Field;
|
| 413 |
coordChoices: Field[];
|
|
@@ -415,11 +418,24 @@ export function MapSettings({
|
|
| 415 |
sizeField?: Field;
|
| 416 |
sizeChoices: Field[];
|
| 417 |
onPickSizeField: (key: string) => void;
|
|
|
|
|
|
|
|
|
|
| 418 |
}) {
|
| 419 |
-
if (coordChoices.length === 0 && sizeChoices.length === 0) return null;
|
| 420 |
return (
|
| 421 |
<div className="cg-map-settings" aria-label="Map settings">
|
| 422 |
<span className="cg-map-settings-label">Map</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 423 |
{coordChoices.length > 0 && (
|
| 424 |
<FieldSelectButton
|
| 425 |
className="cg-mode-field"
|
|
|
|
| 408 |
sizeField,
|
| 409 |
sizeChoices,
|
| 410 |
onPickSizeField,
|
| 411 |
+
routeOpen,
|
| 412 |
+
selectedCount,
|
| 413 |
+
onToggleRoute,
|
| 414 |
}: {
|
| 415 |
coordField?: Field;
|
| 416 |
coordChoices: Field[];
|
|
|
|
| 418 |
sizeField?: Field;
|
| 419 |
sizeChoices: Field[];
|
| 420 |
onPickSizeField: (key: string) => void;
|
| 421 |
+
routeOpen: boolean;
|
| 422 |
+
selectedCount: number;
|
| 423 |
+
onToggleRoute: () => void;
|
| 424 |
}) {
|
| 425 |
+
if (coordChoices.length === 0 && sizeChoices.length === 0 && selectedCount < 1) return null;
|
| 426 |
return (
|
| 427 |
<div className="cg-map-settings" aria-label="Map settings">
|
| 428 |
<span className="cg-map-settings-label">Map</span>
|
| 429 |
+
<button
|
| 430 |
+
type="button"
|
| 431 |
+
className={"cg-map-route-toggle" + (routeOpen ? " is-open" : "")}
|
| 432 |
+
aria-expanded={routeOpen}
|
| 433 |
+
aria-controls="cg-route-popover"
|
| 434 |
+
onClick={onToggleRoute}
|
| 435 |
+
title="Show or hide route planning"
|
| 436 |
+
>
|
| 437 |
+
Route{selectedCount >= 2 ? ` · ${selectedCount} selected` : ""}
|
| 438 |
+
</button>
|
| 439 |
{coordChoices.length > 0 && (
|
| 440 |
<FieldSelectButton
|
| 441 |
className="cg-mode-field"
|
web/src/index.css
CHANGED
|
@@ -1254,7 +1254,9 @@ body {
|
|
| 1254 |
border-bottom: 1px solid var(--lp-line);
|
| 1255 |
background: var(--lp-surface);
|
| 1256 |
color: var(--lp-muted);
|
|
|
|
| 1257 |
font-size: var(--lp-fs-3xs);
|
|
|
|
| 1258 |
}
|
| 1259 |
.cg-map-settings-label {
|
| 1260 |
margin-right: 2px;
|
|
@@ -4760,7 +4762,7 @@ body > .cg-overlay {
|
|
| 4760 |
position: absolute;
|
| 4761 |
z-index: var(--cg-z-overlay);
|
| 4762 |
top: 48px;
|
| 4763 |
-
|
| 4764 |
width: min(360px, calc(100% - 24px));
|
| 4765 |
max-height: calc(100% - 60px);
|
| 4766 |
overflow-y: auto;
|
|
@@ -4769,8 +4771,17 @@ body > .cg-overlay {
|
|
| 4769 |
border-radius: 7px;
|
| 4770 |
background: var(--lp-surface);
|
| 4771 |
color: var(--lp-ink);
|
|
|
|
|
|
|
|
|
|
| 4772 |
box-shadow: 0 8px 24px rgba(32, 36, 51, 0.16);
|
| 4773 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4774 |
.cg-route-popover-head {
|
| 4775 |
display: flex;
|
| 4776 |
align-items: center;
|
|
|
|
| 1254 |
border-bottom: 1px solid var(--lp-line);
|
| 1255 |
background: var(--lp-surface);
|
| 1256 |
color: var(--lp-muted);
|
| 1257 |
+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
| 1258 |
font-size: var(--lp-fs-3xs);
|
| 1259 |
+
line-height: 1.3;
|
| 1260 |
}
|
| 1261 |
.cg-map-settings-label {
|
| 1262 |
margin-right: 2px;
|
|
|
|
| 4762 |
position: absolute;
|
| 4763 |
z-index: var(--cg-z-overlay);
|
| 4764 |
top: 48px;
|
| 4765 |
+
left: 12px;
|
| 4766 |
width: min(360px, calc(100% - 24px));
|
| 4767 |
max-height: calc(100% - 60px);
|
| 4768 |
overflow-y: auto;
|
|
|
|
| 4771 |
border-radius: 7px;
|
| 4772 |
background: var(--lp-surface);
|
| 4773 |
color: var(--lp-ink);
|
| 4774 |
+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
| 4775 |
+
font-size: var(--lp-fs-xs);
|
| 4776 |
+
line-height: var(--lp-lh);
|
| 4777 |
box-shadow: 0 8px 24px rgba(32, 36, 51, 0.16);
|
| 4778 |
}
|
| 4779 |
+
.cg-route-popover button,
|
| 4780 |
+
.cg-route-popover input,
|
| 4781 |
+
.cg-route-popover select,
|
| 4782 |
+
.cg-route-popover a {
|
| 4783 |
+
font-family: inherit;
|
| 4784 |
+
}
|
| 4785 |
.cg-route-popover-head {
|
| 4786 |
display: flex;
|
| 4787 |
align-items: center;
|