fsanyoto commited on
Commit
cac5672
·
verified ·
1 Parent(s): 3ff1b1a

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
Files changed (3) hide show
  1. RELEASES.json +1 -1
  2. VERSION +1 -1
  3. web/src/customer-grid/RouteNav.tsx +28 -1
RELEASES.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "current": "1b2a445",
3
  "releases": [
4
  {
5
  "version": "v62",
 
1
  {
2
+ "current": "d5627ae",
3
  "releases": [
4
  {
5
  "version": "v62",
VERSION CHANGED
@@ -1 +1 @@
1
- 1b2a445
 
1
+ d5627ae
web/src/customer-grid/RouteNav.tsx CHANGED
@@ -1062,8 +1062,30 @@ export function RouteNav({ routes, folders, selectedIds, activeRouteId, sources,
1062
  event.preventDefault();
1063
  dropStopDrag(stopView, pid);
1064
  }}>
 
 
 
 
 
 
 
 
 
 
1065
  <button type="button" className="cg-view-main"
1066
  aria-label={`Open stop ${index + 1} record`}
 
 
 
 
 
 
 
 
 
 
 
 
1067
  aria-describedby={`cg-route-stop-name-${pid}`} onClick={() => onOpenRecord(pid)}>
1068
  {/* The ordinal is furniture: it says where in the drive this falls, and the
1069
  accessible name above already carries it, so it is hidden from the reader
@@ -1637,8 +1659,13 @@ export function RouteNav({ routes, folders, selectedIds, activeRouteId, sources,
1637
  so ticking a Route still shows you which line on the map is about to be yours,
1638
  without a second mark in the row. */}
1639
  <label className="cg-w44-route-toggle" title={`Show ${item.name} on the map`}>
 
 
 
 
 
1640
  <input type="checkbox" checked={selectedIds.has(item.id)}
1641
- style={{ accentColor: item.color }}
1642
  aria-label={`Show ${item.name} on the map`}
1643
  onChange={() => onToggle(item)} />
1644
  </label>
 
1062
  event.preventDefault();
1063
  dropStopDrag(stopView, pid);
1064
  }}>
1065
+ {/* ⭐⭐ D-619 CLOSED WITHOUT REOPENING WHAT THE OWNER REMOVED. Deleting the per-stop
1066
+ `< >` and the typed Position took the only KEYBOARD reorder with them, because
1067
+ the drag grip is pointer-only. The owner's instruction was that drag replaces
1068
+ those CONTROLS, not that reordering becomes pointer-only, so the gesture moves
1069
+ onto the row's EXISTING focusable element: Alt + Up / Alt + Down, calling the
1070
+ same `commitStopMove` the arrows called, with the same `stopView` target that
1071
+ keeps a pruned list honest. No new tab stop, no new control, nothing wider.
1072
+ ⛔ ALT IS DELIBERATE. A bare ArrowUp/ArrowDown inside a scrolling panel is the
1073
+ reader moving through the list, and stealing it would make the list impossible
1074
+ to walk. `aria-keyshortcuts` is what announces the pair. */}
1075
  <button type="button" className="cg-view-main"
1076
  aria-label={`Open stop ${index + 1} record`}
1077
+ aria-keyshortcuts={canEdit ? "Alt+ArrowUp Alt+ArrowDown" : undefined}
1078
+ title={canEdit ? "Alt + Up or Alt + Down moves this stop" : undefined}
1079
+ onKeyDown={(event) => {
1080
+ if (!canEdit || !event.altKey || busy) return;
1081
+ if (event.key === "ArrowUp" && index > 0) {
1082
+ event.preventDefault();
1083
+ commitStopMove(stopView, pid, String(index));
1084
+ } else if (event.key === "ArrowDown" && index < displayIds.length - 1) {
1085
+ event.preventDefault();
1086
+ commitStopMove(stopView, pid, String(index + 2));
1087
+ }
1088
+ }}
1089
  aria-describedby={`cg-route-stop-name-${pid}`} onClick={() => onOpenRecord(pid)}>
1090
  {/* The ordinal is furniture: it says where in the drive this falls, and the
1091
  accessible name above already carries it, so it is hidden from the reader
 
1659
  so ticking a Route still shows you which line on the map is about to be yours,
1660
  without a second mark in the row. */}
1661
  <label className="cg-w44-route-toggle" title={`Show ${item.name} on the map`}>
1662
+ {/* ⚠ `accent-color` PAINTS A CHECKED BOX ONLY, so on its own it left an unticked rail
1663
+ with no colour anywhere - a real gap against the owner's *"each route should have a
1664
+ color edit function"*, and one the removal of the dot created. The ring is the
1665
+ same checkbox wearing its own colour at rest, NOT the second mark that was
1666
+ removed: it is drawn on the input itself, adds no element and no width. */}
1667
  <input type="checkbox" checked={selectedIds.has(item.id)}
1668
+ style={{ accentColor: item.color, boxShadow: `0 0 0 1.5px ${item.color}` }}
1669
  aria-label={`Show ${item.name} on the map`}
1670
  onChange={() => onToggle(item)} />
1671
  </label>