Merge branch 'worktree-agent-a5237c6dc3ebf4b7c'
This commit is contained in:
commit
9a73d0eb8f
7 files changed
+133
-34
No files matched your search
+14
-2
@@ -192,6 +192,13 @@ button.secondary {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* -- pulls ------------------------------------------------------------------ */
|
||||
/* "Run one stage" on the Pulls page: extract, embed and score on their own,
|
||||
under the schedule rather than beside Pull now. */
|
||||
|
||||
details.stage summary { cursor: pointer; color: var(--dim); font-size: 0.95rem; font-weight: 600; }
|
||||
details.stage[open] summary { margin-bottom: 0.75rem; }
|
||||
|
||||
/* -- the notice log ------------------------------------------------------- */
|
||||
|
||||
.notice {
|
||||
@@ -277,8 +284,13 @@ desk-jobs, desk-schedules, auth-account {
|
||||
--desk-jobs-gap: var(--gap);
|
||||
--desk-jobs-radius: var(--radius);
|
||||
}
|
||||
/* The schedule table has no narrow layout of its own yet, and what overflows
|
||||
a shadow root widens the page. It scrolls inside its own box instead. */
|
||||
/* pipeline 21c5faa gave the schedule table a narrow layout, but its
|
||||
kind/next/last columns are sized to their untruncated content rather than
|
||||
the width their own ellipsis implies, which still squeezes the name and
|
||||
cadence columns to a sliver at 375px -- a fix that has to land in
|
||||
../boilerplate first, or the next refresh reverts it (see CLAUDE.md). Kept
|
||||
until then so the odd pixel that still overflows scrolls inside its own
|
||||
box rather than widening the page. */
|
||||
desk-schedules { overflow-x: auto; }
|
||||
|
||||
/* -- roledesk's tabs ------------------------------------------------------ */
|
||||
|
||||
+14
-4
@@ -1,8 +1,11 @@
|
||||
/* The Pulls page: a button per kind.
|
||||
/* The Pulls page: Pull now on top, one button per remaining kind under
|
||||
* "Run one stage".
|
||||
*
|
||||
* The list comes from `/api/jobs/kinds`, which is the registry, so a new
|
||||
* `@job` in `app/jobs.py` is a new button and this file is not edited. What
|
||||
* the queue is doing is `<desk-jobs>`'s business, and it draws itself.
|
||||
* `@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.
|
||||
*
|
||||
* Failures are the server's sentence through `api()`, which toasts it -- so
|
||||
* there is no error handling here beyond keeping the button usable.
|
||||
@@ -12,7 +15,7 @@
|
||||
"use strict";
|
||||
|
||||
const host = document.getElementById("kinds");
|
||||
if (!host) return;
|
||||
const pullButton = document.getElementById("pull-now");
|
||||
|
||||
async function start(kind, button) {
|
||||
button.disabled = true;
|
||||
@@ -26,7 +29,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (pullButton) {
|
||||
pullButton.addEventListener("click", () => start("pull", pullButton));
|
||||
}
|
||||
|
||||
async function draw() {
|
||||
if (!host) return;
|
||||
let kinds;
|
||||
try {
|
||||
kinds = await window.api("/api/jobs/kinds");
|
||||
@@ -34,6 +42,7 @@
|
||||
host.innerHTML = '<span class="muted">could not read the job kinds</span>';
|
||||
return;
|
||||
}
|
||||
kinds = kinds.filter((k) => k.kind !== "pull");
|
||||
if (!kinds.length) {
|
||||
host.innerHTML = '<span class="muted">nothing is registered</span>';
|
||||
return;
|
||||
@@ -42,6 +51,7 @@
|
||||
kinds.forEach((k) => {
|
||||
const button = document.createElement("button");
|
||||
button.type = "button";
|
||||
button.className = "secondary";
|
||||
button.textContent = k.label || k.kind;
|
||||
button.title = k.solo ? `${k.kind} -- one at a time` : k.kind;
|
||||
button.dataset.kind = k.kind;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<h1>Settings</h1>
|
||||
{% include "settings/_tabs.html" %}
|
||||
|
||||
<p class="lede">What the server said that nobody has cleared yet, newest first, with the fix when there is one. A message goes when you clear it, or two weeks after it was last said.</p>
|
||||
<p class="lede">What the server said that nobody has cleared, newest first. A message goes when you clear it, or a fortnight after it was last said.</p>
|
||||
|
||||
<section class="card">
|
||||
<div class="row-between">
|
||||
|
||||
@@ -8,21 +8,16 @@
|
||||
<p class="lede">Every 6 hours roledesk reads every board and search, then fills in what each posting says, embeds and scores. Change the cadence below.</p>
|
||||
|
||||
<section class="card">
|
||||
<h2>Start something</h2>
|
||||
<div id="kinds" class="buttons">
|
||||
<span class="muted">loading…</span>
|
||||
<div class="row-between">
|
||||
<h2>What is running</h2>
|
||||
<button type="button" id="pull-now" class="secondary">Pull now</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
{# The queue's own element, served by its own router. Two lines, and the
|
||||
module owns what they draw — see pipeline/web/static/jobs.js.
|
||||
|
||||
The heading is the app's, because the element takes up no space while
|
||||
nothing is running — that is its `idle="hide"` default, and a strip that
|
||||
is always there is furniture — and a card with nothing in it and nothing
|
||||
above it reads as something that failed to load. #}
|
||||
<h2>What is running</h2>
|
||||
{# The heading and the idle line are the app's: the element takes up no
|
||||
space while the queue is idle — that is its `idle="hide"` default, and a
|
||||
strip that is always there is furniture — and a card with nothing in it
|
||||
and nothing above it reads as something that failed to load. The element
|
||||
and its script are the queue's own, served by its own router — see
|
||||
pipeline/web/static/jobs.js. #}
|
||||
<p class="muted small" id="idle">Nothing at the moment.</p>
|
||||
<script type="module" src="/_jobs/jobs.js"></script>
|
||||
<desk-jobs></desk-jobs>
|
||||
@@ -30,13 +25,20 @@
|
||||
|
||||
<section class="card">
|
||||
{# The element and its script are the scheduler's own, served by its own
|
||||
router — see pipeline/web/static/schedules.js. Two lines, as with jobs.
|
||||
A cadence is typed as `every 15m`, `every 6h`, `daily at 06:00` or
|
||||
`weekly mon 07:00`; its add row's placeholder shows two. #}
|
||||
router — see pipeline/web/static/schedules.js. A cadence is typed as
|
||||
`every 15m`, `every 6h`, `daily at 06:00` or `weekly mon 07:00`; its add
|
||||
row's placeholder shows two. #}
|
||||
<h2>Schedule</h2>
|
||||
<script type="module" src="/_jobs/schedules.js"></script>
|
||||
<desk-schedules></desk-schedules>
|
||||
</section>
|
||||
|
||||
<details class="stage">
|
||||
<summary>Run one stage</summary>
|
||||
<div id="kinds" class="buttons">
|
||||
<span class="muted">loading…</span>
|
||||
</div>
|
||||
</details>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
Reference in new issue
Block a user