Repository navigation
improve(ui): speed up searches in expanded automation lists - #159901
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: blocked before merge. Reviewed September 27, 2026, 7:06 PM ET / 23:06 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch scopes video and New Session loading styles to component-set classes, adds a bundled-browser Automations search regression, and makes a chat-history test fixture consistent across reads. Merge readiness⛔ Blocked before merge - 2 items remain Current main still has the broad loading selectors, so this PR remains useful beyond the related merged work. Source review found no blocking patch defect; the contributor and prior review reserve landing for Vyctor’s human review. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sends Automations search requests to the Gateway while keeping existing rows visible during loading. Shared styles determine which elements the browser recalculates when that list becomes busy. flowchart LR
A[Search input] --> B[Automation list request]
B --> C[Busy retained table]
C --> D[Shared UI styles]
E[Video and composer loading] --> F[Local loading classes]
F --> D
D --> G[Browser frame]
Decision needed
Why: The contributor requested Vyctor’s human review, and the prior completed review retained that hold; source and browser evidence cannot grant that sign-off. Before merge
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +97. Total +96 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep component loading classes as styling hooks and aria-busy as the accessibility signal, with the bundled-CSS regression guarding searches of retained automation lists. Do we have a high-confidence way to reproduce the issue? Yes. The bundled-browser regression exercises a retained 100-row list during a deferred search, and the PR reports that it fails against main’s production files; this reviewer did not rerun it. Is this the best way to solve the issue? Yes. The component-owned classes preserve the existing busy semantics and CSS specificity while removing the broad selectors responsible for unrelated restyling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b5b8a3318a2f. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
b270fa8 to
f1f3211
Compare
Keep video and New Session loading paint on equivalent owner-authored classes so marking the retained Cron inventory busy does not restyle unrelated SVGs. Preserve appearance, ARIA state, pagination and actions. Retain the people-menu fix already merged in 23e8398 unchanged. Co-authored-by: vyctorbrzezowski <[email protected]>
f1f3211 to
560eb3b
Compare
|
@clawsweeper re-review Review only; do not autofix, merge, or enable auto-merge. Final candidate: The performance regression now lives at the bundled CSS boundary: it fails with current-main production files at319 restyled elements for100 retained rows, passes with the candidate. Source-only cold-route coverage was rejected because it does not load the cross-page styles. All29 focused E2E tests pass on the final candidate, plus326 focused tests and a clean final independent AutoReview. Updated evidence and inspected video/screenshots are in the PR body. Keep unmerged for Vyctor’s human review. |
|
🦞👀 Re-review progress:
|
Give the mixed-history E2E one canonical transcript per session for both background history and foreground startup. Preserve every visibility and scrolling assertion while removing contradictory mock responses. Co-authored-by: vyctorbrzezowski <[email protected]>
|
@clawsweeper re-review The earlier keep-open hold is superseded: Vyctor (@vyctorbrzezowski) has now explicitly authorized fixing CI and landing this PR in the implementation and verification session. I am carrying out that direct request through the native guarded landing workflow, not inferring approval from test results or a bot score. Loading-state parity is preserved and documented in the existing source, browser proof, and focused tests. Exact head: Review-only refresh to retire the obsolete hold; do not start a separate autofix or merge actor. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…#159901) Keep loading paint scoped to its video and New Session owners so searching an expanded Automations list does less unrelated style work, without changing appearance, accessible busy states, content, focus, or pagination. Use one canonical transcript per session for background history and startup in the mixed-history regression, retaining every visibility and scrolling assertion. Co-authored-by: vyctorbrzezowski <[email protected]>
Related: #159806
What Problem This Solves
The first search after expanding an Automations list spends unnecessary time restyling every retained icon while results load.
User Impact
Searching an expanded automation inventory does less main-thread work without changing its layout, content, controls, accessibility, focus, or pagination. No new caching, debounce, or row limit.
Why This Change Was Made
Two loading rules restyle unrelated SVGs whenever a region changes
aria-busy. The video and New Session owners now expose equivalent styling classes; CSS declarations, specificity, and accessible busy attributes remain unchanged.Main merged the overlapping people-menu correction during validation. This PR was rebased on
da2bcd699bc11789ef35b43f61b2e27dc0c03861, keeps that canonical fix unchanged, and contains only the remaining SVG-loading correction plus its regression and focused test consolidation. The measurements and video below were refreshed against that newer main.Reported and requested by @vyctorbrzezowski.
Work sessions
Evidence
Actual Control UI, canonical synthetic mock Gateway, production bundles from the rebased main and candidate. Three interleaved passes per condition; 1440×900, Chromium, dark theme, reduced motion, no CPU throttling. Requests were held to separate retained-list loading from response replacement.
At 250 jobs, the loading commit recalculates style for 1,020 → 20 elements. Response-driven replacement remains essentially unchanged: 34.2 → 32.5 ms, with overlapping ranges. No ≥50 ms task occurred in either final confirmation window. These callbacks are not exact paint, INP, or a device SLA. The 14-second normal-speed video shows the actual unchanged UI; its captions identify the separately measured loading phase.
chat.historyread for Session B received Session A’s placeholder, whilechat.startupreturned B’s 70 messages. This also reproduced with main’s production files. In a paired 79-file shard, the original fixture failed and the consistent per-session fixture passed with identical assertions. The correction uses the existing canonical transcript map for both reads—no production scroll change, wait, retry, or relaxed assertion. The final two-file replay passes all 7 tests (27.92 s; repaired history case 1.389 s), including the Cron performance regression.No live account data or Gateway configuration was used. No deployment. Landing is requested through the normal CI and review gates.
cron-search-current-main.mp4