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;
|
||||
|
||||
Reference in new issue
Block a user