From a62960b712f92ff886bce6bbd46931df4ba7755c Mon Sep 17 00:00:00 2001 From: ZDDC Date: Wed, 13 May 2026 14:45:52 -0500 Subject: [PATCH] chore(embedded): cut v0.0.17-beta --- zddc/internal/apps/embedded/archive.html | 2 +- zddc/internal/apps/embedded/browse.html | 42 +++++++++++++++++++- zddc/internal/apps/embedded/classifier.html | 2 +- zddc/internal/apps/embedded/index.html | 2 +- zddc/internal/apps/embedded/transmittal.html | 2 +- zddc/internal/apps/embedded/versions.txt | 14 +++---- zddc/internal/handler/tables.html | 2 +- 7 files changed, 52 insertions(+), 14 deletions(-) diff --git a/zddc/internal/apps/embedded/archive.html b/zddc/internal/apps/embedded/archive.html index 7964633..0a7cced 100644 --- a/zddc/internal/apps/embedded/archive.html +++ b/zddc/internal/apps/embedded/archive.html @@ -2470,7 +2470,7 @@ td[data-field="trackingNumber"] {
ZDDC Archive - v0.0.17-beta · 2026-05-13 18:48:41 · f7f018c + v0.0.17-beta · 2026-05-13 19:45:42 · 72c0552
diff --git a/zddc/internal/apps/embedded/browse.html b/zddc/internal/apps/embedded/browse.html index b4c7109..aa318ea 100644 --- a/zddc/internal/apps/embedded/browse.html +++ b/zddc/internal/apps/embedded/browse.html @@ -1639,6 +1639,15 @@ html, body { outline-offset: -1px; } +.sort-control__checkbox { + /* Pair with the "Show hidden" label as a unified control. The + parent .sort-control already does horizontal flex + gap, so the + checkbox just needs sensible vertical alignment + a clickable + hit target. */ + margin: 0; + cursor: pointer; +} + /* Older .md-fm-section / .fm-list / .md-toc-resizer rules were replaced by the .md-shell BEM block above. */ @@ -1657,7 +1666,7 @@ html, body {
ZDDC Browse - v0.0.17-beta · 2026-05-13 18:48:42 · f7f018c + v0.0.17-beta · 2026-05-13 19:45:42 · 72c0552
@@ -1705,6 +1714,12 @@ html, body { + @@ -5417,7 +5432,15 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr // 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, { + // ?hidden=1 surfaces .-prefixed and _-prefixed entries when the + // user has flipped the "Show hidden" toggle. The server still + // ACL-gates per-entry, so this is purely additive — anyone + // without read on the parent dir already sees nothing. + var url = path; + if (window.app && window.app.state && window.app.state.showHidden) { + url += (url.indexOf('?') === -1 ? '?' : '&') + 'hidden=1'; + } + var resp = await fetch(url, { headers: { 'Accept': 'application/json' }, credentials: 'same-origin' }); @@ -7610,6 +7633,21 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr }); } + // "Show hidden" checkbox — toggles state.showHidden, which the + // loader reads to append ?hidden=1 to listing requests. Re-uses + // the existing refreshListing flow so the tree pulls a fresh + // listing. ACL is still server-side; this just relaxes the + // client-visible filter for entries the user is already + // allowed to read. + var hiddenCb = document.getElementById('showHidden'); + if (hiddenCb) { + hiddenCb.checked = !!state.showHidden; + hiddenCb.addEventListener('change', function () { + state.showHidden = hiddenCb.checked; + refreshListing(); + }); + } + // No view-mode buttons; mode is derived from the URL on every // scope change (resolveViewMode below). Pass-through for the // initial path. diff --git a/zddc/internal/apps/embedded/classifier.html b/zddc/internal/apps/embedded/classifier.html index 67236e9..7f72bd1 100644 --- a/zddc/internal/apps/embedded/classifier.html +++ b/zddc/internal/apps/embedded/classifier.html @@ -1681,7 +1681,7 @@ body.help-open .app-header {
ZDDC Classifier - v0.0.17-beta · 2026-05-13 18:48:41 · f7f018c + v0.0.17-beta · 2026-05-13 19:45:42 · 72c0552
diff --git a/zddc/internal/apps/embedded/index.html b/zddc/internal/apps/embedded/index.html index 15d886e..c1c3a0a 100644 --- a/zddc/internal/apps/embedded/index.html +++ b/zddc/internal/apps/embedded/index.html @@ -1424,7 +1424,7 @@ body {
ZDDC - v0.0.17-beta · 2026-05-13 18:48:42 · f7f018c + v0.0.17-beta · 2026-05-13 19:45:42 · 72c0552
diff --git a/zddc/internal/apps/embedded/transmittal.html b/zddc/internal/apps/embedded/transmittal.html index ae750bc..aa5bfe6 100644 --- a/zddc/internal/apps/embedded/transmittal.html +++ b/zddc/internal/apps/embedded/transmittal.html @@ -2523,7 +2523,7 @@ dialog.modal--narrow {
ZDDC Transmittal - v0.0.17-beta · 2026-05-13 18:48:41 · f7f018c + v0.0.17-beta · 2026-05-13 19:45:42 · 72c0552
JavaScript not available