diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-12 16:15:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:16 -0300 |
| commit | 973100a138daea5087f43db656b8688b24d9da88 (patch) | |
| tree | ef0297bd09c66a3dc72872b338b5fba5e4cb3b37 | |
| parent | 48281b473571d93d5a35d2250213902d1411de40 (diff) | |
| download | cloud9-973100a138daea5087f43db656b8688b24d9da88.tar.gz cloud9-973100a138daea5087f43db656b8688b24d9da88.zip | |
9web: correct application branding
Use 9web in the shared header, footer and dynamic page titles. Retain internal URLs for compatibility. Add browser assertions and document the unresolved catalogue/upstream composition limitation. Verified ReleaseSafe build and catalog-ui-test; deployed to the user service.
| -rw-r--r-- | docs/catalog.md | 10 | ||||
| -rw-r--r-- | test/web/catalog_ui.mjs | 4 | ||||
| -rw-r--r-- | web/static/app.mjs | 4 | ||||
| -rw-r--r-- | web/static/index.html | 6 |
4 files changed, 19 insertions, 5 deletions
diff --git a/docs/catalog.md b/docs/catalog.md index 79e5580..ae6cd46 100644 --- a/docs/catalog.md +++ b/docs/catalog.md @@ -186,6 +186,16 @@ prevent an immediate restart of the dashboard or site listeners. ## Installed workstation configuration +The application is named **9web** in its header, footer and page titles. The +existing `/_cloud9/` asset/protocol URLs and library module names are retained +for compatibility; they are not a different application name. + +Current limitation: catalogue mode replaces the upstream with its synthetic +tree. The Files tab therefore does not expose the workstation filesystem or +compose an existing upstream with the catalogue. Ordinary `--upstream` mode +still works, but the installed catalogue service is not a filesystem-browser +replacement for miniserve. + The initial workstation setup uses dashboard port 8090 and site ports 8091–8095: Entomology lab, 0x4200.cafe, Standards, Pardes website, and the older café hub archive. The archive is read-only (no build recipe registered). Other sites have explicit diff --git a/test/web/catalog_ui.mjs b/test/web/catalog_ui.mjs index d030842..6120a51 100644 --- a/test/web/catalog_ui.mjs +++ b/test/web/catalog_ui.mjs @@ -69,9 +69,13 @@ try { await cdp('Page.navigate', { url }); await wait(() => evaluate(`document.getElementById('status')?.textContent.includes('entries')`), 'files loaded'); assert.equal(await evaluate(`document.querySelectorAll('header').length`), 1); + assert.equal(await evaluate(`document.querySelector('.brand').textContent`), '9web'); + assert.equal(await evaluate(`document.querySelector('footer').textContent`), 'served by 9web'); + assert.equal(await evaluate(`document.title`), '/ — 9web'); assert.equal(await evaluate(`getComputedStyle(document.documentElement).backgroundColor`), 'rgb(255, 255, 255)'); assert.equal(await evaluate(`document.getElementById('view-files').getAttribute('aria-current')`), 'page'); await view('sites'); await readySites(); + assert.equal(await evaluate(`document.title`), 'sites — 9web'); assert.equal(await evaluate(`document.querySelector('#sites-entries .site-name').href`), `http://127.0.0.1:${sitePort}/`); assert.equal(await evaluate(`document.querySelectorAll('link[rel=stylesheet]').length`), 1); assert.equal(await evaluate(`document.querySelector('link[rel=stylesheet]').getAttribute('href')`), '/_cloud9/style.css'); diff --git a/web/static/app.mjs b/web/static/app.mjs index b31177a..f18a103 100644 --- a/web/static/app.mjs +++ b/web/static/app.mjs @@ -32,7 +32,7 @@ function showView(view) { if (view === name) link.setAttribute('aria-current', 'page'); else link.removeAttribute('aria-current'); link.href = viewURL(name); } - document.title = `${view === 'files' ? currentPath : view} — cloud9`; + document.title = `${view === 'files' ? currentPath : view} — 9web`; catalog.show(view); } @@ -142,7 +142,7 @@ async function navigate(path, historyMode = 'push') { $('path').value = path; const url = pathURL(path); if (historyMode === 'push' && location.pathname + location.search + location.hash !== url) history.pushState(null, '', url); - document.title = `${path} — cloud9`; + document.title = `${path} — 9web`; breadcrumbs(path); $('directory').hidden = !result.stat.directory; $('file').hidden = result.stat.directory; diff --git a/web/static/index.html b/web/static/index.html index 8e2b5cc..4ed498d 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -3,13 +3,13 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> - <title>cloud9 — files</title> + <title>9web — files</title> <link rel="stylesheet" href="/_cloud9/style.css"> <script type="module" src="/_cloud9/app.mjs"></script> </head> <body> <header> - <a class="brand" href="/" data-path="/">cloud9</a> + <a class="brand" href="/" data-path="/">9web</a> <div class="description">A web interface to your file server.</div> </header> <nav class="toolbar" id="views" aria-label="Views"> @@ -106,6 +106,6 @@ </table></div> </details> </main> - <footer>served by cloud9</footer> + <footer>served by 9web</footer> </body> </html> |
