Skip to content

Commit 17a533c

Browse files
authored
improve(ui): redesign the Automations tab with stats, a table list, and a full-page detail view (#105174)
* feat(ui): redesign Automations tab with stats, table list, and detail tabs * docs(web): describe redesigned Automations page layout * fix(ui): global failing-count stat via filtered cron.list and unclipped row menus * fix(ui): refresh failing-count stat after cron job mutations * chore(ui): sync locale bundles for automations redesign keys
1 parent ae14fc1 commit 17a533c

70 files changed

Lines changed: 1579 additions & 892 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/web/control-ui.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ A **Search** field at the top of the sidebar opens the command palette (⌘K). C
201201

202202
</Accordion>
203203
<Accordion title="Cron, tasks, plugins, skills, devices, exec approvals">
204-
- Automations (cron jobs): a task list with All/Active/Paused tabs, search, and starter suggestions next to a detail pane that edits the selected task inline (prompt, details, frequency, advanced overrides) with per-task run history; with no selection the pane shows recent activity across all tasks (`cron.*`).
204+
- Automations (cron jobs): stat cards (automation count, failing count, scheduler state, next wake) above an Automations/Run history tab switch; the Automations tab lists jobs in a filterable table (All/Active/Paused, search, schedule and last-run filters, per-row action menu) with starter suggestions below, and the Run history tab shows recent runs across all automations (`cron.*`).
205205
- Tasks: live active and recent background task ledger with linked sessions and cancellation (`tasks.*`).
206206
- Plugins: browse the installed inventory and curated store, search ClawHub, install and remove plugin code, and enable or disable installed plugins (`plugins.*`); MCP server rows edit `mcp.servers` through the config methods.
207207
- Skills: status, enable/disable, install, API key updates (`skills.*`).
@@ -238,8 +238,8 @@ A **Search** field at the top of the sidebar opens the command palette (⌘K). C
238238

239239
</Accordion>
240240
<Accordion title="Automations panel notes">
241-
- Selecting a task opens it directly in the detail pane for inline editing; Run now, pause/resume, clone, and remove live in the pane header.
242-
- Suggestions under the task list prefill the create form with an editable prompt and schedule.
241+
- Selecting a row opens a full-page detail view with an Active/Paused switch and Run now in the header (run-if-due, clone, and remove in its menu); the Settings tab edits the automation inline (prompt, details, frequency, advanced overrides) and the Run history tab shows that automation's runs.
242+
- Starter automations under the table prefill the create form with an editable prompt and schedule.
243243
- For isolated tasks, delivery defaults to announce summary; switch to none for internal-only runs.
244244
- Channel/target fields appear when announce is selected.
245245
- Webhook mode uses `delivery.mode = "webhook"` with `delivery.to` set to a valid HTTP(S) webhook URL.

‎ui/src/e2e/cron-filters.e2e.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type PageDiagnostics = {
8181
};
8282

8383
function jobTitle(page: Page, name: string) {
84-
return page.locator(".cron-task__name-text", { hasText: new RegExp(`^${name}$`, "u") });
84+
return page.locator(".cron-table__name-text", { hasText: new RegExp(`^${name}$`, "u") });
8585
}
8686

8787
async function waitForJobTitle(
@@ -256,12 +256,14 @@ describeControlUiE2e("Control UI cron mocked Gateway E2E", () => {
256256
await page.goto(`${server.baseUrl}cron`);
257257
await jobTitle(page, existingJob.name).waitFor({ timeout: 10_000 });
258258

259-
// Selecting the task loads its stored model override into the editor.
259+
// Selecting the task opens the detail view with its stored model override.
260260
await jobTitle(page, existingJob.name).click();
261261
await expect
262262
.poll(async () => page.locator("#cron-payload-model").inputValue())
263263
.toBe(configuredModel);
264264

265+
// The create button lives on the list view; navigate back first.
266+
await page.locator('[data-test-id="cron-back"]').click();
265267
await page.locator('[data-test-id="cron-new-task"]').click();
266268
await page.locator("#cron-payload-text").fill("Run with a selected model");
267269
await page.locator("#cron-name").fill("Model override task");

‎ui/src/i18n/.i18n/ar.meta.json‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ui/src/i18n/.i18n/ar.tm.jsonl‎

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ui/src/i18n/.i18n/de.meta.json‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)