Show a spinner on the git board's working lines

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-03 10:14:01 -08:00
1 parent d6be7f9240
commit bd5daa7972
3 files changed
+33 -3

No files matched your search

+11 -2
View File
@@ -165,11 +165,20 @@ function header(ctx) {
meta.appendChild(code);
meta.appendChild(copy(ctx, cmd, "btn small", code));
} else meta.appendChild(h.el("span", "git-refreshed", refreshedLine(git, ctx.now)));
if (ctx.mode === "running" && ctx.activity) meta.appendChild(h.el("span", "git-activity", ctx.activity));
if (ctx.mode === "running" && ctx.activity) meta.appendChild(activityLine(ctx, "span", ctx.activity));
box.appendChild(meta);
return box;
}
// A line saying what the agent is doing, with the console's small ring in
// front so a wait reads as work under way.
function activityLine(ctx, tag, text) {
const line = ctx.h.el(tag, "git-activity");
line.appendChild(ctx.h.el("span", "spinner tiny"));
line.appendChild(ctx.h.el("span", null, text));
return line;
}
function resultLine(ctx, notice) {
const box = ctx.h.el("div", "git-result");
box.setAttribute("role", "status");
@@ -282,7 +291,7 @@ function stepStrip(ctx, id) {
box.appendChild(held);
}
if (ctx.mode === "running") {
box.appendChild(h.el("p", "git-activity", ctx.activity || "Plan2Code is working on it."));
box.appendChild(activityLine(ctx, "p", ctx.activity || "Plan2Code is working on it."));
return box;
}
const actions = h.el("div", "git-step-actions");
+3 -1
View File
@@ -145,7 +145,9 @@
.git-track { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.git-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--ink-2); }
.git-noremote { font-weight: 600; color: var(--stage); }
.git-activity { color: var(--accent); }
/* The ring sits on the first line of a wrapped activity, as the dock's does. */
.git-activity { display: flex; align-items: flex-start; gap: 8px; color: var(--accent); }
.git-activity .spinner.tiny { margin-top: 0.25em; }
.git-pr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.git-pr-open { text-decoration: none; }
.git-pr-ask { font-size: 14px; color: var(--ink); }