fsanyoto commited on
Commit
323cf74
·
verified ·
1 Parent(s): e323335

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "current": "6d4fd04",
3
  "releases": [
4
  {
5
  "version": "v62",
 
1
  {
2
+ "current": "6a7bb2f",
3
  "releases": [
4
  {
5
  "version": "v62",
VERSION CHANGED
@@ -1 +1 @@
1
- 6d4fd04
 
1
+ 6a7bb2f
web/src/customer-grid/RouteNav.tsx CHANGED
@@ -332,7 +332,15 @@ export function RouteNav({ routes, folders, selectedIds, activeRouteId, sources,
332
  if (needle && !label.toLowerCase().includes(needle)) continue;
333
  out.push({ pid, label });
334
  }
335
- out.sort((a, b) => a.label.localeCompare(b.label));
 
 
 
 
 
 
 
 
336
  return out;
337
  }, [addStopQuery, stopLabels, stopSet]);
338
  const addableStops = useMemo(() => addStopMatches.slice(0, 50), [addStopMatches]);
 
332
  if (needle && !label.toLowerCase().includes(needle)) continue;
333
  out.push({ pid, label });
334
  }
335
+ // ⛔ A NAMELESS RECORD SORTS LAST, AND THIS IS A MEASUREMENT, NOT A PREFERENCE. Tenant #0's
336
+ // customer book carries 57 records whose name in Odoo is literally "?" (counted on the
337
+ // deployed staging build). Plain `localeCompare` puts "?" before every letter, so all 57
338
+ // filled the first fifty rows and the menu opened on nothing anybody could pick. A label
339
+ // with no letter or digit in it is a placeholder rather than a name, so it goes to the end;
340
+ // it is still offered, still searchable, and no record is hidden.
341
+ const named = (label: string) => /[\p{L}\p{N}]/u.test(label);
342
+ out.sort((a, b) => (Number(named(b.label)) - Number(named(a.label)))
343
+ || a.label.localeCompare(b.label));
344
  return out;
345
  }, [addStopQuery, stopLabels, stopSet]);
346
  const addableStops = useMemo(() => addStopMatches.slice(0, 50), [addStopMatches]);
web/src/styles/wave42/route-nav.css CHANGED
@@ -587,3 +587,16 @@
587
 
588
  /* One way / Round trip, inside the drive-time card it changes. */
589
  #cg-route-popover .cg-w46-timer-trip { padding-top: 8px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
587
 
588
  /* One way / Round trip, inside the drive-time card it changes. */
589
  #cg-route-popover .cg-w46-timer-trip { padding-top: 8px; }
590
+
591
+ /* ⛔ `.w46-recur-pill` IS A 28x28 SQUARE, sized for the seven single-letter weekday initials it
592
+ was built for, so borrowing it for "One way" / "Round trip" wrapped both words inside a circle.
593
+ Observed on the deployed build before this rule existed. The pill's paint, hover, selected
594
+ state and focus ring are all still the date editor's - only the box grows to fit a word, which
595
+ is the whole reason to reuse the class rather than mint a second kind of pill. */
596
+ #cg-route-popover .cg-w46-timer-trip .w46-recur-pill {
597
+ width: auto;
598
+ min-width: 0;
599
+ height: 26px;
600
+ padding: 0 10px;
601
+ white-space: nowrap;
602
+ }