Repository navigation
fix(ui): center domain/data-product list row items & fix DP detail header title width - #30510
Conversation
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>
❌ 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! |
✅ Playwright Results — workflow succeededValidated commit ✅ 686 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 57 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) 49m 24s ⏱️ Max setup 3m 2s · max shard execution 17m 14s · max shard-job elapsed before upload 20m 29s · reporting 4s 🌐 196.93 requests/attempt · 2.61 app boots/UI scenario · 6.87% 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 |
…adge 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>
|
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 ✅ ApprovedVertically centers items in domain and data product list tables, corrects the data product detail header title width when the status badge is empty, and routes the domain rename-cascade spec to the Reindex Playwright lane. 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 |



Two AI-mode UI fixes for the Domain & Data Product Marketplace pages.
1. List tables — vertically center row items
The Domain & Data Product list tables rendered their name cells with
<Box align="start">(→tw:items-start), pinning the icon + name to the top of the row instead of centering it. Nowalign="center".Files:
components/common/atoms/domain/ui/domainFieldRenderers.tsx,components/DataProduct/DataProductListPage.tsx.The shift shows when the row is taller than the name — i.e. a single-line name beside the icon, where it otherwise floats above the rest of the row. (A name long enough to wrap and fill the row height looks unchanged, so the demo below uses the Domains list, where
testis a single line:startpins it to the top,centeraligns it with the other cells.)align="start")align="center")2. Data Product detail header — don't reserve badge space when the status badge is empty
DataProductsDetailsPagepassedbadge={statusBadge}toEntityHeader. A truthybadgeappliesw-max-full-200(max-width: calc(100% - 200px)) to the title column — reserving 200px even when the status badge renders nothing (the commonUnprocessedstatus). That squeezed the title into a ~315px box and forced long names to wrap/break mid-word. The Domain header passes no badge, so it was unaffected (this was the "DP page looks wrong, Domain is fine" difference).Fix: move
statusBadgeintosuffix(next to the LearningIcon). It still renders inline when a status exists, but no longer reserves 200px, so the title uses its natural width.File:
components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx.3. CI — route the Domain rename-cascade Playwright spec to its real lane
Unrelated to the UI fixes, but this PR could not go green without it.
plan-playwrightwas aborting with:Root cause. The Domain/Data-Product entry in
.github/playwright/impact-map.jsonselects specs withplaywright/e2e/**/*Domain*.spec.ts. That glob also matchesSearchSeparation/DomainRenamePrefixCascade.spec.ts— a search FQN-cascade regression that merely has "Domain" in its filename — yet the mapping only assigned thechromium,Basic, andDomainIsolationprojects. But that spec lives underSearchSeparation/, which istestIgnored fromchromium/Basicand only runs under theReindexproject (seeplaywright.config.ts). So the spec had no runnable lane in any of its assigned projects,build_playwright_shards.pyfound zero matching test units for the selector, and it aborted the entire plan. The trigger is a source glob oncomponents/DataProducts/**/ Domain sources, so this fired on any PR touching Domain/DataProduct UI — including this one, even though the change is cosmetic.What
Reindexis. OpenMetadata keeps every entity (tables, dashboards, domains, data products, …) in a relational DB as the source of truth and mirrors them into an Elasticsearch/OpenSearch index that powers global search and the Explore UI. Reindexing — run by the built-in Search Indexing app (SearchIndexApp/SearchReindexResource) — wipes and rebuilds that index from the DB so search stays in sync after an upgrade, a mapping change, or bulk edits. Renaming a Domain rewrites the fully-qualified-name (FQN) prefix of everything nested under it, and those changes have to cascade into the search index — which is exactly whatDomainRenamePrefixCascadeverifies. Inplaywright.config.ts,Reindexis correspondingly the isolated, single-worker Playwright project (test lane) that runs the specs needing a real reindex-capable environment (SearchSeparation/*.spec.ts,*AfterReindex.spec.ts); it's named after the feature it exercises, and it's the lane this spec belongs to.Fix. Add
Reindexto that mapping'sprojectsso the spec resolves to the lane it actually runs in and executes instead of crashing the planner:The blast radius is contained: of all the specs this mapping selects, only the
SearchSeparationone produces aReindextest unit (the selector engine unions projects per-spec, andbuild_playwright_shards.pyonly creates a unit where the test list actually has one). Every other Domain/DataProduct spec keeps running in exactly the lanes it did before. Verified locally by runningselect_playwright_tests.pyagainst this PR's changed files (prefix-cascade selector now carries theReindexlane) andbuild_playwright_shards.py's own matcher against aReindexunit (matches after the change, did not before — which was the crash).File:
.github/playwright/impact-map.json.🤖 Generated with Claude Code
Summary by Gitar
Reindexlane in Playwright plan and added corresponding unit testsThis will update automatically on new commits.
Greptile Summary
The PR makes targeted AI-mode presentation fixes:
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (12): Last reviewed commit: "Merge branch 'main' into fix-ui-marketpl..." | Re-trigger Greptile