Skip to content

fix(ui): drop button edge around suggestion avatar and show its count as a solid core Badge - #38082

Merged
Rohit0301 merged 23 commits into
mainfrom
Rohit0301/collate-icon-badge-check
Nov 19, 2026
Merged

Rohit0301 merged 23 commits into
mainfrom
Rohit0301/collate-icon-badge-check

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

No linked issue. This is a visual bug reported against the suggestions header.

On an entity page with pending suggestions, the suggester avatar in the Suggested Descriptions header had a dark ring, and its count badge was hard to read. In dark mode the badge was see-through and cramped.

Both problems are in AvatarCarouselItem.tsx:

  • Avatar ring: the avatar sat in a Button color="secondary", which adds a surface background, a skeuomorphic shadow and an outline around the 28px picture. ProfilePicture already draws the bot logo without a border. The button is now color="tertiary": no background, shadow or outline, and the focus ring still works.
  • Count badge: the core Badge tinted fill is opaque pale pink in light mode but 16% alpha in dark mode (a status-chip choice from fix(ui): align AI dark-mode brand + status-chip + filter-border tokens with palette guideline (#6491) #33751), so the avatar showed through it. Core had no solid option, so this PR adds variant?: 'tinted' | 'solid' to core Badge. solid paints an opaque fill with text-primary_on-brand and no outline, for every Badge colour. brand, error, warning and success use their semantic bg-*-solid roles. The other colours use the theme-aware bg-utility-{color}-600 token, which switches to the 400 shade in dark mode. The default is tinted, so existing badges don't change. The count uses <Badge color="error" size="xs" variant="solid"> with layout-only classes (position, max-w-none so the 28px avatar box doesn't squeeze it).
  • Core-ui: Vitest covers the semantic and utility-*-600 solid fills, and a Solid story in Badge.stories.tsx shows all 13 colours and an xs count over an Avatar, to check in both themes.
  • Bot avatar icon: UserClassBase gains getBotIcon(botName), which returns nothing in OpenMetadata. When a distribution registers an icon component for a bot, ProfilePicture draws the bot on that icon (no initials, no logo URL). Collate uses it to show AppCollateAiChatColored for its AI bots in a companion PR. With no icons registered, OpenMetadata renders exactly as before.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Entity page with 10 open suggestions: the avatar has no button edge, and the count is a solid red core Badge in both light and dark.

Unit tests

  • badges.test.tsx (Vitest): new tests for variant="solid", covering the opaque fill with no outline, and the utility-*-600 fill for a colour without a semantic solid role. 12/12 pass.
  • AvatarCarouselItem Jest suite passes (4/4).
  • ProfilePicture.test.tsx: new test checks that a registered bot icon replaces the logo and initials (13/13 pass).

Visual regression baselines

  • Added playwright/e2e/VisualRegression/entitySuggestions.spec.ts with four new baselines under __snapshots__/entitySuggestions.spec.ts-snapshots/: table-suggestions (header with avatar and solid count) and table-suggestions-selected (after clicking the avatar), each in light and dark.
  • The fix changes about 500 px, far under the default 1% page tolerance (12,960 px on 1440×900). So the spec clips to the suggestions header (data-testid="suggestions-slider", plus a margin for the badge) with maxDiffPixelRatio: 0, as glossaryInteractions and exploreInteractions do for small regions. Suggestion tasks are served only in this spec, so no other baseline changes.
  • Baselines were captured on the Linux renderer: https://github.com/open-metadata/OpenMetadata/actions/runs/44384361351

Screenshots

Before and after on dim_customer with 10 seeded suggestion tasks. In order: before (light), before (dark), after (light), after (dark). The dark captures add the dark-mode class on the root element.

Before - light

Before - dark

After - light

After - dark

Checklist:

  • I have read the CONTRIBUTING document.
  • ESLint, Prettier and yarn tw-audit pass (0 errors).

🤖 Generated with Claude Code


Summary by Gitar

  • Bot avatar icon:
    • Added UserClassBase.getBotIcon so distributions can register an icon component for a bot avatar
    • ProfilePicture draws the registered bot icon ahead of the logo URL
  • Suggestion header:
    • Added a Playwright visual baseline spec for the table suggestions header
  • Docs:
    • Recorded the bot avatar icon hook decision in docs/decisions

This will update automatically on new commits.

RetriggerView in GreptileConfidence Score: 5/5

This update appears safe to merge; no new blocking issues were found.

Summary

This PR removes the suggestion avatar’s button edge, adds solid count badges, and lets distributions supply bot icons.

  • Suggestion avatars have a clean edge and a clear solid count.
  • Registered bot icons can replace logo-based bot pictures.

The latest update only reorders imports. No new issues found.

Reviews (25) · Last reviewed commit: "test(playwright): sort imports in the su..." · Reviewed by Greptile

… badge legible

The suggestion avatar sat in a secondary Button, whose surface background,
shadow and outline drew a dark ring around the profile picture. The count
badge used the error pill, which is a 16% alpha tint in dark mode, so the
avatar showed through it, and max-w-full squeezed it to the 28px avatar.

Use a tertiary Button, and put the xs badge on an opaque, content-sized
surface.
@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.

The bg-surface backing restyled the core Badge from the call site, against
ADR:2026-10-11-migrated-antd-components-adopt-core-styling. The badge keeps
its own styling; the wrapper only positions it and sizes it to its content.
The core Badge's dark-mode status tint is translucent, so the avatar showed
through the count. Share the inbox launcher's solid count bubble class and
use it on the suggestion avatar too.
Revert the shared COUNT_BADGE_CLASS and the InboxIconButton change; the
avatar carries only the classes its bubble needs.
…n count

The tinted Badge fill is 16% alpha in dark mode, so a badge laid over an
avatar lets the image show through. variant="solid" paints the bg-*-solid
role with on-solid text for brand, error, warning and success; other colors
stay tinted. The suggestion count uses it instead of a styled span.
@Rohit0301 Rohit0301 changed the title fix(ui): drop button edge around suggestion avatar and keep its count badge legible fix(ui): drop button edge around suggestion avatar and show its count as a solid core Badge Nov 18, 2026
Colors without a semantic bg-*-solid role use their raw 600 step, which,
like those roles, stays the same in both themes; utility-*-600 lightens to
the 400 step in dark mode and would wash out the on-solid text.
Moving the Ontology Studio UI to Collate (#37823) removed its only importer,
so knip's unused-files gate fails every UI PR on it.
UserClassBase gains getBotIcon, empty in OpenMetadata. When it returns an
icon, ProfilePicture draws the bot on that icon instead of its logo URL, so
Collate can show a core-ui icon for its AI bots.
A bot named constructor or toString got the built-in back from the plain
botIcons object, and ProfilePicture handed it to Avatar as a component.
Replace the raw bg-{color}-600 palette classes with bg-utility-{color}-600;
the status colors keep their semantic bg-*-solid roles.
Render the real core Avatar with a visible test icon and check that the
icon shows with no logo image and no initials.

@shah-harshit shah-harshit 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.

Update visual regressions

@github-actions

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit 5132053329f97b63d9a43db1812c69d0f6c9423a in Playwright run 44324260289, attempt 1.

✅ 2248 passed · ❌ 41 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

❌ Action needed: test(s) failed on every attempt against this PR’s validated commit — see Genuine Failures below. These are test failures, not CI budget or infrastructure issues.

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) 38m 47s

⏱️ Max setup 13m 11s · max shard execution 16m 4s · max shard-job elapsed before upload 28m 2s · reporting 15s

🌐 2.76 requests/attempt · 1.31 app boots/UI scenario · 0.00% common-shard skew

⚠️ CI time-budget signals — pipeline capacity telemetry, not test failures, and not caused by this PR:

  • Budget target `Environment setup` breached (target ≤ 480 s) — exceeded on 8 shard(s): visual-01 791 s, rdf-01 765 s, visual-04 680 s, visual-06 675 s, visual-02 672 s (+3 more).

Optimization targets still in progress:

  • Application boot ratio was 1.31 per UI scenario (55 boots / 42 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 42 0 0 0 0 0
✅ Shard rdf-01 13 0 0 0 0 0
🔴 Shard visual-01 315 6 0 0 0 0
🔴 Shard visual-02 302 7 0 0 0 0
🔴 Shard visual-03 289 5 0 0 0 0
🔴 Shard visual-04 305 2 1 0 0 0
🔴 Shard visual-05 316 9 0 0 0 0
🔴 Shard visual-06 371 6 0 0 0 0
🔴 Shard visual-07 295 6 0 0 0 0

Genuine Failures (failed on all attempts)

❌ ../utils/visualScenarios.ts › tab-domain-data-products (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    13622 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: tab-domain-data-products-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(tab-domain-data-products-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 13623 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 13622 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › metric-tab-assets (shard visual-01)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('select-all-assets') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('select-all-assets')�[22m 
❌ VisualRegression/exploreInteractions.spec.ts › explore-tools-menu (shard visual-01)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByRole('menu', { name: 'Tools', exact: true })   70 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: explore-tools-menu.png  Call log: �[2m  - Expect "toHaveScreenshot(explore-tools-menu.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByRole('menu', { name: 'Tools', exact: true })�[22m �[2m    - locator resolved to <div data-rac="" role="menu" tabindex="0" aria-label="Actions" id="react-aria4110986192-:r13:" aria-labelledby="react-aria4110986192-:r12:" data-collection="react-aria4110986192-:r7t:" class="tw:overflow-y-auto tw:py-1 tw:outline-hidden tw:select-none">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - wai
❌ VisualRegression/metricList.spec.ts › Metric interaction asset-picker light (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    82950 pixels (ratio 0.07 of all image pixels) are different.    Snapshot: metric-state-asset-picker.png  Call log: �[2m  - Expect "toHaveScreenshot(metric-state-asset-picker.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 82948 pixels (ratio 0.07 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 82950 pixels (ratio 0.07 of all image pixels) are different.�[22m 
❌ VisualRegression/metricList.spec.ts › Metric interaction asset-picker dark (shard visual-01)
Error: Metric interactions must render without runtime errors  �[2mexpect(�[22m�[31mreceived�[39m�[2m).�[22mtoEqual�[2m(�[22m�[32mexpected�[39m�[2m) // deep equality�[22m  �[32m- Expected  - 1�[39m �[31m+ Received  + 3�[39m  �[32m- Array []�[39m �[31m+ Array [�[39m �[31m+   "Request failed with status code 503",�[39m �[31m+ ]�[39m
❌ VisualRegression/staticPages.spec.ts › data-quality matches baseline (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    153 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: data-quality.png  Call log: �[2m  - Expect "toHaveScreenshot(data-quality.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/connectionBranches.spec.ts › connection-branch-dashboardServices-Tableau-root-authType-3512437263 (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('connection-grouped-form')   1330 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: connection-branch-dashboardServices-Tableau-root-authType-3512437263.png  Call log: �[2m  - Expect "toHaveScreenshot(connection-branch-dashboardServices-Tableau-root-authType-3512437263.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('connection-grouped-form')�[22m �[2m    - locator resolved to <div data-testid="connection-grouped-form" class="connection-grouped-form tw:flex tw:flex-col tw:gap-3 tw:text-primary">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - 1330 pixel
❌ VisualRegression/connectorForms.spec.ts › dashboardServices Tableau configuration form (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('connection-grouped-form')   1228 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: connection-dashboardServices-Tableau.png  Call log: �[2m  - Expect "toHaveScreenshot(connection-dashboardServices-Tableau.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('connection-grouped-form')�[22m �[2m    - locator resolved to <div data-testid="connection-grouped-form" class="connection-grouped-form tw:flex tw:flex-col tw:gap-3 tw:text-primary">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - 1228 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - w
❌ VisualRegression/connectorForms.spec.ts › pipelineServices TableauPipeline configuration form (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('connection-grouped-form')   1228 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: connection-pipelineServices-TableauPipeline.png  Call log: �[2m  - Expect "toHaveScreenshot(connection-pipelineServices-TableauPipeline.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('connection-grouped-form')�[22m �[2m    - locator resolved to <div data-testid="connection-grouped-form" class="connection-grouped-form tw:flex tw:flex-col tw:gap-3 tw:text-primary">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - 1228 pixels (ratio 0.01 of all image pixels) are different.�
❌ VisualRegression/glossaryInteractions.spec.ts › glossary-late-activity-count (shard visual-02)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    201 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: glossary-late-activity-count-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(glossary-late-activity-count-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 201 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 201 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › explore matches baseline (shard visual-02)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    11173 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: explore.png  Call log: �[2m  - Expect "toHaveScreenshot(explore.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 11173 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 11173 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › users matches baseline (shard visual-02)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    1938 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: users.png  Call log: �[2m  - Expect "toHaveScreenshot(users.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 1938 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 1938 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › bots matches baseline (shard visual-02)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    153 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: bots.png  Call log: �[2m  - Expect "toHaveScreenshot(bots.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/connectionBranches.spec.ts › connection-branch-pipelineServices-TableauPipeline-root-authType-3512437263 (shard visual-03)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('connection-grouped-form')   1330 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: connection-branch-pipelineServices-TableauPipeline-root-authType-3512437263.png  Call log: �[2m  - Expect "toHaveScreenshot(connection-branch-pipelineServices-TableauPipeline-root-authType-3512437263.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('connection-grouped-form')�[22m �[2m    - locator resolved to <div data-testid="connection-grouped-form" class="connection-grouped-form tw:flex tw:flex-col tw:gap-3 tw:text-primary">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m
❌ VisualRegression/connectorForms.spec.ts › dashboardServices Tableau configuration form (shard visual-03)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('connection-grouped-form')   1221 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: connection-dashboardServices-Tableau-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(connection-dashboardServices-Tableau-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('connection-grouped-form')�[22m �[2m    - locator resolved to <div data-testid="connection-grouped-form" class="connection-grouped-form tw:flex tw:flex-col tw:gap-3 tw:text-primary">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - 1221 pixels (ratio 0.01 of all image pixels) are different.�[22m
❌ VisualRegression/connectorForms.spec.ts › pipelineServices TableauPipeline configuration form (shard visual-03)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('connection-grouped-form')   1221 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: connection-pipelineServices-TableauPipeline-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(connection-pipelineServices-TableauPipeline-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('connection-grouped-form')�[22m �[2m    - locator resolved to <div data-testid="connection-grouped-form" class="connection-grouped-form tw:flex tw:flex-col tw:gap-3 tw:text-primary">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - 1221 pixels (ratio 0.01 of all image pixels) are d
❌ VisualRegression/glossaryInteractions.spec.ts › glossary-late-activity-count (shard visual-03)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    231 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: glossary-late-activity-count.png  Call log: �[2m  - Expect "toHaveScreenshot(glossary-late-activity-count.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 231 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 231 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › teams matches baseline (shard visual-03)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    739 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: teams.png  Call log: �[2m  - Expect "toHaveScreenshot(teams.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 739 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 739 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › tab-domain-data-products (shard visual-04)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    13558 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: tab-domain-data-products.png  Call log: �[2m  - Expect "toHaveScreenshot(tab-domain-data-products.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 13559 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 13558 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › metric-tab-assets (shard visual-04)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('select-all-assets') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('select-all-assets')�[22m 
❌ VisualRegression/exploreInteractions.spec.ts › explore-tools-menu (shard visual-05)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByRole('menu', { name: 'Tools', exact: true })   53 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: explore-tools-menu-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(explore-tools-menu-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByRole('menu', { name: 'Tools', exact: true })�[22m �[2m    - locator resolved to <div data-rac="" role="menu" tabindex="0" aria-label="Actions" id="react-aria491113589-:rt:" aria-labelledby="react-aria491113589-:rs:" data-collection="react-aria491113589-:r7n:" class="tw:overflow-y-auto tw:py-1 tw:outline-hidden tw:select-none">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    
❌ ../utils/visualScenarios.ts › test-definition-create (shard visual-05)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('test-definition-form-body')   Expected an image 724px by 1138px, received 724px by 1142px. 6029 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: test-definition-create.png  Call log: �[2m  - Expect "toHaveScreenshot(test-definition-create.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('test-definition-form-body')�[22m �[2m    - locator resolved to <div data-testid="test-definition-form-body" class="new-form-style tw:relative tw:flex tw:flex-col tw:gap-5">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - Expected an image 724px by 1138px, received 724p
❌ ../utils/visualScenarios.ts › test-definition-validation (shard visual-05)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('test-definition-form-body')   Expected an image 724px by 1190px, received 724px by 1194px. 6415 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: test-definition-validation.png  Call log: �[2m  - Expect "toHaveScreenshot(test-definition-validation.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('test-definition-form-body')�[22m �[2m    - locator resolved to <div data-testid="test-definition-form-body" class="new-form-style tw:relative tw:flex tw:flex-col tw:gap-5">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - Expected an image 724px by 1190px, recei
❌ ../utils/visualScenarios.ts › shell-profile-menu (shard visual-05)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('my-data-page') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('my-data-page')�[22m 
❌ ../utils/visualScenarios.ts › shell-mode-menu (shard visual-05)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('my-data-page') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('my-data-page')�[22m 
❌ VisualRegression/metricList.spec.ts › Metric interaction assets light (shard visual-05)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('warehouse-fact_orders').getByRole('link', { name: 'Finance Orders', exact: true }) Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('warehouse-fact_orders').getByRole('link', { name: 'Finance Orders', exact: true })�[22m 
❌ VisualRegression/staticPages.spec.ts › glossary matches baseline (shard visual-05)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    386 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: glossary.png  Call log: �[2m  - Expect "toHaveScreenshot(glossary.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 386 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 386 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › roles matches baseline (shard visual-05)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    153 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: roles.png  Call log: �[2m  - Expect "toHaveScreenshot(roles.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › applications matches baseline (shard visual-05)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    153 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: applications.png  Call log: �[2m  - Expect "toHaveScreenshot(applications.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 153 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › test-definition-create (shard visual-06)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('test-definition-form-body')   Expected an image 724px by 1138px, received 724px by 1142px. 8572 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: test-definition-create-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(test-definition-create-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('test-definition-form-body')�[22m �[2m    - locator resolved to <div data-testid="test-definition-form-body" class="new-form-style tw:relative tw:flex tw:flex-col tw:gap-5">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - waiting for element to be stable�[22m �[2m  - Expected an image 724px by 1138px, rec

... and 11 more failures

🟡 1 flaky test(s) (passed on retry)
  • ../utils/visualScenarios.ts › tab-table-schema-definition (shard visual-04, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

Component files hold only the component; the helper is pure logic and gets
its own tests.
…nd selection

Screenshot only the suggestions header with no tolerance: the avatar edge
and the solid count change about 500 px, far below the default 1% page
tolerance.
@gitar-bot

gitar-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 3 closed / 3 findings

Adding solid badges and registered bot-icon precedence changes shared UI rendering; incorrect theme colors or icon mappings could make counts or bot identities unclear.

Removes the dark ring around the suggestion avatar in the Suggested Descriptions header and switches its count to a solid core Badge variant, with a new getBotIcon hook so distributions can supply bot avatar icons. Earlier concerns about call-site badge styling, a hand-rolled count badge, and the missing decision record were resolved. No open issues found.

✅ 3 closed
✅ Quality: Badge background restyled from call site instead of fixing core Badge

📄 openmetadata-ui/src/main/resources/ui/src/components/common/AvatarCarouselItem/AvatarCarouselItem.tsx:74-80
The new <span className="... tw:rounded-full tw:bg-surface"> sits under the core Badge to paint an opaque surface behind it, because the error pill's dark-mode fill is a translucent tint. The added comment says this outright. It contradicts the Accepted ADR 2026-10-11 core styling, which says call sites must not restore background, radius or other visuals on core components, and that "a visual gap that the core API cannot express is fixed in the core component, not at the call site". The wrapper is outside the Badge DOM, but it still changes the Badge's background from the caller. It hard-codes the pill radius and bg-surface, so it will break silently if core changes the Badge shape or tint, and other overlay count badges will keep the translucent fill. This is a blocking conflict with the record, and the ADR's v2–v5 amendments show how exceptions get approved. One option is to fix it in core: add an opaque or solid variant to Badge (for example a pill-color option for overlays on imagery), with Storybook stories in both themes, and use that variant here. The other is to add a record that amends ADR:2026-10-11-migrated-antd-components-adopt-core-styling. That record would say: "Count badges overlaid on an avatar sit on a call-site bg-surface rounded backing until core ships an opaque Badge variant." Only the layout classes (absolute, offsets, w-max, pointer-events-none) are allowed at the call site.

✅ Quality: Hand-rolled count badge works around core Badge, and no ADR records it

📄 openmetadata-ui/src/main/resources/ui/src/constants/common/countBadge.constants.ts:14-20 📄 openmetadata-ui/src/main/resources/ui/src/components/common/AvatarCarouselItem/AvatarCarouselItem.tsx:13 📄 openmetadata-ui/src/main/resources/ui/src/components/common/AvatarCarouselItem/AvatarCarouselItem.tsx:74-78 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxIconButton/InboxIconButton.tsx:21 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxIconButton/InboxIconButton.tsx:84
This commit drops the core Badge from AvatarCarouselItem and uses a hand-written <span> styled by the new shared COUNT_BADGE_CLASS instead. The constant's own comment gives the reason: core Badge's dark-mode tint is translucent. ADR:2026-10-11-migrated-antd-components-adopt-core-styling says that "a visual gap that the core API cannot express is fixed in the core component, not at the call site." Swapping the core component for a hand-rolled copy at the call site is that kind of workaround. It also creates a new shared pattern, and no record in docs/decisions/ states it. The rule comes from the description: "The count now uses the same solid bubble as the sidebar inbox launcher: its class moved from InboxIconButton to a shared COUNT_BADGE_CLASS". A record would say: "A count badge that overlays an icon or avatar uses the solid COUNT_BADGE_CLASS bubble, not core Badge, until core ships a solid overlay/notification Badge variant." Before this PR the inbox bubble was explicitly local ("Keep badge positioning local to this component"). Promoting it to a shared constant makes it the pattern other call sites will copy.

There are two ways to fix this. One is to add a solid notification/overlay variant to core Badge (with Storybook stories in both themes) and use it at both call sites. The other is to add an amendment to the core-styling ADR, or a new ADR, that names this exception, its scope (the inbox launcher and suggestion avatar counts) and the exit condition.

✅ Quality: New UserClassBase.getBotIcon hook for Collate has no decision record

📄 openmetadata-ui/src/main/resources/ui/src/utils/UserClassBase.ts:15-27 📄 openmetadata-ui/src/main/resources/ui/src/components/common/ProfilePicture/ProfilePicture.tsx:56-70
This commit adds an extension point that a downstream distribution has to agree with: UserClassBase.botIcons / getBotIcon(botName). The description says "Collate uses it to show AppCollateAiChatColored for its AI bots in a companion PR". Nothing in docs/decisions/ covers UserClassBase or bot avatars. Other class-base hooks have records, e.g. 2026-10-21-classic-sidebar-path-aliases-are-a-class-base-hook.md. Each such record names the override contract and the merge order, because Collate cannot build against an OpenMetadata that lacks the method.

The record should say: "UserClassBase.getBotIcon(botName) returns an icon component keyed by the bot user's name. When it returns one, ProfilePicture draws the bot with that icon as the Avatar placeholderIcon, with no src and no initials, ahead of any getBotLogo URL. A distribution registers icons by filling botIcons in its UserClassBase subclass. OpenMetadata registers none. Merge this OpenMetadata PR before the Collate override."

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

@Rohit0301
Rohit0301 enabled auto-merge (squash) November 19, 2026 05:28
@Rohit0301
Rohit0301 merged commit dab2da9 into main Nov 19, 2026
53 of 55 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/collate-icon-badge-check branch November 19, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants