Skip to content

Fixes 36152: Tidy the description conversation drawers - #36162

Merged
anuj-kumary merged 19 commits into
mainfrom
anuj-kumary/drawer-ui-alignment-fix
Oct 26, 2026
Merged

anuj-kumary merged 19 commits into
mainfrom
anuj-kumary/drawer-ui-alignment-fix

Conversation

@anuj-kumary

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

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #36152

The conversation drawer that opens from an entity's description (the third icon next to Description), and the drawer its Reply opens, had misaligned headers, hover actions sitting on top of long author names, long names overflowing the card, a card click that jumped into the thread, an old inline editor, and a full page reload when clicking the entity link. This tidies those two drawers only:

  • Actions: Edit and Delete move into a ⋮ menu (Reply/Resolve leave the hover bar); Edit opens the comment editor used when writing a new comment.
  • Replies: a labelled reply count ("Reply" / "1 Reply" / "N Replies") opens the conversation inside the drawer — with ← Back, replies oldest-first in a compact layout, each with its own ⋮ menu, and an always-open "Reply in Conversation" composer. The card itself is no longer clickable. The open conversation shows no reply count of its own — its replies are already listed, so the count would only reopen it in a second drawer.
  • Layout: "+ New conversation" is a labelled button; the redundant "conversation" label is dropped (the drawer title already says it); long entity, column and author names truncate with an ellipsis; the time never wraps; reaction pills wrap instead of overflowing; rounded card corners; the divider spans the card.
  • Navigation: an in-app link (e.g. the entity link) navigates and closes the drawer — no page reload. Modified clicks, new-tab links and mentions inside the editor leave the drawer and any draft open.
  • Width: the drawers take 40% of the screen (min 480px).
  • Dark mode: core icons in the Inbox colours, and the message sits on the Inbox's recessed surface so it no longer blends into the card.
  • Core Typography: adds color="brand" (the text-brand-secondary link token), with a test and a Storybook story, so the drawer's truncated entity name keeps the link colour without a className override.

Everything is gated on an isThreadPanel prop, so the entity Activity tab, home feed widget, Inbox and task comments keep main's layout. Two shared changes reach those surfaces on purpose: the feed footer's replier avatars are sized to their slot and centred on the row, and pill-style reactions wrap.

Type of change:

  • Bug fix

High-level design:

  • Scope flag. isThreadPanel is passed from the two drawers (ActivityThreadPanelBody, ActivityFeedDrawer) down through FeedPanelBodyV1New / FeedPanelBodyV1 → ActivityFeedCardNew → FeedCardBodyNew, CommentCard, FeedCardFooterNew, and ActivityFeedActions (asMenu). Without it every component renders exactly as on main; the header layout for the drawer is a separate ThreadPanelEntityLink and a PANEL_HEADER_LAYOUT map, so main's new list-card header (Feed card headers update and stay inside the card; dark chip, fade and editor colours #36134) is untouched.
  • Replies in the drawer. The list card's footer gets onReplyPress (select the conversation) instead of opening a second drawer; the open conversation renders CommentComposer below its replies.
  • Closing on navigation. useCloseOnNavigation closes a drawer when the router's location key changes. Reacting to the navigation rather than to link clicks keeps the drawer open for clicks that never leave the page and lets the router finish navigating before the drawer unmounts (closing on the click turned the navigation into a full reload).
  • Resolve. The drawers no longer show Resolve; it stays on the entity Activity tab's hover actions, now covered by a Playwright test there.

Tests:

Use cases covered

  • Description conversation drawer on a glossary, glossary term, Context Center article and table column: list, ⋮ menu, New conversation, reply view (Back, oldest-first replies, composer), editing a message and a reply, the drawer Reply opens.
  • Long author / entity / column names, unbroken words, long URLs and many reactions stay inside the card in light and dark mode at 1280px and 1920px.
  • An entity link navigates without a reload and closes the drawer; a selected conversation does not show on the Tasks tab.
  • Resolving a conversation from the entity Activity tab.

Unit tests

  • I added unit tests for the new/changed logic.
  • Core: typography.test.tsx — color="brand", and the colour on the element that clips the ellipsis (vitest: 35 passed).
  • Added: hooks/useCloseOnNavigation.test.tsx, FeedCardFooterNew.test.tsx, FeedPanelBodyV1New.test.tsx.
  • Updated: ActivityFeedcardNew.component.test.tsx (menu, label, reply order + composer), ActivityFeedActions.test.tsx (menu), CommentCard.test.tsx (drawer edit form + menu), ActivityThreadPanelBody.test.tsx (Tasks-tab gate, close on navigation), ActivityFeedDrawer.test.tsx (router wrapper).
  • yarn test src/components/ActivityFeed src/hooks/useCloseOnNavigation src/components/discovery/personal-space src/components/Entity/Task → 251 suites, 2435 tests passed.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated playwright/e2e/Features/ContextCenterArticles.spec.ts — drawer Edit/Delete through the ⋮ menu and the comment editor.
  • Added a test to playwright/e2e/Features/ActivityFeed.spec.ts — resolve a conversation from the Activity tab.
  • Mapped constants/Feeds.constants.ts and hooks/useCloseOnNavigation* in .github/playwright/impact-map.json.

Local Playwright run on 367804c5 (the drawer code at this PR's head; later merges of main touch none of these files) — chromium, local stack

Spec Passed
Features/ContextCenterArticles.spec.ts (incl. the open-conversation step) 43
Features/ActivityFeed.spec.ts (incl. the resolve test) 10
Features/Tasks/TaskComments.spec.ts 15
Pages/DescriptionVisibility.spec.ts 9
Features/FeedEditorDuplicateId.spec.ts 1

Feed, Inbox and task specs on the drawer change (11bbd979)

Spec Passed
Features/ContextCenterPermission.spec.ts 33
Features/ActivityAPI.spec.ts 7
Features/ActivityStream.spec.ts 6
Features/ActivityFeedTabBadge.spec.ts 4
Features/ActivityFeedFieldPath.spec.ts 2
Features/AIMode/InboxActivity.spec.ts 14
Features/AIMode/InboxTasks.spec.ts 19
Features/Tasks/ActivityFeed.spec.ts 12
Features/Tasks/TaskNavigation.spec.ts 11
Features/Tasks/TeamActivity.spec.ts 10
Features/Tasks/TaskDashboardEntity.spec.ts 7
Pages/AIProfile/ProfileUserDetail.spec.ts 12
Pages/DataContractSchemaContract.spec.ts 4
Pages/Users.spec.ts 43

Manual testing performed

  1. Local stack (backend :8585, UI via Vite), logged in as admin; seeded a glossary, a glossary term, a Context Center article and a table column with very long names, a ~90-character author name, a 140-character unbroken word, a long URL, 6 reactions, 6 replies, and a task with long comments.
  2. Opened the description conversation drawer on each, in light and dark (AI) mode at 1280px and 1920px: list, ⋮ menu, New conversation, reply view, editing a message and a reply, the drawer Reply opens — a DOM audit found nothing past the card edge, under the ⋮ button, or scrolling sideways (98 checks).
  3. Compared the entity Activity tab, home feed widget, Inbox (list, hover, reaction hover, thread) and task comments against a main build pixel by pixel: unchanged apart from the replier avatars centred in the feed footer.
  4. Clicked the entity link: navigated in-app (no reload) and the drawer closed.

UI screen recording:

Not applicable — a fix to existing drawers rather than a new feature; before/after screenshots below (left: main, right: this PR).

List: hover actions → ⋮ menu, labelled reply count, "New conversation"

List actions

Reply view: card click → reply count opens the conversation in the drawer (no reply count of its own there, since the replies are listed)

Reply view

Editing a reply with the comment editor (this PR)

Edit

Long table / column / author names

Long names

Dark mode

Dark mode

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: I updated the migration scripts or explained why it is not needed. — N/A, no schema changes.
  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable). — N/A, fix to existing drawers; screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    • Reviewed 11bbd979; fixes in 3630f1dd (close on navigation instead of link clicks; resolve coverage moved to the Activity tab; tests for the drawer edit form and Tasks-tab gate; comments that restated code removed).
  • Decision check: the drawer width is recorded in docs/decisions/2026-10-24-conversation-drawers-are-40vw-wide-with-a-480px-floor.md; the drawer's Inbox-style reply count and recessed message are a scoped exception to the core-styling record, in docs/decisions/2026-10-26-conversation-drawers-style-the-reply-count-and-message-like-the-inbox.md (amendment v3 of 2026-10-11-migrated-antd-components-adopt-core-styling).
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with the previous formatting issue fixed and no new findings.

Summary

Tidies the description conversation drawers with Edit/Delete menus, labelled reply counts, compact replies, and shared comment editors.

  • Reply opens the conversation inside the drawer.
  • Conversation drawers keep long names inside the card and close after navigation.
  • Typography can color clipped link text with the brand color.

Reviews (3) · Last reviewed commit: "style(ui): format the card utils import" · Reviewed by Greptile

The conversation drawer opened from a description, and the drawer its Reply
opens, now:
- keep Edit and Delete in a menu, and edit with the comment editor
- open a conversation's replies in the drawer (Back, oldest first, an open
  reply composer) instead of on a card click
- label the reply count, drop the replier avatars and the redundant
  "conversation" label, and truncate long entity, column and author names
- close on an in-app link click instead of reloading the page
- take 40% of the screen (min 480px)

Other feed surfaces keep their layout; the shared footer only centres its
replier avatars, and reaction pills wrap instead of overflowing.
Address the self-review of the drawer change:
- close the conversation drawers when the app navigates, not on any link
  click, so modified clicks, new-tab links and editor mentions keep the
  drawer and its draft
- cover resolving a conversation on the entity Activity tab, which keeps the
  toggle the drawers no longer show
- test the drawer reply edit form, the Tasks-tab gate and the drawer router
  wiring; drop comments that restated code or claimed a draft-restore path
- map Feeds.constants and the new hook in the Playwright impact map
@github-actions github-actions Bot added the UI UI specific issues label Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

Comment thread .github/playwright/impact-map.json Resolved
@anuj-kumary anuj-kumary self-assigned this Oct 24, 2026
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Oct 24, 2026
The entity name truncates through Typography (ellipsis, brand-secondary so
the text and its ellipsis keep the link colour), the header slots and edit
wrappers are Box, and the open thread's frame is a Card that keeps overflow
visible so the reply composer's mention list is not clipped.
…fix' into anuj-kumary/drawer-ui-alignment-fix
Typography's color prop had no link colour, so a truncated name inside a link
needed a className override to keep the text and its ellipsis out of the prose
body colour. Add color="brand" (text-brand-secondary, the link token), with a
test and a Storybook story, and use it for the drawer's entity link.
…-alignment-fix

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCard/FeedCardBody/FeedCardBodyNew.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardV2/FeedCardFooter/FeedCardFooterNew.test.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardV2/FeedCardFooter/FeedCardFooterNew.tsx
#	openmetadata-ui/src/main/resources/ui/src/constants/Feeds.constants.ts
…ge as a core-styling exception

The drawers' labelled reply count and recessed message restyle core Button and
Card from the call site, as the Inbox does. Record the exception, its scope and
its exit (core variants), amend the core-styling record, and cite it in code.
The open conversation already lists its replies below, so its reply count only
reopened the same conversation in a second drawer. Hide it there (the
footer's existing componentsVisibility.showThreadIcon), keep it on the list
cards, and cover both with a footer test and a Playwright step.
…fix' into anuj-kumary/drawer-ui-alignment-fix
@anuj-kumary
anuj-kumary marked this pull request as ready for review October 26, 2026 12:48
@anuj-kumary
anuj-kumary requested a review from a team as a code owner October 26, 2026 12:48
@anuj-kumary
anuj-kumary requested a review from Rohit0301 October 26, 2026 12:48
@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: 989 → 990
- 1 added, 0 removed, 3 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityThreadPanel/ActivityThreadPanelBody.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardV2/FeedCardFooter/FeedCardFooterNew.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/Shared/ActivityFeedActions.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/ActivityThread.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

… out of components

- give the drawer's conversation menu a 24px target around its 20px glyph and
  keep a long name beside it from shrinking it
- let a reply's long, unbroken author name wrap in the drawer instead of
  pushing the menu past the card
- move the drawer layout constants and class-name helpers out of the
  component files into sibling .constants.ts / .utils.ts
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.68% (130664/163982) 66.25% (46072/69533) 69.11% (26112/37782)

…fix' into anuj-kumary/drawer-ui-alignment-fix
@anuj-kumary
anuj-kumary enabled auto-merge October 26, 2026 13:49
@gitar-bot

gitar-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 4 closed / 4 findings

🟡 Medium risk · The drawer's reply, edit/delete, and navigation flows use new UI wiring, which could misroute conversation actions or discard drafts unexpectedly.

Tidies the description conversation drawers with a ⋮ menu for Edit/Delete, a labelled reply count opening an in-drawer conversation view, long-name truncation, and close-on-navigation instead of full page reloads. No open issues remain; the impact map entry, drawer width decision record, entity link colour and thread-panel style overrides were addressed.

✅ 4 closed
✅ Quality: Impact map lists useCloseOnLinkClick*, which matches no file

📄 .github/playwright/impact-map.json:109
The new impact-map entry points at src/hooks/useCloseOnLinkClick*, but the hook this PR adds is useCloseOnNavigation.ts (with useCloseOnNavigation.test.tsx). No file matches that glob, so a later change to the close-on-navigation hook won't select the ActivityFeed/Task Playwright specs that cover drawer closing. Point the glob at the real file name.

✅ Quality: New conversation-drawer width default has no decision record

📄 openmetadata-ui/src/main/resources/ui/src/constants/Feeds.constants.ts:99-101 📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedDrawer/ActivityFeedDrawer.tsx:133 📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityThreadPanel/ActivityThreadPanel.tsx:66
FEED_DRAWER_WIDTH = 'max(40vw, 480px)' replaces the fixed 576px used by both conversation drawers (ActivityFeedDrawer, ActivityThreadPanel). The 40% share and the 480px floor are both judgment calls, and nothing in docs/decisions/ records them, so under the repo's decision-record rules this needs a record. The record would say: "The conversation drawers (ActivityFeedDrawer and ActivityThreadPanel) are max(40vw, 480px) wide, one shared constant, so a thread is never narrower than 480px." The alternative is to keep the existing 576px.

✅ Quality: Entity link colour set through Typography className, not a core prop

📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardNew/ActivityFeedcardNew.component.tsx:226-232
The entity name now renders as <Typography ellipsis className="tw:text-brand-secondary">. The added comment explains why: Typography's .prose wrapper would otherwise draw the name and its "…" in body text. The styling rules forbid this kind of caller override, though: "No className … setting … text color on core components… Typography takes size/weight/color props", and "Fix gaps in the core component." Typography's color prop only offers secondary | success | warning | danger, so this is a gap in the core API, and the call site is patching it locally. If core later changes how the inner element or wrapper gets its colour, the brand colour on the name or on the ellipsis will break with no warning. Either add a link/brand colour to Typography's colorClasses in core and use color="…" here, or keep the plain truncating <span> inside the Link. The span is not a core component, so it needs no override.

✅ Quality: Thread-panel styling overrides core Button/Card from caller classNames

📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardV2/FeedCardFooter/FeedCardFooterNew.tsx:50-52 📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardV2/FeedCardFooter/FeedCardFooterNew.tsx:77-83 📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCard/FeedCardBody/FeedCardBodyNew.tsx:279-281
This commit restyles core components from the call site, which contradicts the Accepted record docs/decisions/2026-10-11-migrated-antd-components-adopt-core-styling.md. That record bans caller-side className that sets padding, border, background or text colour on a core component. It also bans descendant selectors that reach into the component's internals.

Two places break it:

  • LABELLED_REPLY_CLASS sets padding on the core Button (tw:px-2). It also uses child selectors (tw:*:data-icon:size-4, tw:*:data-icon:text-fg-secondary, tw:hover:*:data-icon:text-fg-secondary_hover) to resize and recolour the icon slot inside the Button.
  • FeedCardBodyNew gives the core Card tw:border-transparent plus INBOX_RECESSED_SURFACE_CLASS (a background and a tw:dark:bg-primary override) whenever isThreadPanel is set.

If core Button/Card change their padding, icon slot or surface tokens, these overrides break without any warning, and the same component looks different on different screens. The record says to fix this in the core component instead: add a recessed/borderless Card variant and a Button size/color that renders the Inbox-style labelled reply. Then use those props here. Otherwise, add an amendment record (as was done for the landing-page segmented controls) that scopes and time-limits this exception.

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 26, 2026
Merged via the queue into main with commit 60a53a1 Oct 26, 2026
87 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/drawer-ui-alignment-fix branch October 26, 2026 17:18
Rohit0301 added a commit that referenced this pull request Oct 28, 2026
… lost in the merge

PlatformLineage's export and settings buttons are xl in AI mode again, matching the
search box beside them (#36093); the add-reaction pill keeps the size and icon colour of
the reaction chips beside it (#36162).
Rohit0301 added a commit that referenced this pull request Nov 4, 2026
…#35438)

* feat(ui): Implemented New Persona setting ui

* fixedall the UI issues and added unit and playwright test

* feat(ui): finish persona settings migration and drop antd from home customize

- Render persona fullscreen customize views in normal flow (no z-index overrides)
- Guard persona customize exits with the unsaved-changes prompt
- Wait for the customize store page type before mounting entity customize pages
- Migrate Curated Assets modal, header theme, search bar and carousel off antd
- Save persona home header colour; restore Members/Bots profile nav ids
- Move CustomizeStore and page-type utils out of pages/
- Add unit tests for persona settings and Playwright save coverage

* lint fix

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

* removed antd refs

* fix(playwright): replace antd modal waits with role-based dialog waits in CustomizeDetailPage spec

The Add Tab modal was migrated from antd Modal to SimpleModal, so
.ant-modal never renders. Drop the dead .ant-modal.waitFor and
waitForAntdModalToSettle calls; the existing getByRole('dialog') check
already gates the dialog, leaving only expect(addButton).toBeEnabled()
before the click.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* lint fix

* Persona settings review fixes: filled eye and save icons, header action alignment, tailwind tokens for home widgets, revert import-only churn, stabilize curated assets e2e

* Remove accidentally committed local playwright report

* Update NavigationBlocker and CustomizeLandingPage specs for the core UnsavedChangesModal

* Sort imports

* Restore Members nav item and ProfileNavId re-export lost in merge

* Fix Sonar warnings in persona settings: void floating promises, Select value/onChange, useState naming

* lint fix

* Address review: persist home reset, sync doc-store cache, guard dirty in-modal editors, scroll-only dialog dividers, move usePersonaUsersField to hooks

* Keep the unsaved-changes prompt open when save-before-exit fails

* Label test-only buttons for jsx-a11y

* lint fix

* Fix hook dependency and async lint warnings without disabling rules

* Fix remaining lint warnings: hook deps in AddWidgetModal/CustomiseSearchBar, isolated admin fixture in persona specs

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

* Fix hook deps in CustomiseHomeModal/EmptyWidgetPlaceholder and move CustomizeLandingPage to the isolated admin fixture

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

* feat(ui): migrate antd icons to core UI icon library

Add 11 new icons to @openmetadata/ui-core-components and replace every
named @ant-design/icons import across OMD with a core-UI equivalent.

Icons added (SVG + generated TSX):
CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled,
EyeInvisibleFilled, Drag, Mail, Paperclip, Send, SortAscending,
SortDescending. EyeFilled already existed.

Call-site migration: all 29 distinct named antd icons are gone
(CloseOutlined->XClose, PlusOutlined->Plus, CheckOutlined->Check,
InfoCircleOutlined->InfoCircle, and 25 more). The package itself stays
for now: 104 files still use the default <Icon component={Svg} />, which
core-UI's Icon (iconValue: string) cannot accept.

Naming: drop the "Outlined" suffix (MailOutlined->Mail,
SaveOutlined->Save); "Filled" is kept as a real variant marker.

Deduplicate X/XClose: same glyph, differing only in inset. XClose has 68
imports on main vs 11 for X, so X is removed and its users converted.

LoadingOutlined (an animated antd Spin indicator) becomes the in-house
spinner idiom used by tree/tree-select/button: RefreshCw01 +
tw:animate-spin. CheckCircleTwoTone keeps its green via color=.

Fix generate-icons.mjs: SVGO's convertColors rewrites `white` to `#fff`
before replaceHardcodedColors runs, so the guard matching only the
literal "white" let the knockout on filled icons be themed into
currentColor - making the tick/cross/bang invisible against the disc.
Match the hex forms too. This also corrects SecurityService's clipPath.

Tests: 5 suites asserted antd implementation details (incomplete icon
mocks, getByRole('img'), and an accessible name of "left
label.browse-app-plural" from LeftOutlined's aria-label). Core-UI icons
are aria-hidden, so assertions move to data-testid.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): render SVG assets directly instead of antd's Icon wrapper

Replace every `<Icon component={Svg} />` with the SVG component itself, and
drop the direct @ant-design/icons dependency. No named antd icon imports and
no uses of its default Icon component remain; antd keeps the package as its
own transitive dependency, so the yarn.lock entry stays until antd goes.

antd's Icon rendered `<span role="img" class="anticon">` around an `<svg>` it
sized at `1em`. Rendering the asset directly removes that wrapper, which four
kinds of styling quietly depended on:

- `.anticon { font-size }` sized the icon. Each call site now carries the size
  the CSS asked for (the left sidebar was the worst case at 28px, and had been
  rendering at 14px), and the dead font-size declarations are removed.
- `.anticon svg { fill }` and `.class svg { width/height }` targeted a
  descendant. The icon *is* the svg now, so those rules match the element
  itself; the sidebar's `fill: transparent` and the onboarding icon's 24px
  were both being dropped.
- `.ant-btn > .anticon + span { margin-left: 8px }` gave antd buttons their
  icon/label gap. Icons inside an antd `<Button icon=…>` with a label get
  `tw:mr-2`.
- `.anticon` was `inline-flex` and would not shrink. A bare `<svg>` in a flex
  row can be squashed by a long sibling, so converted icons get `tw:shrink-0`.

Sizes are preserved rather than standardised: `1em` resolved against antd's
`body { font-size: 14px }`, so sites with no explicit size become `tw:size-3.5`
and sites with `style={{ fontSize }}` keep their own value.

`alt` is carried to `aria-label` + `role="img"`. antd put it on the wrapper
span, where it meant nothing.

`getColumnDataTypeIcon` returned null for an unknown dataType, which antd's
`component={null}` tolerated; it now guards instead of crashing the lineage
node.

Tests that asserted antd internals (`.anticon`, `role="img"`, an accessible
name of "left …" from LeftOutlined's aria-label, and svg mocks that dropped
className) assert the rendered element instead.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ui): size the settings card icon at 90px, not the inherited 14px

`.setting-card-item .setting-card-icon svg { font-size: var(--om-font-size-90) }`
sized this icon while it was wrapped in antd's `.anticon`. font-size cannot size
an `<svg>`, so once the asset rendered directly the rule stopped applying and
the icon fell back to the 14px default every other converted icon takes —
a 6x shrink on every card in Settings.

The size moves onto the icon's class and the dead declaration is removed.

Co-Authored-By: Claude Opus 5 <[email protected]>

* minor fix

* fix(ui): size the converted icons and restore the antd button icon gap

Two things the icon conversion left behind, both found in review.

Icons from `@openmetadata/ui-core-components/icons` default to `size = 24` and
write that to the svg's width/height, where the antd icons they replaced were
`1em` — about 14px against antd's `body { font-size: 14px }`. 67 call sites
rendered the icon bare, so they all grew to 24px: overflowing 18px and 24px
icon-only buttons, and dwarfing the `text-xs` labels they sit beside. Each one
now carries the size it used to render at, keeping any explicit `fontSize` the
old call site set (so KPILatestResultsV1 stays 20px and 14px).

`.ant-btn > .anticon + span` and `span + .anticon` gave antd buttons their 8px
icon/label gap, and neither matches a bare svg. 11 buttons with the icon before
the label get `tw:mr-2`; 2 with it after get `tw:ml-2`.

Also: WhatsNewAlert's close icon was invisible. `padding: 16px` used to apply to
antd's wrapper span; on the svg itself, under the global border-box reset, 32px
of padding against a 14px box leaves a 0x0 content area — measured in Chrome as
`box 32x32, content 0x0`. It is the only element carrying the dismiss handler.
`box-sizing: content-box` restores it to `box 46x46, content 14x14`.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ui): size the icons written as bare tags, and drop the dead fontSize

The previous pass keyed off an existing `className` on the icon, so the call
sites written as a bare `<XClose />` or `<Check />` were skipped and kept
rendering at the core-ui default of 24px. 13 of them, in buttons sized for a
14px glyph: BotDetails and RolesCard's `size="small"` save/cancel pair,
ObservabilityFormFiltersItem and TriggerItem, Execution, TermBoost's Select
suffix, CustomizeAppModeSidebarPage and ProfilerConfigurationPage.

Two take their size from the button's own CSS rather than the 14px default:
`.include-columns-add-button` is 18x18px with an 8px glyph, so both of
ProfilerSettingsModal's Plus icons are `tw:size-2`.

Also removed 7 `style={{ fontSize }}` declarations left on converted icons.
font-size cannot size an `<svg>`, and each site's size class already matched
the value it was asking for.

IncidentList's ShieldTick is left unsized: it belongs to main, not this branch,
and is deliberately large in an empty-state placeholder.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ui): merge the duplicate className on SearchInputIcon

The icon-sizing pass appended a second `className` instead of merging into the
one already there. JSX keeps the last, so the `className` the caller passes in
was silently dropped and only the size class survived. Merge both through
`classNames`, which the file already imports.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ui): restore the button icon gap on 11 more sites, prune stale suppressions

The gap sweep matched `icon={<X ... />}` literally, so it missed icons wrapped
in an expression — EmailConfigSettingsPage renders its Edit icon behind an
`!isUndefined(...) && ...` guard, and its label sat flush against the icon.
Widening the scan to the whole `icon=` prop value found 11 labelled antd
buttons still missing the 8px gap `.ant-btn > .anticon + span` used to supply.

`yarn lint:src:suppressions` drops 36 `no-antd-import` suppressions for files
this branch moved off antd. Verified none of the 36 still imports antd, so no
real violation is being hidden. Without this, `make ui-checkstyle-changed`
fails with "There are suppressions left that do not occur anymore".

The five `LeftOutlined` prev-buttons in the DataContract tabs keep their current
spacing: they are pre-existing SVGR assets with explicit width/height that this
branch never converted.

Co-Authored-By: Claude Opus 5 <[email protected]>

* test(ui): lower the antd suppression ratchet to 559

`openmetadata-antd.test.mjs` pins the exact number of suppressed antd symbols
so re-running `--suppress-rule` cannot quietly absorb new usage, and its comment
says to lower the figure when a PR removes antd imports and prunes the baseline.
This branch removes 164, so the count is 723 -> 559.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): size core-ui icons with the size prop instead of a class

The icons from `@openmetadata/ui-core-components/icons` take a `size` prop, so
73 call sites pass it directly rather than carrying a `tw:size-*` class. Each
keeps the size it already rendered at, including the odd ones: `size={8}` for
the 18px include-columns button, `size={18}`, `size={20}`.

The 61 SVGR assets imported from `assets/` keep their class. Those components
spread props straight onto the `<svg>` and have no `size` handling, so `size`
would land as a meaningless `size="14"` attribute and leave the icon unsized.

One consequence worth knowing: `size` writes width/height attributes, which CSS
outranks, where a class does not. Checked every class still attached to a
converted icon for a CSS width/height rule — the only matches are generic
utilities (`d-flex`, `cursor-pointer`) and a `drawer-close` prefix match on
`drawer-close-icon`, which belongs to a ButtonUtility this branch never touched.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): move the last 12 core-ui icons onto the size prop

A re-audit of all 160 changed .tsx files, with a brace- and quote-aware scanner
that also reads multi-line tags and dynamic classNames, found 12 core-ui icons
still sized by a `tw:size-*` class. They were added after the earlier
conversion, in the pass that gave bare tags an explicit size.

The 76 SVGR assets keep their class: they have no `size` prop, so `size` would
land as a meaningless `size="14"` attribute. Six were traced back to their
`assets/*.svg` import to confirm the classification, including `Calendar`,
whose name also exists in the core-ui icon set.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): drop the redundant white style and the vestigial anticon class

The seven `style={{ color: 'white' }}` on Plus icons sit inside antd
`<Button type="primary">`, which already sets `color: #fff`, so the icon
inherits white through `currentColor` without them.

The four `anticon` classNames were antd's wrapper hook. Nothing styles them now
that the icon is the svg itself — the one rule that could have matched,
`.alert-icon .anticon`, is scoped to a container none of these sit in.

The other 17 style props stay. They are not redundant: core-ui icons hardcode
`stroke="currentColor"` on the path, which overrides the root's `stroke={color}`,
so the glyph follows the inherited CSS color. Verified in Chrome — dropping
`style={{ color }}` renders the path black rather than the intended colour.
Those set greys (GRAYED_OUT_COLOR, #37352F4D) or spacing and all came across
from the antd icons they replaced.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): move icon classes onto Tailwind tokens, dark-mode aware

63 icon sites carried legacy utility classes. Each is mapped to its Tailwind
equivalent after resolving the actual CSS value, so nothing shifts: m-r-xss is
4px so `tw:mr-1`, m-l-xs is 8px so `tw:ml-2`, m-l-sm is 12px so `tw:ml-3`.

The colours matter most. `text-grey-muted` is a hardcoded #757575 with no dark
variant; `tw:text-quaternary` resolves through `--color-gray-500`, which
`.dark-mode` redefines. Measured in Chrome:

  legacy  light rgb(117,117,117)  dark rgb(117,117,117)   unchanged
  token   light rgb(117,117,117)  dark rgb(123,127,134)   adapts

Also `text-grey-600` -> `tw:text-tertiary`, `text-base-color` ->
`tw:text-secondary`, `text-primary` -> `tw:text-brand-secondary` (what
DataAssetsHeader.utils and ServiceFlowStepper already use for brand text).

26 classes stay: `sla-icon`, `status-icon`, `inherit-icon`, `configure-arrow`,
`primary-key-section-line` and the like are component classes carrying their own
colours and transforms, not utilities — replacing them means deleting their
stylesheets.

`TagsUtils` had `className="d-block'"`, a stray apostrophe that made the class
match nothing. Now `tw:block`.

NavbarUtils asserts the literal className, so its expectation moves with the
component. No other test asserts on a converted class.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): drop the sizing classes that do nothing on an icon

An `<svg>` with an explicit size ignores font-size, so `tw:text-md`,
`tw:text-xs` and `tw:font-medium` on 15 already-sized icons were dead. Measured
in Chrome: the same icon renders 14x14 with and without them. Only sites that
already carry a size prop, a size class or width/height attributes are touched —
an unsized icon still inherits font-size through `1em`, and none of those exist
here.

ArrayFieldTemplate's delete icon carried `tw:w-7 tw:h-0` alongside
`tw:size-3.5`, which is a real conflict: whichever Tailwind emits last wins and
`h-0` would collapse it. The original had `w-7 h-0` on antd's wrapper span,
where it was harmless and, as it turns out, already dead — neither class is
defined in the LESS.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): drop the icon styles and classes that carry nothing

Style props on icons go from 17 to 5. The six `marginRight` become `tw:mr-2` /
`tw:mr-2.5`, the six `color: GRAYED_OUT_COLOR` become `tw:text-quaternary`
(#959595 hardcoded, so it never adapted to dark mode), and one
`transform: rotate(90deg)` becomes `tw:rotate-90`. Four GRAYED_OUT_COLOR
imports are no longer used.

ProfileCard carried `className="tw:mr-1"` and `style={{ marginRight: '10px' }}`
on the same icon. The inline style won, so the class was dead and the markup
said 4px while rendering 10px. One `tw:mr-2.5` now.

`close-btn` and `ant-icon` are defined in no stylesheet, antd's included. Both
came across from the antd icons they replaced, where they did nothing either.

Five style props stay because nothing else expresses them: a dynamic
`theme.primaryColor`, an intentional `currentColor`, and three specific values
(TEXT_BODY_COLOR, #546E7A, #37352F4D) with no exact token — #546E7A is close to
`tw:text-tertiary` (#535862) but not equal, and swapping it would change the
colour rather than tidy it.

The 23 remaining classes were each checked against the stylesheets and do carry
CSS, `ant-form-item-tooltip` included: antd defines it with a colour and
`cursor: help`.

Co-Authored-By: Claude Opus 5 <[email protected]>

* style(ui): convert remaining legacy icon classes and fix dead sidebar CSS

Follow-up review pass on the antd icon migration.

- Convert the legacy utility classes still sitting on migrated icons to
  their Tailwind equivalents: m-r-xss/m-t-xss (4px) -> tw:mr-1/tw:mt-1,
  m-r-xs (8px) -> tw:mr-2, m-x-sm (12px) -> tw:mx-3, align-middle and
  self-center -> tw:align-middle / tw:self-center.
- GlobalSearchBar: text-primary (!important ant var) -> tw:text-brand-secondary,
  and drop 'text-color', which no stylesheet defines.
- Replace two hardcoded colours with dark-mode-aware tokens:
  LimitBanner's #546E7A -> tw:text-quaternary, and AddAttributeModal's
  #37352F4D -> tw:text-placeholder. The latter was a real dark-mode bug:
  at 30% alpha the glyph flattens to #c3c2c0 on light but #191c22 on dark,
  i.e. it got darker against a dark background.
- left-sidebar.less: antd's Menu clones the `icon` node and appends
  `ant-menu-item-icon` to its className -- it never wraps it in `.anticon`.
  Verified against the rendered DOM (0 `.anticon`, 3 `.ant-menu-item-icon`).
  Every `.anticon` rule in the file was therefore dead once the icons became
  bare <svg>, including the hover colour at `.ant-menu-item-active`. Point
  them at `.ant-menu-item-icon`, collapse the four-selector `fill: transparent`
  block into one rule, and drop the `font-size` rules (a sized <svg> ignores
  font-size) along with the now-unused @left-sidebar-icon-size, whose 28px
  the `tw:size-7` class already carries.

Co-Authored-By: Claude Opus 5 <[email protected]>

* lint fix

* style(ui): drop the inline styles this branch introduced on icons

Addresses the review comments on #35205.

- TaskFeedCardFromTask: the footer Box already supports `gap`, so use
  gap={2} (tw:gap-2, 8px — what tw:mr-2 was) instead of margins on the
  icon and the replies-count button.
- The seven `<Plus size={14} style={{ color: 'white', fontSize: '12px' }} />`
  icons inside `<Button color="primary">` become `iconLeading={Plus}`, the
  component form used at 235 other call sites. All three properties were
  dead: Button's primary root carries tw:text-white (inherited through
  currentColor) and sizes its icon with `tw:*:data-icon:size-*`, a class
  that outranks the size attribute; fontSize never sized a sized <svg>.
- TreeSelectWidget: TEXT_BODY_COLOR (#37352F, no dark variant) -> the
  tw:text-secondary token, and drop the now-unused import.
- executionUtils: color: 'transparent' -> tw:text-transparent, twice.
- AddAttributeModal: a second #37352F4D Search prefix the main merge brought
  in -> tw:text-placeholder, matching the one already converted.
- ExploreV1: drop `fontSize: '14px'` from the two sort icons — font-size
  cannot size an <svg>, and the enclosing core Button sizes them anyway.

Left inline deliberately: `theme.primaryColor` (EntityLineageSidebar) and
`currentColor` (AppearanceConfigSettingsPage) are user-configurable brand
colours from Appearance settings, so no static Tailwind class can track them.

Verified: tsc 573 vs origin/main's 626 baseline; jest 872/872 across the 64
affected suites; eslint 0 errors.

Co-Authored-By: Claude Opus 5 <[email protected]>

* style(ui): replace the last inline styles and hardcoded status colours

- EntityLineageSidebar: both inline styles go. `cursor: 'grab'` becomes a
  conditional `tw:cursor-grab`, and `theme.primaryColor` becomes
  `tw:text-fg-brand-primary`. I previously argued this one had to stay inline
  because the colour is user-configurable; that was wrong. The theme provider
  publishes primaryColor into --tw-color-fg-brand-primary at runtime
  (theme-provider.utils.ts), so the class tracks the configured colour and the
  component no longer needs useApplicationStore at all.
- SSOConfigurationForm: the status disc was a hardcoded @green-7/@Red-7 with
  no dark variant and a raw tw:text-white glyph. Both sides move to semantic
  tokens — tw:bg-success-solid / tw:bg-error-solid, which globals.css
  redefines under the dark block, with tw:text-fg-white on the glyph. The two
  now-unused LESS rules are deleted.
- app.less: drop `.pagination-prev-icon`, whose `margin-top: calc(-1 *
  var(--om-space-3))` and `transform: rotate(180deg)` become
  `tw:-mt-[3px] tw:rotate-180` at the call site (--om-space-3 is 3px, off
  Tailwind's 4px scale, hence the arbitrary value). `.pagination-next-icon`
  was referenced but never defined, so that class is dropped too.

Its three tests asserted the old implementation — inline `cursor: grab` and
`useApplicationStore` being called — so they now assert the class and the
rendered handle. The global svg.mock drops props, so the brand tint is not
assertable in jsdom; the test says so rather than pretending to check it.

Verified: tsc 573 vs origin/main's 626 baseline; jest 450/450 across the 29
affected suites; eslint 0 errors.

Co-Authored-By: Claude Opus 5 <[email protected]>

* lint fix

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

* fix(ui): restore the icon sizes and line box the visual baselines expect

The visual-regression suite failed on applications, settings and glossary.
Both causes are this branch's, and both come from replacing an antd <Icon>
with a bare <svg>.

1. Badge icons were sized 14 when the antd icon they replaced rendered at
   1em of the badge's own font-size:
     ApplicationCard     .text-xss -> 10px (was 14)
     EntityHeaderTitle   .text-xs  -> 12px (was 14)
     TeamsHeadingLabel   .text-xs  -> 12px (was 14)
     AppDetails          .text-xs  -> 12px (was 14)
   On the marketplace the 4px of extra width pushed "Cache Warmup" onto a
   second line, which cascaded ~12px down the grid and reordered the cards.
   My earlier size audits only looked for icons with no size at all, so a
   size that was present but wrong went unnoticed.

2. setting-item-card: dropping `font-size: 90px` from the icon's <svg> also
   dropped the inline line box the `.anticon` wrapper used to contribute, and
   that box is part of the card's height. Measured in Chrome: the antd markup
   gives a 109px row, the bare svg 93px inline / 90px block, and putting the
   font-size back on `.setting-card-icon` returns it to 109px exactly. The
   svg keeps its tw:size-[90px]; the font-size is only there for the line box.

Verified: tsc 573 vs origin/main's 626 baseline; jest 63/63 across the 10
affected suites. The screenshots themselves can only be re-checked by CI,
which runs them in the pinned Playwright container.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(ui): express the settings-card line box as a Tailwind class

Replaces the `font-size: var(--om-font-size-90)` I had put back into
setting-item-card.style.less with `tw:text-[90px]` on the container, so the
LESS carries no om token and its only change remains the removal of the old
rule.

Measured in Chrome, both give the card the same 109px row the antd `.anticon`
wrapper produced; the bare svg alone gives 93px inline / 90px block.

Verified: tsc 574 vs origin/main's 626 baseline; jest 4/4; eslint 0 errors.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ui): size the settings-card icon the way the legacy markup did

My previous two attempts here were based on a wrong reconstruction of the old
DOM. The real markup is `<svg width="1em" height="1em">` inside a plain
`.anticon` span that carries no font-size of its own — the 90px came from the
LESS rule `.setting-card-icon svg { font-size: 90px }` applying to the svg,
where font-size resolves `1em`. So it sized the glyph; it was never a line box.

Measured against that real markup in Chrome: legacy gives a 90x93 icon box,
a 93px row and the beta badge at (9, 82) from the box corner. A bare inline
<svg> sized by `tw:size-[90px]`, with no height pin and no font-size, gives
exactly the same three numbers. The `tw:h-[109px]` I added before was 16px too
tall and made every settings card taller than the baseline instead of matching.

The diff is now just: drop the antd wrapper, move the 90px from the LESS onto
the icon as a Tailwind class.

Verified: jest 4/4; eslint 0 errors.

Co-Authored-By: Claude Opus 5 <[email protected]>

* lint fix

* feat(ui): unify edit icon on Edit01 and drop icon-button wrappers

- ButtonUtility forwards refs, defaults to tertiary, and keeps the tooltip
  and focus on a disabled button that has a tooltip (aria-disabled).
- Every edit action uses core Edit01; Edit02/03/05, Pencil01, EditSkills and
  the app's edit-new*, action-icons/edit and ic-edit-circle svgs are deleted.
  edit01.svg now matches the shipped 20-grid glyph so regeneration keeps it.
- EditIconButton family, WidgetActionButton, LineageNodeRemoveButton and
  Modals/CloseIcon are replaced by ButtonUtility at each call site, with
  icons passed as components and sizes per the Figma placement spec.

ADR:2026-10-14-icon-only-actions-are-tertiary-button-utility-with-one-edit-icon

* feat(ui): make every icon-only action a tertiary ButtonUtility

Icon-only core Buttons, raw icon <button>s, icons with onClick and icon-only
span/div handlers become ButtonUtility, sized by placement (xs chip/expander,
sm inline edit, md row/card actions, lg collapse/close/canvas, xl page
header) with icons passed as components. Existing secondary/primary
ButtonUtility usages become tertiary.

ButtonUtility types onPress and, when disabled with a tooltip, stops press
events before a parent MenuTrigger/DialogTrigger can open.

* feat(ui): pass button icons as components so buttons size them

Labeled Buttons pass iconLeading/iconTrailing as component references
instead of pre-sized elements, icons sitting in children move to the icon
props, and SVGs that cannot take the button's size or currentColor (no
viewBox, hard-coded fill) are replaced by their core equivalents. Blue icons
use utility-brand-600.

* fix(ui): one delete icon, lg header actions, quaternary menu icons

- Trash01 is the only delete icon: ic-delete, ic-trash, delete-colored,
  action-icons/trash, ic-delete-token and core Trash02 are replaced and
  removed, along with unused delete svg variants.
- Icon-only header actions use ButtonUtility lg instead of xl (ManageMenu
  and CopyLinkButton default to lg).
- Menu and popover item icons are 20px text-quaternary with the standard
  stroke; dark hard-coded menu svgs are swapped for core icons or switched
  to currentColor.
- Dropdown.DotsButton renders a tertiary ButtonUtility; remaining raw icon
  triggers (agent overflow, table header filter, feed reply/comment) move
  to ButtonUtility.

* fix(ui): align icon colours and sizes with the icon spec

- Owner edit trigger wrappers are inline-flex so the button sits on the
  label row; button wrapper divs in Bot, ColumnDetail and ExpandableCard
  headers are flex for the same reason.
- Core icons outside buttons drop pixel sizes for the spec frames (16-20px
  -> 20 frame, 14-15 -> 18, <=13 -> 16) and lose stroke overrides.
- Blue icons use utility-brand-600 (theme-driven) instead of
  fg-brand-primary / brand-600; raw gray palette icons use utility-gray.

* fix(ui): one plus and copy icon, numeric button labels, spec icon sizes

- Plus and Copy01 are the only add and copy icons: plus/copy svg variants
  and core PlusCircle and Copy07 are replaced and removed; text '+' labels
  become iconLeading={Plus}.
- Button treats a numeric 0 child as a label, so vote counts keep their
  padding and the button is not styled icon-only.
- Remove per-call icon size overrides on buttons (bulk Edit, feed footer,
  ontology actions, query builder) so icons use the spec frame.

* fix(ui): drop remaining button icon size overrides, widen vote count gap

- Tree-select and filter-select borderless triggers no longer shrink the
  chevron below the button's frame; the notification bell and copy-link
  check use the spec frame instead of pixel sizes.
- Query vote buttons get a 4px icon-count gap.

* fix(ui): use core icons where wrapper removal moved raw svg imports

Inlining the icon-button wrappers moved their raw assets/svg imports into
each call site, which the tw-deprecation guard reads as new imports.

- Add core ExpandRight (the panel toggle, 16px glyph on the 20 grid) and use
  it for every tab-expand-button.
- list-conversation / request-update / ic-card-expand-collapse become core
  MessageChatSquare / MessagePlusSquare / ChevronUp.

* fix(ui-core): designer panel-toggle and plus/minus icons

- Expand / Collapse replace ExpandRight for the right-panel toggle; the 25
  tab-expand buttons switch icon by state instead of rotating one glyph.
- Plus, Minus, PlusCircle and MinusCircle take the designer's artwork with a
  1.8 stroke (1.3 read too light at these shapes); PlusCircle is restored.

* fix(core-ui): restore the 16 icons the last merge regenerated

Valid review comment on Edit01. Resolving the icon conflicts in the previous
merge, I re-ran `yarn icons:generate` to rebuild Paperclip/X — but that
rewrites every icon, and main's checked-in output does not match what main's
own generator produces. 450 of main's icons carry `stroke={color}` on the
path, while the generator emits `stroke="currentColor"`, which overrides the
root's `stroke={color}` and makes the `color` prop inert.

Edit01 was the clearest casualty: main keeps a hand-maintained three-path
pencil-with-baseline whose edit01.svg source is the stock single-path
UntitledUI pencil, so regenerating collapsed 3 paths into 1 and changed the
glyph at every call site (IntakeFormsTable, RelationshipTypeTable,
DomainDetails, BotDetailPanel, the access-control pages, EntityBulkEditUtils).

Restore all 16 pre-existing icons to main's version. The 11 this PR genuinely
adds (CheckCircleFilled, CloseCircleFilled, Drag, ExclamationCircleFilled,
EyeInvisibleFilled, Mail, Paperclip, Save, Send, SortAscending,
SortDescending) are untouched, and index.ts still exports them plus main's X.

Not fixing the source/output drift here: it predates this branch, spans ~450
icons, and belongs in its own PR rather than one whose goal is no visual
change.

Verified: Edit01.tsx byte-identical to main (3 paths, stroke={color});
tsc 564 vs origin/main's 568 baseline; core-components rebuilds clean.

Co-Authored-By: Claude Opus 5 <[email protected]>

* style(ui): organise the icon imports the merge left out of order

ui-checkstyle failed its "ESLint + Prettier + Organise Imports (src)" gate on
seven files. That step runs organize-imports-cli, eslint --fix and prettier
over the changed files and fails if any of them rewrites something.

All seven are files where the last merge needed a core-icon import added back
(main's side of the conflict had dropped it). I appended each import at the
end of the block instead of in sorted position, so organize-imports-cli moved
it and the gate tripped.

No code change — only the import lines move.

Verified by running the three CI commands in order over the same file list:
the tree is clean afterwards, so the gate's `git status --porcelain` check
now passes.

Co-Authored-By: Claude Opus 5 <[email protected]>

* lint fix

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

* lint fix

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

* fix(ui): keep the settings card icon's baseline offset

The `settings matches baseline` visual-regression test was failing on this
branch and only on this branch — PR #35520 carries main's sidebar rewrite and
passes, so the stale-baseline theory I had been working from was wrong.

Measuring the card top-borders in CI's own PNGs shows the cards drift: the
first is identical at y=157, then 218->219, 240->241, 276->278, 297->299,
growing down the page. That is this branch's SettingItemCard change.

antd's <Icon> wraps the svg in a `.anticon` span, and antd injects
`.anticon { display: inline-flex; line-height: 0; vertical-align: -0.125em }`
at runtime from @ant-design/icons/lib/utils.js. Replacing the wrapper with a
bare <svg> dropped that offset: a baseline-aligned inline svg reserves room
for the descender, making the icon box 2px taller.

Measured in Chrome against the real antd CSS: legacy 90x93, bare svg 90x95
(the 2px), and 90x93 again with `vertical-align: -0.125em` restored.
`display: block` overshoots at 90x90, which is why the earlier attempts at
this missed.

`tw:align-[-0.125em]` is already used in EntitySummaryDetails on this branch,
so the utility compiles.

Verified: eslint 0 errors; jest 4/4; the ui-checkstyle pipeline leaves the
file clean.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ui): size icon-only actions by role and keep the PR to button icons

- ButtonUtility sizes follow the icon's role: standalone table, card and
  list-row actions and sole header actions are lg (16 icon / 20 frame),
  actions tied to a label or section are sm (14 / 18), and arrows,
  expanders and chip removes are xs (12 / 16). md is no longer used.
- Core: link-color Button icons use brand-600, chip remove buttons are a
  20 box with a 16 frame in gray-500, and the borderless filter trigger
  caret uses the 16 frame.
- Icons rendered outside buttons (breadcrumbs, metadata rows, tree and
  list-row icons, status and tile icons) are restored to their base sizes
  and colours; this PR only changes icons inside action buttons.

* fix(ui): centre header stat icons, widen link button gap, match search icons

- StatItem: make the button's text span flex so the vote/version icon and
  count centre with the manage menu instead of sitting on the text baseline.
- Unboxed link buttons drop the label padding, so their icon-to-label gap is
  one 2px step wider to match boxed buttons.
- Leading search icons in fields use the 20 frame everywhere: TreeSelect and
  the Connections, data asset picker, Marketplace and Explore search inputs.
- WhatsNewAlert close button uses size md.

* fix(ui): close buttons use XClose at lg; record role-based action sizes

- WhatsNewAlert and WelcomeScreen close buttons use the core XClose
  instead of the edge-to-edge close.svg, which rendered oversized in the
  button's icon frame; WhatsNewAlert's close is lg like other closes.
- Re-centre PlusCircle and MinusCircle at (10, 10).
- Amend ADR:2026-10-14-icon-only-actions-are-tertiary-button-utility-with-one-edit-icon:
  ButtonUtility size follows the icon's role (lg standalone, sm with a
  label, xs arrows); md is not assigned.
- Amend ADR:2026-10-13-core-icons-and-buttons-follow-the-figma-icon-spec:
  1.8 stroke for Plus/Minus glyphs and the wider link button gap.

* test(playwright): locate the selected-policy check by testid, not .anticon-check

Roles.spec asserted the selected policy with `.locator('.anticon-check')`.
That class came from antd's <CheckOutlined>; this branch renders core <Check>,
which emits no `.anticon-*` class, so the locator could never match.

Give the icon `data-testid="selected-check-icon"` and locate by that, which is
how the rest of that assertion already finds its elements and does not depend
on a library's internal class names. Verified in jsdom that the core icon
spreads `data-testid` through to the <svg>.

Also swaps the icon's legacy `text-primary` (an antd-variable class with
`!important` and no dark-mode variant) for `tw:text-brand-secondary`, matching
the conversion done elsewhere on this branch.

Left alone: the two `.anticon` locators in playwright/utils/user.ts. They sit
in `editTeams` and `editDescription`, which have no callers, and the first is
already stale on main — TeamsSelectableNew renders core TreeSelect, not antd
Select. Neither is a regression from this PR.

Verified: eslint 0 errors; jest 16/16 across src/pages/RolesPage; the
ui-checkstyle pipeline leaves both files clean.

Co-Authored-By: Claude Opus 5 <[email protected]>

* test(playwright): follow ButtonUtility markup in failing specs

- Restore the csv-jobs-tray-dismiss and inherit-icon test hooks on the
  ButtonUtility that replaced their elements, and add a selected-check
  test id to the Add Policy row tick (core Check replaced antd's icon).
- Version history drawer close is a ButtonUtility: click it by role and
  name; scope the bulk import modal's Close to its own dialog.
- Context Center memories: scope Edit/Delete checks to the memory dialog.
- Data contract semantic edit uses its edit-semantic test id.
- Metrics actions menu is named by its trigger's "Actions" label.

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

* test(ui): follow DotsButton and Expand/Collapse toggle in unit tests

- AgentOverflowMenu now renders Dropdown.DotsButton; add it to the core mock.
- The tab toggle swaps Expand/Collapse icons instead of rotating one glyph;
  assert its expand/collapse label.

* lint fix

* test(playwright): refresh visual baselines for role-based button sizes

The icon-only actions now use the role-based ButtonUtility sizes (lg 32px
for standalone header, table-row and card actions), the 1.8-stroke Plus /
Minus glyphs and the wider link-button gap, which moves these screens by a
few pixels. Baselines are the screenshots the visual-regression workflow
rendered in its Playwright container (run 38790090497), so they match CI
rendering: table details, metric list (narrow), glossary, settings,
database services, data quality, teams and users.

* test(playwright): wait for the next page before asserting the test library URL

The pagination-reset test read page.url() once right after clicking next,
racing the asynchronous URL update. Wait for the page-2 testDefinitions
response and use retrying toHaveURL assertions.

* fix(ui-core): a soft-disabled ButtonUtility no longer submits its form

A disabled ButtonUtility with a tooltip stays natively enabled so it keeps
focus and its tooltip; its click only stopped propagation, so a
type="submit" button (TeamsInfo save-edit-email while saving) still
submitted the form. Cancel the click's default action too, which also covers
Enter and Space. Pointer and mouse down are left alone so focus still works.

* test(ui): assert the announcement pager's soft-disabled state

The pager is a ButtonUtility with a tooltip, which stays focusable and marks
itself aria-disabled instead of setting the native disabled attribute.

* test(playwright): refresh the AI explore visual baseline

The explore filter-bar carets now use the 16px frame and link buttons the
wider icon gap; main's explore font-size normalisation also moves the page.
Baseline is the screenshot the visual-regression workflow rendered in its
Playwright container (run 38883230027).

* fix(ui-core): keep ButtonUtility focus when it toggles soft-disabled

The press-blocking wrapper was mounted only while a tooltip button was
soft-disabled, so toggling isDisabled (an agent refresh) remounted the button
and dropped keyboard focus. Keep the wrapper for every tooltip button and only
attach its capture handlers while soft-disabled.

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

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

* fix(ui): keep the icon spec to button icons and address review

- Restore main's colours on text, links and non-button icons (audit log,
  tabs, menus, empty states, status and badge icons) and main's sizes on
  menu, list-row and status icons; core Dropdown.Item icons back to main.
- Keep primary icon actions primary; the Documents add-folder action stays
  secondary.
- ButtonUtility takes isLoading, so save actions keep their spinner.
- Dropdown.DotsButton defaults to lg; drop md trigger sizes and the unused
  ManageMenu triggerSize prop.
- Size icons with the size prop; badge icons accept size.
- Restore the 24px core icons a merge regenerated at 20px.
- Edit actions in the contract forms get an accessible name; the custom
  property edit stays visible on keyboard focus.
- Playwright: find the CSV jobs tray close button by test id.
- Decision record v3: primary stays primary, menus and text are out of
  scope, isLoading.

* fix(ui-core): use the designer's Plus and Minus glyphs

* fix(ui): replace the removed Edit05 merged in from main with Edit01

Also drop the redundant tertiary colour on the formatting toggle, and assert the ontology
library close button's soft-disabled state through aria-disabled.

* style(ui): format CriticalAnnouncements test

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

* test(playwright): refresh the landing page visual baselines

* fix(ui): let Escape leave knowledge graph fullscreen from the exit button

* fix(ui): keep main's compact and feed-row button sizes lost in the merge

- Table-cell hover actions main made compact (20px) are xs: display name
  and description edit, entity task request, field conversation.
- Feed footer reply/comment buttons and the add-reaction button keep main's
  24px row at sm.
- The Settings custom property edit keeps main's xs; only its glyph moves
  to Edit01.

* fix(ui): restore main's AI-mode lineage action size and reaction pill lost in the merge

PlatformLineage's export and settings buttons are xl in AI mode again, matching the
search box beside them (#36093); the add-reaction pill keeps the size and icon colour of
the reaction chips beside it (#36162).

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

* fix(ui): use core icons for cell task and conversation actions; record compact sizes

- The entity task request and field conversation actions use the core
  MessagePlusSquare and MessageChatSquare icons, as TagsContainerV2 does,
  instead of raw assets/svg imports the deprecation guard rejects.
- Decision record v4: hover-cell table actions are xs, activity-feed footer
  actions are sm, and the activity comment stays a boxed link-gray Button.

* fix(ui): apply the icon spec to code merged in from main

Drop the redundant color="tertiary" on ButtonUtility, pass the clear and author-filter
icons as components (the clear actions at xs), and assert the ontology close button's
enabled state through aria-disabled: as a tooltip ButtonUtility it is never natively
disabled, so toBeEnabled always passed.

* fix(ui-core): disable ButtonUtility natively and theme the EyeFilled pupil

- A disabled ButtonUtility passes isDisabled to react-aria instead of the
  custom aria-disabled soft-disable and its capture span. Tooltip already
  wraps a disabled trigger in one focusable span, so the tooltip that
  explains why still opens. Tests assert native disabled again.
- EyeFilled's pupil ring takes tw:stroke-bg-primary, so it matches the
  surface in dark mode instead of drawing white.
- Decision record v5: disabled is native.

* fix(ui): align the page-header learning bulb and prune stale lint suppressions

- The learning bulb beside a 16px page-header title uses ButtonUtility xs,
  so its 12px glyph matches the title's cap height instead of standing above
  it. LearningIcon takes an optional size; entity headers keep sm.
- Prune eslint-suppressions.json entries this PR's changes made stale; ESLint
  exits 2 on unused suppressions, which failed ui-checkstyle.

* fix(ui): drop the text strut so the page-header learning bulb centres on the title

* docs(adr): record the xs page-header learning bulb as a v6 amendment

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

* test(ui): refresh glossary, data-quality and metric-list-narrow visual baselines for the icon spec

* fix(ui): drop the default tertiary colour from the ExecutionSource copy button

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conversation drawer: misaligned header, overflowing long names and hover actions, card click navigates

2 participants