Admin: headings without lectures; "Saved layouts"
The Theme, Modules, Available modules and layouts sections each opened with a paragraph explaining themselves. The controls explain themselves; the paragraphs are gone. The one line that carried information — where settings are saved on this machine — stays. "Named layouts" becomes "Saved layouts", which is what they are. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
e7b0ea6ebf
commit
cd15efa7e6
@@ -677,7 +677,7 @@ async function refreshStatus() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── named layouts ──────────────────────────────────────────────────── */
|
/* ── saved layouts ──────────────────────────────────────────────────── */
|
||||||
|
|
||||||
async function loadLayouts() {
|
async function loadLayouts() {
|
||||||
let body;
|
let body;
|
||||||
@@ -693,7 +693,7 @@ async function loadLayouts() {
|
|||||||
if (!layouts.length) {
|
if (!layouts.length) {
|
||||||
const none = document.createElement('div');
|
const none = document.createElement('div');
|
||||||
none.className = 'layouts-empty';
|
none.className = 'layouts-empty';
|
||||||
none.textContent = 'No named layouts saved yet. Save one from the dashboard’s Layout menu.';
|
none.textContent = 'No layouts saved yet. Save one from the dashboard’s Layout menu.';
|
||||||
layoutsList.appendChild(none);
|
layoutsList.appendChild(none);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-12
@@ -41,18 +41,12 @@
|
|||||||
|
|
||||||
<section id="theme-section" hidden>
|
<section id="theme-section" hidden>
|
||||||
<h1 class="admin-h1">Theme</h1>
|
<h1 class="admin-h1">Theme</h1>
|
||||||
<p class="admin-copy">The palette every dashboard on the network uses — switched live, no reload. Modules
|
|
||||||
draw with the shell's colours, so they follow; a colour chosen on a tile itself (a PCO Plan header, say)
|
|
||||||
stays as set.</p>
|
|
||||||
<div class="theme-swatches" id="theme-swatches" role="radiogroup" aria-label="Theme"></div>
|
<div class="theme-swatches" id="theme-swatches" role="radiogroup" aria-label="Theme"></div>
|
||||||
<div class="admin-status" id="theme-status"></div>
|
<div class="admin-status" id="theme-status"></div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="modules-section" hidden>
|
<section id="modules-section" hidden>
|
||||||
<h1 class="admin-h1">Modules</h1>
|
<h1 class="admin-h1">Modules</h1>
|
||||||
<p class="admin-copy">Server-wide settings, shared by every dashboard. Saving re-initialises the
|
|
||||||
module immediately — open tiles reconnect on their own. Per-tile options (filters, text size)
|
|
||||||
live in each tile's gear menu instead.</p>
|
|
||||||
<p class="admin-copy admin-storage" id="storage-note" hidden>Saved on the server at
|
<p class="admin-copy admin-storage" id="storage-note" hidden>Saved on the server at
|
||||||
<code id="storage-path"></code> — outside the app folder, so updating ProdDash keeps them.</p>
|
<code id="storage-path"></code> — outside the app folder, so updating ProdDash keeps them.</p>
|
||||||
<div id="modules-list"></div>
|
<div id="modules-list"></div>
|
||||||
@@ -60,9 +54,6 @@
|
|||||||
|
|
||||||
<section id="available-section" hidden>
|
<section id="available-section" hidden>
|
||||||
<h1 class="admin-h1">Available modules</h1>
|
<h1 class="admin-h1">Available modules</h1>
|
||||||
<p class="admin-copy">Modules in the ProdDash repo that aren't installed here. Installing downloads the module
|
|
||||||
into the server's data directory — no restart, nothing written into the app folder. A module that needs a
|
|
||||||
newer ProdDash can't be installed until the shell is updated.</p>
|
|
||||||
<div class="catalog-toolbar">
|
<div class="catalog-toolbar">
|
||||||
<button class="btn small" id="catalog-refresh">Check again</button>
|
<button class="btn small" id="catalog-refresh">Check again</button>
|
||||||
<span class="admin-status" id="catalog-status"></span>
|
<span class="admin-status" id="catalog-status"></span>
|
||||||
@@ -71,9 +62,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="layouts-section" hidden>
|
<section id="layouts-section" hidden>
|
||||||
<h1 class="admin-h1">Named layouts</h1>
|
<h1 class="admin-h1">Saved layouts</h1>
|
||||||
<p class="admin-copy">Layouts saved to the server from the dashboard's Layout menu. Loading one
|
|
||||||
copies it into that browser; deleting one here does not touch any browser's current layout.</p>
|
|
||||||
<div id="layouts-list"></div>
|
<div id="layouts-list"></div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user