Repository navigation
backport(2.0): domain/data-product UI polish + Add Assets scroll anchoring (#30450, #30510, #30622, #30641) - #31022
Conversation
#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)
❌ 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! |
Code Review ✅ ApprovedBackports Domain and Data Product UI polish and Add Assets scroll-anchoring fixes from main onto the 2.0 release branch. No issues found. 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 |
Describe your changes:
Backports four already-merged, already-reviewed
mainPRs onto2.0so the release branch picks upthe Domain / Data Product marketplace polish and the Add-Assets scroll-anchoring fix.
9ce8a5c2ffGenericTabvariant="flat")cd6b0d5afesuffix)7ab65b7bccGenericTab's react-grid-layout widget grid inside its container (sub-pixel rounding pushed the last column 1px past the edge)5a678bcb11SearchRBACimpact-map lane fixEach commit carries its
(cherry picked from commit …)trailer.Deliberately not backported: #30613 (
brace-expansion/postcssresolution bumps).2.0alreadypins higher versions than that PR introduced —
brace-expansion 5.0.9(vs 5.0.8) andpostcss 8.5.23(vs 8.5.18) — so the advisory is already cleared there and cherry-picking would be adowngrade.
Type of change:
High-level design:
N/A — backport only, no new design.
Tests:
Use cases covered
Explore/*changes that matchFlow/*Search*.spec.tsinto the dedicatedSearchRBACproject 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, aNameError: name 'sys' is not definedin
build_playwright_shards.py) reproduces on pristineorigin/2.0(56 passed, 1 failed) and is unrelated to this PR.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
.github/playwright/impact-map.jsongainsSearchRBACon theExploremapping 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:.tsx/.lessfile produced by these cherry-picks is byte-identical tomain's post-image (git rev-parse <sha>:<path>), and every pre-image matchedmain's parent, so no surrounding code diverges on2.0..github/files legitimately diverge (2.0's impact map and planner test file already differed). Verified the applied hunks landed correctly:SearchRBACadded to theExploremapping'sprojects, 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.SearchRBACprerequisites exist on2.0—playwright/e2e/Flow/SearchRBAC.spec.tsis present, andplaywright.config.tsbothtestIgnores it fromchromium(line 197) and defines the dedicatedSearchRBACproject (line 317).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)
#30622 — widget grid overflow (before / after crop)
#30641 — Add Assets off-screen filter option (before / after)
Checklist: