Skip to content

fix(ui): keep the page anchored when picking an off-screen Add Assets filter option - #30641

Merged
siddhant1 merged 8 commits into
mainfrom
ui-shift-on-entity-type-dropdown-scroll
Aug 4, 2026
Merged

siddhant1 merged 8 commits into
mainfrom
ui-shift-on-entity-type-dropdown-scroll

Conversation

@siddhant1

@siddhant1 siddhant1 commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

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 Checkbox wraps its real <input> in a position: absolute VisuallyHidden span. The option list in QuickFilterDropdown was position: static, so those inputs resolved their containing block against the Popover root instead of 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 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.scrollY 0 → 746, exactly the document maximum).

Marking the list relative makes it the containing block again, so its own clip applies.

-<div className="tw:max-h-64 tw:overflow-auto tw:px-1.5 tw:py-1">
+<div
+  className="tw:relative tw:max-h-64 tw:overflow-auto tw:px-1.5 tw:py-1"
+  data-testid="quick-filter-option-list">

Why a CSS fix carries a .github/playwright/ change

impact-map.json is 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.ts glob is meant to pick up GlobalSearch / MetricSearch / MetricListSearch, but it also matches Flow/SearchRBAC.spec.ts — a spec chromium testIgnores, and which only the dedicated SearchRBAC project runs. The mapping never declared that project, so selector_matches_unit found no discovered unit behind the selector 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. This one touches components/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, and SearchRBAC.spec.ts is 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 SearchRBAC lane and no selector in the plan is orphaned.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Worth recording one decision, though: containment on the Popover root (overflow: hidden or contain: paint) fixes this equally well, and was my first pass. I rejected it because OverlayArrow is positioned outside the popover's box, so clipping the root would silently break the arrow for anyone who later sets arrow on 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):

approach result
tw:relative on the option list 900 / 0 ✅ shipped
overflow: hidden or contain: paint on the Popover root 900 / 0 ✅ but clips a future arrow
overflow: hidden on the inner Dialog or menu div 1646 / 746 ❌ not the containing block
overscroll-behavior: contain on the list 1646 / 746 ❌ wrong mechanism — this is focus-scroll, not wheel chaining

The rule this implies: a scroll container holding react-aria form controls inside a Popover needs position: relative. base/select/popover.tsx sidesteps it by putting the scroller on the popover root; QuickFilterDropdown can't, since it has a sticky search header and Close/Update footer.

Tests:

Use cases covered

  • Scrolling the Entity types list in the Add Assets drawer and selecting an option below the fold leaves the page anchored and the dropdown attached to its trigger.
  • Applies on Domain, Data Product, and Input/Output Ports — everywhere AssetSelectionContentBody renders the Untitled-UI quick filters.

Unit tests

  • Added a regression test that fails without the fix.
  • File: openmetadata-ui/.../src/components/Explore/QuickFilterDropdown.test.tsx
  • Verified RED by stripping tw:relative: ✕ should own the containing block for its option list. With the fix: 8/8 pass.

CI-planning tests

  • Added test_explore_changes_schedule_search_rbac_in_its_own_lane to .github/scripts/tests/test_playwright_ci_planning.py.
  • It feeds the selector this PR's own changed file (QuickFilterDropdown.tsx) against the real impact-map.json and asserts the SearchRBAC spec resolves to the SearchRBAC project. Fails on the pre-fix map, so the orphaned-selector abort can't come back silently.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • No new spec — a one-line CSS containment fix doesn't warrant a step on the drawer quick-filter matrix that three specs share. The Jest guard above fails without the fix, and the behaviour is evidenced by the measurements and screenshots below.
  • The impact-map change does alter what Playwright runs here: Flow/SearchRBAC.spec.ts (~29 tests) now executes in its SearchRBAC lane 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:

before after
window.scrollY 746 0
document.documentElement.scrollHeight 1646 900

Also 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.

before

After — same steps: the page has not moved, the dropdown stays anchored to Entity types, and metric is checked.

after

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: N/A — no schema changes.
  • For UI changes: I attached before/after screenshots above.
  • I have added tests (unit) and listed them above.
  • I have added a test that covers the exact scenario we are fixing.

Greptile Summary

This PR prevents off-screen quick-filter selections from scrolling the containing page and corrects the associated Playwright impact selection.

  • Makes the quick-filter option list a positioned containing block for React Aria’s visually hidden checkbox inputs.
  • Adds a Jest regression guard for the required positioning class.
  • Includes the dedicated SearchRBAC project when Explore changes select its matching Playwright spec.
  • Adds CI-planning coverage for the SearchRBAC project mapping.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/Explore/QuickFilterDropdown.tsx Positions the scrollable option list so hidden checkbox inputs remain contained without changing the dropdown structure.
openmetadata-ui/src/main/resources/ui/src/components/Explore/QuickFilterDropdown.test.tsx Adds a focused regression assertion that the option list retains its required containing-block class.
.github/playwright/impact-map.json Adds SearchRBAC to the projects selected for Explore-related Playwright specs.
.github/scripts/tests/test_playwright_ci_planning.py Verifies Explore changes schedule the SearchRBAC spec in its executable project lane.

Reviews (7): Last reviewed commit: "ci(playwright): run SearchRBAC.spec.ts i..." | Re-trigger Greptile

… 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]>
@siddhant1
siddhant1 requested a review from a team as a code owner July 29, 2026 11:20
Copilot AI review requested due to automatic review settings July 29, 2026 11:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This 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 skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@siddhant1 siddhant1 added the safe to test Add this label to run secure Github workflows on PRs label Jul 29, 2026
@siddhant1
siddhant1 enabled auto-merge July 29, 2026 11:21
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]>
Copilot AI review requested due to automatic review settings July 29, 2026 11:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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]>
Copilot AI review requested due to automatic review settings July 29, 2026 11:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 3635cb7f28830cf39e5283bfc7b371781412ddcb in Playwright run 30785702541, attempt 1.

✅ 1026 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 3 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Application boot ratio was 2.21 per UI scenario (2308 boots / 1042 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 135 0 0 0 0 0
✅ Shard chromium-02 139 0 0 0 0 0
✅ Shard chromium-03 138 0 0 0 0 0
✅ Shard chromium-04 150 0 0 0 0 0
✅ Shard chromium-05 125 0 0 3 0 0
✅ Shard chromium-06 153 0 0 0 0 0
✅ Shard data-asset-rules-01 61 0 0 0 0 0
✅ Shard domain-isolation-01 14 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 7 0 0 0 0 0
✅ Shard ingestion-01 2 0 0 0 0 0
✅ Shard reindex-01 28 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 65%
66.01% (77627/117595) 49.97% (46837/93726) 51.15% (14081/27526)

Copilot AI review requested due to automatic review settings July 30, 2026 07:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@siddhant1 siddhant1 added the skip-pr-checks Bypass PR metadata validation check label Jul 30, 2026
Copilot AI review requested due to automatic review settings July 30, 2026 10:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@siddhant1 siddhant1 added safe to test Add this label to run secure Github workflows on PRs and removed safe to test Add this label to run secure Github workflows on PRs labels Jul 30, 2026
Copilot AI review requested due to automatic review settings July 31, 2026 08:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — ESLint report could not be read — see the job log.

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

No machine-readable report was produced.


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

@siddhant1
siddhant1 added this pull request to the merge queue Aug 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-08-03T18:27:47Z)

Blocked the queue: playwright-summary

@siddhant1
siddhant1 added this pull request to the merge queue Aug 4, 2026
Merged via the queue into main with commit bfc8043 Aug 4, 2026
87 checks passed
@siddhant1
siddhant1 deleted the ui-shift-on-entity-type-dropdown-scroll branch August 4, 2026 06:02
@gitar-bot

gitar-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Adds 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

📄 openmetadata-ui/src/main/resources/ui/playwright/utils/assetDrawerQuickFilter.ts:122-129
The new expect.poll(...).toBe(true) on scrollHeight > clientHeight converts the previously silent pass in sparse environments (per the PR summary) into a hard poll timeout failure whenever the seeded data doesn't have enough entity types to overflow max-h-64. Since this runs across all three surfaces in the shared matrix, any surface lacking overflow will now fail CI with a confusing timeout rather than being skipped. If overflow can't be guaranteed for every surface, consider test.skip() when the list doesn't overflow, or seed enough entity types to make overflow deterministic.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source

siddhant1 added a commit that referenced this pull request Aug 5, 2026
…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]>
k-anshul pushed a commit to k-anshul/OpenMetadata that referenced this pull request Aug 12, 2026
… 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]>

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep the page anchored when picking an Add Assets filter option below the fold

4 participants