Repository navigation
[3604 by Claude Opus 5.5] Automations: inline validation, readable schedule and trigger, consistent names, shorter hints - #3628
Conversation
… UI unit suite (3,302 tests), lint and typecheck. In the browser, the new form test passes at 1440 and 390px, and so do the existing automations, New task, run history, native-chrome and goals specs I touched.
Form
1. Validation: errors now appear under the field in words: "Enter a name.", "Enter a prompt.", "Enter a schedule with five parts, e.g. 0 9 * * 1-5.", "Run at most every 15 minutes.", and "The minute must be from 0 to 59." for a bad value. A failed submit scrolls to the first invalid field and focuses it. The red banner now only shows errors the form doesn't check itself, such as save failures.
2. Coding agent select: it's now as wide as the other fields (new `fullWidth` option on `AgentModelSelector`).
3. Capabilities: the raw-id chips are gone and the checkboxes sit on one vertical line. The repository and reason checkboxes are now single-column lists.
4. Merge while Report only: "Merge pull requests" is disabled with "Not available with Report only: there is no action step to merge in." It is also dropped from what gets saved. The form keeps the tick, so switching to Preview or Auto brings it back.
5. Templates: they show once — the empty state hides its copy while the New automation pane is open — as a single-column list of rows.
6. Unsaved input: Escape, Close, Back to list, clicking another automation and applying a template over typed text now ask first, in the app's dialog. New task uses the same dialog instead of `window.confirm`. Moving between an automation's Settings and Runs tabs doesn't ask.
7. Hints: shortened to the wording in the issue. The pause hint reads the threshold from `automation_unproductive_run_threshold`.
8. Terms: "action step" and "Report only" are now used everywhere.
9. Blocker reasons: the event trigger uses the Planner's labels from `planQueueLabels.ts`.
List, runs and elsewhere
10. Schedules in words: e.g. "Every 3 hours", "Weekdays 07:00 UTC", "Mon, Wed, Fri 09:00 UTC", with the cron in a tooltip. The run page says "Scheduled · every day 09:00 UTC".
11. Hover hint: removed; touching a row loads its preview.
12. "Automation" everywhere: the dashboard now labels these runs "Automation". The API's 404 now says "Automation not found" (REST and MCP).
13. Header button: reads "New task", "New plan", "New goal", "New automation". "New To-do" is unchanged.
14. Report task page:
- The duplicate "Preparing Analysis" came from the run's "extensions resolved" event. Live task history for one of your automation runs showed it is stored with the "processing" state. The timeline now hides it when no extensions were applied, and otherwise labels it "Extensions Applied".
- The task page no longer requests assignees for automation-run tasks, so the 409 is gone.
- The empty-log message is now specific to automation reports.
Things to know before merging
- The threshold setting can only be read by people who manage settings. Everyone else sees the default (3), which is the value the server also falls back to.
- Unsaved-input protection covers links and the pane's own controls. The header's create button and the browser's Back button still leave without asking. The app's router doesn't support blocking those without restructuring it.
- Changing "Automation definition not found" alters a REST and MCP error string. It's a small step beyond the issue's "no API changes" note; nothing in the repo checks that text.
New tests:
- Unit: `agentFormValidation.test.ts` (validation and the Report-only merge rule), `agentSchedulePresentation.test.ts` (schedule wording), `AgentEditor.validation.test.tsx`, `AgentsPage.unsaved.test.tsx` and `useUnsavedEditorGuard.test.ts`, plus new cases in the template, timeline, assignees and dashboard tests.
- Browser: `e2e/automations-form-validation.pw.ts`, covering both widths with screenshots.
The preview screenshots and manifest are in place.
|
/ultrafix goal=8 max=6 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 6) First action:
|
|
✅ AI Code Review Complete requested by @propr-dev[bot] Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR improves automation form clarity and adds useful validation and discard-confirmation coverage. It needs changes before merge: template application can erase unsaved-input tracking, and two new descriptions can misrepresent actual behavior. ✅ Inline validation — Field errors share the existing schedule validator, and rejected submissions focus the first invalid control. ✅ Report-only capability handling — Merge is disabled visually and removed from the submitted capabilities, with tests covering restoration when autonomy changes. ✅ Consistent blocker labels — Event-trigger options reuse the Planner’s existing labels. This is a static review of the supplied diff and context; no commands or tests were run. Current checks show nine passed, five pending, and no failures. The change size is broadly consistent with the stated UI work. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Templates clear tracking of retained input
F2: 🔴 Non-administrators see an incorrect pause threshold
F3: 🔴 Cron steps are described as uniform intervals
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Cover remaining navigation exitsThe implementation summary acknowledges that the header creation button and browser Back bypass discard confirmation. Tracking these as a follow-up would make draft protection more predictable. These existing navigation limitations are separate from the newly introduced false-clean state in F1 and do not independently block this review. ScoreThe implementation has useful focused coverage, but three localized correctness defects remain. Pending checks are not failures, and the supplied test results do not cover these cases. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 55e98e5
Summary of ChangesI've fixed F1, F2 and F3, and each has new tests. Every new test fails when its fix is undone and passes with it. F1: Templates no longer mark kept input as saved (
F2: No wrong number for people who can't read settings (
F3: Uneven cron steps no longer read as even intervals (
Checks run: typecheck, lint on I captured two previews at 1440px: the pause option as seen by a member, and a list where I found nothing outside these three findings to report. Review digestRisk-tiered paths
Validation evidence
Diff size: 7 files changed, +148/−17 lines Visual previewPause option for a member (1440px)A user who cannot read instance settings no longer sees a number in the pause option: it reads 'Pause the schedule when runs in a row keep finding nothing new'. Schedules with uneven steps (1440px)0 */6 still reads 'Every 6 hours'; 0 */5 and */22, whose steps do not divide the day or hour, are shown as their cron expression instead of an even interval. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… test fails when its fix is undone and passes with it. I've fixed F1, F2 and F3, and each has new tests. Every new test fails when its fix is undone and passes with it. **F1: Templates no longer mark kept input as saved** (`useAgentEditor.ts`) - Applying a template now applies it to the form as the user left it, and separately to the form as it started. The starting version is what "nothing typed yet" is measured against. - So a repository or coding agent picked before the template still counts as unsaved, and closing the pane asks first. - Fields the template replaces still don't count as typed input, so applying a second template still doesn't ask. - New tests in `AgentEditor.templates.test.tsx`: pick a repository (or the coding agent), apply a template, and closing still counts as unsaved. No dialog appears when the template is applied. **F2: No wrong number for people who can't read settings** (`useUnproductiveRunThreshold.ts`, `AgentScheduleSection.tsx`) - The threshold is now unknown when the user can't manage settings, while it loads, or if reading it fails. The pause option then reads "Pause the schedule when runs in a row keep finding nothing new". - If the settings load but hold no usable value, it shows 3, the same default the server uses. - New `useUnproductiveRunThreshold.test.tsx` covers a non-admin on an instance set to 4 runs (no request, no number), an admin (4), a missing value (3), a failed read (no number), and both versions of the label. **F3: Uneven cron steps no longer read as even intervals** (`agentPresentation.ts`) - "Every N hours" is now used only when N divides 24, and "Every N minutes" only when N divides 60. - Anything else, such as `0 */5 * * *` or `*/22 * * * *`, shows its cron expression, as other unusual schedules already did. - I searched the code for other cron expressions with steps: only the new tests use uneven ones. - New tests in `agentSchedulePresentation.test.ts`: `0 */5`, `*/22`, `30 */7` and `*/45` now show their cron expression, and steps that divide (`*/20`, `*/30`, `*/8`, `*/12`) still read as intervals. **Checks run:** typecheck, lint on `components/Agents`, and the Agents, AgentsPage and NewTaskPage unit tests (189 passed). The browser tests `automations-form-validation.pw.ts` and `automations.pw.ts` pass (23 tests). They log in as an admin, so the "4 runs" label they check is still correct. I captured two previews at 1440px: the pause option as seen by a member, and a list where `0 */6` reads "Every 6 hours" while `0 */5` and `*/22` show their cron expression. I found nothing outside these three findings to report. PR: #3628 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR substantially improves automation form validation, terminology, layout, and discard confirmation. It needs a localized correction before merge because the new timeline filtering can hide meaningful extension-resolution diagnostics. ✅ Inline validation — Field errors have accessible descriptions, and failed submissions focus the first invalid control. ✅ Report-only capabilities — Merge is disabled with an explanation and removed from the saved payload. ✅ Schedule descriptions — Interval wording correctly avoids claiming uniform spacing when cron steps do not divide the hour or day. Review based on static inspection of the supplied code; no commands were run. Current checks show 13 passed, none failed, and one pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F4: 🔴 Preserve extension omission diagnostics
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Cover remaining navigation exitsThe documented header-button and browser-Back exits still bypass discard confirmation. A follow-up could extend protection to those paths and test them alongside link navigation. This is optional here because the supplied objective specifically enumerates the pane controls and links covered by this implementation. ScoreThe implementation has substantial focused coverage and no current check failures, but the diagnostic-loss regression requires correction before merge. The remaining check is pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 41a868f
Summary of ChangesI fixed F4. The timeline no longer hides an The fix (
New tests
I found no other code in this PR's changes making the same mistake. I didn't create a preview image. The only visible difference is that row's label, which shows up only in this edge case, so I judged it not worth one; this was my own call, not a blocked capture. Review digestRisk-tiered paths
Validation evidence
Diff size: 4 files changed, +81/−7 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…olved` event that explains why requested extensions are missing. The TaskDetails unit tests pass (455), and lint and typecheck pass. I didn't run the browser specs again. I fixed F4. The timeline no longer hides an `extensions.resolved` event that explains why requested extensions are missing. The TaskDetails unit tests pass (455), and lint and typecheck pass. I didn't run the browser specs again. **The fix** (`propr-ui/src/components/TaskDetails/taskKind.ts`) - `resolvedNoExtensions` now hides an event only if it applied no servers or skills, and also has empty `skipped` and `omitted` lists, no `labelOptOut` and no `autoApplySkipped`. That includes the omission-only case from the finding. - **Same mistake in the label:** the timeline doesn't show the event's reason text, so its label is the only explanation. The label assumed that any event still shown had applied something. An omission-only event would now appear and say "Extensions Applied" when nothing was applied. A new `extensionsEventLabel` shows "Extensions Applied" only when servers or skills were actually applied, and "Extensions Not Applied" otherwise. `TaskStatusTable.tsx` uses it. - I put the label logic in `taskKind.ts` because `TaskStatusTable.tsx` would otherwise go over the 400-line lint limit. **New tests** - `taskKind.test.ts`: the event stays when it has omitted items, skipped items, an opt-out label or a skipped auto-apply. It is still hidden when it is completely empty. "Applied" means servers or skills were added. - `TaskStatusTable.test.tsx`: for both timeline layouts, each of those four kinds of event shows as "Extensions Not Applied", never "Extensions Applied". A completely empty event still doesn't show. - With the old filter put back, 5 of these new tests fail. With the fix they all pass. I found no other code in this PR's changes making the same mistake. I didn't create a preview image. The only visible difference is that row's label, which shows up only in this edge case, so I judged it not worth one; this was my own call, not a blocked capture. PR: #3628 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR substantially improves automation form validation, terminology, schedule presentation, and discard confirmation. No merge-blocking defect was verified in the supplied diff. It is merge-ready within scope, conditional on the pending validation check completing successfully. ✅ Consistent merge capability handling — Report only disables the merge control and removes ✅ Useful inline validation — Required fields and schedules receive readable errors, accessible descriptions, and focus after a refused submission. ✅ Preserved extension diagnostics — Empty extension-resolution events are hidden, while skipped, omitted, and opt-out explanations remain visible. This was a static review of the supplied code and context; no commands or tests were run. Current checks show 14 passed, one pending, and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Extend navigation protection
S4: 🟢 Exercise saved-editor navigationThe new ScoreThe implementation is cohesive and has substantial targeted coverage, with no verified blocker. Final merge readiness remains conditional on the pending validation check. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |


AI Implementation Summary
Closes #3604
Branch:
3604/claude-opus-5-5-automations-inline-valida-20261117-0128-sz4Commits: ✅ Changes committed (8ac27ce)
AI Processing Completed
Execution Details:
Summary:
I've implemented all 14 points in #3604, and the tests pass: the full UI unit suite (3,302 tests), lint and typecheck. In the browser, the new form test passes at 1440 and 390px, and so do the existing automations, New task, run history, native-chrome and goals specs I touched.
Form
fullWidthoption onAgentModelSelector).window.confirm. Moving between an automation's Settings and Runs tabs doesn't ask.automation_unproductive_run_threshold.planQueueLabels.ts.List, runs and elsewhere
10. Schedules in words: e.g. "Every 3 hours", "Weekdays 07:00 UTC", "Mon, Wed, Fri 09:00 UTC", with the cron in a tooltip. The run page says "Scheduled · every day 09:00 UTC".
11. Hover hint: removed; touching a row loads its preview.
12. "Automation" everywhere: the dashboard now labels these runs "Automation". The API's 404 now says "Automation not found" (REST and MCP).
13. Header button: reads "New task", "New plan", "New goal", "New automation". "New To-do" is unchanged.
14. Report task page:
- The duplicate "Preparing Analysis" came from the run's "extensions resolved" event. Live task history for one of your automation runs showed it is stored with the "processing" state. The timeline now hides it when no extensions were applied, and otherwise labels it "Extensions Applied".
- The task page no longer requests assignees for automation-run tasks, so the 409 is gone.
- The empty-log message is now specific to automation reports.
Things to know before merging
New tests:
agentFormValidation.test.ts(validation and the Report-only merge rule),agentSchedulePresentation.test.ts(schedule wording),AgentEditor.validation.test.tsx,AgentsPage.unsaved.test.tsxanduseUnsavedEditorGuard.test.ts, plus new cases in the template, timeline, assignees and dashboard tests.e2e/automations-form-validation.pw.ts, covering both widths with screenshots.The preview screenshots and manifest are in place.
Review digest
Risk-tiered paths
packages/api/mcp/toolsAutomations.ts(+1/−1)packages/api/routes/automationDefinitionRoutes.ts(+5/−5)propr-ui/src/components/Agents/AgentAutonomySection.tsx(+6/−5)propr-ui/src/components/Agents/AgentCapabilitiesSection.tsx(+25/−15)propr-ui/src/components/Agents/AgentEditor.tsx(+9/−2)propr-ui/src/components/Agents/AgentEventTriggerSection.tsx(+27/−23)propr-ui/src/components/Agents/AgentFormRow.tsx(+18/−2)propr-ui/src/components/Agents/AgentList.tsx(+14/−8)propr-ui/src/components/Agents/AgentPromptSection.tsx(+9/−2)propr-ui/src/components/Agents/AgentRunApprovalPanel.tsx(+3/−3)propr-ui/src/components/Agents/AgentRunDetail.tsx(+19/−12)propr-ui/src/components/Agents/AgentRunHistory.tsx(+2/−1)propr-ui/src/components/Agents/AgentRunNoChangeBadge.tsx(+1/−1)propr-ui/src/components/Agents/AgentScheduleSection.tsx(+20/−14)propr-ui/src/components/Agents/AgentSettingsForm.tsx(+43/−8)propr-ui/src/components/Agents/AgentTemplates.tsx(+7/−5)propr-ui/src/components/Agents/agentEditorForm.ts(+17/−1)propr-ui/src/components/Agents/agentFormValidation.ts(added, +99/−0)propr-ui/src/components/Agents/agentPresentation.ts(+107/−16)propr-ui/src/components/Agents/agentRunPresentation.ts(+20/−2)propr-ui/src/components/Agents/useAgentEditor.ts(+37/−6)propr-ui/src/components/Agents/useUnproductiveRunThreshold.ts(added, +26/−0)propr-ui/src/components/Agents/useUnsavedEditorGuard.tsx(added, +74/−0)propr-ui/src/components/CreationDialog.tsx(+4/−0)propr-ui/src/components/Dashboard/workTitle.ts(+2/−0)propr-ui/src/components/Extensions/AdditionalExtensionsSelector.tsx(+1/−5)propr-ui/src/components/TaskDetails/TaskStatusTable.tsx(+3/−3)propr-ui/src/components/TaskDetails/index.tsx(+2/−10)propr-ui/src/components/TaskDetails/taskKind.ts(+22/−0)propr-ui/src/components/TaskDetails/useTaskAssignment.ts(+9/−0)propr-ui/src/components/TaskPlanner/AgentModelSelector.tsx(+5/−1)propr-ui/src/components/TaskPlanner/AgentModelSelectorParts.tsx(+12/−6)propr-ui/src/components/creationActions.ts(+4/−4)propr-ui/src/components/ui/DiscardChangesDialog.tsx(added, +24/−0)propr-ui/src/components/ui/useDiscardConfirmation.tsx(added, +27/−0)propr-ui/src/pages/AgentsPage.tsx(+19/−5)propr-ui/src/pages/NewTaskPage.tsx(+15/−3)propr-ui/src/pages/SettingsPage/AgentExtensionsGuide.tsx(+1/−1)propr-ui/e2e/automation-runs-mobile.pw.ts(+2/−1)propr-ui/e2e/automations-form-validation.pw.ts(added, +196/−0)propr-ui/e2e/automations.pw.ts(+13/−13)propr-ui/e2e/creation-confirm-native-chrome.pw.ts(+9/−6)propr-ui/e2e/creation-keyboard-viewport.pw.ts(+1/−1)propr-ui/e2e/dialog-keyboard-viewport.pw.ts(+1/−1)propr-ui/e2e/goals-regressions.pw.ts(+1/−1)propr-ui/e2e/new-task.pw.ts(+5/−5)propr-ui/e2e/quick-add-todo.pw.ts(+1/−1)propr-ui/src/components/Agents/AgentAutonomySection.test.tsx(+1/−1)propr-ui/src/components/Agents/AgentEditor.eventTrigger.test.tsx(+2/−1)propr-ui/src/components/Agents/AgentEditor.fields.test.tsx(+1/−1)Validation evidence
Diff size: 67 files changed, +1,468/−268 lines
Detailed Logs:
56924c9e-8197-448a-b4e6-8a125860fd46Log files stored at:
/usr/src/app/logs/executions/issue-3604-2026-11-17T02-16-06-509Z-conversation.json/usr/src/app/logs/executions/issue-3604-2026-11-17T02-16-06-509Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3604.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Capabilities without raw ids (1440px)
Aligned switches with no id chips; Merge pull requests is disabled with a one-line reason while the automation is Report only.
Full-size original
Capabilities (390px)
The capability rows on a phone.
Full-size original
Inline errors (1440px)
Submitting an empty New automation form: 'Enter a name.' and 'Enter a prompt.' under the fields, Name focused, no banner.
Full-size original
Inline errors (390px)
The same on a phone: the form scrolls to the Name field, which is focused with its error below it.
Full-size original
Schedule error in words (1440px)
A schedule more frequent than 15 minutes reads 'Run at most every 15 minutes.'; the pause option states the threshold (4 runs) from the instance setting.
Full-size original
Schedule error in words (390px)
The schedule row on a phone.
Full-size original
Templates once, single column (1440px)
With an empty list and the New automation pane open, templates appear only in the pane, as one column of rows; the empty state has the short description.
Full-size original
Templates (390px)
The template list on a phone.
Full-size original