Skip to content

refactor(ui): replace cron Web Awesome menus - #170917

Merged
steipete merged 1 commit into
mainfrom
solid2/w-wa-exit-cron-menus
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-wa-exit-cron-menus

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Related: #170580

What Problem This Solves

Automations still uses Web Awesome for job actions and run-history filter and sort menus, leaving those controls outside the shared native menu system.

User Impact

The existing actions, labels, permission checks, checked filters, and keep-open selection behavior stay the same. No configuration or migration is required.

Why This Change Was Made

Use the shared Menu for these remaining Automations menus, move their popup styling to owned selectors, and remove the unused Web Awesome imports. Existing tests now open real triggers and wait for queued menu actions. Domain owners and the lazy Cron entry point stay unchanged.

Evidence

Check Result
Final managed Codex review Passed; no actionable P0–P2 findings; 367.55 s
pnpm test ui/src/pages/cron/view-description.test.ts --maxWorkers=1 5 passed; 37.34 s wall
pnpm test ui/src/pages/cron/view-run-history.test.ts --maxWorkers=1 11 passed; 29.36 s wall
pnpm test ui/src/pages/cron/cron-page.test.ts --maxWorkers=1 28 passed; 55.95 s wall
pnpm tsgo:ui Passed; 28.18 s
Targeted lint / style / format Passed; 76.60 / 7.68 / 1.12 s
Paired pnpm ui:build Base d0554f4a2507: 52.62 s; head f3211acc433d: 39.01 s; both passed on Node 26.11.1 and the same frozen lockfile
Strict paired startup budget Passed; raw JS 1,043,670 → 1,043,670 B; gzip 343,629 → 343,609 B (−20 B); 8 JS / 1 CSS requests; CSS gzip 49,246 B unchanged
Synthetic Chromium captures Desktop light job menu and 640 px dark run filter with Error checked; both sides inspected; no page errors
Full exact-head CI Run 38379450914 passed on f3211acc433d; 1,197 s workflow elapsed, 15,329 summed job-seconds; no local E2E suite

The first local runs exposed test migration errors: immediate assertions ran before queued menu events, and one remove scenario clicked a closed menu. The existing tests were corrected to use the public open state and observable action results; the final runs above pass. No production behavior change was added to accommodate the tests.

Production LOC across the four changed files: 1,829 → 1,805 (−24). No new tests or dependencies.

Before / after

The shared menu uses visible focus treatment, a leading checkmark, and its standard row height. Surface backgrounds, borders, and shadows match the replaced menus in both themes. Captures use a fixed clock and synthetic job/run data.

State Before After
Light desktop job menu Before: job menu After: job menu
Dark narrow checked run filter Before: checked run filter After: checked run filter

Use the shared native Menu for Automations job actions and run-history filters and sorting. Preserve titles, controlled selections, permission checks, and keep-open behavior. Update existing tests to use real triggers and await queued menu actions.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 13, 2026
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T09:56:20.425949Z f3211ac PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit fd9b49f into main Oct 13, 2026
112 of 114 checks passed
@steipete
steipete deleted the solid2/w-wa-exit-cron-menus branch October 13, 2026 10:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
Use the shared native Menu for Automations job actions and run-history filters and sorting. Preserve titles, controlled selections, permission checks, and keep-open behavior. Update existing tests to use real triggers and await queued menu actions.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant