Skip to content

fix(ui): center domain/data-product list row items & fix DP detail header title width - #30510

Merged
siddhant1 merged 10 commits into
mainfrom
fix-ui-marketplace-list-item-alignment
Jul 29, 2026
Merged

siddhant1 merged 10 commits into
mainfrom
fix-ui-marketplace-list-item-alignment

Conversation

@siddhant1

@siddhant1 siddhant1 commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

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. Now align="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 test is a single line: start pins it to the top, center aligns it with the other cells.)

Before (align="start") After (align="center")
before after

2. Data Product detail header — don't reserve badge space 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 the status badge renders nothing (the common Unprocessed status). 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 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.

File: components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx.

Before (title capped → mid-word wrap) After (full width, one line)
before after

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-playwright was aborting with:

Playwright selectors matched no runnable tests: playwright/e2e/Features/SearchSeparation/DomainRenamePrefixCascade.spec.ts

Root cause. The Domain/Data-Product entry in .github/playwright/impact-map.json selects specs with playwright/e2e/**/*Domain*.spec.ts. That glob also matches SearchSeparation/DomainRenamePrefixCascade.spec.ts — a search FQN-cascade regression that merely has "Domain" in its filename — yet the mapping only assigned the chromium, Basic, and DomainIsolation projects. But that spec lives under SearchSeparation/, which is testIgnored from chromium/Basic and only runs under the Reindex project (see playwright.config.ts). So the spec had no runnable lane in any of its assigned projects, build_playwright_shards.py found zero matching test units for the selector, and it aborted the entire plan. The trigger is a source glob on components/DataProducts/** / Domain sources, so this fired on any PR touching Domain/DataProduct UI — including this one, even though the change is cosmetic.

What Reindex is. 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 what DomainRenamePrefixCascade verifies. In playwright.config.ts, Reindex is 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 Reindex to that mapping's projects so the spec resolves to the lane it actually runs in and executes instead of crashing the planner:

-      "projects": ["chromium", "Basic", "DomainIsolation"],
+      "projects": ["chromium", "Basic", "DomainIsolation", "Reindex"],

The blast radius is contained: of all the specs this mapping selects, only the SearchSeparation one produces a Reindex test unit (the selector engine unions projects per-spec, and build_playwright_shards.py only 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 running select_playwright_tests.py against this PR's changed files (prefix-cascade selector now carries the Reindex lane) and build_playwright_shards.py's own matcher against a Reindex unit (matches after the change, did not before — which was the crash).

File: .github/playwright/impact-map.json.

🤖 Generated with Claude Code


Summary by Gitar

  • CI / Playwright:
    • Routed Domain rename-cascade spec to the Reindex lane in Playwright plan and added corresponding unit tests

This will update automatically on new commits.

Greptile Summary

The PR makes targeted AI-mode presentation fixes:

  • Vertically centers names and domain references in Domain and Data Product list rows.
  • Moves the Data Product status badge into the header suffix so an empty badge does not unnecessarily constrain title width.

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/DataProduct/DataProductListPage.tsx Centers the Data Product name and domain cell contents without changing their data or interaction behavior.
openmetadata-ui/src/main/resources/ui/src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx Moves the existing status badge into the header suffix alongside the learning icon, removing the badge slot's title-width constraint.
openmetadata-ui/src/main/resources/ui/src/components/common/atoms/domain/ui/domainFieldRenderers.tsx Vertically centers Domain list name-cell content without changing rendering semantics.

Reviews (12): Last reviewed commit: "Merge branch 'main' into fix-ui-marketpl..." | Re-trigger Greptile

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>
@siddhant1
siddhant1 requested a review from a team as a code owner July 27, 2026 10:28
Copilot AI review requested due to automatic review settings July 27, 2026 10:28

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:

  • 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

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!

@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 1720bd4b5afe737fd1162c19bea913846093cfa5 in Playwright run 30423310036, attempt 1.

✅ 686 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 57 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) 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:

  • Application boot ratio was 2.61 per UI scenario (1848 boots / 708 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 136 0 0 3 0 0
✅ Shard chromium-02 139 0 0 0 0 0
✅ Shard chromium-03 141 0 0 52 0 0
✅ Shard chromium-04 131 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 23 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 3 0 0 0 0 0
✅ Shard search-01 10 0 0 0 0 0
✅ Shard search-rbac-01 27 0 0 2 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

…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>
anuj-kumary
anuj-kumary previously approved these changes Jul 27, 2026
Copilot AI review requested due to automatic review settings July 27, 2026 10:46

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

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 changed the title fix(ui): vertically center domain & data product list row items fix(ui): center domain/data-product list row items & fix DP detail header title width Jul 27, 2026
@siddhant1 siddhant1 added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Jul 27, 2026
Copilot AI review requested due to automatic review settings July 27, 2026 11:12

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 27, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 65%
65.79% (76986/117008) 49.64% (46261/93179) 50.89% (13932/27375)

Copilot AI review requested due to automatic review settings July 27, 2026 11:35

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.

Copilot AI review requested due to automatic review settings July 27, 2026 11:52

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 enabled auto-merge (squash) July 27, 2026 11:56
Copilot AI review requested due to automatic review settings July 27, 2026 12:22
Copilot AI review requested due to automatic review settings July 29, 2026 04:49

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.

@sonarqubecloud

Copy link
Copy Markdown

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 this pull request to the merge queue Jul 29, 2026
@gitar-bot

gitar-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

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

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

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.

4 participants