b5e84550927882f0954c43fbb403b51ef8cac563
5
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> |
||
|
|
6d289a3bce |
Tests: fix two CI flakes seen on main
CI / Lint (eslint) (pull_request) Successful in 27s
CI / Test (jest) (pull_request) Successful in 1m4s
CI / Security (npm audit) (pull_request) Successful in 39s
CI / Integration (api) (pull_request) Successful in 4m18s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 3m50s
CI / UI screenshots (before/after) (pull_request) Successful in 10s
CI / UI (playwright) (pull_request) Successful in 2m39s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 1m15s
CI / Lint (eslint) (push) Successful in 1m20s
CI / Security (npm audit) (push) Successful in 27s
CI / Integration (api) (push) Successful in 3m42s
CI / Scan (secrets, workflows, shell) (push) Successful in 3m11s
CI / UI (playwright) (push) Successful in 2m38s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
- calculateNextRun interval: bounded by the clock before and after the call (its first use loads cron-parser, which took 30 s once on a loaded runner and broke the fixed 1 s tolerance). - Integration helper: retry a GET once when a pooled keep-alive connection is reset (ECONNRESET as the server closes it); writes are never retried. 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> |
||
|
|
6e5f18ea58 |
Add jest test suite, extract pure utils module, fix cron-parser v5 API
- Extract validateWebhookUrl, applyParams, evalCondition, calculateNextRun to lib/utils.js so they can be tested without DB connection - Fix cron-parser v5 API: parseExpression → CronExpressionParser.parse - Add 31 jest tests covering all four utility functions - Add test.yml CI workflow running jest on every push/PR - Add jest devDependency Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |