From 027dce7fd5bbfaf8c94667b3893f0bd6e87789cc Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 22 Nov 2026 01:55:26 -0500 Subject: [PATCH] Remove em and en dashes from UI text Replace the remaining dashes users can see: - error page titles and headings, and the browser tab title: "|" or ":"; - the footer: "PULSE | TDS v1.2"; - the 401 message and two toasts: sentence breaks or a comma; - the quick-command history and success line: "|"; - empty table cells: "-"; - the compare hint: "2 to 5". No layout or behaviour changes. Co-Authored-By: Claude Opus 5.5 --- lib/pageauth.js | 2 +- lib/render.js | 4 ++-- public/assets/app.js | 2 +- public/assets/pages/dashboard.js | 2 +- public/assets/pages/executions.js | 4 ++-- public/assets/pages/quick.js | 6 +++--- public/assets/pages/scheduler.js | 2 +- views/layout.ejs | 4 ++-- views/pages/executions.ejs | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/pageauth.js b/lib/pageauth.js index 45da1b3..65246d2 100644 --- a/lib/pageauth.js +++ b/lib/pageauth.js @@ -105,7 +105,7 @@ function makeAuthenticatePage(pool) { if (!identity) { return renderError(req, res, 401, 'Not authenticated', - 'Not authenticated — access via Authelia SSO (auth.lotusguild.org).'); + 'Not authenticated. Sign in through Authelia SSO (auth.lotusguild.org).'); } const { username: remoteUser, name: remoteName, email: remoteEmail, groups } = identity; diff --git a/lib/render.js b/lib/render.js index b10f9c3..b405ef2 100644 --- a/lib/render.js +++ b/lib/render.js @@ -78,14 +78,14 @@ function renderError(req, res, status, title, message) { -${esc(status)} — ${esc(APP_NAME)} +${esc(status)} | ${esc(APP_NAME)}
- ${esc(status)} — ${esc(title)} + ${esc(status)}: ${esc(title)}

${esc(message)}

Return to dashboard

diff --git a/public/assets/app.js b/public/assets/app.js index 1f43b56..8f21c03 100644 --- a/public/assets/app.js +++ b/public/assets/app.js @@ -18,7 +18,7 @@ const resp = await _fetch.apply(window, args); if (resp.status === 401) { window.location.reload(); - throw new Error('Session expired — reloading'); + throw new Error('Session expired, reloading'); } return resp; }; diff --git a/public/assets/pages/dashboard.js b/public/assets/pages/dashboard.js index 1bbdec2..5079e9b 100644 --- a/public/assets/pages/dashboard.js +++ b/public/assets/pages/dashboard.js @@ -51,7 +51,7 @@ const startedBy = esc(e.started_by || ''); const startedAt = fmt.dateTime(e.started_at); const isRunning = String(e.status || '').toLowerCase() === 'running'; - const elapsed = isRunning ? esc(fmt.elapsed(e.started_at)) : '—'; + const elapsed = isRunning ? esc(fmt.elapsed(e.started_at)) : '-'; return ( '' + '' + statusText + '' + diff --git a/public/assets/pages/executions.js b/public/assets/pages/executions.js index e4f8ad0..8d20af1 100644 --- a/public/assets/pages/executions.js +++ b/public/assets/pages/executions.js @@ -150,7 +150,7 @@ : (running ? '' + esc(Pulse.fmt.elapsed(e.started_at)) + '' - : '—'); + : '-'); return '' + @@ -427,7 +427,7 @@ '
Started
' + esc(Pulse.fmt.dateTime(ex.started_at)) + '
' + '
Completed
' + (ex.completed_at ? esc(Pulse.fmt.dateTime(ex.completed_at)) - : (ex.status === 'running' ? esc(Pulse.fmt.elapsed(ex.started_at)) + ' elapsed' : '—')) + + : (ex.status === 'running' ? esc(Pulse.fmt.elapsed(ex.started_at)) + ' elapsed' : '-')) + '
' + '
Execution ID
' + '' + esc(id) + '' + diff --git a/public/assets/pages/quick.js b/public/assets/pages/quick.js index 93ac403..11551ee 100644 --- a/public/assets/pages/quick.js +++ b/public/assets/pages/quick.js @@ -139,7 +139,7 @@ list.innerHTML = history.map((item, i) => '
' + '
' + esc(item.command) + '
' + - '
' + esc(Pulse.fmt.dateTime(item.timestamp)) + ' — ' + esc(item.worker) + '
' + + '
' + esc(Pulse.fmt.dateTime(item.timestamp)) + ' | ' + esc(item.worker) + '
' + '
' ).join(''); } @@ -155,7 +155,7 @@ '✓' + '
' + '
Command sent successfully
' + - '
Execution ID: ' + esc(executionId) + ' — ' + + '
Execution ID: ' + esc(executionId) + ' | ' + 'view in Executions' + '
' + '
' + @@ -292,7 +292,7 @@ if (hasWorker) { select.value = payload.worker_id; } else { - Pulse.toast.warning('Original worker is no longer available — select a worker to run this command.'); + Pulse.toast.warning('Original worker is no longer available. Select a worker to run this command.'); } } const commandEl = document.getElementById('qc-command'); diff --git a/public/assets/pages/scheduler.js b/public/assets/pages/scheduler.js index 7184248..70c0d59 100644 --- a/public/assets/pages/scheduler.js +++ b/public/assets/pages/scheduler.js @@ -36,7 +36,7 @@ } function workerNamesHtml(ids) { - if (!ids.length) return '—'; + if (!ids.length) return '-'; return ids.map(id => { const w = _workers.find(worker => worker.id === id); const label = w ? w.name : String(id).slice(0, 8); diff --git a/views/layout.ejs b/views/layout.ejs index 3fb99f5..5a5b2d6 100644 --- a/views/layout.ejs +++ b/views/layout.ejs @@ -30,7 +30,7 @@ - <%= pageTitle ? pageTitle + ' — ' : '' %><%= appName %> + <%= pageTitle ? pageTitle + ' | ' : '' %><%= appName %> @@ -154,7 +154,7 @@ | - <%= appName.toUpperCase() %> — TDS v1.2 + <%= appName.toUpperCase() %> | TDS v1.2 <%- include('partials/keys-help') %> diff --git a/views/pages/executions.ejs b/views/pages/executions.ejs index af0b0b2..5c493a6 100644 --- a/views/pages/executions.ejs +++ b/views/pages/executions.ejs @@ -51,7 +51,7 @@ ▤
Compare mode
-
Select 2–5 executions to compare their outputs. Click a row to toggle selection.
+
Select 2 to 5 executions to compare their outputs. Click a row to toggle selection.