schedules fire-now: render FireNowReport inline on the button
damocles's #472 returns `{ ok, failed, missing, one_shot_consumed }` from the fire-now endpoint. Parse the response and flash the per-target outcome on the button itself for ~1.5s before refreshSchedules() repaints — operator sees the result immediately without a modal alert or an `/api/schedules` re-fetch round-trip. Button label transitions: ↯ fire now → ◐ firing… → ↯ fired: 3 ok, 1 missing — consumed (green flash, then row refresh)
This commit is contained in:
parent
7e5b496aa8
commit
f35382e57c
2 changed files with 33 additions and 3 deletions
|
|
@ -851,6 +851,15 @@ ul form.inline { display: inline-block; }
|
|||
.btn-talk { color: var(--cyan); border-color: var(--cyan); }
|
||||
.btn-spawn { color: var(--amber); border-color: var(--amber); }
|
||||
.btn-fire-now { color: var(--mauve, #cba6f7); border-color: var(--mauve, #cba6f7); }
|
||||
/* Post-fire flash: report renders directly on the button for ~1.5s
|
||||
so the operator sees ok/failed/missing/consumed counts inline
|
||||
without a modal. Green when at least one ok; muted otherwise. */
|
||||
.btn-fire-now-flashed {
|
||||
color: var(--green);
|
||||
border-color: var(--green);
|
||||
text-shadow: 0 0 6px currentColor;
|
||||
box-shadow: 0 0 8px -2px currentColor;
|
||||
}
|
||||
/* #474: inline edit button on each schedule row. Yellow reads as a
|
||||
parallel destructive-adjacent action (edit changes state, but
|
||||
isn't deletion). */
|
||||
|
|
|
|||
Loading…
Reference in a new issue