Skip to content

Fixes #35743: Open a sub-domain when its name is clicked in list view - #35738

Merged
anuj-kumary merged 4 commits into
mainfrom
anuj-kumary/subdomain-list-edit-issue
Oct 19, 2026
Merged

anuj-kumary merged 4 commits into
mainfrom
anuj-kumary/subdomain-list-edit-issue

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #35743

Customer report: in a domain's Sub Domains tab, list view, clicking a sub-domain's name does not open it, so the sub-domain can't be edited. Card view and the globe icon work.

Root cause: the name is rendered with Typography ellipsis={{ tooltip }}, whose tooltip trigger is a react-aria button. It consumes the row's react-aria press, so Table.Row onAction never fires for clicks on the name (continuePropagation() only lets the native click reach plain DOM onClick ancestors). #31876 fixed this for the Domain and Data Product lists by giving the name cell its own onClick via useDomainTableColumns({ onEntityClick }); SubDomainsTable was never wired up.

Fix: pass onEntityClick to useDomainTableColumns in SubDomainsTable (one line).

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • In list view, clicking a sub-domain's name opens that sub-domain.
  • Clicking the globe icon or another cell still opens it.
  • Clicking the name while another row is checked still opens it.

Unit tests

  • Not added: the press-swallowing only happens with real react-aria press handling, which jsdom doesn't reproduce. The name-cell click path is already covered by useDomainTableColumns.test.tsx / domainFieldRenderers.test.tsx (31/31 pass).

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Added Clicking a subdomain name in list view opens the subdomain in playwright/e2e/Pages/DataProductAndSubdomains.spec.ts.
  • Fails without the fix (header still shows the parent domain), passes with it: 3/3 with --repeat-each 3, together with the existing Navigate between sibling subdomains (3/3).

Manual testing performed

  1. Ran the PR UI (Vite) against a local OpenMetadata server (2.0.0-SNAPSHOT).
  2. Created domain Finance with sub-domains Payments, Billing and Treasury through the API.
  3. Opened Finance → Sub Domains → list view and clicked the name Payments.
    • On main: nothing happens, even after several clicks.
    • With this PR: the Payments sub-domain page opens and can be edited.

UI screen recording:

Recorded on commit 7150e2f1641 (the "before" clip is the same code with the fix reverted).

Before (main): clicking the name does nothing

subdomain-name-click-before.mp4

After (this PR): clicking the name opens the sub-domain

subdomain-name-click-after.mp4

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • 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.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md.
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge.

Summary

Makes subdomain names clickable in list view by passing the existing onEntityClick handler to useDomainTableColumns.

  • Sub-domain names in the list open their pages when clicked.

Reviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/anu..." · Reviewed by Greptile

The sub-domain table never passed onEntityClick to the name cell, so a
click on the name landed on the ellipsis-tooltip trigger, which consumes
the row's react-aria press. Wire it up like the Domain list (#31876) and
add a Playwright regression test.
@anuj-kumary anuj-kumary added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Oct 19, 2026
@github-actions github-actions Bot added the UI UI specific issues label Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 962 → 962
- 0 added, 0 removed, 2 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/common/EntityListingTable/EntityListingTable.component.tsx
  openmetadata-ui/src/main/resources/ui/src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@anuj-kumary anuj-kumary self-assigned this Oct 19, 2026
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 2 warning(s)

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.

0 error(s), 2 warning(s) across 1 changed file(s).

Count Rule
2 react-hooks/exhaustive-deps
All findings
Location Rule Message
🟡 src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx:124:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'subdomainListing'. Either include it or remove the dependency array.
🟡 src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx:213:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'subDomainColumns', 'subdomainListing.handleClearAll', 'subdomainListing.handleSelect', 'subdomainListing.handleSel

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

make ui-checkstyle-changed

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 78%
78.71% (130538/165835) 65.47% (82949/126683) 66.84% (27754/41517)

…-list-edit-issue

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx
…issue' into anuj-kumary/subdomain-list-edit-issue
@anuj-kumary anuj-kumary changed the title fix(ui): open a sub-domain when its name is clicked in list view Fixes #35743: Open a sub-domain when its name is clicked in list view Oct 19, 2026
@gitar-bot

gitar-bot Bot commented Oct 19, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Wiring the subdomain name cell to its navigation handler changes list-view behavior; a misrouted click could open the wrong subdomain.

Passes onEntityClick to useDomainTableColumns in SubDomainsTable, so clicking a sub-domain's name in the list view opens that sub-domain. The name cell's click now reaches the handler that the react-aria tooltip trigger was swallowing. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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

Compact
gitar display:verbose         

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

@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit 33485c6 Oct 19, 2026
81 of 82 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/subdomain-list-edit-issue branch October 19, 2026 20:37
anuj-kumary added a commit that referenced this pull request Oct 20, 2026
… [Backport #35738 - 2.0] (#35758)

* fix(ui): open a sub-domain when its name is clicked in list view

The sub-domain table never passed onEntityClick to the name cell, so a
click on the name landed on the ellipsis-tooltip trigger, which consumes
the row's react-aria press. Wire it up like the Domain list (#31876) and
add a Playwright regression test.

* chore(playwright): auto-refresh impact-map.generated.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

Domains: clicking a subdomain in list view doesn’t navigate to the subdomain page; card view and globe icon work

2 participants