hive dashboard: bulk pause + resume in the selection bar
Mechanical addition to the existing bulk-action framework (renderSelectionBar/addBulkButton, swarm.js) -- two per-agent actions already exist (POST /api/pause/, /api/resume/, see hive-agent-menu.js), this just gives the selection bar the same all-or-nothing enablement rule the other six bulk buttons already use (pause enabled only when none of the selection is already paused, and vice versa for resume). .btn-pause reuses .badge-paused's yellow so the trigger and the resulting state pill read as one colour; .btn-resume is green like .btn-start (both are "go" actions). Docs updated to list both in the Selection bar reference.
This commit is contained in:
parent
46d1271603
commit
4af890f01d
3 changed files with 36 additions and 7 deletions
|
|
@ -152,6 +152,12 @@ code {
|
|||
.btn-restart { color: var(--cyan); border-color: var(--cyan); font-size: 0.75em; padding: 0.15em 0.5em; margin-left: 0.6em; }
|
||||
.btn-stop { color: var(--pink); border-color: var(--pink); font-size: 0.75em; padding: 0.15em 0.5em; margin-left: 0.6em; }
|
||||
.btn-start { color: var(--green); border-color: var(--green); font-size: 0.75em; padding: 0.15em 0.5em; margin-left: 0.6em; }
|
||||
/* Same yellow as .badge-paused (the paused-state pill) — pause enters
|
||||
that state, so the trigger and the resulting badge read as one
|
||||
colour, not two unrelated ones. Resume reads as green like
|
||||
.btn-start: both are "go" actions, back to the turn loop running. */
|
||||
.btn-pause { color: var(--yellow); border-color: var(--yellow); font-size: 0.75em; padding: 0.15em 0.5em; margin-left: 0.6em; }
|
||||
.btn-resume { color: var(--green); border-color: var(--green); font-size: 0.75em; padding: 0.15em 0.5em; margin-left: 0.6em; }
|
||||
/* M0V3 affordance (selection bar) — mauve reads as "structural
|
||||
change" rather than the destructive red / amber chrome of
|
||||
destroy / rebuild. See docs/web-ui.md::Selection bar. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue