Executions list: show what a command ran and on which worker (#15)
CI / Test (jest) (pull_request) Successful in 27s
CI / Lint (eslint) (pull_request) Successful in 31s
CI / Security (npm audit) (pull_request) Successful in 11s
CI / Integration (api) (pull_request) Canceled after 1m56s
CI / Scan (secrets, workflows, shell) (pull_request) Canceled after 1m48s
CI / UI (playwright) (pull_request) Canceled after 0s
CI / UI screenshots (before/after) (pull_request) Canceled after 0s
CI / Deploy (pull_request) Canceled after 0s
CI / Deploy worker (pull_request) Canceled after 0s
CI / Notify (pull_request) Canceled after 0s

Every command execution was listed as "[Quick Command]". The list API now
returns, for command executions, the first command (up to 120 characters)
and the worker's name (from the first log entry, joined to workers), and
the row shows them as `command @ worker`. Workflows keep their name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-23 13:27:12 -05:00
1 parent a945cd80d3
commit eda319e16a
5 files changed
+37 -2

No files matched your search

+12
View File
@@ -250,3 +250,15 @@ html[data-theme="light"] .ex-cmp-head { background: var(--bg-secondary); }
html[data-theme="light"] .ex-log-title { color: var(--text-primary); }
html[data-theme="light"] .ex-diff-same { color: var(--text-muted); }
html[data-theme="light"] .ex-row.is-selected td { background: rgba(255, 179, 0, 0.18); }
/* Command executions in the list: `command @ worker` (#15). */
.ex-row-cmd {
display: inline-block;
max-width: 32rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
color: var(--text-primary, inherit);
}
.ex-row-worker { color: var(--text-muted, inherit); white-space: nowrap; }
+8 -1
View File
@@ -128,6 +128,13 @@
return '(' + st.total + ')';
}
// Workflows by name; commands as `command @ worker` instead of "[Quick Command]" (#15).
function nameCell(e) {
if (e.workflow_name || !e.command) return '<strong>' + esc(execName(e)) + '</strong>';
return '<code class="ex-row-cmd" title="' + esc(e.command) + '">' + esc(e.command) + '</code>' +
(e.worker_name ? ' <span class="ex-row-worker">@ ' + esc(e.worker_name) + '</span>' : '');
}
// 'waiting' when a running execution is blocked on a prompt (#3).
function displayStatus(e) {
return e.status === 'running' && e.waiting_for_input ? 'waiting' : e.status;
@@ -157,7 +164,7 @@
' data-execution-id="' + esc(e.id) + '" tabindex="0">' +
check +
'<td data-label="Status"><span class="' + Pulse.fmt.status(displayStatus(e)) + '">' + esc(displayStatus(e)) + '</span></td>' +
'<td data-label="Name"><strong>' + esc(execName(e)) + '</strong></td>' +
'<td data-label="Name">' + nameCell(e) + '</td>' +
'<td data-label="Started by">' + esc(e.started_by || '') + '</td>' +
'<td data-label="Started">' + esc(Pulse.fmt.dateTime(e.started_at)) + '</td>' +
'<td data-label="Completed">' + completed + '</td>' +