Skip to content

fix(ui): align configured trigger status with Advanced heading - #126784

Merged
clawsweeper merged 1 commit into
mainfrom
openclaw/the-misaligned-trigger-configured-and-advanced-absolutely-kills
Aug 21, 2026
Merged

clawsweeper merged 1 commit into
mainfrom
openclaw/the-misaligned-trigger-configured-and-advanced-absolutely-kills

Conversation

@clawsweeper

Copy link
Copy Markdown
Contributor

Related: #126534

What Problem This Solves

Fixes an issue where users opening an automation with a configured condition trigger would see the “Trigger configured” status sit above the “Advanced” heading’s visual centerline.

Why This Change Was Made

The configured-trigger status is an inline-flex element whose default baseline follows its SVG content. Vertically centering that existing inline status repairs the owning CSS geometry without changing the disclosure layout or adding new UI chrome. A real-Chromium layout regression now protects the rendered centerline.

Provenance: the configured-trigger summary was added in #126534. The blamed code was authored by @roboclaw-bot; the PR was authored and squash-merged by @clawsweeper on August 20, 2026. @Takhoffman was a co-author. No separate automerge trigger was present in the PR timeline.

Production LOC: +1/-0 (net +1) | Tests: +64/-0

User Impact

The configured-trigger indicator now aligns cleanly with the Advanced heading. Automation behavior, trigger execution, and editor interaction are unchanged.

Evidence

Before

Configured trigger status above the Advanced heading centerline

After

Configured trigger status centered with the Advanced heading

  • Pre-fix Chromium regression: failed with 2.492 px of vertical centerline drift.
  • pnpm --dir ui test --project browser src/pages/cron/view.browser.test.ts — 1 test passed after the fix (1.086 px drift, within the 1.25 px subpixel tolerance).
  • node scripts/check-changed.mjs -- ui/src/styles/cron.css ui/src/pages/cron/view.browser.test.ts — passed all selected guards, core-test/UI typechecks, formatting, and lint lanes.
  • Targeted Stylelint — passed.
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main — clean; no accepted/actionable findings.
  • Before/after captures use the deterministic Control UI mock, Chromium at 1440×900, the same configured-trigger state, and commit d0ff7b311a8f8a1ab46f09720c8483e382d3f08b.

AI assistance

  • AI-assisted implementation
  • Reviewed and understood the code and behavior
  • Ran repository autoreview and addressed all actionable findings

Vertically center the configured trigger label with the Advanced heading and cover the rendered geometry in Chromium.

Co-authored-by: Tak Hoffman <[email protected]>
@clawsweeper

clawsweeper Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper
clawsweeper marked this pull request as ready for review August 20, 2026 18:24
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 20, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 20, 2026
@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 3:54 PM ET / 19:54 UTC.

ClawSweeper review

What this changes

The PR vertically centers the configured automation-trigger status beside the Advanced heading and adds a Chromium layout regression test.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for normal maintainer merge judgment. The focused CSS correction matches the actual Advanced-summary render path, has a credible Chromium layout regression, and introduces no blocking correctness finding.

Priority: P3
Reviewed head: d0ff7b311a8f8a1ab46f09720c8483e382d3f08b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-local fix with a meaningful Chromium geometry regression and no supported correctness concern.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nevertheless includes before/after captures and a Chromium test result.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nevertheless includes before/after captures and a Chromium test result.
Evidence reviewed 6 items Current render path: Current main renders the configured-trigger span inside the Advanced summary only when the form's trigger is enabled.
Owner-local correction: The branch adds vertical alignment directly to the inline-flex status owner; current main has the same rule without that declaration.
Existing behavior coverage: The existing cron view test already verifies that a configured trigger renders the summary; the new test adds the missing rendered-geometry assertion.
Findings None None.
Security None None.

Live Verification

Command: pnpm --dir ui test --project browser src/pages/cron/view.browser.test.ts

Result: FAIL (failed) — execution before step 1 run: live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

Assertions:

  • FAIL expect_output: 1 passed

How this fits together

The Control UI renders automation settings from cron job state. Its Advanced summary shows a configured condition trigger before the user opens the trigger editor.

flowchart LR
  A[Automation job state] --> B[Control UI cron page]
  B --> C[Advanced summary]
  C --> D[Configured trigger status]
  C --> E[Trigger editor]
Loading

Decision needed

Question Recommendation
Should the protected maintainer-labelled PR be merged after a maintainer confirms exact-head checks remain green? Merge the focused UI correction: Accept the owner-local CSS rule and Chromium regression once the exact branch head remains green.

Why: The patch is technically sound, but the maintainer label and member-authored-item guard reserve the final merge decision for a human.

Before merge

  • Resolve merge risk (P1) - Production grows by one CSS declaration; it should remain the narrowly scoped owner-local baseline fix rather than grow into a broader summary-layout change.
Agent review details

Security

None.

PR surface

Source +1, Tests +64. Total +65 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 64 0 +64
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 65 0 +65

Review metrics

Metric Value Why it matters
Production versus test LOC production +1, tests +64 The sole production addition is the owner-local alignment declaration; the browser test supplies the regression coverage.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the single vertical-align: middle declaration on the configured-trigger summary and retain the Chromium centerline regression without changing automation behavior or the disclosure layout.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the single vertical-align: middle declaration on the configured-trigger summary and retain the Chromium centerline regression without changing automation behavior or the disclosure layout.

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

Yes — source inspection identifies the configured-trigger span and its missing baseline rule, while the branch supplies a Chromium test that measures the resulting centerline drift.

Is this the best way to solve the issue?

Yes — applying vertical alignment to the inline-flex status at its CSS owner is narrower and more maintainable than altering the Advanced disclosure or its surrounding layout.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ba4ff7a1e9d4.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: This corrects a localized Control UI alignment defect without changing automation execution or configuration.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nevertheless includes before/after captures and a Chromium test result.

Evidence

What I checked:

  • Current render path: Current main renders the configured-trigger span inside the Advanced summary only when the form's trigger is enabled. (ui/src/pages/cron/view.ts:1599, ba4ff7a1e9d4)
  • Owner-local correction: The branch adds vertical alignment directly to the inline-flex status owner; current main has the same rule without that declaration. (ui/src/styles/cron.css:725, d0ff7b311a8f)
  • Existing behavior coverage: The existing cron view test already verifies that a configured trigger renders the summary; the new test adds the missing rendered-geometry assertion. (ui/src/pages/cron/view.test.ts:690, ba4ff7a1e9d4)
  • Browser-test contract: The UI browser project runs matching .browser.test.ts files in headless Chromium through the configured Playwright provider. (ui/vitest.config.ts:220, ba4ff7a1e9d4)
  • Feature history: Blame ties the current configured-trigger summary rule to the recent Control UI history at this exact location. (ui/src/styles/cron.css:717, ccabd532354e)
  • Release comparison: No local release tag contains the unmerged branch tip, so this correction is not part of a shipped release. (d0ff7b311a8f)

Likely related people:

  • Peter Steinberger: Current-main blame attributes the configured-trigger summary styling to this recent commit. (role: recent area contributor; confidence: medium; commits: ccabd532354e; files: ui/src/styles/cron.css)
  • clawsweeper: The related merged feature PR introduced the configurable-trigger Control UI surface that this correction refines. (role: merged feature author; confidence: medium; commits: 267ffc4754a0; files: ui/src/pages/cron/view.ts, ui/src/styles/cron.css)
  • Takhoffman: The related feature context identifies this contributor as co-author, and the current branch also carries their co-author trailer. (role: merged feature co-author; confidence: medium; commits: 267ffc4754a0, d0ff7b311a8f; files: ui/src/pages/cron/view.ts, ui/src/styles/cron.css)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-20T18:32:19.965Z sha d0ff7b3 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 20, 2026
@clawsweeper
clawsweeper merged commit 9050d9b into main Aug 21, 2026
155 checks passed
@clawsweeper

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper
clawsweeper deleted the openclaw/the-misaligned-trigger-configured-and-advanced-absolutely-kills branch August 21, 2026 13:23
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 22, 2026
Vertically center the configured trigger label with the Advanced heading and cover the rendered geometry in Chromium.

Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: Tak Hoffman <[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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants