OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Incident Manager: truncated table name has no usable tooltip (native `title` only, dead `??` fallback)

Open ShaileshParmar11 opened this issue 3 months ago • 1 comments

Affected module

UI

Describe the bug

In Observability → Incident Manager, the Table column truncates long table names with a CSS ellipsis but gives no usable tooltip on hover, so the full name is unreachable.

The cell is IncidentManagerTable.component.tsx:182-196:

<Table.Cell>
  <Link
    className="tw:inline-block tw:max-w-52 tw:truncate tw:align-middle"
    data-testid="table-link"
    title={getNameFromFQN(tableFqn) ?? ref?.fullyQualifiedName}
    to={getEntityDetailsPath(...)}>
    {getNameFromFQN(tableFqn) ?? ref?.fullyQualifiedName}
  </Link>
</Table.Cell>

There are three separate defects here.

1. Wrong tooltip mechanism. The only tooltip is the bare native title attribute. Native title is browser/OS-rendered: it has a ~1s delay, is unstyled, is not shown on keyboard focus, and is suppressed entirely on touch devices. Hiding truncated content behind it fails WCAG 2.1 SC 1.4.13 (Content on Hover or Focus) and looks broken next to the rest of the app.

The sibling table in the same module already does this correctly — DataQualityTab.tsx:465-477 wraps truncated cell content in Tooltip + TooltipTrigger from @openmetadata/ui-core-components. The convention exists; this cell just never got it.

2. The ?? fallback is dead code, and the tooltip can be empty. getNameFromFQN(fqn: string): string (FqnUtils.ts:117) always returns a string — never null/undefined — so ?? ref?.fullyQualifiedName can never fire.

When ref.fullyQualifiedName is absent, getPartialNameFromTableFQN returns '', then getNameFromFQN('') returns ''. Result: the link renders with no visible text and no tooltip at all, and the intended fallback to the full FQN silently never happens. This needs ||, not ??.

3. The tooltip should show the full FQN, not the bare table name. Both the visible text and the tooltip currently resolve to the same value — the last FQN segment. So even when the native tooltip does appear, it adds nothing beyond untruncating the same string. The tooltip is the right place to show the qualified path (service.database.schema.table) so the user can tell two same-named tables apart.

To Reproduce

  1. Create test cases on tables with long names (e.g. pw-table-eb16dd75-b2d6-4a3f-…) and open incidents on them.
  2. Go to Observability → Incident Manager.
  3. The Table column shows truncated names ending in ….
  4. Hover a truncated name — no styled tooltip appears (only the delayed, unstyled native one).
  5. Tab to the link with the keyboard — nothing appears at all.

Expected behavior

  • Hovering or keyboard-focusing a truncated table name shows the design-system Tooltip (Tooltip + TooltipTrigger from @openmetadata/ui-core-components), matching DataQualityTab.
  • The tooltip shows the full qualified table path, not just the last segment.
  • When the test case reference has no fullyQualifiedName, the cell falls back to something meaningful instead of rendering blank.

OS

macOS 15 (browser-agnostic — reproduces in Chrome, Safari, Firefox)

Python version

N/A (UI only)

OpenMetadata version

main / 2.0.0-SNAPSHOT

OpenMetadata Ingestion package version

N/A (UI only)

Additional context

Introduced in #29744 (2c4df74457, "refactor(dq): extract test case & test suite detail page hooks…"), which added the tw:truncate class and the title attribute in the same hunk.

A test currently locks in the weak behavior and must be updated as part of the fix — IncidentManagerTable.component.test.tsx:295-300:

it('should truncate the table link and expose the full name via title', () => {
  ...
  expect(tableLink).toHaveAttribute('title', 'NameFromFQN');
});

Replace the title-attribute assertion with one that asserts the Tooltip renders, and add a case covering the missing-fullyQualifiedName path from defect 2.

Scope for a first-time contributor: one cell in one component, one operator fix (?? → ||), plus the two test updates above. No schema, backend, or API changes.

Pre-submission checklist

  • [x] I searched for duplicate issues.
  • [x] I removed credentials, hostnames, emails, and other sensitive data from logs and config.

ShaileshParmar11 avatar Aug 19 '26 06:08 ShaileshParmar11

Please Assign this to me.

Vansh0310 avatar Aug 19 '26 06:08 Vansh0310