Repository navigation
improve(ui): defer offscreen plugin row rendering - #125585
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 12:28 AM ET / 04:28 UTC. ClawSweeper reviewWhat this changesThe PR adds browser containment to plugin catalog rows so offscreen rows defer rendering while retaining a 73-pixel fallback height for scrolling. Merge readinessNo blocking patch defects found. This maintainer-authored Control UI performance PR should remain open for routine exact-head CI and maintainer review. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI receives the installed plugin catalog from the Gateway and renders it as searchable, actionable settings rows. The change affects browser layout and paint work for large catalogs without altering catalog data or plugin mutations. flowchart LR
A[Gateway plugin catalog] --> B[Control UI page controller]
B --> C[Plugin list view]
C --> D[Settings rows]
D --> E[Offscreen row containment]
E --> F[Search, actions, and details]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +2. Total +2 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep containment at the shared plugin-row boundary and land it after the exact-head checks complete green. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a performance improvement, and the PR body provides a concrete Chromium benchmark plus catalog interaction checks rather than a reported defect reproduction. Is this the best way to solve the issue? Yes. Applying containment at the existing plugin-row selector preserves the page controller, catalog data, search, actions, and detail flow while targeting the repeated browser work directly. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9de3ca5fc93d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
3ff773e to
a92f212
Compare
|
Rebased onto current @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
a92f212 to
6145b25
Compare
|
Final exact-head update: rebased onto latest @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
content-visibility: autoPerformance
Matched production Chromium benchmark on current
main(916aca13f34), using 1,000 realistic installed plugin records (251,611-byte Gateway payload), seven fresh browser contexts per variant, and a cold direct navigation to/settings/plugins:The benchmark also searched to one exact result, restored the full catalog, scrolled to plugin 1,000, and opened its detail view successfully in both variants.
Scaling checks on the same builds were intentionally more modest: at 250 plugins, ready changed 581.9 → 571.7 ms while startup long-task time fell 122 → 59 ms; at 100 plugins, ready changed 534.0 → 520.1 ms and long-task time was neutral at 50 → 52 ms. This PR claims the large-catalog improvement, not a latency win for ordinary small catalogs.
Validation
pnpm --dir ui exec vitest run --config vitest.config.ts src/pages/plugins/view.test.ts src/pages/plugins/plugins-page.test.ts src/pages/plugins/plugins-page.routing.test.ts src/pages/plugins/route-data.test.ts— 70/70 passedpnpm ui:build— passed, including Control UI bundle/performance budgetspnpm exec stylelint --config config/stylelint.config.mjs ui/src/styles/plugins.css— passed