Repository navigation
improve(ui): compact Automations job cards at phone width - #190382
Conversation
|
🦞👀 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 changes before merge. What this changesThis PR compacts phone-width Automations cards and rearranges their toolbar while retaining access to job actions and details. Example: View six automations on a 390px-wide phone.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-authored PR provides useful phone-width improvements, but the duplicated media-query listener and attributable CSS budget failure need repair. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI presents Gateway-owned automation jobs through the Cron page, list renderer, shared status presentation, and responsive styles; existing callbacks continue to own navigation and mutations. flowchart LR
A[Gateway job inventory] --> B[Cron page owner]
B --> C[Cron page presentation]
D[Browser viewport] --> C
C --> E[Toolbar and job rows]
F[Responsive Cron styles] --> E
E --> G[Existing job actions and detail view]
Technical reviewBest possible solution: Keep the compact design, replace the local viewport subscription with createMediaQuery, and consolidate the responsive CSS until its existing performance gate passes. Do we have a high-confidence way to reproduce the issue? The original responsive CSS and supplied before screenshot establish the tall-card and unlabeled-create presentation; no target code was executed during this review. Is this the best way to solve the issue? The presentation approach fits the existing owners, but its viewport lifecycle should use the shared primitive and its stylesheet must satisfy the existing growth limit. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 49600b5cf8f3. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +180, Tests +35. Total +215 across 6 files. Added test files: 0. View PR surface stats
LabelsLabel 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 Reviewed November 1, 2026, 9:50 AM ET / 14:50 UTC. |
…90382) Compact phone Automations job cards while preserving scope selection, creation permissions, schedules, run actions, focus and failure visibility. Retain complete schedule text checks and verify the phone creation action. Twelve targeted view tests, typed lint and test typechecking passed. Maintainer-authorized landing with the performance-budget exception and without waiting for remaining checks.
What Problem This Solves
At phone width each Automations job takes about 220px: a label column ("Schedule:", "Next run:", "Last run:") eats the card, values wrap, and the actions sit on their own indented row. New automation loses its label and renders as a second terracotta
+, next to the header's new-session+, with a different meaning.User Impact
On a 390px phone, jobs per screen go from about 1.5 to about 6, and New automation is readable. Desktop and widths above 560px don't change.
...on the first line; schedule, next and last result on one line under it, with no labels.Why This Change Was Made
The card keeps the facts people scan for and leaves the rest to the detail view, one tap away. Every action stays reachable. A job with no finished run omits the last-result slot, because a bare "n/a" means nothing without its label.
Evidence
Mock gateway data at 390px, real clicks. These images show today's top bar until the header PR lands.
Real Safari 27 on macOS, in a 390px window, list and row menu after a real mouse click:
The ring on "Run if due" is the shared menu's existing focus treatment: opening the menu focuses its first item, and both Safari and Chromium show the ring after a pointer click. This PR doesn't change it.
Checks on this branch:
tsgo:uiandcheck-control-ui-controllerspass.view.browser.test.tsunder the UI browser config: passes.cron-descriptions,cron-search,cron-run-filter-typography,cron-run-feedbackandcron-run-completione2e suites pass on this head;cron-removeandcron-filterspassed on the previous CSS pass.src/pages/cron/unit tests: 188 of 189 pass. The one failure,retires directory failures on delete (published=false)incron-page.delivery-conversations.test.ts, fails the same way on main without this change.ui:check-performance:basefails only on total CSS, which is already over its ceiling on main: +369 B gzip and +1837 B raw from this change.