frontend: drop the queued-badge label lookup, show the raw kind
mara, PR #3026 review: "drop queuedLabelFor - just show what the backend sends". `queuedLabelFor` translated the rebuild-queue entry's `kind` field through a curated English-phrase table ("meta_update" -> "meta-update queued", "graceful_stop" -> "stop queued", etc.) for the one fallback case where no transient exists for an agent. Removed the lookup entirely -- `queuedOpsByAgent()` now returns the raw `kind` string directly, and the render loop uses it as-is, the same opaque-string treatment a transient's own `kind` already got (never run through a lookup, per docs/web-ui/dashboard.md's existing "treat it as an opaque display string" note). The queued-vs-running visual distinction still comes entirely from the row's CSS classes (no ring/tint for queued, amber ring + tint for running) -- the text was never carrying that signal on its own, so nothing is lost by not reformatting it. Updated docs/web-ui/dashboard.md's Container-row section to match. npm run build clean, standalone verification re-run (17/17 checks, one updated for the new raw-string expectation).
This commit is contained in:
parent
d1f82e725e
commit
e269af7882
2 changed files with 21 additions and 26 deletions
|
|
@ -919,7 +919,10 @@ fetch entirely.
|
|||
consulted; the fallback exists purely for the **`Pending`
|
||||
(queued, not yet started)** case, which `running_transients()`'s
|
||||
Running-only test cannot represent. `queuedOpsByAgent()` (swarm.js)
|
||||
reflects this: it only ever looks at `Pending`-state queue nodes.
|
||||
reflects this: it only ever looks at `Pending`-state queue nodes,
|
||||
and (mara, on review) the badge shows the queue entry's raw `kind`
|
||||
string as-is — no English-phrase lookup translating it first, same
|
||||
opaque-string treatment a transient's own label already gets.
|
||||
`opRunning` (driving the `pending-running` row class + spinner) is
|
||||
simply "does this agent have at least one transient" — a queued-only
|
||||
entry (no transient yet) leaves it false.
|
||||
|
|
|
|||
Loading…
Reference in a new issue