Files
pulse/public/assets/pages/scheduler.css
T
jaredandClaude Opus 5.5 966c2be5cc
CI / Lint (eslint) (pull_request) Successful in 27s
CI / Test (jest) (pull_request) Successful in 26s
CI / Security (npm audit) (pull_request) Successful in 10s
CI / Scan (secrets, workflows, shell) (pull_request) Failing after 2m45s
CI / Integration (api) (pull_request) Successful in 3m37s
CI / UI (playwright) (pull_request) Successful in 2m51s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m35s
Scheduler: edit, Run now, cron with a preview, and a schedule's runs (#19)
- Edit: PUT /api/scheduled-commands/:id changes a schedule in place
  (keeping its history) and works out its next run again. The create
  dialog doubles as the edit dialog.
- Run now: POST /api/scheduled-commands/:id/run dispatches at once,
  records triggered_by, leaves next_run alone, and answers 409 while a
  previous run is still going. The dispatch body moved out of the
  scheduler loop into dispatchSchedule() so both share it.
- Cron is offered in the dialog, and a preview shows the next three runs
  and the server time zone they are worked out in
  (GET /api/scheduled-commands/preview). Errors stay in the dialog.
- Runs links to /executions?view=automated&search=scheduler:<name>;
  Executions now honours ?view= and ?search=.
- Create and edit share scheduleInput(), which also checks daily HH:MM.
- The dialog's worker list had no styles on this page (it borrows Quick
  Command's markup); they are now included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 19:17:48 -05:00

45 lines
1.2 KiB
CSS

/* PULSE: Scheduler page (WP-F) styles. Prefix: sc- */
.sc-row-disabled {
opacity: 0.6;
}
.sc-countdown {
color: var(--text-muted);
font-size: 0.85em;
}
/* Next-runs preview in the schedule dialog (#19). */
.sc-preview {
font-size: 0.75rem;
color: var(--text-secondary);
margin: -0.25rem 0 0.75rem;
}
.sc-preview:empty { display: none; }
.sc-preview ul { margin: 0.2rem 0; padding-left: 1.1rem; }
.sc-preview-title { color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.65rem; }
.sc-preview-tz { color: var(--text-muted); font-size: 0.7rem; }
.sc-preview--bad { color: var(--accent-red); }
/* The schedule dialog's worker picker reuses Quick Command's markup, but quick.css
is not loaded here, so the rows ran together on one line. */
.qc-worker-list {
background: var(--bg-primary);
border: 1px solid var(--border-color);
padding: 0.75rem;
max-height: 220px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.qc-worker-row {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.5rem;
cursor: pointer;
border: 1px solid transparent;
}
.qc-worker-row--online { background: rgba(0, 255, 136, 0.05); }