Pull pipeline/ from boilerplate a80ad8a: cadence picker, queue badge, label refresh

The schedule cadence is a picker, the add row is behind a button and off
here, a running-jobs chip with Kill and Stop run sits in every header, and
a declared schedule's label is refreshed at startup.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-28 16:22:46 +02:00
1 parent cebe62ddc9
commit 3a240e51df
16 files changed
+828 -167

No files matched your search

+10 -10
View File
@@ -4,11 +4,11 @@
* own pages, and at the bottom the phone: a width query for the layout and a
* pointer query for the sizes, after newsdesk and health. No build step.
*
* The `--desk-jobs-*` block is how `<desk-jobs>`, `<desk-schedules>` and
* `<auth-account>` are themed. Each keeps to a shadow root and reads those
* properties, so an app skins it without forking it -- which is the deal
* that lets the queue ship its own UI and still look like it belongs here --
* and the app cannot lay it out beyond that.
* The `--desk-jobs-*` block is how `<desk-jobs>`, `<desk-schedules>`,
* `<desk-queue>` and `<auth-account>` are themed. Each keeps to a shadow
* root and reads those properties, so an app skins it without forking it --
* which is the deal that lets the queue ship its own UI and still look like
* it belongs here -- and the app cannot lay it out beyond that.
*/
:root {
@@ -351,12 +351,12 @@ details.stage[open] summary { margin-bottom: 0.75rem; }
}
/* -- the modules' elements ------------------------------------------------ */
/* `<desk-jobs>` and `<desk-schedules>` from the queue, `<auth-account>` from
* auth: all three read these, so they look like one application and none of
* them is forked to get it. An element the app has not got yet simply matches
* nothing. */
/* `<desk-jobs>`, `<desk-schedules>` and the top bar's `<desk-queue>` from the
* queue, `<auth-account>` from auth: all four read these, so they look like
* one application and none of them is forked to get it. An element the app
* has not got yet simply matches nothing. */
desk-jobs, desk-schedules, auth-account {
desk-jobs, desk-schedules, desk-queue, auth-account {
display: block;
--desk-jobs-bg: var(--panel);
--desk-jobs-fg: var(--fg);
+1 -13
View File
@@ -5,7 +5,7 @@
* `@job` in `app/jobs.py` is a new button and this file is not edited --
* except that `pull` itself is pulled out of the list and wired to the
* dedicated button instead of appearing twice. What the queue is doing is
* `<desk-jobs>`'s business, and it draws itself.
* `<desk-jobs>`'s business, and it draws itself, idle line included.
*
* Failures are the server's sentence through `api()`, which toasts it -- so
* there is no error handling here beyond keeping the button usable.
@@ -60,17 +60,5 @@
});
}
/* `<desk-jobs>` takes up no space while the queue is idle, so the line that
says so is the app's to show and hide. Off the same socket the element
reads, through live.js, rather than by asking the element: it keeps to a
shadow root and owes nobody an answer about its own height. */
document.addEventListener("app:jobs", (e) => {
const idle = document.getElementById("idle");
if (!idle) return;
const state = e.detail || {};
const busy = (state.running || []).length + (state.queued || []).length;
idle.hidden = busy > 0;
});
document.addEventListener("DOMContentLoaded", draw);
})();