Repository navigation
fix(ui): keep the page anchored when picking an off-screen Add Assets filter option - #30641
Conversation
… filter option react-aria's Checkbox wraps its real input in a `position: absolute` VisuallyHidden span. The QuickFilterDropdown option list was `position: static`, so those inputs resolved their containing block against the Popover root rather than the list. An absolutely positioned box is only clipped by ancestors in its containing-block chain, so the list's `overflow: auto` never clipped them: all 45 stayed laid out across the full list height and extended <html>'s scrollable area from 900px to 1646px. Clicking an option below the fold then focused an input sitting at document y~1645, Chrome scrolled it into view, and the whole app shifted up 746px behind the fixed drawer — with no scrollbar to get back, because SlideoutMenu has already locked <html> overflow via usePreventScroll. Marking the list `relative` makes it the containing block again, so its own clip applies. Containment on the Popover root also works but would silently clip OverlayArrow if `arrow` is ever enabled. Co-Authored-By: Claude <[email protected]>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Address review on #30641. Assert the option list actually overflows before scrolling it, so a sparse environment fails loudly instead of clicking an already-visible option and passing without exercising the focus-scroll regression. Polling also removes a race: the previous version scrolled as soon as the popover was visible, which could land before the options finished loading. Compare page metrics against the drawer's resting state rather than absolute zeroes, so a surface whose page legitimately scrolls is not misread as a containment failure. Verified the delta holds: 900/0 before opening the popover, 900/0 after selecting an off-screen option. Co-Authored-By: Claude <[email protected]>
Revert the addition to runDrawerQuickFilterMatrix. A one-line CSS containment fix does not warrant a step on a matrix shared by three specs, and the step could not be run locally to prove it would behave in CI. The Jest guard in QuickFilterDropdown.test.tsx still fails without the fix, so the regression stays covered. Co-Authored-By: Claude <[email protected]>
✅ Playwright Results — workflow succeededValidated commit ✅ 1026 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 3 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 54m 12s ⏱️ Max setup 3m 10s · max shard execution 16m 50s · max shard-job elapsed before upload 23m 49s · reporting 7s 🌐 187.78 requests/attempt · 2.21 app boots/UI scenario · 7.86% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
|
|
🚦 Removed from the merge queue —
|
Code Review ✅ Approved 1 resolved / 1 findingsAdds relative positioning to the QuickFilterDropdown option container and a regression test to prevent the page from scrolling out of view when selecting off-screen items. No issues found. ✅ 1 resolved✅ Edge Case: Precondition poll fails (not skips) in sparse environments
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
…oring (#30450, #30510, #30622, #30641) (#31022) * fix(ui): drop redundant outer frame card on Domain & Data Product docs (#30450) The Documentation tab on Domain and Data Product detail pages renders the Description as the sole left-panel widget, so the standard left-panel frame card wrapped the Description's own card — a redundant double card with an uneven gap at the bottom. Add an opt-in `flat` variant to GenericTab that drops the left-panel frame (background / border / shadow) and its inner padding, leaving a single Description card flush-aligned with the tabs (left) and the right panel (top). Every other entity type is unchanged because the variant defaults to `default`, so pages whose left panel legitimately holds multiple sections keep their frame. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> (cherry picked from commit 13c18c0) * fix(ui): center domain/data-product list row items & fix DP detail header title width (#30510) * fix(ui): vertically center domain & data product list row items The AI-mode Domain and Data Product list tables rendered their name cells with `<Box align="start">` (align-items: flex-start), pinning the icon + name to the top of the row instead of centering it — most visible when the name wraps to multiple lines. Use `align="center"` on the name/Domains cells so the icon lines up with the middle of the (single- or multi-line) name. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(ui): don't reserve badge space in the DP header when the status badge is empty DataProductsDetailsPage passed `badge={statusBadge}` to EntityHeader. A truthy `badge` applies `w-max-full-200` (max-width: calc(100% - 200px)) to the title column — reserving 200px even when EntityStatusBadge renders nothing (the common `Unprocessed` status), which squeezed the title into a narrow box and forced long names to wrap/break mid-word. The Domain header passes no badge and is unaffected. Move `statusBadge` into `suffix` (next to the LearningIcon): it still renders inline when a status exists, but no longer reserves 200px, so the title uses its natural width. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ci(playwright): give the domain impact-map mapping the Reindex lane The domain/dataProduct mapping selects SearchSeparation `*Domain*` specs (e.g. DomainRenamePrefixCascade.spec.ts) via its `**/*Domain*.spec.ts` glob, but assigned only [chromium, Basic, DomainIsolation]. Those specs are testIgnored from chromium/Basic and only run under the `Reindex` project, so build_playwright_shards.py found no runnable unit and aborted plan-playwright with "matched no runnable tests" on every PR touching Domain/DataProduct UI sources. Add `Reindex` to the mapping's projects so the spec resolves to its real lane and runs. Side-effect is contained: of this mapping's specs, only the SearchSeparation one yields a Reindex unit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> (cherry picked from commit abdf842) * fix(ui): keep GenericTab's widget grid inside its container (#30622) react-grid-layout derives each grid item's `left` and `width` in pixels and rounds the two independently. Their exact values always sum to the container width, but each rounding can add just under half a pixel, so the right edge of the last column can land 1px outside the container. That pixel is the widget card's right border. An ancestor that scrolls turns it into a horizontal scrollbar; one that clips swallows the border outright. On entity detail pages both happen, because the active tab pane scrolls vertically and CSS promotes the cross axis to `auto` once one axis is not `visible`. Give the grid 1px of horizontal containerPadding. That pulls the exact right edge in to `width - 1`, which the rounding -- bounded at 1px, since the two exact edges sum to the width and each rounding adds under half a pixel -- can never exceed. Across widths 600-2400 and every column split that reaches the right edge, the last column escapes the container at 1575 of 1801 widths today and at none of them with this change. For the 6 + 2 split the entity detail pages actually use, it is one width in four. Adjusting `margin` instead does not work: it is the gutter between items and sits inside the sum that equals the container width, so changing it only moves which widths collide (still 175/701 at every integer value from 0 to 24). (cherry picked from commit 0abfc89) * fix(ui): keep the page anchored when picking an off-screen Add Assets filter option (#30641) * fix(ui): keep the page anchored when picking an off-screen Add Assets filter option react-aria's Checkbox wraps its real input in a `position: absolute` VisuallyHidden span. The QuickFilterDropdown option list was `position: static`, so those inputs resolved their containing block against the Popover root rather than the list. An absolutely positioned box is only clipped by ancestors in its containing-block chain, so the list's `overflow: auto` never clipped them: all 45 stayed laid out across the full list height and extended <html>'s scrollable area from 900px to 1646px. Clicking an option below the fold then focused an input sitting at document y~1645, Chrome scrolled it into view, and the whole app shifted up 746px behind the fixed drawer — with no scrollbar to get back, because SlideoutMenu has already locked <html> overflow via usePreventScroll. Marking the list `relative` makes it the containing block again, so its own clip applies. Containment on the Popover root also works but would silently clip OverlayArrow if `arrow` is ever enabled. Co-Authored-By: Claude <[email protected]> * test(ui): tighten the off-screen-option regression guard Address review on #30641. Assert the option list actually overflows before scrolling it, so a sparse environment fails loudly instead of clicking an already-visible option and passing without exercising the focus-scroll regression. Polling also removes a race: the previous version scrolled as soon as the popover was visible, which could land before the options finished loading. Compare page metrics against the drawer's resting state rather than absolute zeroes, so a surface whose page legitimately scrolls is not misread as a containment failure. Verified the delta holds: 900/0 before opening the popover, 900/0 after selecting an off-screen option. Co-Authored-By: Claude <[email protected]> * test(ui): drop the E2E step for the quick-filter containment fix Revert the addition to runDrawerQuickFilterMatrix. A one-line CSS containment fix does not warrant a step on a matrix shared by three specs, and the step could not be run locally to prove it would behave in CI. The Jest guard in QuickFilterDropdown.test.tsx still fails without the fix, so the regression stays covered. Co-Authored-By: Claude <[email protected]> * ci(playwright): run SearchRBAC.spec.ts in its own lane for Explore changes The Explore mapping's `playwright/e2e/Flow/*Search*.spec.ts` glob is meant to pick up GlobalSearch/MetricSearch/MetricListSearch, but it also matches `Flow/SearchRBAC.spec.ts`. That spec is testIgnored by `chromium` and runs only in the dedicated `SearchRBAC` project, which the mapping did not declare — so `selector_matches_unit` found no discovered unit for it and build_playwright_shards.py aborted the whole plan: Playwright selectors matched no runnable tests: playwright/e2e/Flow/SearchRBAC.spec.ts Deterministic, not flaky: any PR touching only `src/components/Explore/**`, `src/pages/Explore/**` or `service/search/**` failed `plan-playwright` (and `playwright-summary` downstream) without running a single test. PRs that also touched Auth were masked, because selectors union their projects across mappings and the Auth mapping does declare `SearchRBAC`. Adding the project rather than narrowing the glob is the right direction: the mapping's sources include the Java search package, and SearchRBAC.spec.ts is the end-to-end guard for exactly that code path. Cost is ~29 tests / ~146 s. Verified by replaying the real CI scripts with this PR's changed files: before, the SearchRBAC selector resolved to zero units; after, it resolves to the SearchRBAC lane and no selector in the plan is orphaned. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]> (cherry picked from commit bfc8043) --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
… filter option (open-metadata#30641) * fix(ui): keep the page anchored when picking an off-screen Add Assets filter option react-aria's Checkbox wraps its real input in a `position: absolute` VisuallyHidden span. The QuickFilterDropdown option list was `position: static`, so those inputs resolved their containing block against the Popover root rather than the list. An absolutely positioned box is only clipped by ancestors in its containing-block chain, so the list's `overflow: auto` never clipped them: all 45 stayed laid out across the full list height and extended <html>'s scrollable area from 900px to 1646px. Clicking an option below the fold then focused an input sitting at document y~1645, Chrome scrolled it into view, and the whole app shifted up 746px behind the fixed drawer — with no scrollbar to get back, because SlideoutMenu has already locked <html> overflow via usePreventScroll. Marking the list `relative` makes it the containing block again, so its own clip applies. Containment on the Popover root also works but would silently clip OverlayArrow if `arrow` is ever enabled. Co-Authored-By: Claude <[email protected]> * test(ui): tighten the off-screen-option regression guard Address review on open-metadata#30641. Assert the option list actually overflows before scrolling it, so a sparse environment fails loudly instead of clicking an already-visible option and passing without exercising the focus-scroll regression. Polling also removes a race: the previous version scrolled as soon as the popover was visible, which could land before the options finished loading. Compare page metrics against the drawer's resting state rather than absolute zeroes, so a surface whose page legitimately scrolls is not misread as a containment failure. Verified the delta holds: 900/0 before opening the popover, 900/0 after selecting an off-screen option. Co-Authored-By: Claude <[email protected]> * test(ui): drop the E2E step for the quick-filter containment fix Revert the addition to runDrawerQuickFilterMatrix. A one-line CSS containment fix does not warrant a step on a matrix shared by three specs, and the step could not be run locally to prove it would behave in CI. The Jest guard in QuickFilterDropdown.test.tsx still fails without the fix, so the regression stays covered. Co-Authored-By: Claude <[email protected]> * ci(playwright): run SearchRBAC.spec.ts in its own lane for Explore changes The Explore mapping's `playwright/e2e/Flow/*Search*.spec.ts` glob is meant to pick up GlobalSearch/MetricSearch/MetricListSearch, but it also matches `Flow/SearchRBAC.spec.ts`. That spec is testIgnored by `chromium` and runs only in the dedicated `SearchRBAC` project, which the mapping did not declare — so `selector_matches_unit` found no discovered unit for it and build_playwright_shards.py aborted the whole plan: Playwright selectors matched no runnable tests: playwright/e2e/Flow/SearchRBAC.spec.ts Deterministic, not flaky: any PR touching only `src/components/Explore/**`, `src/pages/Explore/**` or `service/search/**` failed `plan-playwright` (and `playwright-summary` downstream) without running a single test. PRs that also touched Auth were masked, because selectors union their projects across mappings and the Auth mapping does declare `SearchRBAC`. Adding the project rather than narrowing the glob is the right direction: the mapping's sources include the Java search package, and SearchRBAC.spec.ts is the end-to-end guard for exactly that code path. Cost is ~29 tests / ~146 s. Verified by replaying the real CI scripts with this PR's changed files: before, the SearchRBAC selector resolved to zero units; after, it resolves to the SearchRBAC lane and no selector in the plan is orphaned. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>



Describe your changes:
Fixes #30640
In the Add Assets drawer, selecting an option you had to scroll to inside the Entity types filter scrolled the entire app out of view and threw the dropdown off-screen — with no scrollbar to get back, because the drawer locks page scrolling.
react-aria's
Checkboxwraps its real<input>in aposition: absoluteVisuallyHiddenspan. The option list inQuickFilterDropdownwasposition: static, so those inputs resolved their containing block against thePopoverroot instead of the list. An absolutely positioned box is only clipped by ancestors in its containing-block chain, so the list'soverflow: autonever clipped them — all 45 stayed laid out across the full list height and extended<html>'s scroll area from 900px to 1646px. Clicking an option below the fold focused an input sitting at document y≈1645; the browser scrolled it into view and took the page with it (window.scrollY0 → 746, exactly the document maximum).Marking the list
relativemakes it the containing block again, so its own clip applies.Why a CSS fix carries a
.github/playwright/changeimpact-map.jsonis in this PR because this PR is what surfaced the bug in it, and CI could not go green without it.The Explore mapping's
playwright/e2e/Flow/*Search*.spec.tsglob is meant to pick up GlobalSearch / MetricSearch / MetricListSearch, but it also matchesFlow/SearchRBAC.spec.ts— a specchromiumtestIgnores, and which only the dedicatedSearchRBACproject runs. The mapping never declared that project, soselector_matches_unitfound no discovered unit behind the selector andbuild_playwright_shards.pyaborted the whole plan:Deterministic, not flaky: any PR touching only
src/components/Explore/**,src/pages/Explore/**orservice/search/**failedplan-playwright— andplaywright-summarydownstream — without running a single test. PRs that also touched Auth were masked, because selectors union their projects across mappings and the Auth mapping does declareSearchRBAC. This one touchescomponents/Explore/**and nothing else, so it hit it head-on.Declaring the project beats narrowing the glob: the mapping's sources already include the Java
service/search/**package, andSearchRBAC.spec.tsis the end-to-end guard for exactly that code path — it should run on these changes. The added CI cost is ~29 tests / ~146 s.Verified by replaying the real CI scripts against this PR's changed files: before, the SearchRBAC selector resolved to zero units; after, it resolves to the
SearchRBAClane and no selector in the plan is orphaned.Type of change:
High-level design:
N/A — small change.
Worth recording one decision, though: containment on the Popover root (
overflow: hiddenorcontain: paint) fixes this equally well, and was my first pass. I rejected it becauseOverlayArrowis positioned outside the popover's box, so clipping the root would silently break the arrow for anyone who later setsarrowon this Popover. Fixing the containing block on the scroller is local to the thing that scrolls and leaves the root unconstrained.Measured alternatives (
<html>.scrollHeight/ page scroll after focusing an off-screen option):tw:relativeon the option listoverflow: hiddenorcontain: painton the Popover rootarrowoverflow: hiddenon the innerDialogor menu divoverscroll-behavior: containon the listThe rule this implies: a scroll container holding react-aria form controls inside a
Popoverneedsposition: relative.base/select/popover.tsxsidesteps it by putting the scroller on the popover root;QuickFilterDropdowncan't, since it has a sticky search header and Close/Update footer.Tests:
Use cases covered
AssetSelectionContentBodyrenders the Untitled-UI quick filters.Unit tests
openmetadata-ui/.../src/components/Explore/QuickFilterDropdown.test.tsxtw:relative:✕ should own the containing block for its option list. With the fix: 8/8 pass.CI-planning tests
test_explore_changes_schedule_search_rbac_in_its_own_laneto.github/scripts/tests/test_playwright_ci_planning.py.QuickFilterDropdown.tsx) against the realimpact-map.jsonand asserts theSearchRBACspec resolves to theSearchRBACproject. Fails on the pre-fix map, so the orphaned-selector abort can't come back silently.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Flow/SearchRBAC.spec.ts(~29 tests) now executes in itsSearchRBAClane on Explore/search changes instead of aborting the plan.Manual testing performed
Against a local stack, viewport 1440x900, Domain detail page → Add → Assets → Entity types → scroll to the end of the list → click the last option:
window.scrollYdocument.documentElement.scrollHeightAlso confirmed the fix causes no visual change: popover stays anchored, rounded corners intact, search-input focus ring not clipped, option list scrolls normally.
UI screen recording / screenshots:
Before — clicked an off-screen option: the whole app has scrolled to the bottom (only Settings/Logout left in the nav) and the dropdown has flown off the top of the screen.
After — same steps: the page has not moved, the dropdown stays anchored to Entity types, and
metricis checked.Checklist:
Fixes #<issue-number>above.Greptile Summary
This PR prevents off-screen quick-filter selections from scrolling the containing page and corrects the associated Playwright impact selection.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (7): Last reviewed commit: "ci(playwright): run SearchRBAC.spec.ts i..." | Re-trigger Greptile