Skip to content

fix: show the automation schedule as one line without a repeated summary - #201214

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/automations-composer-tray
Nov 18, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/automations-composer-tray

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

When you create or edit an automation, the tray under the prompt shows the schedule as a sentence ("Every 30 Minutes") and then repeats it on a second line ("Runs every 30 minutes"). The repeat makes the tray two lines tall for no new information, the number box leaves a wide gap before the unit, and the second line starts at a different edge than the controls above it.

User Impact

User impact: the schedule tray is one calm line that reads left to right ("Every 30 Minutes"), with even spacing and the model controls on the same line. It adds text only when the controls cannot show something: a time zone set under Advanced, or a saved one-shot whose next run has moved, is paused, running, waiting or not scheduled.

Why This Change Was Made

The summary line restated every schedule kind, and for cron it printed the raw expression rather than words. It now appears in only two cases: the time zone, which moved into collapsed Advanced in #200817, and the one-shot runtime facts from #188864. Both sit inline at the end of the sentence; on phones they become rows in the schedule card. The runtime note hides when the next run matches the configured time.

Schedule values now fit their text: one- and two-digit intervals keep one width, longer ones grow by one digit, and the custom expression field hugs its expression. The clock lines up with the prompt text, the row is centered in the visible tray, and every word sits the same distance from the next. When a long sentence does not fit, it wraps under its first word while the model controls keep the first line. Disabled schedule parts dim like the other controls while saving, and tray errors start where the words do.

Removed: the summary helper, 12 English strings, and the summary-only CSS.

Evidence

Real Control UI production bundle with a mocked Gateway and synthetic automations (25 jobs with long names, Hourly/Daily/Once/custom-cron bylines, one failed and several paused rows), Chromium at 2x, en-US, UTC. Before = 9d6f4a9 (main), after = this branch.

Clean comparison: the tray

Before: "Every 30 Minutes" is repeated as "Runs every 30 minutes", and the number box leaves a gap before "Minutes".

Before: tray with a repeated Runs every 30 minutes line and a wide number box

After: one line, even word spacing, the number box fits "30".

After: tray reads Every 30 Minutes on one line

Clean comparison: full page (1280 × 900)

Before

Before: automation editor page with the two-line tray

After

After: automation editor page with the one-line tray

Annotated comparison

Before

Before annotated: second line repeats the controls; 70 px number box

After

After annotated: one line that reads as a sentence; 33 px number box

Time zone kept inline (Custom 0 6,18 * * *, America/Los_Angeles)

Before

Before: Cron schedule line repeating the expression with the time zone

After

After: globe icon and America/Los_Angeles inline after the expression

Phone (390 px)

Before After
Before: Runs every 30 minutes footnote under the schedule card After: schedule card without the footnote

Also checked with the same setup: dark theme, daily with a time zone, saved one-shot with a moved next run (desktop and phone), the longest sentence wrapping at 700 px, invalid interval, saving, Event, read-only script payload, new automation, and the phone time-zone row.

Tests: the cron page unit suite passes (28 files, 210 tests), including new cases for the time zone and for hiding a next run that matches the configured time; the one-shot runtime, saved descriptions and select-value e2e tests pass. Lint, format, the Control UI controller guard, i18n verify and the UI typecheck are clean.

This PR and the model/reasoning picker PR both edit the tray; they merge cleanly with each other (checked with git merge-tree on the two commits).

Known limits:

  • Chrome gives the date-and-time field a fixed width, so a moved one-shot keeps a gap after the date.
  • Browsers without field-sizing use a fixed four-digit interval box.
  • RTL was not checked.

Long waiting status at 700 px

Chromium at 700 × 900 with the same synthetic one-shot automation and agent-busy status. On the original PR head (9b89849b3d2) the status pushed the model and reasoning controls to a third line. In fbac9f00994 the status wraps in its own space; the controls stay aligned with the schedule and the text remains visible. The one-shot browser test covers the same transition and checks that saving does not change the schedule.

Before

Model and reasoning controls below a long waiting message

After

Model and reasoning controls beside the schedule, above the waiting message

Annotated comparison

Before After
Controls drop below the message Controls stay on the schedule line

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 18, 2026 12:51
Drop the schedule summary line that repeated the tray's controls. Keep only
what the controls cannot show: a time zone set under Advanced, and a saved
one-shot's runtime when it no longer matches the configured time.

Size schedule values to their text, give every word even spacing, align the
clock with the prompt text and center the row in the tray. Long sentences
wrap within the schedule while the run controls keep the first line.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: feb4c8cd-836e-445e-a292-8e6828908d62
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR removes the repeated automation schedule summary and places time-zone and one-shot runtime details inline with the schedule controls.

Example: Edit an automation that runs every 30 minutes.

  • Before: The tray shows “Every 30 Minutes” followed by “Runs every 30 minutes.”
  • After: The tray shows “Every 30 Minutes” once, with a narrower interval field.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Clear visual proof and a focused implementation, with a confirmed diff-caused asset-budget failure remaining.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected production Control UI screenshots with synthetic Gateway data show the automation editor before and after: the duplicate interval sentence disappears, the number field tightens, and model controls remain beside it.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: The schedule tray repeats information and leaves excessive space between the interval number and its unit.
Reason: The maintainer-authored direction supplies the owner decision, and the screenshots show a clearer tray without adding configuration or changing scheduling behavior.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-directed polish is visually demonstrated, but its additional CSS causes the required performance check to fail.

Priority: P3
Reviewed head: 9b89849b3d21c80df51645f82d69331c7ce2d59c

Before merge

  • Consolidate the tray CSS to pass the paired asset budget (P2) - The exact-head control-ui-performance job fails on this stylesheet growth: paired total CSS rises by 903 raw bytes and 118 gzip bytes. Because the base already exceeds the fixed ceilings, the checker allows only 64 bytes of additional growth, so this PR introduces a new budget violation and keeps openclaw/ci-gate red. Consolidate the added tray declarations or offset their cost within the affected styles while preserving the demonstrated layout; the recorded exceptions for the preceding redesign and sentence-editor PRs do not cover this additional delta.

Findings

  • [P2] Consolidate the tray CSS to pass the paired asset budget — ui/src/styles/cron.css:371-377
Agent review details

How this fits together

The Control UI automation editor renders schedule form values and saved runtime facts into controls and explanatory text; the existing form owner continues to build Gateway updates.

flowchart LR
  A[Saved automation] --> B[Existing form owner]
  B --> C[Schedule controls]
  A --> D[Runtime status presenter]
  D --> E[Inline schedule note]
  C --> F[Automation editor tray]
  E --> F
Loading

Technical review

Best possible solution:

Keep the single schedule sentence and necessary inline facts while consolidating tray styles enough to pass the existing paired CSS budget.

Do we have a high-confidence way to reproduce the issue?

Current main renders both the sentence controls and their summary, and the supplied before screenshot demonstrates the repetition; no target code was executed during this review.

Is this the best way to solve the issue?

Removing the duplicate formatter and reusing the existing runtime presenter is the smallest coherent approach; the added layout declarations still need consolidation to satisfy the enforced asset budget.

Full review comments:

  • [P2] Consolidate the tray CSS to pass the paired asset budget — ui/src/styles/cron.css:371-377
    The exact-head control-ui-performance job fails on this stylesheet growth: paired total CSS rises by 903 raw bytes and 118 gzip bytes. Because the base already exceeds the fixed ceilings, the checker allows only 64 bytes of additional growth, so this PR introduces a new budget violation and keeps openclaw/ci-gate red. Consolidate the added tray declarations or offset their cost within the affected styles while preserving the demonstrated layout; the recorded exceptions for the preceding redesign and sentence-editor PRs do not cover this additional delta.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f7c680434384.

Provenance checked

  • Schedule sentence and repeated summary changes intended behavior with a stated reason (14b9fc3: The earlier feature made ordinary schedules editable as sentences and moved Time zone into Advanced; this PR explicitly removes the now-redundant summary and restores time-zone visibility inline.)
  • Saved one-shot runtime facts keeps the original intent (0b1cd5f: Configured occurrence and effective execution are distinct facts after rearming; the patch preserves that distinction and hides only a redundant displayed next time.)
  • Tray layout changes intended behavior with a stated reason (dce9dd1: The redesign placed schedule and model controls beneath the prompt; this PR explains its tighter spacing, first-line alignment, and phone rows.)
  • Lazy English schedule copy keeps the original intent (84c8dae: The registrar keeps automation copy out of unrelated startup paths; deleting unused summary strings preserves that loading boundary.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm ui:check-performance:base 2027261
  • pnpm lint:ui:styles
  • pnpm test:ui:e2e ui/src/e2e/cron-one-shot-next-run.e2e.test.ts ui/src/e2e/cron-select-values.e2e.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 14b9fc3 adds ui/src/pages/cron/view-schedule.tsx:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 14b9fc3c8d94; files: ui/src/pages/cron/view-schedule.tsx)

PR surface

Source +36, Tests +16. Total +52 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 133 97 +36
Tests 4 29 13 +16
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 162 110 +52

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is low-risk automation-editor spacing and repetition polish; the failing asset check does not establish an urgent user-facing regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is low-risk automation-editor spacing and repetition polish; the failing asset check does not establish an urgent user-facing regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 18, 2026, 8:30 AM ET / 13:30 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 46ecb80 into main Nov 18, 2026
88 of 91 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/automations-composer-tray branch November 18, 2026 13:48
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…ary (openclaw#201214)

Keep the automation schedule inline and remove its duplicated summary without changing scheduling or saved fields.

Maintainer-approved exception: generated CSS size only. Other required checks and security review were verified on the reviewed head.
CI: https://github.com/openclaw/openclaw/actions/runs/44315517116

Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants