966c2be5ccc4e53a6842b5afe539ed494ac0528b
21
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
966c2be5cc |
Scheduler: edit, Run now, cron with a preview, and a schedule's runs (#19)
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
- 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> |
||
|
|
a6d693c13e |
Workflow parameters: types, defaults, checked before a run (#23, #11)
CI / Test (jest) (pull_request) Successful in 26s
CI / Lint (eslint) (pull_request) Successful in 29s
CI / Security (npm audit) (pull_request) Successful in 13s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m36s
CI / Integration (api) (pull_request) Successful in 2m26s
CI / UI (playwright) (pull_request) Successful in 2m25s
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 2m3s
#23 - Parameters can be text (default), number (min, max), select (options), boolean, or worker, with a default. The Run dialog shows a matching field, the allowed characters for text, and the range for numbers; worker parameters choose from the connected workers. - Values are checked before anything starts: in the dialog, naming the characters that are not allowed, and by the server (resolveParams), which answers 400 "Invalid parameters: ..." and creates no execution. A bad value used to fail mid-run as "Unsafe value for workflow parameter". Server errors now show in the dialog instead of a toast. #11 - Saving a workflow checks its shape (definitionErrors): known step types and their required fields, unique ids, prompt routes that match options, route conditions, and parameter definitions. Unknown step types were silently skipped at run time. - README documents the parameter types and the checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ecc1b447be |
Readable command output: ANSI stripped, Copy / Wrap / Expand / .txt (#27)
CI / Lint (eslint) (pull_request) Successful in 20s
CI / Test (jest) (pull_request) Successful in 21s
CI / Security (npm audit) (pull_request) Successful in 15s
CI / Integration (api) (pull_request) Successful in 2m43s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m44s
CI / UI (playwright) (pull_request) Successful in 2m35s
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 1m54s
A shared output block (Pulse.output.render) now draws every command output in Executions and Quick Command: - ANSI escape codes (colours, cursor moves, titles, charset switches) are stripped, so systemctl, ls --color and docker read cleanly. - Copy and .txt use the full, clean text; .txt downloads it as a file. - Wrap turns long-line wrapping on or off for every block, remembered. - Output over 25 lines starts at 24rem high with an Expand button. - Over 100,000 characters, the display is cut with a notice saying how much is hidden; Copy and .txt still include all of it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
c01e3ead32 |
Quick Command shows the output right under the form (#5)
CI / Lint (eslint) (pull_request) Successful in 19s
CI / Test (jest) (pull_request) Successful in 30s
CI / Security (npm audit) (pull_request) Successful in 14s
CI / Integration (api) (pull_request) Successful in 2m35s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m52s
CI / UI (playwright) (pull_request) Successful in 2m31s
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
After Execute, each worker gets a card that says Running until its result arrives, then shows the status (Completed, Failed (exit N), Timed out, Killed), the duration, stdout, stderr in red, and a link to the full record in Executions. Multi-worker runs get one card per worker. - The result comes from the live command_result event; one that arrives before the POST returns is buffered. If the event is missed (e.g. the live connection dropped), the card polls the execution every 5 s. - Each stream shows up to 100,000 characters, with a note pointing to Executions for the rest. - The server's command_result broadcast now includes duration. - [hidden] now always wins over component display rules: both worker pickers used to show in either mode because .lt-form-group sets display: flex. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
9f6b34b55a |
Live updates keep the rows brought in with Load More (#17)
CI / Lint (eslint) (pull_request) Successful in 18s
CI / Test (jest) (pull_request) Successful in 21s
CI / Security (npm audit) (pull_request) Successful in 11s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m8s
CI / Integration (api) (pull_request) Successful in 2m53s
CI / UI (playwright) (pull_request) Successful in 2m24s
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 2m57s
A live event reloaded only the first page of the Executions list, so rows brought in with Load More vanished whenever Gandalf or anyone else ran something. Live refreshes now fetch as many rows as are shown (up to the server's 1000); search and filters still start from the first page. The rest of #17 was already fixed: reloads are throttled (#10), each tab keeps its own state, and selections survive a refresh. The new UI test fails without this change (100 rows drop to 50). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
5d1cdf9da0 |
Quick Command remembers the mode and workers (#31)
CI / Lint (eslint) (pull_request) Successful in 23s
CI / Test (jest) (pull_request) Successful in 23s
CI / Security (npm audit) (pull_request) Successful in 10s
CI / Integration (api) (pull_request) Successful in 2m40s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m51s
CI / UI (playwright) (pull_request) Successful in 4m32s
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 4m43s
The mode (single or multi), the single worker and the multi-worker selection are saved in localStorage (pulse_qc_prefs): the mode when it changes, the workers when a command is sent. A reload starts from that choice instead of the first worker; a Re-run from Executions still overrides it. The Ctrl+Enter hint and shortcut already existed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d1ef6297ec |
Empty states say what to do next (#33)
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Test (jest) (pull_request) Successful in 22s
CI / Security (npm audit) (pull_request) Successful in 10s
CI / Integration (api) (pull_request) Successful in 2m39s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m7s
CI / UI (playwright) (pull_request) Successful in 2m25s
CI / Deploy (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m23s
CI / Notify (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
- Workers: what a worker is, the four settings it needs, and a link to the README's worker setup. - Scheduler: what a schedule does, a + New Schedule button, and a pointer to try the command in Quick Command first. - Workflows: links to the step reference and to Quick Command, under the existing Create button. - The "No workers available" pickers in Quick Command and the schedule form link to the Workers page. - UI test with stubbed empty lists checks each hint and action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d7d1381259 |
Long commands: narrower box, 500-character hover text
CI / Lint (eslint) (pull_request) Successful in 39s
CI / Test (jest) (pull_request) Successful in 36s
CI / Security (npm audit) (pull_request) Successful in 27s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m2s
CI / Integration (api) (pull_request) Successful in 2m50s
CI / UI (playwright) (pull_request) Successful in 2m31s
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 2m24s
The command box stops at min(24rem, 100%) so a long command ends in an ellipsis well short of the next column, and the list returns up to 500 characters so the hover text shows the whole command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
eda319e16a |
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> |
||
|
|
a945cd80d3 |
Merge pull request 'Run multi-target commands in parallel' (#75) from parallel-targets into main
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 20s
CI / Lint (eslint) (push) Successful in 29s
CI / Security (npm audit) (push) Successful in 15s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m1s
CI / Integration (api) (push) Successful in 2m50s
CI / UI (playwright) (push) Successful in 1m56s
CI / Deploy (push) Successful in 14s
CI / Deploy worker (push) Successful in 8s
CI / Notify (push) Successful in 3s
|
||
|
|
abb4b9326f |
Run multi-target commands in parallel (#26)
CI / Lint (eslint) (pull_request) Successful in 27s
CI / Test (jest) (pull_request) Successful in 19s
CI / Security (npm audit) (pull_request) Successful in 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m58s
CI / Integration (api) (pull_request) Successful in 2m49s
CI / UI (playwright) (pull_request) Successful in 2m15s
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 2m6s
- Workflow execute steps send to all targets at once and wait for every result (Promise.all), so one slow or hung worker no longer holds up the rest; any failed target fails the step. parallel: false keeps the old one-at-a-time order, stopping at the first failure, for rolling changes. (Log appends are atomic in SQL, so concurrent targets can't lose entries.) - Quick Command's multi-worker mode sends to every selected worker at once. - Integration tests: 3 workers x 2 s finish in about 2 s; parallel: false takes 6 s or more; one failing target fails the step after all report. - README: the parallel field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4cf3c084a9 |
Executions: Re-run Workflow, and search that finds commands (#18, #16)
CI / Test (jest) (pull_request) Successful in 23s
CI / Lint (eslint) (pull_request) Successful in 26s
CI / Security (npm audit) (pull_request) Successful in 15s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m42s
CI / Integration (api) (pull_request) Successful in 2m37s
CI / UI (playwright) (pull_request) Successful in 2m45s
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 2m41s
- #18: a workflow execution's detail now offers Re-run Workflow, which starts the same workflow with the parameters from its params log entry (after a confirm listing them) and opens the new run. Quick commands keep Re-run Command. - #16: search runs on the server: workflow name, who started it, the id, or any command the execution ran (JSON_SEARCH over the logs). The page sends it as you type (debounced 300 ms, from the first page); the status filter stays local. - Regression tests for #12 (Create Workflow starts with the example) and #13 (dry run works for workflows without parameters), which the UI rewrite had already fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
789e5651c8 |
Worker memory: report available memory, not free memory (#30)
CI / Test (jest) (pull_request) Successful in 19s
CI / Lint (eslint) (pull_request) Successful in 21s
CI / Security (npm audit) (pull_request) Successful in 11s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m54s
CI / Integration (api) (pull_request) Successful in 2m36s
CI / UI (playwright) (pull_request) Successful in 2m15s
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 2m29s
os.freemem() leaves out the page cache, so a healthy Linux box looks full: the production worker (CT 153, 512 MB) has 4 MB free but 449 MB available, and showed as 99% used instead of about 12%. - worker: heartbeat metadata adds availableMem from MemAvailable in /proc/meminfo (falls back to os.freemem()); freeMem stays for old servers. - Workers tab and dashboard compute used memory from availableMem when present, from freeMem for workers that predate it. - Unit tests for the meminfo parsing and the fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
39d28fb9e7 |
Executions: show runs waiting on a prompt; Automated tab filters on the server (#3, #4)
CI / Lint (eslint) (pull_request) Successful in 29s
CI / Test (jest) (pull_request) Successful in 24s
CI / Security (npm audit) (pull_request) Successful in 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m48s
CI / Integration (api) (pull_request) Successful in 2m32s
CI / UI (playwright) (pull_request) Successful in 2m6s
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 2m28s
- #3: the list response includes waiting_for_input for each execution (a running execution blocked on a prompt). The row shows it as 'waiting' (the design system's purple status) and the Waiting status filter, which could never match, now finds it. - #4: new only_internal=true filter (Gandalf and scheduler runs), used by the Automated tab, so it pages and counts on the server like the Manual tab; the client-side filter over one shared page is gone. - Tests: integration for waiting_for_input and both server filters; UI for the waiting status and the filter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6ffe230c34 |
Rate limits per user, and coalesce live-event reloads (#10)
CI / Lint (eslint) (pull_request) Successful in 23s
CI / Test (jest) (pull_request) Successful in 23s
CI / Security (npm audit) (pull_request) Successful in 1m17s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m42s
CI / Integration (api) (pull_request) Successful in 4m23s
CI / UI (playwright) (pull_request) Successful in 2m35s
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 2m13s
Production refused 1,052 of the UI's requests with 429 in one day: every user arrives through the reverse proxy, so the per-IP limiter put the whole team in one bucket, and each open page reloaded its whole list on every live event (about two per Gandalf command). - lib/ratelimit.js keys both limiters: a trusted SSO identity gets user:<name>, a request with the valid Gandalf key gets 'gandalf' (an invalid key falls back to the IP, so nobody can drain Gandalf's bucket), everything else the IP. The API default goes from 300 to 1000 per 15 min per bucket. - Pulse.util.throttle: live-event reloads on Executions, Dashboard and Workers run at most once per 2 s (at once when idle, then once at the end of the window). User actions still reload immediately. - Unit tests for the keys. No visual change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
c890d5c078 |
Workers tab: show the commit each worker runs (#40)
CI / UI screenshots (before/after) (push) Skipped
CI / Lint (eslint) (push) Successful in 16s
CI / Test (jest) (push) Successful in 17s
CI / Security (npm audit) (push) Successful in 18s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m1s
CI / Integration (api) (push) Successful in 2m34s
CI / Lint (eslint) (pull_request) Successful in 22s
CI / Test (jest) (pull_request) Successful in 22s
CI / Security (npm audit) (pull_request) Successful in 18s
CI / UI (playwright) (push) Successful in 2m14s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 2m23s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m33s
CI / UI (playwright) (pull_request) Successful in 2m28s
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 2m43s
A Version row on each worker card: the short sha linked to the commit in Gitea, or 'unknown' for a worker that doesn't report one. Updated live with the rest of the card. Playwright checks all three test workers show the checkout's HEAD. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
027dce7fd5 |
Remove em and en dashes from UI text
Security / JS Security (npm audit) (push) Failing after 23s
Lint / JS (eslint) (push) Successful in 26s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / JS Security (npm audit) (pull_request) Failing after 38s
Lint / JS (eslint) (pull_request) Successful in 42s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 28s
Test / JS Tests (jest) (push) Successful in 31s
Replace the remaining dashes users can see: - error page titles and headings, and the browser tab title: "|" or ":"; - the footer: "PULSE | TDS v1.2"; - the 401 message and two toasts: sentence breaks or a comma; - the quick-command history and success line: "|"; - empty table cells: "-"; - the compare hint: "2 to 5". No layout or behaviour changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
66d5240be0 |
Remove em and en dashes from comments, logs, docs and CI
Security / JS Security (npm audit) (push) Failing after 15s
Lint / JS (eslint) (push) Successful in 16s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 13s
Lint / Notify on failure (pull_request) Skipped
Test / JS Tests (jest) (push) Successful in 15s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 17s
Security / JS Security (npm audit) (pull_request) Failing after 20s
Replace every em dash and en dash outside user-visible UI text with a colon, comma, hyphen or "to". The UI strings and the vendored web_template are handled separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
eca5cb45b1 |
feat(ui): TDS migration stage 3 — integration fixes, legacy removal, docs
Lint / JS (eslint) (pull_request) Successful in 10s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / JS Security (npm audit) (pull_request) Failing after 10s
Test / JS Tests (jest) (pull_request) Successful in 14s
Lint / JS (eslint) (push) Successful in 11s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / JS Security (npm audit) (push) Failing after 11s
Test / JS Tests (jest) (push) Successful in 10s
- Fix design-system class names that do not exist in base.css (.lt-alert--error, .lt-form-hint); add shared .lt-modal-lg, .lt-field-error and .is-invalid rules - Remove public/index.html and the public/base.js symlink - package.json: start script, correct main - README: vendored design system, Web UI section, new env vars, read-only dev mode Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
68d0a906a6 |
feat(ui): TDS migration stage 2 — six page views and page modules
- Dashboard, Workers, Workflows, Executions, Quick Command, Scheduler pages on the shared layout, all behaviour via Pulse delegated actions (no inline handlers) - Executions: server-driven Manual/Automated views, compare mode, detail modal with all log types, ?open= deep link, cross-page re-run via sessionStorage - Workflows: run modal (dry-run available for every workflow), create modal pre-filled with the example definition - Fix EJS comment in page-header partial that broke rendering Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
cbb91a306d |
feat(ui): TDS migration stage 1 — EJS layout, CSP, vendored design system, shared runtime
- Vendor web_template base.css/base.js (v1.2 bbec859) under public/web_template with sync script - Add views/layout.ejs (fixed upstream EJS comment delimiters, mobile drawer, cmd palette, keys help, WS status, theme toggle) and lib/render.js two-step renderer - Add page routes for /, /workers, /workflows, /executions, /quick, /scheduler (stub views) - helmet with strict nonce CSP (script-src-attr 'none'), /csp-report, report-only toggle - lib/pageauth.js: shared users upsert + HTML 401/403 for page routes - PULSE_DEV_READONLY guard disabling background writers for local testing - public/assets/app.js shared runtime (Pulse namespace, delegated actions, WS singleton, themed confirm modal) and app.css - eslint globals for browser files; ignore vendored assets Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |