fix(ui): hide differentials compare dock on scroll down - #930
Conversation
Re-enable phone bottom-composer scroll-hide when the compare addon is present, keep Compare selected in-flow with the dock, and update the UI regression to assert hide/reveal instead of a pinned dock.
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughThe mobile differentials compare control now renders within the phone composer dock, hides and reveals with the dock during scroll, receives additional hidden-position clearance, and has expanded geometry and tappability coverage. ChangesMobile compare dock behavior
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Add a small extra translate for the differentials compare addon dock and poll until Compare is off-screen so the hide transition does not leave a viewport-edge peep in UI coverage.
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
@coderabbitai review |
Summary
On differentials search results, the phone bottom search dock was intentionally pinned whenever the Compare selected addon was present, which blocked the usual scroll-down hide behaviour.
This restores hide/reveal for the whole bottom chrome cluster (search pill + Compare selected / Tick results bar) on phone widths, keeps Compare in-flow inside the dock so it travels with the hide animation, and updates the UI regression accordingly.
Changes
bottomComposerScrollHiddenActive/shouldHideBottomOnScrollwhen the compare addon slot is active.differentials-mobile-compare-fabfrom viewport-fixed to in-dock relative layoutVerification
npm run verify:ui— 240/240 Chromium tests passed (includes differentials compare dock hide + forms dock hide regression)npm run verify:pr-local— format, lint, typecheck, and CI Build / Unit coverage / Production UI passed; local unit suite only blocked by container-onlypdf-extraction-budget(pythonENOENT)npm run verify:cheap— lint/typecheck passed; same container-only PDF budget failures as aboveRisk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
/home/ubuntu/wt-compare-bar-scroll-hideoncursor/compare-bar-scroll-hide-6f94Summary by CodeRabbit
Bug Fixes
Tests