From 973100a138daea5087f43db656b8688b24d9da88 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 12 Oct 2026 16:15:20 -0300 Subject: 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. --- docs/catalog.md | 10 ++++++++++ test/web/catalog_ui.mjs | 4 ++++ web/static/app.mjs | 4 ++-- 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 @@ - cloud9 — files + 9web — files
- cloud9 + 9web
A web interface to your file server.