From 1d12cfe804d4494b4e27506edc969f5b49691c6b Mon Sep 17 00:00:00 2001 From: ZDDC Date: Sat, 9 May 2026 20:35:10 -0500 Subject: [PATCH] chore(embedded): cut v0.0.17-beta --- zddc/internal/apps/embedded/archive.html | 2 +- zddc/internal/apps/embedded/browse.html | 14 +++++++++++++- zddc/internal/apps/embedded/classifier.html | 2 +- zddc/internal/apps/embedded/index.html | 2 +- zddc/internal/apps/embedded/mdedit.html | 2 +- zddc/internal/apps/embedded/transmittal.html | 2 +- zddc/internal/apps/embedded/versions.txt | 16 ++++++++-------- zddc/internal/handler/tables.html | 2 +- 8 files changed, 27 insertions(+), 15 deletions(-) diff --git a/zddc/internal/apps/embedded/archive.html b/zddc/internal/apps/embedded/archive.html index cc7138c..3282edc 100644 --- a/zddc/internal/apps/embedded/archive.html +++ b/zddc/internal/apps/embedded/archive.html @@ -2245,7 +2245,7 @@ td[data-field="trackingNumber"] {
ZDDC Archive - v0.0.17-beta · 2026-05-10 · dome-fork-sapphire + v0.0.17-beta · 2026-05-10 · iron-pipe-reef
diff --git a/zddc/internal/apps/embedded/browse.html b/zddc/internal/apps/embedded/browse.html index 4b37452..2673c4c 100644 --- a/zddc/internal/apps/embedded/browse.html +++ b/zddc/internal/apps/embedded/browse.html @@ -999,7 +999,7 @@ body {
ZDDC Browse - v0.0.17-beta · 2026-05-10 · dome-fork-sapphire + v0.0.17-beta · 2026-05-10 · iron-pipe-reef
@@ -2729,12 +2729,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE // Fetch children of a directory in server mode. // path must end with '/' so the request hits the directory route. + // + // 404 is treated as "empty directory" rather than a hard error. + // A directory that doesn't exist on the server (e.g. a fresh + // project's working/ before any drafts have been created, or a + // dir deleted between listing and expand) is functionally + // indistinguishable from an empty one for tree-rendering purposes. + // Server-side, zddc-server already returns 200 + [] for canonical + // project folders that are missing on disk; this fallback covers + // the same UX for anything else and for non-zddc-server backends. async function fetchServerChildren(path) { if (!path.endsWith('/')) path += '/'; var resp = await fetch(path, { headers: { 'Accept': 'application/json' }, credentials: 'same-origin' }); + if (resp.status === 404) { + return []; + } if (!resp.ok) { throw new Error('HTTP ' + resp.status + ' fetching ' + path); } diff --git a/zddc/internal/apps/embedded/classifier.html b/zddc/internal/apps/embedded/classifier.html index 676ea2b..c0c215c 100644 --- a/zddc/internal/apps/embedded/classifier.html +++ b/zddc/internal/apps/embedded/classifier.html @@ -1464,7 +1464,7 @@ body.help-open .app-header {
ZDDC Classifier - v0.0.17-beta · 2026-05-10 · dome-fork-sapphire + v0.0.17-beta · 2026-05-10 · iron-pipe-reef
diff --git a/zddc/internal/apps/embedded/index.html b/zddc/internal/apps/embedded/index.html index 1906358..d7adb5e 100644 --- a/zddc/internal/apps/embedded/index.html +++ b/zddc/internal/apps/embedded/index.html @@ -988,7 +988,7 @@ body {
ZDDC - v0.0.17-beta · 2026-05-10 · dome-fork-sapphire + v0.0.17-beta · 2026-05-10 · iron-pipe-reef
diff --git a/zddc/internal/apps/embedded/mdedit.html b/zddc/internal/apps/embedded/mdedit.html index 4e41a8d..9233687 100644 --- a/zddc/internal/apps/embedded/mdedit.html +++ b/zddc/internal/apps/embedded/mdedit.html @@ -1903,7 +1903,7 @@ body.help-open .app-header {
ZDDC Markdown - v0.0.17-beta · 2026-05-10 · dome-fork-sapphire + v0.0.17-beta · 2026-05-10 · iron-pipe-reef
diff --git a/zddc/internal/apps/embedded/transmittal.html b/zddc/internal/apps/embedded/transmittal.html index f9bbb24..95f0aeb 100644 --- a/zddc/internal/apps/embedded/transmittal.html +++ b/zddc/internal/apps/embedded/transmittal.html @@ -2263,7 +2263,7 @@ dialog.modal--narrow {
ZDDC Transmittal - v0.0.17-beta · 2026-05-10 · dome-fork-sapphire + v0.0.17-beta · 2026-05-10 · iron-pipe-reef
JavaScript not available