Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
- web/src/customer-grid/CustomerGrid.tsx +9 -3
- web/src/sheet/BindingEditor.tsx +2 -6
- web/src/sheet/DrillModal.tsx +2 -7
- web/src/sheet/SheetPage.tsx +4 -30
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "95b6b5c",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
95b6b5c
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
b440699b411635eecdeef4061f51a836fc056a7d26f5fe9f9245aff314ef53f7
|
web/src/customer-grid/CustomerGrid.tsx
CHANGED
|
@@ -10819,7 +10819,13 @@ function CustomerGridSurface({
|
|
| 10819 |
</div>
|
| 10820 |
) : null
|
| 10821 |
)}
|
| 10822 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10823 |
{workspaceLoading ? (
|
| 10824 |
<div className="cg-loading">
|
| 10825 |
<span className="lp-spin lp-spin--lg" role="status" aria-label="Loading" />
|
|
@@ -12187,7 +12193,7 @@ function CustomerGridSurface({
|
|
| 12187 |
|
| 12188 |
{embedded && menuField && columnMenu && (
|
| 12189 |
<ColumnMenu
|
| 12190 |
-
key={menuField.key}
|
| 12191 |
embedded
|
| 12192 |
state={columnMenu}
|
| 12193 |
field={menuField}
|
|
@@ -12242,7 +12248,7 @@ function CustomerGridSurface({
|
|
| 12242 |
|
| 12243 |
{!embedded && menuField && columnMenu && (
|
| 12244 |
<ColumnMenu
|
| 12245 |
-
key={menuField.key}
|
| 12246 |
state={columnMenu}
|
| 12247 |
field={menuField}
|
| 12248 |
fields={fields}
|
|
|
|
| 10819 |
</div>
|
| 10820 |
) : null
|
| 10821 |
)}
|
| 10822 |
+
{/* ⛔ HOTFIX 2026-09-29 — THIS KEY IS NAMESPACED BECAUSE A FIELD KEY CAN EQUAL A SCOPE.
|
| 10823 |
+
`.cg-shell`'s children are one keyed list, and the ColumnMenu below is a sibling keyed
|
| 10824 |
+
by its field. On `customer_data` the Unique ID field's key is `customer`, the same
|
| 10825 |
+
string as this scope, so opening that field's menu gave two siblings one key and React
|
| 10826 |
+
cloned this `<main>` on every render without removing the last (21 copies measured,
|
| 10827 |
+
live). Both sides are prefixed so neither can be spelled by the other. */}
|
| 10828 |
+
<main className="cg-main" key={`cg-main:${scope}`}>
|
| 10829 |
{workspaceLoading ? (
|
| 10830 |
<div className="cg-loading">
|
| 10831 |
<span className="lp-spin lp-spin--lg" role="status" aria-label="Loading" />
|
|
|
|
| 12193 |
|
| 12194 |
{embedded && menuField && columnMenu && (
|
| 12195 |
<ColumnMenu
|
| 12196 |
+
key={`column-menu:${menuField.key}`}
|
| 12197 |
embedded
|
| 12198 |
state={columnMenu}
|
| 12199 |
field={menuField}
|
|
|
|
| 12248 |
|
| 12249 |
{!embedded && menuField && columnMenu && (
|
| 12250 |
<ColumnMenu
|
| 12251 |
+
key={`column-menu:${menuField.key}`}
|
| 12252 |
state={columnMenu}
|
| 12253 |
field={menuField}
|
| 12254 |
fields={fields}
|
web/src/sheet/BindingEditor.tsx
CHANGED
|
@@ -1081,12 +1081,8 @@ export default function BindingEditor({
|
|
| 1081 |
// ⛔ THE PANEL IS NEVER HELD ON THIS READ. It sets no loading flag and gates no control: the
|
| 1082 |
// dialog opens with the declared vocabularies it already has and the computed ones fill in when
|
| 1083 |
// the pool lands, which is what keeps a slow rows door out of the open path for good.
|
| 1084 |
-
// HOTFIX 2026-09-29 (owner: "clicking edit for cell database ... is still very slow"): the
|
| 1085 |
-
// pool is a WHOLE-TABLE download (every Daily Sales cell is filter-scoped, so it was asked on
|
| 1086 |
-
// open) and it raced the workspace read the skeleton waits on, on a single-process server. It
|
| 1087 |
-
// now starts once the panel's own list has answered, so the panel paints first.
|
| 1088 |
useEffect(() => {
|
| 1089 |
-
if (!rowsWanted
|
| 1090 |
const scope = scopeOf(database);
|
| 1091 |
if (!scope) return undefined;
|
| 1092 |
let live = true;
|
|
@@ -1105,7 +1101,7 @@ export default function BindingEditor({
|
|
| 1105 |
setRowsResolved(true);
|
| 1106 |
})();
|
| 1107 |
return () => { live = false; };
|
| 1108 |
-
}, [database, rowsWanted
|
| 1109 |
|
| 1110 |
// The related grid's field wall is checked on the server. Keep its labelled fields in the
|
| 1111 |
// existing Filter picker only; a customer's amount is not an order aggregate column.
|
|
|
|
| 1081 |
// ⛔ THE PANEL IS NEVER HELD ON THIS READ. It sets no loading flag and gates no control: the
|
| 1082 |
// dialog opens with the declared vocabularies it already has and the computed ones fill in when
|
| 1083 |
// the pool lands, which is what keeps a slow rows door out of the open path for good.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1084 |
useEffect(() => {
|
| 1085 |
+
if (!rowsWanted) return undefined;
|
| 1086 |
const scope = scopeOf(database);
|
| 1087 |
if (!scope) return undefined;
|
| 1088 |
let live = true;
|
|
|
|
| 1101 |
setRowsResolved(true);
|
| 1102 |
})();
|
| 1103 |
return () => { live = false; };
|
| 1104 |
+
}, [database, rowsWanted]);
|
| 1105 |
|
| 1106 |
// The related grid's field wall is checked on the server. Keep its labelled fields in the
|
| 1107 |
// existing Filter picker only; a customer's amount is not an order aggregate column.
|
web/src/sheet/DrillModal.tsx
CHANGED
|
@@ -541,13 +541,8 @@ function DrillModal(
|
|
| 541 |
* is enough here, unlike in the binding panel: nothing on this surface seats a saved view
|
| 542 |
* against the list, so a minutes-old field list cannot paint a configuration nobody saved.
|
| 543 |
*/
|
| 544 |
-
// HOTFIX 2026-09-29 (owner: "view data is still very slow"): the embedded grid pages only the
|
| 545 |
-
// drilled ids, so this whole-table read is NOT shared with it any more; it only feeds Export and
|
| 546 |
-
// the field list. It starts after the drill has answered and the grid is up, never beside them.
|
| 547 |
-
const [rowsGo, setRowsGo] = useState(false);
|
| 548 |
-
useEffect(() => { if (drill && linkReady) setRowsGo(true); }, [drill, linkReady]);
|
| 549 |
useEffect(() => {
|
| 550 |
-
if (!scope
|
| 551 |
let live = true;
|
| 552 |
setRowsResolved(false);
|
| 553 |
setRowsError("");
|
|
@@ -576,7 +571,7 @@ function DrillModal(
|
|
| 576 |
setRowsResolved(true);
|
| 577 |
})();
|
| 578 |
return () => { live = false; };
|
| 579 |
-
}, [scope
|
| 580 |
|
| 581 |
/** Persist a tree through the page's one binding writer, then read the rows again. */
|
| 582 |
const applyTree = useCallback(async (tree: FilterTree) => {
|
|
|
|
| 541 |
* is enough here, unlike in the binding panel: nothing on this surface seats a saved view
|
| 542 |
* against the list, so a minutes-old field list cannot paint a configuration nobody saved.
|
| 543 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
useEffect(() => {
|
| 545 |
+
if (!scope) return;
|
| 546 |
let live = true;
|
| 547 |
setRowsResolved(false);
|
| 548 |
setRowsError("");
|
|
|
|
| 571 |
setRowsResolved(true);
|
| 572 |
})();
|
| 573 |
return () => { live = false; };
|
| 574 |
+
}, [scope]);
|
| 575 |
|
| 576 |
/** Persist a tree through the page's one binding writer, then read the rows again. */
|
| 577 |
const applyTree = useCallback(async (tree: FilterTree) => {
|
web/src/sheet/SheetPage.tsx
CHANGED
|
@@ -81,7 +81,7 @@ import { AnchoredOverlay } from "../customer-grid/OverlaySurface";
|
|
| 81 |
import GridChat from "../customer-grid/GridChat.tsx";
|
| 82 |
import { schemaSentence } from "../customer-grid/gridChat";
|
| 83 |
import type { GridChatAnswer, GridChatField } from "../customer-grid/gridChat";
|
| 84 |
-
import { fetchTableWindow, fetchTopicRows, fetchWorkspace
|
| 85 |
import type { SurfaceScope } from "../customer-grid/apiBridge";
|
| 86 |
import { CUSTOMER_TOPIC, PRODUCT_TOPIC } from "../customer-grid/types";
|
| 87 |
import type { FilterTree, TopicConfig } from "../customer-grid/types";
|
|
@@ -644,10 +644,7 @@ export default function SheetPage() {
|
|
| 644 |
if (database === "product_data") return "product";
|
| 645 |
return database.startsWith("ut_") ? (database as SurfaceScope) : null;
|
| 646 |
};
|
| 647 |
-
|
| 648 |
-
// it waits until the opened tab and its refresh have gone first. A drag before it lands says
|
| 649 |
-
// the options have not loaded (W51-T19 R10), exactly as it did on a slow network.
|
| 650 |
-
const deferred = window.setTimeout(() => void Promise.allSettled([...databases].map(async ([database, wanted]) => {
|
| 651 |
const scope = scopeOf(database);
|
| 652 |
if (!scope) return;
|
| 653 |
const workspace = await fetchWorkspace(scope);
|
|
@@ -666,33 +663,10 @@ export default function SheetPage() {
|
|
| 666 |
key: optionRequestKey,
|
| 667 |
value: { ...(current.key === optionRequestKey ? current.value : {}), ...catalogue },
|
| 668 |
}));
|
| 669 |
-
}))
|
| 670 |
-
return () => { live = false;
|
| 671 |
}, [optionRequestKey]);
|
| 672 |
|
| 673 |
-
// HOTFIX 2026-09-29 (owner: "clicking edit for cell database ... is still very slow"). The Edit
|
| 674 |
-
// panel waits on its database's workspace before it paints; warming that memo once the tab is up
|
| 675 |
-
// lets the FIRST Edit paint at once (BindingEditor reads `peekWorkspace`, then revalidates).
|
| 676 |
-
const boundScopesKey = useMemo(() => {
|
| 677 |
-
const cells = book?.sheets.find((sheet) => sheet.id === tabId)?.cells ?? {};
|
| 678 |
-
const scopes = new Set<string>();
|
| 679 |
-
for (const cell of Object.values(cells)) {
|
| 680 |
-
const database = cell.kind === "bound" ? String((cell.binding as { database?: unknown } | undefined)?.database ?? "") : "";
|
| 681 |
-
const scope = database === "customer_data" ? "customer" : database === "product_data" ? "product"
|
| 682 |
-
: database.startsWith("ut_") ? database : "";
|
| 683 |
-
if (scope) scopes.add(scope);
|
| 684 |
-
}
|
| 685 |
-
return JSON.stringify([...scopes].sort().slice(0, 4));
|
| 686 |
-
}, [book?.sheets, tabId]);
|
| 687 |
-
useEffect(() => {
|
| 688 |
-
const scopes = JSON.parse(boundScopesKey) as SurfaceScope[];
|
| 689 |
-
if (!scopes.length) return undefined;
|
| 690 |
-
const timer = window.setTimeout(() => {
|
| 691 |
-
for (const scope of scopes) if (!peekWorkspace(scope)) void fetchWorkspace(scope);
|
| 692 |
-
}, 1500);
|
| 693 |
-
return () => window.clearTimeout(timer);
|
| 694 |
-
}, [boundScopesKey]);
|
| 695 |
-
|
| 696 |
useEffect(() => {
|
| 697 |
const [workbookId, pairsKey] = JSON.parse(shadowRequestKey) as [string, string];
|
| 698 |
const wanted = new Set(JSON.parse(pairsKey) as string[]);
|
|
|
|
| 81 |
import GridChat from "../customer-grid/GridChat.tsx";
|
| 82 |
import { schemaSentence } from "../customer-grid/gridChat";
|
| 83 |
import type { GridChatAnswer, GridChatField } from "../customer-grid/gridChat";
|
| 84 |
+
import { fetchTableWindow, fetchTopicRows, fetchWorkspace } from "../customer-grid/apiBridge";
|
| 85 |
import type { SurfaceScope } from "../customer-grid/apiBridge";
|
| 86 |
import { CUSTOMER_TOPIC, PRODUCT_TOPIC } from "../customer-grid/types";
|
| 87 |
import type { FilterTree, TopicConfig } from "../customer-grid/types";
|
|
|
|
| 644 |
if (database === "product_data") return "product";
|
| 645 |
return database.startsWith("ut_") ? (database as SurfaceScope) : null;
|
| 646 |
};
|
| 647 |
+
void Promise.allSettled([...databases].map(async ([database, wanted]) => {
|
|
|
|
|
|
|
|
|
|
| 648 |
const scope = scopeOf(database);
|
| 649 |
if (!scope) return;
|
| 650 |
const workspace = await fetchWorkspace(scope);
|
|
|
|
| 663 |
key: optionRequestKey,
|
| 664 |
value: { ...(current.key === optionRequestKey ? current.value : {}), ...catalogue },
|
| 665 |
}));
|
| 666 |
+
}));
|
| 667 |
+
return () => { live = false; };
|
| 668 |
}, [optionRequestKey]);
|
| 669 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 670 |
useEffect(() => {
|
| 671 |
const [workbookId, pairsKey] = JSON.parse(shadowRequestKey) as [string, string];
|
| 672 |
const wanted = new Set(JSON.parse(pairsKey) as string[]);
|