Skip to content

backport(2.0): domain/data-product UI polish + Add Assets scroll anchoring (#30450, #30510, #30622, #30641) - #31022

Merged
siddhant1 merged 4 commits into
2.0from
backport/2.0-domain-ui-fixes
Aug 5, 2026
Merged

siddhant1 merged 4 commits into
2.0from
backport/2.0-domain-ui-fixes

Conversation

@siddhant1

Copy link
Copy Markdown
Contributor

Describe your changes:

Backports four already-merged, already-reviewed main PRs onto 2.0 so the release branch picks up
the Domain / Data Product marketplace polish and the Add-Assets scroll-anchoring fix.

main PR cherry-pick What it does
#30450 9ce8a5c2ff Drops the redundant outer frame card on Domain & Data Product docs (GenericTab variant="flat")
#30510 cd6b0d5afe Centers domain/data-product list row items; fixes the DP detail header title width (status badge moves into suffix)
#30622 7ab65b7bcc Keeps GenericTab's react-grid-layout widget grid inside its container (sub-pixel rounding pushed the last column 1px past the edge)
#30641 5a678bcb11 Keeps the page anchored when picking an off-screen Add Assets filter option, plus the SearchRBAC impact-map lane fix

Each commit carries its (cherry picked from commit …) trailer.

Deliberately not backported: #30613 (brace-expansion/postcss resolution bumps). 2.0 already
pins higher versions than that PR introduced — brace-expansion 5.0.9 (vs 5.0.8) and
postcss 8.5.23 (vs 8.5.18) — so the advisory is already cleared there and cherry-picking would be a
downgrade.

Type of change:

  • Bug fix

High-level design:

N/A — backport only, no new design.

Tests:

Use cases covered

  • Domain and Data Product Documentation tabs render the description widget without the extra frame card.
  • Domain / Data Product list rows vertically center the icon against the name; DP detail header title uses the full available width with the status badge inline.
  • A customized entity tab's widget grid stays inside its container at widths where rounding previously overflowed by 1px.
  • Selecting an off-screen option in an Add Assets quick-filter dropdown no longer scrolls the page out from under the drawer.
  • The CI planner routes Explore/* changes that match Flow/*Search*.spec.ts into the dedicated SearchRBAC project instead of resolving to zero units.

Unit tests

  • QuickFilterDropdown.test.tsx — regression test for the containing-block fix (backported verbatim from fix(ui): keep the page anchored when picking an off-screen Add Assets filter option #30641).
  • .github/scripts/tests/test_playwright_ci_planning.py::test_explore_changes_schedule_search_rbac_in_its_own_lane — new here.
    Suite on this branch: 57 passed, 1 failed; the single failure
    (test_main_skips_tag_filtered_spec_but_fails_on_a_nonexistent_one, a NameError: name 'sys' is not defined
    in build_playwright_shards.py) reproduces on pristine origin/2.0 (56 passed, 1 failed) and is unrelated to this PR.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable — no new specs; .github/playwright/impact-map.json gains SearchRBAC on the Explore mapping so existing specs get scheduled into a lane that actually runs them.

Manual testing performed

Verified structurally rather than by re-running the UI, since every change was already reviewed, merged, and CI-green on main:

  1. Post-image byte-identity — every .tsx/.less file produced by these cherry-picks is byte-identical to main's post-image (git rev-parse <sha>:<path>), and every pre-image matched main's parent, so no surrounding code diverges on 2.0.
  2. The two .github/ files legitimately diverge (2.0's impact map and planner test file already differed). Verified the applied hunks landed correctly: SearchRBAC added to the Explore mapping's projects, and exactly the one new test function from fix(ui): keep the page anchored when picking an off-screen Add Assets filter option #30641 added — the conflict pulled in a second, unrelated test from a PR that was never backported, and that one was dropped.
  3. SearchRBAC prerequisites exist on 2.0 — playwright/e2e/Flow/SearchRBAC.spec.ts is present, and playwright.config.ts both testIgnores it from chromium (line 197) and defines the dedicated SearchRBAC project (line 317).
  4. Confirmed the branch is a clean fast-forward of origin/2.0.

UI screen recording / screenshots:

Before/after from the original PRs — the backported diffs are byte-identical, so these hold.

#30450 — flat docs card (Domain, then Data Product)

#30510 — list row centering (before / after)

before
after

#30622 — widget grid overflow (before / after crop)

before and after

#30641 — Add Assets off-screen filter option (before / after)

before
after

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For UI changes: I attached screenshots above.
  • I have added tests (carried over from the source PRs) and listed them above.
  • I have added a test that covers the exact scenario we are fixing.

siddhant1 and others added 4 commits August 5, 2026 16:27
#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) <noreply@anthropic.com>
(cherry picked from commit 13c18c0)
…ader 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) <noreply@anthropic.com>

* 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) <noreply@anthropic.com>

* 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) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit abdf842)
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)
… 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
(cherry picked from commit bfc8043)
@siddhant1
siddhant1 requested review from a team, akash-jain-10, harshach and tutte as code owners August 5, 2026 11:01
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

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!

@gitar-bot

gitar-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Backports Domain and Data Product UI polish and Add Assets scroll-anchoring fixes from main onto the 2.0 release branch. No issues found.

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
siddhant1 merged commit 795073e into 2.0 Aug 5, 2026
53 of 62 checks passed
@siddhant1
siddhant1 deleted the backport/2.0-domain-ui-fixes branch August 5, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant