Repository navigation
[scroll area] Fix remount thumb size - #4107
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
85c9a40 to
9add0c8
Compare
ae4da4c to
638e76e
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
To use Codex here, create a Codex account and connect to github. |
Codex ReviewOverviewThis PR stabilizes Findings1. 🟡 [Non-blocking] Mount-time CPU is still slower than latest
|
| Ref | Runs | Mean (ms) | p50 (ms) | p95 (ms) | Sample size |
|---|---|---|---|---|---|
upstream/master (205a9a05a) |
1-5 (interleaved) | 477.42 | 473.90 | 491.80 | 5 |
PR head (691d8d27a) |
1-5 (interleaved) | 521.92 | 521.20 | 534.50 | 5 |
| Delta (head vs master) | - | +44.50 (+9.32%) | +47.30 | +42.70 | - |
Recommendation: Keep trimming mount initialization transitions in the source path (for example, avoid separate phase updates where equivalent state can be derived in the same compute cycle), then rerun the same interleaved Chromium table against latest master.
2. ℹ️ [Informational] Simplification direction is correct, but readiness state still spans multiple components
Impact: The recent consolidation reduced duplicate observer/mount work, but readiness/visibility policy still depends on cross-component coordination, which makes future perf tuning and bundle-size tradeoffs harder to reason about.
Evidence: Readiness is produced in packages/react/src/scroll-area/viewport/ScrollAreaViewport.tsx, then consumed for visibility in packages/react/src/scroll-area/scrollbar/ScrollAreaScrollbar.tsx and packages/react/src/scroll-area/thumb/ScrollAreaThumb.tsx.
Recommendation: Keep the simplified single initialization path and continue minimizing cross-component readiness plumbing so mount-time behavior stays easier to optimize without adding new abstraction weight.
No blocking issues found in this patch.
Confidence: 4/5
High confidence based on a full-branch pass, targeted Scroll Area validation in Chromium/JSDOM, and refreshed interleaved Chromium perf sampling against latest upstream/master.
Notes
- Verified test coverage remains green after the consolidation (
pnpm test:chromium ScrollArea --no-watch,pnpm test:jsdom ScrollArea --no-watch).
17d63f5 to
942e0e6
Compare
56c6264 to
0b609ef
Compare
Fixes #4103
Fixes #3829
Preview: https://deploy-preview-4107--base-ui.netlify.app/experiments/scroll-area/tabs-scroll-area
For inset scrollbars, they are hidden (unless
keepMountedis specified) before hydration.This PR SSR: https://deploy-preview-4107--base-ui.netlify.app/experiments/scroll-area/scroll-area-inset
Master SSR: https://master--base-ui.netlify.app/experiments/scroll-area/scroll-area-inset