Skip to content

Fixes 30522: bound the incident severity chip so a long translation cannot push the Assignee column off screen - #31898

Merged
ShaileshParmar11 merged 13 commits into
open-metadata:mainfrom
TeddyCr:ISSUE-30522
Aug 26, 2026
Merged

ShaileshParmar11 merged 13 commits into
open-metadata:mainfrom
TeddyCr:ISSUE-30522

Conversation

@TeddyCr

@TeddyCr TeddyCr commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #30522

⚠️ The mechanism has changed since the report — please read before validating against the screenshot

The issue title says severity and assignee overlap. Nothing overlaps on current main. The 1.13.1 screenshot came from an Ant Design Table whose Severity column was pinned at width: 100; that table was replaced by the ui-core-components Table in 8570d36830 / 2c90c83ae3, which has no per-column width or ellipsis. (overflow-x also computes to visible on the <table> despite the tw:overflow-x-hidden class, because overflow does not apply to display: table — the wrapper genuinely scrolls, nothing is clipped or collided.)

What survived the migration is column inflation. In ru-RU, label.no-entity + label.severity composes to Критичность инцидента отсутствует — 218px of rendered text against 67px for English "No Severity". The chip is nowrap and unbounded, so its intrinsic width becomes the column's floor:

chip 258px → Severity column 306px → table 1263px inside a 1178px container → the Assignee column's right edge lands at 1508px on a 1440px viewport.

Validating against the original screenshot will not match. Validate against the before/after described under "UI screen recording" below.

The symptom requires the left nav to be EXPANDED. The nav moves the table's container between 1178px (expanded) and 1334px (collapsed); collapsed, the pre-fix layout happens to fit (assignee edge 1423px, zero overflow). A maintainer reproducing with the nav collapsed will see no bug and conclude the report was wrong.

What changed

Screen.Recording.2026-08-25.at.4.57.28.PM.mov

ChipTrigger gains an opt-in maxChipWidth; only the severity call site passes it (tw:max-w-44, 176px). The label truncates inside the pill, with title surfacing the full string on hover. Truncation is visual only — the text stays in the DOM, so the button's accessible name is unchanged. Both the truncation and the title are gated on the prop, so an unbounded chip gains neither.

Why 176px, measured on the live pill (ru-RU @1440, nav expanded):

cap Severity <td> assignee right edge
unbounded 306px 1508px off screen
176px (max-w-44, chosen) 228px 1430px on screen
184px 236px 1438px on screen
188px 240px 1442px off screen
192px (max-w-48) 244px 1446px off screen

Why the bound is opt-in rather than on the shared pill. The widest status pill already renders 172.7px (ru-RU Назначен исполнитель), so a shared cap would have to sit in the narrow [173, 184] band — and Tailwind's scale offers exactly one step inside it. A shared 176px cap would leave the Status column 3.3px of headroom, so any retranslation of label.assigned, a fifth resolution status, or a typography-token change would silently truncate the Incident Manager's primary column. Opt-in leaves status unbounded, which no future measurement can invalidate.

All widths were measured in-DOM on the rendered chip after document.fonts.ready. An off-DOM probe under-reports Cyrillic by ~6px, because Inter's unicode-range subset is not active for glyphs it never paints.

Result (ru-RU, 1440×900, nav expanded)

chip Severity col table overflow assignee edge
before 258px 306px 1263px 85px 1508px — off screen
after 180px 228px 1185px 7px 1430px — on screen

English is unchanged (chip 106.8px, table 1178px expanded / 1334px collapsed), so visual-regression snapshots are unaffected.

Known residuals — this improves the page, it does not fully resolve the locale's layout

  1. An Assigned incident in ru-RU still overflows. Назначен исполнитель renders a 172.7px status pill, adding ~98px to the Status column and putting the assignee edge at 1527px. Not fixed — bounding status would truncate the primary column (see above).
  2. ru-RU at 1280px still needs horizontal scroll — 167px, down from 245px — split near-evenly between Severity (+71px) and Assignee (+76px) vs English. Nothing is clipped; the tw:overflow-x-auto wrapper scrolls.

Separately, label.severity is a generic key reused in 13 places whose ru-RU value means "criticality of the incident" rather than "severity". Shortening it would fix this at the source and shrink the column for free, but it is a translation change affecting every other consumer, so it is deliberately out of scope here.

Type of change:

  • Bug fix

High-level design:

N/A — small change (2 source files, 3 lines of behaviour). The rationale and the measured constants live in the code comments on maxChipWidth and SEVERITY_CHIP_MAX_WIDTH.

Tests:

Use cases covered

  • An admin viewing Incident Manager in Russian, with unassigned incidents that have no severity, can read the Assignee column at 1440×900 with the left nav expanded.
  • The truncated severity chip still exposes its full label on hover (title) and in its accessible name, and still opens the severity dropdown.
  • Status chips are never truncated, in any of the 20 shipped locales — verified against the widest (ru-RU).
  • English and other short-label locales render byte-identically to before.

Unit tests

  • Added: openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseStatus/InlineIncidentStatus/ChipTrigger.test.tsx (4 cases, new file — ChipTrigger had no test file).
  • jsdom performs no layout, so these deliberately assert only the DOM contract that visual truncation depends on: the untruncated label stays in the accessible name, title exposes it when bounded, and an unbounded chip gets no tooltip. The geometry is asserted in Playwright.
  • Regression sweep across src/components/DataQuality, src/components/IncidentManager, src/components/Database/Profiler, src/pages/IncidentManager: 102 suites / 1309 tests pass.

Backend integration tests

  • Not applicable (no backend changes — UI only).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Added: openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/IncidentManagerLocaleLayout.spec.ts (5 cases).

The assertions are measured geometry (boundingBox(), scrollWidth/clientWidth), never class names — a toHaveClass('tw:truncate') assertion would pass with the layout still broken. Each was verified RED against the unfixed tree:

case RED without the fix
Assignee column stays inside the viewport Expected: <= 1440 / Received: 1508
chip bounded, nav expanded Expected: <= 182 / Received: 258
chip bounded, nav collapsed Expected: <= 182 / Received: 258
full label reachable via title element not found (fails in ~17s, not on a measurement)
status chips never truncate element not found — a guard, not a reproduction

Notes for reviewers:

  • The bound is asserted on the chip button, which measures 258px unbounded and 180px capped in both nav states. An earlier revision asserted the <td> width, which is not a chip bound — CSS auto-layout hands surplus container width to the column, so the same 176px pill yields 228px expanded and 266px collapsed.
  • The spec pins the left nav and asserts the container width as a precondition. isSidebarCollapsed is persisted per user in localStorage, so it rides inside the saved storageState and varies by machine; without pinning, a collapsed-nav run passes against the unfixed code.
  • The spec is collected by CI's default chromium project and route-mocks its data, so it creates no entities and needs no seeded fixtures — a cheap, non-mutating addition.
  • Flakiness: 15/15 at --workers=2 --repeat-each=3, plus 10/10 at --workers=2 --repeat-each=2 in an independent check.

Manual testing performed

  1. Started the local stack (docker compose -f docker/development/docker-compose.yml up -d openmetadata-server) and served the UI from the branch on :3210.
  2. Signed in as admin@open-metadata.org, an admin with EditAll on test cases so the chevron affordance renders.
  3. Sized the browser to 1440×900 and expanded the left nav — the symptom does not reproduce with it collapsed.
  4. In English, confirmed the Severity chip reads No Severity and the Assignee column is fully visible.
  5. Switched the language to Русский via the navbar language selector (the page reloads).
  6. Confirmed the Severity chip reads Критичность инциде… with the chevron still visible, and the Assignee column (Исполнитель) is fully on screen, including its inline edit button.
  7. Hovered the truncated chip — the native tooltip shows the full Критичность инцидента отсутствует.
  8. Clicked the truncated chip — the dropdown opens with Критичность инцидента отсутствует, Severity 1 … Severity 5; selected Severity 3 and confirmed it saved and re-rendered unclipped.
  9. Still in Russian, set an incident to Assigned and confirmed the Status chip reads Назначен исполнитель in full, with no ellipsis and no hover tooltip.
  10. Collapsed the nav and confirmed the Russian table still renders correctly.
  11. Repeated step 6 on the second mount point: any table → Profiler → Data Quality → Incidents.
  12. Switched back to English and confirmed chips render exactly as before, with no tooltip on status chips.

UI screen recording / screenshots:

Not attached — this PR is opened as a draft for that reason.

The recording must capture, at minimum:

  • the Incident Manager in ru-RU before the fix at 1440×900 with the left nav expanded, showing the Assignee column cut off at the right edge (the symptom does not reproduce with the nav collapsed);
  • the same view after, with Исполнитель отсутствует fully visible and the severity chip ellipsised;
  • hovering the truncated chip so the full-string tooltip is on screen;
  • opening the severity dropdown from the truncated chip and changing severity;
  • a ru-RU row in the Assigned state, showing the Status chip is not truncated and has no tooltip;
  • an en-US before/after pass showing short labels are untouched;
  • the Profiler → Incidents tab in ru-RU.

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.

  • For JSON Schema changes: N/A — no schema changes.

  • For UI changes: I attached a screen recording and/or screenshots above. — outstanding; PR is a draft until attached.

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • I have added a test that covers the exact scenario we are fixing. The issue number is referenced in both IncidentManagerLocaleLayout.spec.ts and the maxChipWidth JSDoc.

🤖 Generated with Claude Code

Greptile Summary

The PR bounds the Incident Manager severity chip so long localized labels truncate without pushing the Assignee column off screen, while retaining the full label for accessibility and hover discovery.

  • Adds an opt-in maximum width to the shared chip trigger and applies it only to severity chips.
  • Adds unit and Playwright coverage for bounded labels, sidebar states, locale-specific geometry, and unbounded status chips.
  • Backfills missing Playwright timing data from the checked-in baseline without overriding downloaded history.

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/DataQuality/IncidentManager/TestCaseStatus/InlineIncidentStatus/ChipTrigger.component.tsx Adds opt-in pill width bounding, label truncation, and full-label title behavior while preserving the unbounded default.
openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/Severity/InlineSeverity.component.tsx Applies the 176px bound specifically to severity chips and reuses the translated empty-severity label.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/IncidentManagerLocaleLayout.spec.ts Adds locale-aware geometry coverage for the reported Russian layout scenario and guards status chips from unintended truncation.
openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseStatus/InlineIncidentStatus/ChipTrigger.test.tsx Verifies bounded and unbounded chip DOM, tooltip, accessibility, and permission-state contracts.
.github/scripts/build_playwright_shards.py Uses checked-in timings as lowest-precedence fallback data for tests absent from downloaded history artifacts.
.github/playwright/timing-baseline.json Adds timing entries for the new Incident Manager locale-layout Playwright cases.

Reviews (5): Last reviewed commit: "test(playwright): address the incident r..." | Re-trigger Greptile

TeddyCr and others added 7 commits August 21, 2026 08:55
… off screen

Fixes open-metadata#30522.

The inline severity/status chip carried `max-w-max` + `whitespace-nowrap`, so in
an auto-layout table its intrinsic width was the column's floor — the column grew
to whatever the translation needed, with no bound.

In ru-RU the severity placeholder composes `label.no-entity` with `label.severity`
into "Критичность инцидента отсутствует": 208px of text against 67px for English
"No Severity". Measured on /incident-manager at 1440x900 with unassigned rows, the
chip rendered 254px wide, the Severity column 306px (194px in en-US) and the table
1256px inside a 1178px scroll container — so the Assignee column sat at x=1508 and
was cut off at the right edge. At 1280 the column and its header were gone entirely.

The chip is now capped at 11rem and the label truncates inside it, with `title`
surfacing the full string on hover. Truncation is visual only: the text stays in
the DOM, so the button's accessible name is unchanged.

11rem is measured, not guessed. It leaves 140px of text room, which clears the
longest translated *status* label in any of the 20 shipped locales (131px, ru-RU
"Назначен исполнитель"), so the two status-chip call sites — the Incident Manager
Status column and the Data Quality tab — do not start truncating. English is
unchanged at the pixel: the chip measures 103px before and after, so the visual
regression snapshots are unaffected.

ru-RU at 1440 now lays out at 1178px, identical to English, with zero horizontal
overflow and the Assignee column fully on screen.

Note this is not the mechanism the 1.13.1 report described. That screenshot came
from an antd Table whose Severity column was pinned at `width: 100`, which made
the string overlap its neighbour; that table was replaced by the ui-core-components
Table in 8570d36 / 2c90c83, which has no per-column width. What survived the
migration is column inflation, not overlap.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Fixes open-metadata#30522.

The regression this guards is a layout one, so the assertions are geometric:
boundingBox widths and scrollWidth/clientWidth, never a class name. Asserting
`toHaveClass('tw:truncate')` would pass just as happily with the column still
overflowing.

Three cases, all verified RED against the unfixed chip:

- the Assignee cell's right edge stays inside the 1440px viewport
  (was 1508px);
- the ru-RU severity pill is capped (was 254px), paired with an en-US control
  asserting a short label is still *not* clipped, so a cap that started
  ellipsising labels that already fit would fail too;
- the truncated label is genuinely clipped (scrollWidth > clientWidth), exposes
  the full string via `title`, and keeps it in the button's accessible name.

Rows are route-mocked so the geometry depends on string length rather than on
whatever the environment happens to have ingested, and the helper waits on
`document.fonts.ready` — fallback font metrics shift column widths by a few px
and made the measurements flaky without it.

This establishes the ru-RU pattern; LanguageOverride.spec.ts (de-DE) was the only
other non-English spec in the repo. Note the visual regression suite cannot cover
this: staticPages.spec.ts masks the incident table outright.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Follow-up to review on open-metadata#30522. The cap was applied to the shared CHIP_PILL_CLASS,
which put the *status* chip 3.3px from truncating.

The 176px budget was derived from an off-DOM probe span that under-reports
Cyrillic by ~6px, because Inter's `unicode-range` subset is not active for a probe
that never paints those glyphs. Measured in-DOM on the rendered chip, ru-RU
"Назначен исполнитель" (Assigned) is a 136.7px label in a 172.7px pill, not the
130.2px the probe reported. Any retranslation, a fifth resolution status, or a
typography-token change would have silently rendered "Назначен исполнит…" in the
Incident Manager's primary column — a worse regression than the bug being fixed.

A single shared constant cannot serve both columns. Measured by overriding
max-width on the live pill, ru-RU at 1440x900:

  cap    pill   sevCol  table   overflow  assignee right edge
  none   254px  306px   1263px  85px      1508px  (off screen)
  176px  176px  228px   1185px   7px      1430px  (on screen)
  192px  192px  244px   1201px  23px      1446px  (off screen again)

192px is the smallest cap with real headroom over the 172.7px status pill, and it
re-inflates the severity column by 16px and reinstates the bug. So the constraint
is per-call-site: `truncateLabel` is opt-in and only severity uses it. Status keeps
`max-w-max` and can no longer truncate by construction, which is a stronger
guarantee than a threshold test.

176px still sits above every non-Russian severity pill (widest 168.6px, pt-BR) and
below the Russian one, so exactly one locale truncates — the pathological one.

The pill also gains its own `-pill` testid: react-aria's Button wraps children in
an unstyled span.transition-inherit-all, so a positional `chip > span` locator
measures that wrapper instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Follow-up to review on open-metadata#30522.

- The pill assertion measured react-aria's `span.transition-inherit-all` wrapper,
  not the capped pill. It shrink-wraps to the same width today, so the test passed
  while measuring the wrong box and would have kept passing if the library ever
  added padding there. Addressed by its own testid now.

- Test 2 asserts the severity `<td>` width before the pill width. The cell exists
  in both versions, so the RED is a real measurement (306px against a 240px
  budget) rather than a missing-testid error; the pill assertion then pins which
  box does the bounding.

- Tests 3 and 4 assert `toBeVisible()` before measuring. `.evaluate()` on a
  missing locator never rejects, so without the fix they hung for 135s (tripled by
  test.slow) and reported "Target page has been closed". They now fail in 16.7s
  on the real assertion.

- New guard: status chips must never truncate, exercised against all four
  resolution statuses in ru-RU where their labels are longest. This does not
  reproduce the bug — status is unbounded before and after — it guards the
  decision that the cap stays off the shared chip.

The status fixture is deliberately separate from the reported-scenario fixture: in
ru-RU an "Assigned" incident renders a 172.7px status pill and widens the Status
column by ~98px, which would confound the severity geometry assertions. That is
its own width contributor and is disclosed rather than fixed — the headline test
is scoped to the reported all-New scenario and says so.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… bound

Follow-up to round-2 review on open-metadata#30522. Two corrections, one of them to a claim
this branch asserted as established fact.

**The "forced choice" justification was wrong.** The previous comment said a
shared cap safe for the status column "needs >= ~192px". It does not: the widest
status pill is 172.7px (ru-RU "Назначен исполнитель") and 176 > 172.7, so a
shared 176px cap is already safe today. Measured cap sweep on the live pill,
ru-RU at 1440x900 with the nav expanded:

  cap    severity td  assignee right edge
  176px  228          1430  on screen
  180px  232          1434  on screen
  184px  236          1438  on screen
  188px  240          1442  off screen
  192px  244          1446  off screen

Any cap in [173, 184] satisfies both columns, so opt-in is a preference, not a
necessity. The real argument — now the one in the code — is that the band is 11px
wide and Tailwind's scale offers exactly one step inside it, and that a shared cap
would leave status 3.3px of headroom where opt-in leaves it unbounded. Robustness,
honestly labelled.

**`title` and `truncate` were applied unconditionally**, so every status chip and
every already-fitting chip advertised a native tooltip repeating its own visible
text. Both are now gated on the bound.

`truncateLabel` becomes `maxLabelWidth?: string`, which drops the 4th boolean and
puts the value where it belongs: the budget is a property of the column, so the
severity column now owns its own constant and its derivation.

Status chips keep max-content sizing and gain no tooltip; their DOM gains one
inert span wrapper, which is what makes the status guard test measurable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Follow-up to round-2 review on open-metadata#30522. The spec was passing for the wrong reason
and failing on this branch.

**It failed as committed.** `severity <td> <= 240px` is not a chip bound — it
asserts how CSS auto-layout hands out *surplus* container width. The same
correctly-capped 176px pill yields a 228px column with the nav expanded and 266px
with it collapsed, so the assertion failed whenever the nav was collapsed. It is
replaced by a bound on the chip button, which measures 258px unbounded and 180px
capped in both states, and the case now runs against both.

**The headline test was a false GREEN.** `isSidebarCollapsed` is persisted in
localStorage per user, so it rides inside the saved storageState and varies by
machine. It moves the table's container between 1178px (expanded) and 1334px
(collapsed), and at 1334px the *unfixed* layout already fits — assignee edge
1423px, zero overflow. A run with a collapsed nav therefore passed against
b4a27e7 without the fix present.

The nav is now pinned explicitly, defaulting to expanded (the product default,
`defaultPreferences.isSidebarCollapsed: false`), and the container width is
asserted as a precondition so a layout change that moves it fails loudly instead
of quietly changing what the geometry means.

Pinning waits on the sidebar's settled offsetWidth rather than its `sidebar-open`
class: the class flips synchronously with the preference while the Sider
animates, so a class-based wait returns mid-transition and the container reads
1329px instead of 1178px.

Verified RED under the pinned condition: 1508 > 1440 for the assignee edge, and
258 > 182 for the chip in both nav states.

Also asserts status labels carry no `title`, matching the tooltip gating.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…hat it bounds

Follow-up to round-3 review on open-metadata#30522. Both are cleanups; neither changes layout.

**Dead test hook.** `data-testid="${dataTestId}-pill"` was added in round 2 to
target the pill directly, then made redundant in round 3 when the assertion moved
to the chip button (the button is the element that exists in both the fixed and
unfixed trees, which is what gives that test a real geometric RED). Nothing
referenced it — not the Jest suite, not the new spec, not any existing test — so
it was shipping an unused hook into production DOM. Removed.

**`maxLabelWidth` -> `maxChipWidth`.** The class lands on the pill, not the label:
the pill also carries 16px of horizontal padding, 2px of border, a 2px gap and a
16px chevron. `tw:max-w-44` (176px) therefore leaves the label 140px, and the
button around it measures 180px. The old name invited a future caller to size the
prop from a measured text width and come out ~36px short — the same
measure-the-wrong-thing mistake that cost this branch two review rounds. The
JSDoc now states the chrome breakdown explicitly.

Removing the attribute changes rendered DOM, so the Playwright spec was re-run:
5 passed. Jest 102 suites / 1305 tests pass; tsc unchanged at its 549-error
baseline.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Aug 21, 2026
@TeddyCr
TeddyCr marked this pull request as ready for review August 25, 2026 22:39
Copilot AI lite review requested due to automatic review settings August 25, 2026 22:39

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 Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 67%
67.13% (80620/120078) 51.56% (49308/95632) 52.52% (14750/28082)

test('keeps the Assignee column on screen when the Russian severity placeholder is rendered', async ({
openIncidentManager,
}) => {
test.slow(true);

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.

Seems like we are not doing lot of thing in the test, so test.slow will not required here!

Comment on lines +125 to +140
const test = base.extend<{ openIncidentManager: OpenIncidentManager }>({
openIncidentManager: async ({ browser }, use) => {
const contexts: BrowserContext[] = [];

await use(
async (
locale: string,
{ incidents = REPORTED_INCIDENTS, navExpanded = true }: OpenOptions = {}
) => {
const context = await browser.newContext({
locale,
storageState: 'playwright/.auth/admin.json',
viewport: VIEWPORT,
});
contexts.push(context);

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.

We do not need to perform this many steps in building fixture, this could lead in flakiness.
Also if test needs only admin user, that can be achieved by adding one line
test.use({ storageState: 'playwright/.auth/admin.json' });
ref.

test.use({ storageState: 'playwright/.auth/admin.json' });

and other stuff can be achieved via beforeEach block

test(`bounds the Russian severity chip regardless of its column, with the nav ${navLabel}`, async ({
openIncidentManager,
}) => {
test.slow(true);

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.

same here we do not required test.slow

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.

Please check in bother blocks as well, seems we dont need elsewere

Comment on lines +102 to +104
className={`${CHIP_PILL_CLASS} ${
maxChipWidth ?? 'tw:max-w-max'
} tw:bg-[var(--chip-bg)] tw:text-[var(--chip-color)] tw:border-[var(--chip-border)]`}

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.

can we use classNames function here?

TeddyCr and others added 2 commits August 25, 2026 22:19
…Each

Review feedback: the bespoke `base.extend` fixture stood up its own
BrowserContext per call, which is both more setup than this spec needs and
more surface to go flaky on. The admin session is one `test.use` line, and
routing + navigation belong in `beforeEach`.

Locale can then be declared per describe rather than threaded through a
fixture argument, so the ru-RU and en-US assertions split into their own
blocks — which also removes the one test that drove two pages at once. The
status guard gets its own block for the same reason: its fixture rows differ,
so it no longer has to re-navigate over the default ones.

`test.slow` is dropped everywhere. Each case now loads a single page and
measures it; the whole file runs in ~18s against the default 60s timeout.

Behaviour is unchanged: 14/14 at --repeat-each=2, and with the bound removed
the same four cases still fail RED (chip 258px vs <= 182px, label overflow 0
vs > 0, assignee edge off screen).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TXvtzE39do8yqojYWGKTaX
Review feedback on the template literal. The palette classes move to their own
constant so the call reads as three named parts rather than an interpolation
split across lines.

The label's conditional class stays a ternary on purpose: it resolves to
`undefined` so an unbounded chip carries no `class` attribute at all, where
classNames would leave an empty one.

Also collapses the `label.no-entity`/`label.severity` composition in
InlineSeverity into one local — it was rendered three times, which is the
sonarjs/no-duplicate-string warning CI reported on this PR.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TXvtzE39do8yqojYWGKTaX
Copilot AI review requested due to automatic review settings August 26, 2026 05:19

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 added safe to test Add this label to run secure Github workflows on PRs and removed safe to test Add this label to run secure Github workflows on PRs labels Aug 26, 2026
@TeddyCr
TeddyCr enabled auto-merge August 26, 2026 05:28
@TeddyCr
TeddyCr added this pull request to the merge queue Aug 26, 2026
@ShaileshParmar11
ShaileshParmar11 removed this pull request from the merge queue due to a manual request Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-08-26T05:40:54Z)

No failing check on merge-queue commit cb6bc0e — invalidated by an entry ahead in the queue, or a required check timed out.

@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Aug 26, 2026
@ShaileshParmar11
ShaileshParmar11 removed this pull request from the merge queue due to a manual request Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-08-26T08:42:13Z)

No failing check on merge-queue commit a568218 — invalidated by an entry ahead in the queue, or a required check timed out.

…ition

Every severity assertion in this spec reached its element positionally,
which is a strict-mode escape hatch rather than a locator: it resolves to
whichever chip the DOM happens to order first and keeps passing if the
row under test stops rendering one at all. The fixtures already give each
row a unique test-case name, so scope to `pw_locale_incident_0` — the row
deliberately built without a `severity`, which is what makes it render
the "No Severity" placeholder these assertions measure. Each locator now
resolves to exactly one element, and strict mode enforces that rather
than the test silently measuring a neighbour.

The status-chip guard kept a positional visibility check purely as a wait
before `toHaveCount`, which already retries on its own. Drop it and
assert the layout instead: a label that never laid out measures 0/0,
which the clipping check below would read as "not clipped", so the widths
are now established before anything is concluded from them.

Titles and file path are untouched, so the seeded timing-baseline entries
still key correctly — re-running discovery returns the same seven stable
IDs. All seven pass locally against the branch's own UI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 26, 2026 08: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 github-actions Bot added safe to test Add this label to run secure Github workflows on PRs and removed safe to test Add this label to run secure Github workflows on PRs labels Aug 26, 2026
@gitar-bot

gitar-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Bounds the incident severity chip to prevent long translations from pushing the Assignee column off screen. No issues found.

✅ 1 resolved
✅ Quality: Bounded chip always sets title, even when label is not truncated

📄 openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseStatus/InlineIncidentStatus/ChipTrigger.component.tsx:114-119
title is gated only on isBounded, not on whether the label actually overflows. For the severity chip, once a severity is selected the label is short (e.g. startCase('Severity3') → "Severity 3") and fits within the 176px cap, yet it still gets a native hover tooltip repeating the fully-visible text. This is harmless but produces a redundant tooltip on every non-truncated bounded chip. If desired, set title only when the label element actually overflows (e.g. compare scrollWidth > clientWidth via a ref/effect) rather than unconditionally when bounded.

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 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

ShaileshParmar11 added a commit to ShaileshParmar11/OpenMetadata that referenced this pull request Aug 26, 2026
…aseline

The step built `history_args` from the downloaded full-run artifacts and
reached for `.github/playwright/timing-baseline.json` only when that
array came out empty. `gh run download` prints nothing on success, so a
run could log 49 failures across its 50 candidates, quietly succeed on
the 50th, and drop the baseline on the strength of that one artifact.

Everything already covered by an artifact was unaffected, which is why
this went unnoticed: the only entries that exist solely in the baseline
are the ones an author seeds for a brand-new spec file, exactly as the
stale-baseline gate's error text tells them to. Those were discarded, and
the gate then failed the plan for a file that did have history — so a new
spec file was unseedable whenever any artifact was available, which is
most of the time. PR open-metadata#31898 hit this twice (runs 32933633223 and
32937328644).

build_playwright_shards.py now folds the baseline in itself at lower
precedence than anything passed via --history, so the fallback here is
not just redundant but actively harmful — it re-introduces the baseline
as a peer of the artifacts, diluting the p75 those weights are built
from. Drop it, and log how many artifacts actually resolved so the next
person can see at a glance what fed the planner.

Blocked by open-metadata#31898, which carries the build_playwright_shards.py change.
Merging this first would leave a zero-artifact run with no history at
all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Aug 26, 2026
Merged via the queue into open-metadata:main with commit ce0f12d Aug 26, 2026
90 checks passed

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

Ingestion safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In the Russian translation strings for severity and assignee overlap in Incident Manager.

3 participants