diff --git a/frontend/index.html b/frontend/index.html index 05fff78..c7fb6c2 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -919,7 +919,7 @@
STATUS and Polling
- + | Polling @@ -929,10 +929,10 @@
TERMINAL PROFILE
- + -
+
Events that the card monitors (SET UP EVENT LIST): @@ -7617,7 +7617,7 @@ function tpStatusMsg(text, cls) { const el = document.getElementById('tp-status'); if (!el) return; el.textContent = text || ''; - el.className = 'text-xs ' + (cls || 'text-gray-400 dark:text-slate-500'); + el.className = 'text-xs mt-1 ' + (cls || 'text-gray-400 dark:text-slate-500'); } async function tpRefresh() { diff --git a/frontend/sw.js b/frontend/sw.js index 9bd6d72..d8882b3 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,4 +1,4 @@ -const CACHE = 'simple-v194'; +const CACHE = 'simple-v195'; const URLS = [ 'index.html', 'help.html', diff --git a/frontend/tests/html.test.js b/frontend/tests/html.test.js index f129e23..32072ed 100644 --- a/frontend/tests/html.test.js +++ b/frontend/tests/html.test.js @@ -217,6 +217,15 @@ test('phone simulator has the network-simulation fieldset', () => { assert.match(html, /data-needs="card" onclick="netSimRun\('service_lost'\)"/); }); +test('phone simulator action buttons are green and the TP status sits below them', () => { + assert.match(html, /id="tp-send-btn"[^>]*bg-emerald-600/); + assert.match(html, /id="pli-status-btn"[^>]*bg-emerald-600/); + // #tp-status is outside the button row (the row's
comes after + // the last button and before the status element) + const block = html.slice(html.indexOf('id="tp-send-btn"'), html.indexOf('id="tp-status"')); + assert.ok(block.lastIndexOf('') > block.lastIndexOf('')); +}); + test('SCP81 listener exposes its four modes with the matching notes', () => { for (const v of ['tls', 'redirect', 'passthru', 'dump']) { assert.ok(html.includes('value="' + v + '"'), v);