Repository navigation
Fixes #35743: Open a sub-domain when its name is clicked in list view [Backport #35738 - 2.0] - #35758
Conversation
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.
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated 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 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 |
Code Review ✅ Approved🟡 Medium risk · Wiring subdomain name clicks to the navigation handler changes UI behavior; incorrect entity routing could open a different subdomain. Passes VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Fixes #35743
Backport of #35738 to
2.0. Same one-line fix plus the same Playwright regression test; the only conflict was the neighbouringtagSize: 'lg'option that2.0passes to the same call (both kept).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, soTable.Row onActionnever fires for clicks on the name (continuePropagation()only lets the native click reach plain DOMonClickancestors). #31876 fixed this for the Domain and Data Product lists by giving the name cell its ownonClickviauseDomainTableColumns({ onEntityClick });SubDomainsTablewas never wired up.Fix: pass
onEntityClicktouseDomainTableColumnsinSubDomainsTable(one line).Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
useDomainTableColumns.test.tsx/domainFieldRenderers.test.tsx(31/31 pass).Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Clicking a subdomain name in list view opens the subdomaininplaywright/e2e/Pages/DataProductAndSubdomains.spec.ts.2.0UI against a local server: fails without the fix (header still shows the parent domain), passes with it: 3/3 with--repeat-each 3, together with the existingNavigate between sibling subdomains(3/3).2.0: 138/138 pass.Manual testing performed
2.0.0-SNAPSHOT).Financewith sub-domainsPayments,BillingandTreasurythrough the API.Payments.main: nothing happens, even after several clicks.UI screen recording:
Recorded for #35738 on
main(commit7150e2f1641); the change is identical on2.0, where the before/after behaviour was verified with the Playwright test above.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:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Fixes sub-domain name clicks in list view by passing the existing navigation handler to
useDomainTableColumns.Reviews (1) · Last reviewed commit: "chore(playwright): auto-refresh impact-m..." · Reviewed by Greptile