Improve Search Result Side Panel to fix various bugs#1587
Improve Search Result Side Panel to fix various bugs#1587kodiakhq[bot] merged 3 commits intomainfrom
Conversation
1. Ensures that multiple scrollbars are not shown for nested panels (click row -> surrounding context -> repeat a few times) 2. In the same state as above, closing the panel (clicking outside) then clicking another row caused the subpanel to re-open, this isn't ideal (should open to root drawer) 3. fix issue with drawers where you can scroll, then open a nested drawer, the nested drawer would appear incorrectly Fixes HDX-3171
🦋 Changeset detectedLatest commit: 4fadb07 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| <Drawer | ||
| opened={rowId != null} | ||
| withCloseButton={false} | ||
| withinPortal={!isNestedPanel} |
There was a problem hiding this comment.
Originally added in #1290 when we didn't sue mantine drawer, not needed anymore.
| opened={rowId != null} | ||
| withCloseButton={false} | ||
| withinPortal={!isNestedPanel} | ||
| withOverlay={!isNestedPanel} |
There was a problem hiding this comment.
This helps prevent some issues flagged originally in #1393, ensuring clicking outside closes all modals and that there isn't multiple stacking overlays (causing outside to get darker each sub-modal)
Code Review✅ No critical issues found. The changes look good overall. The PR addresses nested drawer scrollbar issues and state management correctly:
Minor consideration: |
E2E Test Results❌ 52 tests failed • 9 passed • 3 skipped • 1717s
Tests ran across 4 shards in parallel. |
1. Ensures that multiple scrollbars are not shown for nested panels (click row -> surrounding context -> repeat a few times) <img width="1402" height="876" alt="scrollbars" src="https://github.com/user-attachments/assets/f41c99e5-5fcb-47fa-9c40-243dbd926291" /> 2. In the same state as above, closing the panel (clicking outside) then clicking another row caused the subpanel to re-open, this isn't ideal (should open to root drawer) 3. fix issue with drawers where you can scroll, then open a nested drawer, the nested drawer would appear incorrectly <img width="910" height="878" alt="Screenshot 2026-01-09 at 5 10 29 PM" src="https://github.com/user-attachments/assets/fd1fbc0c-4453-46fb-b310-2323ec2792e2" /> Fixes HDX-3171
Fixes HDX-3171