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/sheet/SheetPage.tsx +19 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "c78fd9230",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
c78fd9230
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
a553f62f8b109d96a91e8759b01b9d5b838ce06f20c024882a8da71b3bea1692
|
web/src/sheet/SheetPage.tsx
CHANGED
|
@@ -939,6 +939,18 @@ export default function SheetPage({ address: mountAddress, embedded = false, onN
|
|
| 939 |
const restoreMissingOpen = useCallback((id: string, missingTab?: string) => {
|
| 940 |
// A late refusal must not undo a newer address choice or reopen a page already left.
|
| 941 |
if (!addressMountedRef.current || readSheetAddress(currentSheetHash())?.wb !== id) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 942 |
const previous = previousOpenRef.current;
|
| 943 |
const candidate = previous?.book.id === id
|
| 944 |
? missingTab ? { ...previous.book, sheets: previous.book.sheets.filter((t) => t.id !== missingTab) } : null
|
|
@@ -968,7 +980,7 @@ export default function SheetPage({ address: mountAddress, embedded = false, onN
|
|
| 968 |
handledSheetHashRef.current = sheetAddressHash(address);
|
| 969 |
// Notify the shell through the existing History API path so a bare address mounts the gallery.
|
| 970 |
navigateSheetAddress(address, "replace");
|
| 971 |
-
}, [currentSheetHash, navigateSheetAddress, storagePrefix]);
|
| 972 |
|
| 973 |
const discardMissingWorkbook = useCallback((id: string, refusal: { status: number; code?: string }) => {
|
| 974 |
if (!isMissingItem("workbook", refusal)) return false;
|
|
@@ -3063,6 +3075,12 @@ export default function SheetPage({ address: mountAddress, embedded = false, onN
|
|
| 3063 |
// The shell owns the gallery. Leave no workbook controls mounted during its route handover.
|
| 3064 |
if (!embedded && readSheetAddress(sheetHash)?.wb === null) return null;
|
| 3065 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3066 |
return (
|
| 3067 |
// ⛔ `data-view-kind` STAYS IN THIS FILE. `verify_wiring.py`'s W49-W1 row asserts
|
| 3068 |
// `data-view-kind={SHEET_VIEW_KIND}` inside `sheet/SheetPage.tsx` by path, so moving the rail
|
|
|
|
| 939 |
const restoreMissingOpen = useCallback((id: string, missingTab?: string) => {
|
| 940 |
// A late refusal must not undo a newer address choice or reopen a page already left.
|
| 941 |
if (!addressMountedRef.current || readSheetAddress(currentSheetHash())?.wb !== id) return;
|
| 942 |
+
if (embedded && !missingTab) {
|
| 943 |
+
bookRef.current = null;
|
| 944 |
+
setBook(null);
|
| 945 |
+
setTabId("");
|
| 946 |
+
setEditAt("");
|
| 947 |
+
setDrillAt("");
|
| 948 |
+
setUnreadableAddressTab("");
|
| 949 |
+
setNotice("That workbook is not shared with you, or it was deleted.");
|
| 950 |
+
acceptedAddressRef.current = null;
|
| 951 |
+
handledSheetHashRef.current = currentSheetHash();
|
| 952 |
+
return;
|
| 953 |
+
}
|
| 954 |
const previous = previousOpenRef.current;
|
| 955 |
const candidate = previous?.book.id === id
|
| 956 |
? missingTab ? { ...previous.book, sheets: previous.book.sheets.filter((t) => t.id !== missingTab) } : null
|
|
|
|
| 980 |
handledSheetHashRef.current = sheetAddressHash(address);
|
| 981 |
// Notify the shell through the existing History API path so a bare address mounts the gallery.
|
| 982 |
navigateSheetAddress(address, "replace");
|
| 983 |
+
}, [currentSheetHash, embedded, navigateSheetAddress, storagePrefix]);
|
| 984 |
|
| 985 |
const discardMissingWorkbook = useCallback((id: string, refusal: { status: number; code?: string }) => {
|
| 986 |
if (!isMissingItem("workbook", refusal)) return false;
|
|
|
|
| 3075 |
// The shell owns the gallery. Leave no workbook controls mounted during its route handover.
|
| 3076 |
if (!embedded && readSheetAddress(sheetHash)?.wb === null) return null;
|
| 3077 |
|
| 3078 |
+
if (embedded && !loading && !opening && !book && notice) {
|
| 3079 |
+
return <div ref={pageRef} className="sheet-page" data-embedded="true">
|
| 3080 |
+
<p className="sheet-notice" role="status">{notice}</p>
|
| 3081 |
+
</div>;
|
| 3082 |
+
}
|
| 3083 |
+
|
| 3084 |
return (
|
| 3085 |
// ⛔ `data-view-kind` STAYS IN THIS FILE. `verify_wiring.py`'s W49-W1 row asserts
|
| 3086 |
// `data-view-kind={SHEET_VIEW_KIND}` inside `sheet/SheetPage.tsx` by path, so moving the rail
|