Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- web/src/customer-grid/CustomerGrid.tsx +25 -3
RELEASES.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": [
|
| 4 |
{
|
| 5 |
"version": "v62",
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "c5dfeea",
|
| 3 |
"releases": [
|
| 4 |
{
|
| 5 |
"version": "v62",
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
c5dfeea
|
web/src/customer-grid/CustomerGrid.tsx
CHANGED
|
@@ -3534,6 +3534,29 @@ function CustomerGridSurface({
|
|
| 3534 |
embeddedSelectable ? embeddedSelectedIds : [],
|
| 3535 |
!embedded ? `aios:grid-selection:${scope}` : undefined
|
| 3536 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3537 |
// A Link picker is controlled by its modal parent. Do not treat the parent's PREVIOUS prop as
|
| 3538 |
// a new command after the child has just ticked a row: doing that reset the checkbox before the
|
| 3539 |
// child effect could report the new selection upward, so it visibly flickered. Only a prop
|
|
@@ -9967,8 +9990,7 @@ function CustomerGridSurface({
|
|
| 9967 |
`addedPids` follows through the empty-selection effect in `MapView`. */
|
| 9968 |
onClick={() => {
|
| 9969 |
setServerFilteredSelection(null);
|
| 9970 |
-
|
| 9971 |
-
setManagedRouteClause(undefined);
|
| 9972 |
}}>
|
| 9973 |
Clear
|
| 9974 |
</button>
|
|
@@ -10081,7 +10103,7 @@ function CustomerGridSurface({
|
|
| 10081 |
</button>
|
| 10082 |
)}
|
| 10083 |
<button type="button" className="cg-btn" style={ONE_LINE}
|
| 10084 |
-
onClick={
|
| 10085 |
Clear
|
| 10086 |
</button>
|
| 10087 |
</div>
|
|
|
|
| 3534 |
embeddedSelectable ? embeddedSelectedIds : [],
|
| 3535 |
!embedded ? `aios:grid-selection:${scope}` : undefined
|
| 3536 |
);
|
| 3537 |
+
/**
|
| 3538 |
+
* ⭐⭐ OWNER 2026-08-31 item 1 - WHAT "CLEAR" MEANS WHEN A ROUTE PUT ROWS IN THE TABLE.
|
| 3539 |
+
*
|
| 3540 |
+
* Owner: *"When I press clear after I selected the Route that has records not actually a part of
|
| 3541 |
+
* the filter. The record stays, only when I change the filter it actually move back."*
|
| 3542 |
+
*
|
| 3543 |
+
* ⛔⛔ AND THE FIRST FIX FOR THIS WAS WRONG BECAUSE IT PATCHED ONE CALL SITE. There are TWO
|
| 3544 |
+
* selection bars in this file - `data-kind="server-filtered-selection"` for a windowed table and
|
| 3545 |
+
* the plain `.cg-selbar` for a whole-book one - and only the windowed one was repaired. The
|
| 3546 |
+
* customers map is whole-book, so the button the owner actually presses was the untouched one:
|
| 3547 |
+
* MEASURED on the deployed build, ticking an out-of-filter Route took 1,318 -> 1,321 records and
|
| 3548 |
+
* Clear left it at 1,321 with the filter chip unchanged. Exactly the report, still true after a
|
| 3549 |
+
* fix that looked right. [[a-traced-seam-can-name-too-few-callers]]
|
| 3550 |
+
*
|
| 3551 |
+
* ⚠ SO THE CLAUSE DROP LIVES IN ONE FUNCTION AND BOTH BARS CALL IT. Patching the second call
|
| 3552 |
+
* site is how a third one gets written. `clearSelection` itself is deliberately NOT changed: it
|
| 3553 |
+
* has many callers (bulk update, delete, cohort edits) that clear a selection as a step and have
|
| 3554 |
+
* no business withdrawing a Route inclusion the person did not ask to drop.
|
| 3555 |
+
*/
|
| 3556 |
+
const clearSelectionAndRouteInclusion = useCallback(() => {
|
| 3557 |
+
clearSelection();
|
| 3558 |
+
setManagedRouteClause(undefined);
|
| 3559 |
+
}, [clearSelection]);
|
| 3560 |
// A Link picker is controlled by its modal parent. Do not treat the parent's PREVIOUS prop as
|
| 3561 |
// a new command after the child has just ticked a row: doing that reset the checkbox before the
|
| 3562 |
// child effect could report the new selection upward, so it visibly flickered. Only a prop
|
|
|
|
| 9990 |
`addedPids` follows through the empty-selection effect in `MapView`. */
|
| 9991 |
onClick={() => {
|
| 9992 |
setServerFilteredSelection(null);
|
| 9993 |
+
clearSelectionAndRouteInclusion();
|
|
|
|
| 9994 |
}}>
|
| 9995 |
Clear
|
| 9996 |
</button>
|
|
|
|
| 10103 |
</button>
|
| 10104 |
)}
|
| 10105 |
<button type="button" className="cg-btn" style={ONE_LINE}
|
| 10106 |
+
onClick={clearSelectionAndRouteInclusion}>
|
| 10107 |
Clear
|
| 10108 |
</button>
|
| 10109 |
</div>
|