Repository navigation
fix(ui): keep automation actions at the bottom edge - #172176
Conversation
The Automations editor leaves scrolling fields visible beneath its sticky Create, Save, and Cancel actions. Users see a detached action bar, and the end of the form retains a second empty band below it. Let the action bar own bottom spacing while it is present, preserving the existing keyboard clearance and root-owned safe areas. Ordinary page spacing returns when the editor actions disappear. Closes openclaw#172174.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes inherited bottom spacing while automation editor actions are visible and moves those actions below job scratch. Example: Open New automation at 390×844 and scroll through Advanced settings.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for landing: it fixes a demonstrated layout defect that remains on main, preserves existing interaction contracts, and has no actionable findings; current-head CI is still running. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI automation editor renders job settings and actions inside the shell scrollport; the existing shell layout owner publishes layout traits, while a separate clearance owner keeps keyboard-focused fields visible. flowchart TD
A[Automation detail view] --> B[Editor and job scratch]
B --> C[Shell layout boundary]
C --> D[Shell layout owner]
D --> E[Scoped bottom padding]
B --> F[Sticky action bar]
F --> G[Keyboard clearance owner]
Technical reviewBest possible solution: Land the focused layout repair through the existing shell and keyboard-clearance owners once required current-head checks pass. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the inherited-padding and containing-block mechanisms, while inspected supplied screenshots and collaborator browser measurements corroborate them; this review ran no target code. Is this the best way to solve the issue? The patch is the smallest complete repair: scope the two lower insets through the existing layout owner and place the single action block after scratch while retaining keyboard clearance and root safe areas. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against faeacc706b48. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +12, Tests +13, Docs +4. Total +29 across 5 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 23, 2026, 3:11 AM ET / 07:11 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Runtime proof for 685794f: two built-main and two built-candidate runs at 1440×900 and 390×844, covering New/Edit at mid-scroll and scroll end. Candidate action-bar gap is 0px (one fractional mobile measurement 0.234px); main mid-scroll gaps are 32px/16px. Keyboard, wrapped actions, Cancel spacing restoration and normal Save controls passed on both candidate runs; disabled jobs stayed disabled with no model execution. The existing cron-select-values E2E suite passed all 6 tests. Inspected before/after screenshots are embedded above; all four uploaded URLs load successfully. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged current main (including #181386) into d2392ba, rebuilt and packed the candidate once, and reran the shipped Gateway/browser footer proof. Desktop 1440×900 New/Edit gaps: 0px at mid-scroll and end. Mobile 390×844 New: 0px mid-scroll / 0.234375px end; Edit: 0px at both positions. Keyboard, wrapping, Cancel spacing restoration, normal Save, disabled-job and no-model-execution controls passed again. This is a merge-only refresh of the same five-file fix. |
|
Landed in 12c5d20. Thanks @brandon-julio-t. The Automations editor's action bar now sits flush at the bottom. |
fix(ui): pin the Automations editor action bar to the bottom of the scroll area In the Automations editor, the sticky Create/Save/Cancel bar floated above the bottom of the scroll area, leaving form content visible under it, because the bottom insets inherited from the shell and settings layouts stayed applied. The editor now clears those insets, so the bar sits on the bottom edge on desktop and mobile while keeping its keyboard clearance. Evidence: built Gateway serving its own built Control UI, Playwright at desktop and mobile widths. On main the bar left a visible gap with content showing beneath it (twice); with this change the gap is 0 px on desktop and 0 to 0.23 px on mobile (twice, and again after merging current main). New and Edit, mid-scroll and end, keyboard clearance, wrapping, Cancel and Save all work. Before/after screenshots are in the PR. Production +12. Thanks @brandon-julio-t. Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #172174.
What Problem This Solves
The Automations editor's Create/Save/Cancel bar floats above a visible strip of form content. At scroll end the edit form's job scratch section can also sit below the actions.
Why This Change Was Made
The sticky bar inherited bottom padding from both the scrollport and the settings page, and its fieldset ended before job scratch. Publish the action bar's presence through the existing shell layout owner, remove those two lower insets only while the editor has actions, and place the actions after job scratch. Keep the existing keyboard-clearance owner and button wrapping; no new observer or local state.
User Impact
Actions meet the scrollport's bottom edge on desktop and narrow screens. Closing the editor restores ordinary page spacing. No configuration, SDK, or migration changes.
Evidence
Built and packed main and candidate artifacts in secretless Docker; exercised their shipped Gateway and browser UI. Created a disabled job through Gateway RPC, opened New and Edit, expanded Advanced, and measured the action bar at mid-scroll and scroll end at 1440×900 and 390×844.
Desktop: before / after
Mobile: before / after
Simplification: retained one shell layout owner and one keyboard-clearance owner; moved the existing action block rather than duplicate it. Production delta is +55/-43 lines (net +12, mostly the existing boundary import and targeted CSS); test delta is +14/-1. The growth scopes padding to the action bar's actual lifecycle and covers both scroll positions.
Merge danger: two-way door; reverting restores the previous layout and writes no migrated state. Blast radius is the Control UI automation editor's action placement and scroll clearance.