Skip to content

Fixes #35519: Stabilise flaky glossary Playwright specs - #35520

Merged
anuj-kumary merged 9 commits into
mainfrom
anuj-kumary/glossarytermrelatedterms-flaky-fix
Oct 16, 2026
Merged

anuj-kumary merged 9 commits into
mainfrom
anuj-kumary/glossarytermrelatedterms-flaky-fix

Conversation

@anuj-kumary

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

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #35519

I pulled the last 24h of merge-queue Playwright results (playwright_flaky_report.py, 2026-10-14 10:00 → 2026-10-15 09:00 UTC, 208 runs). For every glossary test that flaked or failed, I pulled the failed attempt's log, screenshot and aria snapshot from the shard blobs.

Already fixed by #35416 (merged 07:28 today, no change here). Every occurrence predates the merge and shows that race's signature: the button reads Collapse All, only first-level rows render, and the child row never appears.
GlossaryTermRelationsGraph:387 (26×), LargeGlossaryPerformance:176 (13×), GlossaryApprovalAfterMove:311/:199, GlossaryHierarchy:39/:108/:210/:341, Glossary.spec Expand All :1539 / row-action :2394, GlossaryWorkflow:560.

Fixed in this PR

Test Root cause Fix
GlossaryTermRelatedTerms :292, :220 The 3rd row's relation-type Select sits at the viewport's bottom edge (y≈702/720). Its popover is react-aria non-modal, so useCloseOnScroll closes it on any ancestor scroll. While it repositioned, the click went to a detached node (60s timeout), or a stale click picked the neighbour. The CI screenshot shows Antonym saved instead of Has Part / See Also. addRelatedTermsByRelationType (and the inline pick in the edit test) uses selectOptionWithRetry (centre trigger, settle, reopen) and re-picks until the trigger shows the requested label.
GlossaryAssets:46 (hard fail) addAssetToGlossaryTerm returned without waiting for PUT …/assets/add. Teardown hard-deleted the term while the add was in flight, leaving an orphan tag_usage row. TagLabelRowMapperWithTargetFqnHash then threw an NPE on GlossaryTerm.getName(), so the topic returned 500 on read and on delete. The helper waits for the add response and asserts 200 (all 5 callers are success paths). The mapper returns the label unenriched when the joined tag/term is gone, the same as applyTagCommonFieldsGracefully. New unit test TagLabelRowMapperWithTargetFqnHashTest.
Glossary.spec "Request tags for Glossary" When the new glossary sorts first, /glossary auto-selects it and redirects in an effect. selectActiveGlossary skipped its wait, and the redirect replaced the request-tags navigation. Open /glossary/<fqn> directly.
Glossary.spec "Create term with related terms, tags and owners" Clicking Tags scrolls the drawer, and the late scroll event closes the just-opened non-modal dropdown. selectTagInGlossaryForm calls scrollIntoViewAndSettle before opening.
GlossaryImportExport "Circular Reference" The success toast lives 3s. The 15s wait started only after the Update click (~10s) and the loader wait. Use the existing saveBulkImport (wait hoisted before the click), in all 3 spots in the file.
BulkEditEntity Glossary The cleanup DELETE went out on a keep-alive socket idle for ~66s, past the server's 60s timeout ("socket hang up"). DELETE is not retried. Clean up on a fresh API context.

Not changed:

No positional locators in the related-terms flow. The new helpers in utils/glossary.ts are getRelationRows, getOnlyRelationRow, addRelationRow and selectRelationType.

  • Finding a new row: rows carry Date.now() ids, so the row an add-row click creates is found by the id it introduces.
  • The relation-type trigger: found as button[aria-haspopup="listbox"].
  • The row to remove: found by its trigger's selected value, not by plain row text. Each row's hidden native <select> lists every type, so matching row text hits every row.
  • Suppressions: GlossaryTermRelatedTerms.spec.ts has no positional locators left, so its eslint-suppressions.json entry is pruned, and utils/glossary.ts drops from 11 to 8.
  • Re-run: GlossaryTermRelatedTerms.spec.ts (6 tests) and GlossaryTermDetails.spec.ts:205 each ran ×2 locally with --retries=0, and all 17 runs passed (including setup).

Type of change:

  • Bug fix

Tests:

Use cases covered

  • Adding Related To / Narrower / Has Part (and Synonym / See Also) relations on multiple rows persists the chosen relation types.
  • Adding an asset to a glossary term, then tearing it down, no longer leaves the asset unreadable or undeletable.

Unit tests

  • TagLabelRowMapperWithTargetFqnHashTest: an orphan glossary/classification tag_usage row maps to an unenriched label instead of throwing. I couldn't run it locally (the local openmetadata-spec jar is stale), so it relies on CI.

Playwright

Local runs against a running server, --retries=0, every test passed:

Spec Runs
GlossaryTermRelatedTerms.spec.ts (all 6 tests) ×2, plus ×2 on the earlier revision
GlossaryAssets:46 ×2
GlossaryImportExport Circular Reference ×2
Glossary.spec Request tags / Create term with related terms, tags and owners ×2 each

I didn't run the BulkEditEntity Glossary test locally (import-export lane). yarn lint:playwright: 0 errors. tsc: clean for the touched files.

Related terms, assets and import-export specs passing
Glossary.spec request-tags and create-term specs passing

🤖 Generated with Claude Code

- Related terms: pick the relation type through selectOptionWithRetry and
  re-pick until the trigger shows it; the bottom-row non-modal Select closed
  on scroll or took a stale click on the neighbouring option.
- addAssetToGlossaryTerm: wait for PUT /assets/add before returning so
  teardown cannot delete the term mid-add.
- Tag label row mapper: tolerate a tag_usage row whose tag/term is gone
  instead of throwing an NPE that made the asset unreadable and undeletable.
- Request tags: open the glossary by FQN so the /glossary auto-select
  redirect cannot replace the request-tags navigation.
- Glossary form tags: centre the trigger before opening so the drawer's
  late scroll does not close the dropdown.
- Glossary import: use saveBulkImport so the toast wait starts before Update.
- Bulk edit glossary: clean up on a fresh API context (idle keep-alive
  socket hang up).
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

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

@github-actions github-actions Bot added the UI UI specific issues label Oct 15, 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!

@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: 921 → 922
- 1 added, 0 removed, 13 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/observability/data-quality/ThresholdPreview/ThresholdPreview.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/constant/config.ts
  openmetadata-ui/src/main/resources/ui/playwright/e2e/Utils/appMode.ts
  openmetadata-ui/src/main/resources/ui/playwright/e2e/fixtures/pages.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/codeEditor.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/dataQuality.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/testCases.ts
  openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/TestCaseFormBody.tsx
  openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/RunDetailsCard/RunDetailsCard.tsx
  … and 3 more

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

@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!

@anuj-kumary anuj-kumary self-assigned this Oct 15, 2026
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 2026
anuj-kumary and others added 3 commits October 15, 2026 15:13
Rows are found by the id the add-row click introduces (ids are Date.now()),
the relation-type trigger by button[aria-haspopup=listbox], and the row to
remove by its trigger's selected value. Prune the now-stale suppressions.
@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: 933 → 932
- 0 added, 1 removed, 0 changed spec-list

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTerms/tabs/TermsRowEditor.component.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

@anuj-kumary
anuj-kumary enabled auto-merge October 15, 2026 10:49
@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 15, 2026
Rohit0301 added a commit that referenced this pull request Oct 15, 2026
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 <noreply@anthropic.com>
@anuj-kumary
anuj-kumary removed this pull request from the merge queue due to a manual request Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-15T19:34:34Z)

The entry left the queue before it was built, so no checks ran against it.

…ermrelatedterms-flaky-fix

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
@anuj-kumary
anuj-kumary enabled auto-merge October 15, 2026 19:36
@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 15, 2026
@anuj-kumary
anuj-kumary removed this pull request from the merge queue due to a manual request Oct 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-16T05:22:36Z)

The entry left the queue before it was built, so no checks ran against it.

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
@anuj-kumary
anuj-kumary enabled auto-merge October 16, 2026 05:24
@gitar-bot

gitar-bot Bot commented Oct 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Null-safe tag-label mapping prevents orphan-row read crashes but could expose incomplete labels when joined glossary terms or tags are missing.

Stabilises flaky glossary Playwright specs by switching related-terms relation-type selection to a retrying helper, waiting for asset-add responses before teardown, and making the tag-label mapper tolerate orphaned tag_usage rows. No issues found.

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

@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 16, 2026
timothybrush pushed a commit to timothybrush/OpenMetadata that referenced this pull request Oct 16, 2026
…er (open-metadata#35205)

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* lint fix

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

Addresses the review comments on open-metadata#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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* lint fix

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* lint fix

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

* lint fix

* 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 open-metadata#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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* lint fix

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Merged via the queue into main with commit b17ce82 Oct 16, 2026
77 of 78 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/glossarytermrelatedterms-flaky-fix branch October 16, 2026 09:39
shah-harshit pushed a commit that referenced this pull request Oct 16, 2026
* Fixes #35519: Stabilise flaky glossary Playwright specs

- Related terms: pick the relation type through selectOptionWithRetry and
  re-pick until the trigger shows it; the bottom-row non-modal Select closed
  on scroll or took a stale click on the neighbouring option.
- addAssetToGlossaryTerm: wait for PUT /assets/add before returning so
  teardown cannot delete the term mid-add.
- Tag label row mapper: tolerate a tag_usage row whose tag/term is gone
  instead of throwing an NPE that made the asset unreadable and undeletable.
- Request tags: open the glossary by FQN so the /glossary auto-select
  redirect cannot replace the request-tags navigation.
- Glossary form tags: centre the trigger before opening so the drawer's
  late scroll does not close the dropdown.
- Glossary import: use saveBulkImport so the toast wait starts before Update.
- Bulk edit glossary: clean up on a fresh API context (idle keep-alive
  socket hang up).

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

* Drop positional locators from glossary related-terms helpers and spec

Rows are found by the id the add-row click introduces (ids are Date.now()),
the relation-type trigger by button[aria-haspopup=listbox], and the row to
remove by its trigger's selected value. Prune the now-stale suppressions.

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

* Trim review comments to one-line summaries

* Lower recorded no-positional-locator suppression count to 552

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Vamsi-klu pushed a commit to Vamsi-klu/OpenMetadata that referenced this pull request Oct 17, 2026
…ts tile padding (open-metadata#35609)

* Fix dark-mode status counts, tab counts, table header divider and entity icons

- Ingestion/automation status counts use core Badge pills, left-aligned
- Active tab counts use an outlined brand Badge instead of a solid fill
- Core Table header divider uses border-primary in dark so it stays visible
- FeaturedIcon light theme keeps its tinted tile in dark instead of going solid
- Avatar gains placeholderIconColor; entity avatars use the brand tint by default

* Pin the Connections composer to the canvas edge and record the tinted-icon decision

The Connections list footer sat inside the padded PageLayout.Content, so the
AI composer stopped 8px above the canvas edge; it now mounts on the page root
like Home's footer slot.

* Mark Classic mode as deprecated in the mode switchers and the admin setting

Classic shows a Deprecated badge with a retirement notice and release-notes
link only where a user changes mode (AI-shell switcher, classic profile
dropdown) and on the admin Default App Mode setting.

* Give Insights tab tiles and DQ pie cards consistent core Card padding

Total Data Assets list, Platform Insights KPI cards and the Data Quality pie
widgets render their content in Card.Content instead of caller padding
(tw:p-3, a gray p-4 box, LESS padding on the DQ dashboard), and the embedded
Insights sections drop their surface slab and extra header padding.

* Move the status badge color map to IngestionStatusCount.constants.ts

* Keep domain and data product avatars solid in both themes

Users pick these colors, so design keeps the solid fill until custom colors
are reworked. Reverts getEntityAvatarProps and drops the now-unused
Avatar.placeholderIconColor; the decision record now covers FeaturedIcon only.

* Drop the darker bands from the column detail drawer in dark mode

The title block, content wrappers and footer painted @grey-9/@grey-50, which
resolve to bg-secondary (darker than the drawer's overlay surface) in dark;
they are transparent there now. Key profile metric tiles use an outline instead
of the darker fill in dark, and the custom properties list uses bg-surface
instead of the page-colour bg-primary. Light mode is unchanged.

* Render the contract result pill as a core Badge and fix the Beta tab chip overlap

The header Contract Failed / Aborted / Running pill was a secondary Button
recolored with ! classes; its 600 text measured 2.7:1 in dark. It is now a
shared ContractLatestResultBadge (core Badge palette, 4.7:1 dark / 6.1:1
light) that links to the Contract tab, on both data assets and data products.

Core Badge: a linked badge no longer adds tw:text-inherit, which won the
tailwind-merge conflict and dropped the badge's own text color.

TabsLabel: the Beta chip is no longer absolutely positioned over the next tab.

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

* Keep the empty test-status chart inside its card

The no-data footer sits in a core Tooltip whose trigger is w-max, so the
placeholder SVG resolved its 100% width against max-content (313px) and
spilled over the neighbouring cards. The trigger now takes the card width.
Also tidies imports left by the contract badge change.

* Address review: keep HoverCard open on focus, keep DP contract link on version

HoverCard: focus moving from the trigger into the card no longer schedules a
close, so a link inside it (the Classic deprecation release-notes link) stays
usable from the keyboard.

Data product header: the contract result badge keeps the selected version in
version history, as the previous handleTabChange navigation did.

* fix(ui): converge Archive badge count after an async hard delete (#35446)

* fix(ui): converge Archive badge count after an async hard delete

A drive file's hard delete answers 202 Accepted and removes the row on a
background thread. ContextCenterArchivePage invalidated the archive-count
query the moment that request resolved, so the refetch raced the background
deletion. When the refetch won, React Query cached the pre-delete total and
nothing invalidated the key again, leaving the sidebar badge one too high for
the rest of the session.

Replace the single fire-and-forget invalidation with reconcileCountAfterAsyncDelete:
drop the count optimistically (matching what the page already does to its own
list), then refetch until the server agrees or the attempts run out (5 x 1s).

Uses refetchQueries rather than invalidateQueries — invalidation only marks an
*inactive* query stale without fetching it, so the reconcile would silently
no-op whenever the sidebar observing the key is unmounted.

On timeout the corrected figure is written back: the last refetch leaves the
server's pre-delete total in the cache, and keeping that would restore the
staleness this fixes. Deletions still in flight are counted per key so a
concurrent delete derives its target from the server's number rather than a
cached value a sibling's refetch may have just overwritten.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(ui): poll the deleted row's absence to converge the Archive badge

The reconcile targeted `baseline - started`, a count frozen when the first
delete started. Anything else moving the archive count inside the ~5s window
threw it off, and the page's own restore handler invalidates that very key: a
restore mid-window let the poll see its target early and exit, leaving the
badge one too high once the background delete landed — the bug this helper
exists to fix. A soft-delete in the window broke it the other way, with
`clampedTotal` capping the badge one too low.

Use the deleted entity's own absence as the completion signal instead: poll
`getContextFileById` until it stops resolving, then refetch once and keep
whatever the server reports. No precomputed target, so a concurrent restore or
soft-delete cannot skew it, and the baseline/in-flight bookkeeping and the
clamp all go away with it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(ui): probe the archive delete with Include.All and only treat 404 as landed

The absence probe called getContextFileById without an include param, but
GET /contextCenter/drive/files/{id} defaults to include=non-deleted. Every row
on the Archive page is already soft-deleted (the list is loaded with
include=deleted), so the probe 404'd before the background hard delete even
started. The rejection handler mapped any error to "landed", so the first poll
ended the wait: the race this fixes was still there, only pushed back ~1s.

Let getContextFileById take an include argument and pass Include.All, so the
probe resolves true only once the row is genuinely purged. Narrow the predicate
to a 404 as well, leaving a transient error to the next attempt rather than
ending the poll early.

The helper's unit tests stub hasLanded, so neither gap was visible to them:
cover the include wiring in a new assetAPI test and the transient-error case
in the helper's own suite.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* lint fix

* fix(ui): mark the archive reconcile float with void

Sonar flagged the unawaited reconcileCountAfterAsyncDelete call. The float is
deliberate — awaiting it would hold `isDeleting` through the ~5s poll and spin
the modal button — so `void` says so explicitly. Nothing escapes: the probe
handles both branches and refetchQueries resolves rather than throws.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* Fixes #35473: Export and Bulk Edit only the filtered test cases (#35474)

* Fixes #26756: Add filter and pagination support to test case export endpoints

GET /v1/dataQuality/testCases/name/{name}/export and /exportAsync now accept
testCaseStatus, testCaseType, entityFQN, entityLink, tags, tier, owner, limit
and offset through one shared @BeanParam, so the two endpoints cannot drift.

Matches are resolved through search with the same search_after walk the
filtered bundle-suite add uses, so the export selects exactly what the
filtered test case list shows (including table-inherited owners); rows are
read from the database. Async jobs carry the validated filters as
CsvAsyncJobArgs.TestCaseExportArgs, and progress reflects the filtered count.
Requests without filters or paging keep the original export path.

* Support every test case list filter on the test case export endpoints

The export now also accepts q, testPlatforms, dataQualityDimension,
serviceName, dataProductFqn and startTimestamp/endTimestamp, so a Bulk Edit
opened from a filtered test case list can pass the list's filters through
unchanged instead of silently exporting a superset.

* Harden filtered test case export coverage and test isolation

Validate every CSV row and cover inherited metadata, suite and platform scopes, entity links, status lists, and timestamp validation. Use an export caller per test to avoid concurrent result-retention conflicts, and record the domain-filtered paging contract.

* Document test case export filters as query parameters in OpenAPI

TestCaseExportQuery's private fields had no getters, so swagger could not
see them as properties and documented the @BeanParam as a JSON request body
instead of listing the filters as query parameters.

* Fixes #35473: Load only the filtered test cases into Bulk Edit

Bulk Edit always exported every test case in scope, whatever the list it
was opened from was filtered to. The test case list, the table Data Quality
tab and the test suite page now carry their active filters into the Bulk
Edit URL, and Bulk Edit sends them with the export that loads the grid.

The platform list builds its search request and its Bulk Edit filters
from the same helper, so the two cannot drift.

* Export only the test cases matching the list filters

The Export action in the test case manage menu exported everything in
scope. It now sends the same list filters as Bulk Edit, so both select the
test cases the list shows.

* Fix table test case filters after list actions

* Fixes open-metadata/openmetadata-collate#7447: forward aria-label on ProgressBarBase; show Deprecated on the Column Bulk Operations page (#35491)

* fix(ui): forward aria-label and aria-labelledby on ProgressBarBase

ProgressBarBase had a closed props interface and rendered none of the
ARIA naming props, so every caller's aria-label was dropped and the
progressbar had no accessible name. ProgressBar passes them through too.

* feat(ui): support a text badge on sub-nav items

SubNavItem gains badgeKey, an i18n key rendered as a text badge in place
of the count, so an item can be tagged (e.g. Deprecated). The badge text
joins the item's aria-label, which would otherwise hide it.

* feat(ui): mark Column Bulk Operations as Deprecated in the classic sidebar

Classic sidebar items gain isDeprecated, rendered as a warning badge.
Column Bulk Operations switches from the Beta badge to Deprecated.

* Revert "feat(ui): mark Column Bulk Operations as Deprecated in the classic sidebar"

This reverts commit 3be32e5e66747f6de11bea19ab4d003d95cf7621.

* Revert "feat(ui): support a text badge on sub-nav items"

This reverts commit 1b1e78bd1fd5937d01a263edb83bf9d44e574756.

* feat(ui): show a Deprecated badge on the Column Bulk Operations page header

Mark the feature deprecated on the page itself rather than in the
navigation: the badge sits next to the title in AI mode and next to the
breadcrumb in classic mode. The classic sidebar drops its Beta tag.

* fix(ui): align the Deprecated badge with the classic breadcrumb

The breadcrumb's bottom margin made the row taller than the text, so the
centred badge sat low. Move the margin from the breadcrumb to the row.

* feat(ui): explain the Column Bulk Operations deprecation on badge hover

Hovering (or keyboard-focusing) the Deprecated badge opens a HoverCard
stating the feature is deprecated but remains fully functional.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(ui): describe the deprecation to screen readers on the badge

The hover card is portalled and absent until opened, so the badge button
now points aria-describedby at a visually hidden copy of the message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(ui): use the core Tooltip for the Column Bulk Operations deprecation

The explanation is non-interactive, so core Tooltip fits better than
HoverCard: it wraps the badge in its own focusable trigger and links its
content via aria-describedby, removing the raw AriaButton and the
visually hidden duplicate description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(ui): trim the deprecation Tooltip's class overrides to the minimum

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Fixes #35519: Stabilise flaky glossary Playwright specs (#35520)

* Fixes #35519: Stabilise flaky glossary Playwright specs

- Related terms: pick the relation type through selectOptionWithRetry and
  re-pick until the trigger shows it; the bottom-row non-modal Select closed
  on scroll or took a stale click on the neighbouring option.
- addAssetToGlossaryTerm: wait for PUT /assets/add before returning so
  teardown cannot delete the term mid-add.
- Tag label row mapper: tolerate a tag_usage row whose tag/term is gone
  instead of throwing an NPE that made the asset unreadable and undeletable.
- Request tags: open the glossary by FQN so the /glossary auto-select
  redirect cannot replace the request-tags navigation.
- Glossary form tags: centre the trigger before opening so the drawer's
  late scroll does not close the dropdown.
- Glossary import: use saveBulkImport so the toast wait starts before Update.
- Bulk edit glossary: clean up on a fresh API context (idle keep-alive
  socket hang up).

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

* Drop positional locators from glossary related-terms helpers and spec

Rows are found by the id the add-row click introduces (ids are Date.now()),
the relation-type trigger by button[aria-haspopup=listbox], and the row to
remove by its trigger's selected value. Prune the now-stale suppressions.

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

* Trim review comments to one-line summaries

* Lower recorded no-positional-locator suppression count to 552

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(security): bump guava to 33.7.2-jre, hibernate-validator to 8.0.6.Final, java-jwt to 4.6.2 (#35291)

* fix(security): manage guava 33.7.2-jre in root pom for all modules

#35245 bumped guava only in openmetadata-service; common, spec, sdk and
java-client still resolved 33.4.8-jre (dropwizard-jersey) and
33.3.1-android (google-auth-library). CVE-2026-102554.

* fix(security): bump hibernate-validator to 8.0.6.Final

CVE-2026-93879 (SNYK-JAVA-ORGHIBERNATEVALIDATOR-20877468): EL injection via
unescaped message parameters. The fix (HV-2256, 870485e384 'Escape message
parameters by default') is contained in 8.0.6.Final; Snyk only lists
9.2.0.Beta1. 8.0.6.Final keeps jakarta.validation-api 3.0.2.

* fix(security): bump java-jwt to 4.6.2

CVE-2026-85473 / GHSA-cg7w-5cc2-f2xm (SNYK-JAVA-COMAUTH0-20937619): out-of-range
timestamp claims kill token-parsing threads; vulnerable [4.0.0,4.6.2).
Bumps the root java-jwt.version and the SDK's jwt.version, and points the
integration-tests literal at the shared property.

* Fixes open-metadata/openmetadata-collate#4719: let a password reset lift the login lockout (#35523)

* Fixes open-metadata/openmetadata-collate#4719: let a password reset lift the login lockout

A user who asks an admin for a password reset has usually locked the
account with failed logins first, and the reset did not lift the
lockout, so the new password was refused until the block expired.

Failed logins were counted by email, but the password change and reset
paths cleared them by user name and so never cleared anything. The
counters also live in each server's memory, so a reset served by one
server, or made with the ops CLI, could not reach the counter of the
server that answered the next login.

Count failed logins against the stored password hash instead. Every
login already reads that hash from the database, so a new password set
by any path starts with no failures on every server. A correct password
clears the failures counted against it, which keeps the MCP login
form's reset-on-success working now that failures are no longer keyed
by the bare email. The address-only checks that form uses resolve the
account first and follow the same rule. The rule is recorded in
docs/decisions/2026-10-15-basic-auth-failed-logins-count-against-the-stored-password.md.

LoginAttemptCache also wrote failures under the key as given while
reading it lowercased; it now lowercases both.

The sign-in page now shows the login servlet's error, which it reports
as `error` rather than `message`, so a lockout no longer reads as an
invalid password.

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

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

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fixes #33865: Inline lineage editing via node and column menus (#34551)

* feat(lineage): gate lineage editing on permission instead of edit mode

Add canEditLineage to the lineage store, computed from hasEditAccess,
deleted, platformView, entity type, and scene band instead of the
isEditMode toggle. Remove the Edit Lineage button from CustomControls;
gate the edge overlay buttons, node connectability, delete-key handler,
and drag-drop sidebar on canEditLineage/canEditScene. isEditMode stays
in the store but nothing sets it anymore.

* refactor(lineage): remove edit mode

* feat(lineage): confirm node and edge deletes

Add a node-delete confirmation dialog, route node removal (menu and
the temporary-node remove button) through it, and make Delete/Backspace
open the node or edge confirmation instead of deleting immediately.

* refactor(lineage): share edge creation between connect and add-lineage

* feat(lineage): add lineage popover

Standalone, props-driven AddLineagePopover: step 1 entity type (filtered to
TABLE and DASHBOARD_DATA_MODEL when opened from a column, since those are the
only search hit shapes getEntityChildrenAndLabel can flatten via its
getTableEntityChildren resolver), step 2 entity search excluding the current
node, step 3 column picker only when opened from a column. Picking the final
value submits immediately (no Add button); placement is left for upstream,
right for downstream, no arrow.

Task 6 will mount this in LineageMap.

* feat(lineage): node menu for adding upstream/downstream and deleting

Adds LineageNodeMenu (a per-node dots menu) and mounts it in CustomNodeV1
in place of the already-dead always-there remove button. Wires LineageMap
to open the shared AddLineagePopover from the menu's Edit Upstream/Edit
Downstream actions and route Delete through the existing node-delete
confirmation. Closes the popover on canvas pan/zoom.

* feat(lineage): column menu for adding column-level lineage

* fix(lineage): keep node menu clear of the drill button

SceneDrillButton is absolutely positioned over the same top-right corner
as the new node ⋮ menu, so it always painted on top and swallowed the
click. Shift the drill button left via a has-lineage-node-menu modifier
class whenever the menu renders, and give the menu trigger an explicit
24x24 size so the offset matches its real footprint.

* fix(lineage): anchor add-lineage popover to the menu trigger

Dropdown.DotsButton is a plain function component with no forwardRef, so
ref={triggerRef} placed on it never attached in React 18 and the popover
fell back to the viewport origin. Anchor the ref to the wrapper div both
LineageNodeMenu and LineageColumnMenu already own instead.

* refactor(lineage): remove drag-and-drop node creation

* fix(lineage): expose entity search testid on add-lineage popover

* feat(lineage): move edge actions into the edge drawer

Without edit mode an edge click opens the modal edge drawer, which hid the
floating edit/delete toolbar. Editors now get Edit Pipeline / Delete from a
menu in the drawer header; the canvas toolbar is removed.

Also fixes issues edit mode used to mask:
- edge clicks also reached the pane click handler and cleared the selection,
  so aggregated edges never opened the drawer
- a direct load of the Field band lost its column layer to the default layer
  setting, collapsing column lists and hiding metric column edges
- adding a column edge at the Field band always exhausted the scene refetch
  retries because the confirmation only matched entity edges

* test(lineage): drive lineage editing through node and column menus

* fix(lineage): address final review of inline lineage editing

- Delete key on a selected node matched a drawer copy by reference and never
  fired; match by entity id and only offer it for removable, non-root nodes
- Delete key on a selected edge ignored editability, letting rollup edges reach
  the delete confirmation; require an editable edge
- Dropdown.DotsButton now honours a caller's aria-label, so lineage node, column
  and edge-drawer menus announce their purpose instead of "Open menu"
- The add-lineage popover title names its dialog
- Replace suppressed hook deps in NodeChildren with the real dependencies
- Read-only lineage checks wait for rendered nodes before asserting no menu

* refactor(lineage): drop drag-to-connect node handles

Lineage is added from the node and column menus, so the connectable handles
on each node side are no longer needed. The expand/collapse buttons keep
their handle placement classes. Removes the unused drag-connect path and the
dead buildConnectPayload helper.

* fix(lineage): mark field-bearing assets expandable without field payloads

The asset band fetches no field payloads, so tables, topics, dashboards and
other field-bearing kinds were reported as non-expandable and semantic zoom
could not drill into them.

* feat(lineage): container node cards, control bar and zoom-to-node drill

- Container nodes (service/database/schema/domain/data product) render
  logo + name, a 'Type · kind' subtitle and a child count pill, at a
  fixed width by node type
- Control bar: mini-map toggle state, zoom level, fit to screen replaces
  fullscreen, aria-labels
- Semantic zoom drills only into the node under the pointer and shows a
  toast when that node has no deeper level
- Hover via ReactFlow node events, full-graph loading overlay, ReactFlow
  as the canvas root with pan-on-focus

* test(lineage): use fit to screen and pan helpers in lineage specs

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

* style(lineage): replace LESS variables with theme tokens for dark mode

- Lineage LESS files now use var(--om-*) tokens instead of variables.less,
  so node, column, status and panel colours follow the active theme
- Add theme-aware --om-color-fg-quaternary, utility-brand-100 and
  utility-indigo-100/600 tokens to keep light-mode values unchanged
- Floating canvas panels (rail, breadcrumbs, layers, skeleton, onboarding)
  use bg-surface / bg-overlay-surface instead of the page colour
- Replace raw tw palette classes in PortsLineageView
- Drop rules left dead by the removed edit mode and sidebar

* fix(lineage): keep the node menu clear of the scene drill button

The drill-button padding on .label-container pushed the ⋮ menu under the
absolutely positioned drill button on drillable editable nodes, so the
menu could not be clicked. Reserve the gap before the menu instead.
Also point the band-selection test at the layer button; the
.lineage-map-layer-control class no longer exists.

* refactor(lineage): migrate lineage components from AntD to core components

Replace antd/@ant-design usage in the lineage UI with
@openmetadata/ui-core-components:
- LineageConfigModal: core Modal + react-hook-form number inputs
- AddPipeLineModal: core Modal, Input, Button
- LineageSearchSelect: Select.ComboBox with load-more paging
- NodeChildren, CustomNode.utils, TestSuiteSummaryWidget,
  CanvasButtonPopover, EntitySuggestionOption, LineageTabContent:
  core Input, Typography, Badge, Button and Tailwind skeletons
Drop LESS rules that only targeted the removed .ant-* markup.

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

* chore(ui): restore reactColumnResize mock touched by an accidental lint run

* style(lineage): read theme colours from globals.css instead of --om-* aliases

Lineage LESS, the canvas edge buttons and PortsLineageView now use the
--tw-* colour variables generated from core globals.css, which carry the
light value and flip under .dark-mode. Drop the four --om-color tokens
this branch had added to tokens.css.

* docs(ui): take theme colours from globals.css, not --om-color-*

Point the styling rule and specs README at the --tw-* variables generated
from core globals.css for colours, and note that raw --color-* is invalid
in light mode. Non-colour values keep using tokens.css.

* refactor(lineage): address review feedback on the inline-editing PR

- DotsButton forwards its ref, so LineageNodeMenu drops its wrapper div
  and anchors the add-lineage popover to the button itself; also drop the
  English fallback from its aria-label
- AddLineagePopover: surface search failures with a toast and cancel a
  pending search when the entity type changes
- Move the pipeline-status badge colours, lineage config fields, form
  types and form-value helper to constants / interface / utils
- Use Typography's color prop, Box for the node label row, and Badge's
  default colour
- Drop the column-label block display that stopped Typography's ellipsis

* refactor(lineage): drop the fullscreen z-index and modal z-index overrides

Fullscreen lineage no longer raises itself to the sticky layer, so the
core ModalOverlay stacks above it on its own and the lineage modals no
longer need inline zIndex overrides.

* feat(lineage): keep scene navigation on the main Lineage page

- The lineage map onboarding dialog only opens on the main Lineage page
- Add Lineage to the AI-mode sidebar, pointing at the main Lineage page
- Asset pages stay on their own asset: no semantic zoom band changes,
  band rail, hierarchy breadcrumbs, node drilling, Layer band or lens.
  A Layer-band URL on an asset page falls back to the Asset band.
  Asset and Field (column) levels stay available from the Layers menu
- Move the Layer-band Playwright checks to the main Lineage page and
  assert asset pages no longer drill

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

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

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

* feat(lineage): core-component Layers menu, column toggle on asset tabs, truncation pill

- LineageLayers: rebuild the Layers menu on core Dropdown; the platform page
  picks a lens (Service/Domain/Data Product), asset tabs get a single
  "Column Level" toggle
- LineageMap: replace the "+N more" badge and the untranslated
  knowledge-graph-truncated alert with a "Showing X of Y assets" pill
- PlatformLineage: search via DataAssetAsyncSelectList; drop
  EntitySuggestionOption
- useAsyncDataAssetOptions: escape ES reserved characters, accept multiple
  search indexes

* feat(lineage): keep the scene map on the main Lineage page only

Asset Lineage tabs go back to the classic lineage graph end to end: data
comes from getLineage through the <Lineage /> provider and is drawn by the
new EntityLineageCanvas (the pre-scene ReactFlow renderer with the canvas
edge layer), so asset tabs never call /lineage/scene or carry scene URL
params. The PR's inline editing (node menu, add-lineage popover, column
menu, delete confirmation) is wired to the classic graph.

- Lineage.component: LineageMap for platform lineage, EntityLineageCanvas
  for asset tabs
- Lineage provider: skip the classic fetch on the platform page, restore
  the ReactFlow instance wiring and expose onInitReactFlow, onNodesChange
  and refetchLineage
- LineageLayers: platform lens menu; asset tabs get the classic layers
  (column, observability, service, domain, data product) in the same
  dropdown design
- saveLineageEdge shared by the scene map and the asset canvas

* test(lineage): move asset-tab Playwright coverage back to the classic graph

Asset Lineage tabs load getLineage again, so the asset specs and helpers
wait on /lineage/getLineage instead of /lineage/scene and drive the
classic layer menu instead of scene bands. Platform-page specs keep the
scene.

- helpers: activateColumnLayer uses the Column layer, visitLineageTab,
  column-lineage reloads and connectEdgeBetweenNodes wait on getLineage,
  deleteEdge no longer waits for a scene refetch; config helpers accept
  either endpoint; checkLineageTabActions checks the node menu now that
  edit mode is gone
- restore the pre-scene coverage the scene map had replaced: incident
  counts in the node drawer, the expand/collapse handles and column-layer
  check in LineageSettings, the entity panel's custom-properties tab per
  asset type, node pagination, PNG export size, and pipeline annotations
  read from getLineage
- LineageInteraction: band tests become column-layer tests; drop the
  scene-only hover path highlight, asset-scene persistence and rollup
  edge tests, which have no asset-tab equivalent
- CustomControls: show the lineage time filter on the Lineage tab again,
  since the classic graph honours it

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

* fix(lineage): node menu in the label, expand handles, edge joins, config modal

- LineageNodeLabelV1: render the node ⋮ menu inside the label header so the
  label keeps the node's full width; long names fill it and truncate with
  an ellipsis
- custom-node.less: only drill-button scene nodes position their content
  box, so the expand/collapse handles are no longer clipped by the node's
  overflow
- CustomNode.utils: the collapse handle is a core Button whose tw:relative
  beat the legacy absolute class; position it with tw:absolute! so it sits
  on the node edge
- CanvasUtils: end node-level edges at the node border now that the
  connection handle that filled the 10px gap is gone
- LineageConfigModal: move the form onto the core HookForm and actually
  invoke the submit handler from the OK button
- CustomControls: core icons instead of the legacy SVG imports
- LineageMap: show asset field counts in scene node footers, and keep the
  status panel on the platform page

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

* fix(lineage): node card feedback, platform rail and edge anchors

- Base node: light brand card with brand border; no header/footer or
  column dividers; dataflow icon for the column-lineage filter
- Drill button: gray background and icon; breadcrumb pill without shadow
- Platform rail: clickable dots and labels, Layer/Asset/Field stops
- Edge anchors: no target inset for scene nodes; temp node polish and
  breadcrumb-free header
- Core Breadcrumbs: title on truncated items
- Onboarding subtitle copy updated in all locales

* fix(lineage): column search falls back to all columns and survives filter toggle

* fix(lineage): add-lineage panel, hover handles, fullscreen bounds, search loader

- Add upstream / downstream opens a docked side panel with an edge preview,
  a short description and an explicit Add step instead of a node popover
- Asset lineage handles and expand / collapse controls show on hover, focus
  or selection; edges end at the node border
- Rollup edges keep the base stroke; the count badge is a gray pill
- Fullscreen lineage pins to the measured page content column, so it aligns
  in classic and AI mode with the sidebar expanded or collapsed
- Core Autocomplete gains isLoading; the platform search shows a loading
  state instead of "No data found" while results load

* fix(lineage): semantic zoom by screen fill instead of fixed zoom levels

Zooming out goes up a level once the whole graph fills under a third of the
screen, or the zoom reaches its minimum; zooming in goes down a level once a
card fills most of the screen, or the zoom reaches its maximum. Fit to screen
may now zoom out as far as the graph needs.

* fix(lineage): keep the level rail clear of the minimap; edge actions on asset tabs

- The level rail stays centred but never drops into the minimap and zoom
  controls in the bottom-right corner on short viewports
- Edges clicked on an editable asset lineage tab carry isEditable, so the
  edge drawer offers Edit Pipeline and Delete again

* fix(lineage): asset lineage layers read Data Asset Level instead of None

* fix(lineage): add-lineage panel reuses the data asset inputs; fit view on asset tabs

- Type picker is the core FilterSelect with entity icons, asset counts and
  search, as on Explore; the asset search is DataAssetAsyncSelectList
- Fit to screen on asset lineage tabs now reaches the ReactFlow instance,
  and fit padding is a viewport ratio (0.2) instead of 48

* fix(lineage): asset tab parity for node drawer, Delete key and column picks

- Asset lineage node names open the node drawer, as on the platform map
- Delete / Backspace removes the selected node or edge on asset tabs too
- The add-lineage panel loads the picked asset's columns from its search hit
- Playwright add-lineage helper waits for the FQN option, not a search URL

* fix(lineage): inset the layers control from the canvas edge; regular label weight

* fix(lineage): review fixes — view-only platform map, safer delete, temp nodes

- Platform lineage is view and export only: no node/column menus, add panel,
  node/edge delete or Delete key on the map; edge drawer is read-only there
- Delete / Backspace only acts with focus on the page or the canvas, never
  from the drawer, a modal or a menu; a pane click clears the selected edge
- Temp-table nodes are plain: no menu, not deletable, read-only edges
- Deleting a node with several edges no longer keeps removed edges in state
- The add-lineage column picker loads columns by FQN
- Saving lineage settings keeps the rest of the config (pipeline view mode)
- The rail's Data Assets stop works from the Field level
- The platform map no longer recentres on focus coming from overlays

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

* fix(lineage): CI — core sidebar icon, DotsButton label fallback, keep getColumnHandle

- The AI-mode Lineage module uses the core Dataflow03 icon instead of a new
  raw SVG import (Antd + Less + SVG deprecation guard)
- Dropdown.DotsButton keeps the "Open menu" default label, so screens that
  query the button by name keep working
- Restore the getColumnHandle export openmetadata-collate builds against

* test(playwright): refresh ai-explore baseline for the AI-mode Lineage sidebar entry

* fix(lineage): keep NodeSuggestions and LineageNodeRemoveButton for Collate

openmetadata-collate's ER diagram imports both, so the Collate UI build failed
once this branch removed them. Restored unchanged from main, with the
NodeSuggestions antd suppression (pinned count 496).

* fix(lineage): one toast per failed add; resync after a failed node delete

- saveLineageEdge resolves false when addLineageHandler fails (it already
  toasted), so the asset canvas no longer shows the same error twice
- A failed node delete is caught and the lineage refetched, so a partial
  delete no longer leaves the canvas half-updated or rejects unhandled

* chore(lineage): address SonarCloud findings

- Select / ComboBox: use value + onChange instead of the deprecated
  selectedKey + onSelectionChange
- Drop the unused isConnectable prop from ColumnContent, VirtualColumnList
  and NodeChildren
- LineageColumnMenu: anchor the popover to the DotsButton (it forwards refs)
  and drop the role="presentation" wrapper; react-aria already stops the
  press from reaching the column row
- Narrow LineageNodeLabelV1 sub-component prop types, Set for
  COLUMN_CAPABLE_SEARCH_INDEXES, a ZoomGestureEvent alias, and remove a
  redundant fragment and undefined argument

* fix(lineage): fetch asset lineage once per graph; drop superseded responses

Lineage settings load after mount and re-apply an equal config, which
re-ran the fetch effect while the first request was still in flight: the
dedupe key was only written once a response landed. The asset canvas then
fetched the same graph twice, and when the second response arrived after
the user had switched to the Column layer it redrew with the layers
captured at its call, dropping the column rows and edges.

Claim the key when the request starts, and ignore a response once a newer
request has been issued so the skeleton stays up until the latest graph
lands.

* test(playwright): open lineage menus by hovering the ⋮ button, not the node centre

The middle of a large node can sit under the canvas minimap, which then
intercepts the hover until the test times out.

* test(playwright): align PlatformLineage specs with the classic asset canvas

- Asset-tab Service / Domain views refetch getLineage for the asset's
  service or domain (lineage-layer-service-btn / -domain-btn) instead of
  scene lenses, and nothing is selected by default
- Dismiss the map onboarding on the first /lineage visit: the asset tab no
  longer shows it
- The Lineage Config dialog's confirm button reads "Ok" (label.ok) now that
  it is a core Dialog

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

* refactor(lineage): core Box, Typography, Card and XClose per review

- Edge drawer close button uses XClose
- Pipeline picker rows, lineage search options and the map rail use Box
  for layout and Typography for text (breadcrumb on the text-xs ramp
  instead of a raw 10px size)
- Add-lineage preview cards use Card (brand for the current asset, dashed
  secondary for the pending one) so both themes come from the component

* style(lineage): node borders fall back to --tw-border-color-primary

Replaces the legacy #b1b1b7 token with the globals.css border token, per
review; dark mode still overrides through --lineage-node-border.

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

* test(playwright): fix specs broken by shared lineage-branch changes

- ImpactAnalysis: match "Asset Level" exactly; the Layers trigger now reads
  "Data Asset Level"
- ContextCenterMemories: the asset search escapes Elasticsearch-reserved
  characters, so compare the unescaped query
- MetricBulkImportExportEdit: Dropdown.DotsButton keeps the caller's
  aria-label, so the metrics menu is named "Actions", not "Open menu"
- LineageInteraction: fire the column click in place; the minimap can cover
  the column after fit
- PlatformLineage: pick a depth different from the current one; the global
  lineage settings are shared with other specs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fixes #32000, #33553: Hand confidential OIDC browsers the identity provider's ID token (#34967)

* Mint the configured emailClaim into OpenMetadata-issued tokens

The email-first flow reads a token's address from `emailClaim` alone. Our
own tokens (SAML, LDAP and basic sessions, personal access tokens, and the
confidential OIDC session until it hands out the provider's token) never
carried that claim, so with `emailClaim: upn` JwtFilter fell back to the
legacy claim order and resolved the email's local part (`john.doe` for
user `jdoe`), or failed outright once `jwtPrincipalClaims` was removed as
the deprecation warning suggests. Same class of bug as #32000, through the
email-first flow instead of `jwtPrincipalClaimsMapping`.

Without a mapping, the configured emailClaim now carries the email, the
way the provider's own token does.

* Validate the issuer and audience of identity-provider tokens

JwtFilter checked a provider token's signature and expiry. For tokens not
signed with OpenMetadata's own key it now also requires:
- an audience that includes a configured client: the browser client
  (`clientId`) or the server-side client (`oidcConfiguration.id`);
- for confidential clients, the issuer named in the provider's discovery
  document (a multi-tenant Entra template is filled in from the token's
  `tid`; Google's schemeless issuer is accepted).

The provider's `jwks_uri` from discovery is trusted alongside
`publicKeyUrls`. The SSO settings save writes it there, but a deployment
configured only through the environment never had it. The confidential
sign-in handler registers after JwtFilter at startup and is replaced on a
configuration change, so both values are looked up per use, and only when
the handler serves this filter's client.

Bot tokens and personal access tokens are recognised by OpenMetadata's
signing key id, which key lookup resolves locally first, so tokens minted
under an earlier issuer keep working.

The integration-test harness now presents the provider's ID token as its
API bearer, as the browser does: the mock IdP's access token carries no
audience.

* Hand confidential OIDC browsers the identity provider's ID token

Since 2.0 the confidential OIDC callback minted an OpenMetadata JWT for
the browser. JwtFilter then re-resolved identity from that copy with the
provider-oriented claim configuration, so any claim the copy did not
carry broke login (#32000), and its lifetime came from
`oidcConfiguration.tokenValidity` rather than the provider (#33553).
OpenMetadata now issues tokens only where the protocol gives the browser
none to present: basic, LDAP and SAML.

- Callback: the browser receives the provider's ID token from the code
  exchange. The provider's refresh token is always kept, encrypted, in
  the session.
- Refresh: every refresh redeems that refresh token for the provider's
  next ID token and returns it with its expiry. A rejected grant, a
  session holding no provider refresh token, or a renewal without an ID
  token that outlives the browser's one-minute renewal margin ends the
  session with a 401, which the browser answers by signing in again at
  the provider. A provider that gives no verdict gets a 503; the session
  is kept for a later refresh.
- Login no longer short-cuts an active session with a minted token; the
  provider's own session makes the round trip silent.
- `oidcConfiguration.tokenValidity` and `endSessionWithProvider` are
  deprecated and ignored for OIDC; the SSO form no longer shows them.
  `sessionExpiry` still caps the session, and `maxAge` is still sent to
  the provider. SAML keeps its `tokenValidity`.

The provider's ID token carries no `sessionId`, so logout, revocation and
the per-user session cap take effect at the browser's next refresh, as in
the public OIDC flow. SSOSessionLimit.spec.ts now asserts that.

* Check the refresh-token flow in an SSO Test Login

A confidential OIDC session now renews the browser's ID token by
redeeming the provider's refresh token on every refresh. A provider
that issues no refresh token, refuses its own, or renews without an ID
token would send every user back to sign in each time their ID token
expires, and nothing told the admin beforehand.

Test Login gains a TOKEN_REFRESHED stage, after TOKEN_VALIDATED. It
redeems the test sign-in's refresh token once, with the same grant,
client authentication and token endpoint the live refresh uses, and
fails with the reason and the fix: request offline_access (Okta,
Microsoft Entra ID, Auth0), allow refresh tokens for the client, or for
Google the consent screen. The identity is still resolved when the
stage fails, and a failed Test Login gates Save as before ("Save
anyway" remains the override). The stage is skipped for public OIDC
clients, whose browser renews its own tokens, and for SAML, LDAP and
basic.

The SSO settings label is translated into every locale.

* Cover the unreadable ID token, refused key set and unanswered Test Login refresh

* Revoke the session a new sign-in replaces

A sign-in from a browser that already has a session writes the new
pending session's cookie over the old one. The old session stayed active
until it expired: nothing could reach it any more, but it still counted
toward maxActiveSessionsPerUser, so signing in again on one browser could
evict the user's session on another device.

Login now revokes the active session the browser's cookie names before
creating the pending session, on the MCP flow as well, since that flow
replaces the cookie too. The user's other sessions stay active.

* Chore: Remove Delta Lake connector (#35299)

* chore(ingestion): remove the Delta Lake connector source

Drop the DeltaLake database source package, its example workflow, unit and
integration tests, the deltalake/deltalake-storage/deltalake-spark extras and
the stale lint-baseline entries. Delta Lake as a table format (Trino and
StarRocks detection, _delta_log parsing in Datalake/storage) is untouched.

Amundsen's "delta" databases now map to a CustomDatabase service, matching
how the upgrade migration retypes existing DeltaLake services.

* chore(spec): remove the DeltaLake connection schemas

Delete deltaLakeConnection.json and its deltalake/metastoreConfig.json and
deltalake/storageConfig.json sub-schemas, and drop DeltaLake from the
databaseServiceType enum and the database connection oneOf. TableType.DeltaLake
stays: it describes the table format, not the connector.

UI types and bundled JSON schemas regenerated with json2ts-generate-all.sh and
yarn parse-schema; both produce no diff on the unchanged schemas.

* chore(service): remove the DeltaLake secret converters and test-connection definition

Drop DeltaLakeConnectionClassConverter and StorageConfigClassConverter (the
latter only converted the deltalake StorageConfig), their ClassConverterFactory
entries, the DeltaLake test-connection definition, and DeltaLake from the ODCS
backtick-quoted service types. NestedSecretConverterCoverageTest no longer
allow-lists MetastoreConfig.connection, which is gone with the schema.

* chore(ui): remove the Delta Lake service form, icon and docs

Drop the DeltaLake connection-schema loader, service icon, display labels and
in-app connector doc, and the schema-render test case that rendered the
DeltaLake form. The compact-select behaviour for *Source oneOf fields stays
covered by CoreOneOfField.test.tsx. Remove deltalake from the connector-building
skill's data-lake examples.

* fix(migration): retype DeltaLake services on upgrade

'DeltaLake' is no longer a databaseServiceType, so rows that still carry it
fail to deserialize: listing database services returns an error, and the
2.1.0 data migration itself aborts in DataContractEntityReferenceMigration
when a data contract points at a DeltaLake table.

Before that data migration runs, 2.1.0 schemaChanges.sql (MySQL and
Postgres) now:
- deletes the ingestion pipelines of DeltaLake services together with their
  version snapshots, run statuses and relationships; a pipeline is tied to its
  service only by the service's CONTAINS relationship;
- rewrites serviceType to CustomDatabase on the services, their databases,
  schemas, tables and stored procedures, and on their version snapshots;
- replaces the service connection config with {"type": "CustomDatabase"}, so
  the old metastore password and storage keys are not kept as unmasked
  additional properties;
- deletes the DeltaLake test-connection definition and any DeltaLake
  test-connection workflows.

Every statement is keyed on 'DeltaLake', so a second run changes nothing.
DeltaLakeServiceRetypeSqlMigrationTest runs the shipped statements against
real MySQL and PostgreSQL.

* fix(migration): retire DeltaLake services in a Java step that removes their DAGs

The 2.1.0 SQL deleted DeltaLake ingestion pipeline rows but cannot reach
the pipeline service, so their deployed DAGs stayed scheduled in Airflow.

DeltaLakeRetirementMigration now runs first in the v210 data migration on
MySQL and Postgres, before any step that loads database entities:
- reads the DeltaLake pipeline ids through each service's CONTAINS
  relationship while the services still carry the old type;
- retypes the services, their databases, schemas, tables and stored
  procedures, and their version snapshots, to CustomDatabase in IdBatches,
  replacing a service's connection config with {"type": "CustomDatabase"};
- deletes the DeltaLake test-connection definition and workflows;
- force-deletes each pipeline through IngestionPipelineRepository with the
  migration's pipeline service client, which removes its DAG, statuses,
  relationships and search document; an unreachable runner is logged and
  its DAG left, as a service cascade delete does.

The 2.1.0 schemaChanges.sql files are back to their main content, so ALTER
DATABASE is the last MySQL statement again. The rule is recorded in
ADR:2026-10-13-a-removed-connector-is-retired-in-the-first-data-migration-step.

* chore: drop the DeltaLake retirement decision record

* fix(migration): keep retiring DeltaLake services when a pipeline delete fails

The pipeline ids are read before the retype, the only point a DeltaLake
pipeline can be told apart, and the retype commits first because the
delete loads the pipeline's service, which no longer deserializes while
it is typed DeltaLake. By the time the deletes run their ids are gone
from the database, so a propagated failure stranded every pipeline
behind it with no way for a later run to find them again.

Log the failure with the pipeline id and carry on, and stop the Javadoc
and the decision record claiming the delete resumes like the retypes do.

Restores the decision record the enum removal and the migration ordering
need, which the earlier SQL-to-Java rewrite dropped.

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

* fix(migration): resume the DeltaLake pipeline delete after a killed run

The pipeline ids cannot be keyed on 'DeltaLake' like every other
statement in this step: they are read before the retype, the only point
a DeltaLake pipeline can be told apart, and the handle autocommits, so
the retype has landed by the time the deletes run. A run killed inside
the delete loop therefore left its remaining pipelines and their
deployed DAGs behind for good, because the next run's query finds no
DeltaLake service to name them.

Write each id to entity_extension as deltaLakeRetirement.pendingPipeline
before the retype and clear it once its delete has been attempted, so a
killed run finds its leftovers on the next start. The marker is keyed on
the pipeline's own id, so a hard-deleted pipeline takes it along.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fixes #34689: record every Assets tab edit on the asset as its own PATCH (#35026)

* feat(entities): apply a bulk edit as one authorized PATCH per entity

* fix(entities): index a patched entity with the fields it inherits

* fix(assets): save every Assets tab edit as the asset's own PATCH

* fix(search): keep a table's tags and data products off its column entries

* docs(decisions): record how bulk edits write, authorize and index

* fix(entities): fail only the group that cannot be loaded or recorded

* fix(assets): refuse an asset whose labels clash with its glossary's tags on the glossary term tab

* refactor(assets): derive the Assets tab status with the shared bulk status rule

* test(assets): drop the fail-before-pass gate test that per-asset saves replace

* test(assets): compare tab and PATCH labels without their appliedAt

* test(assets): keep the search entry checks clear of the response cache and of unordered updates

* test(assets): check the column entries of all tables in one search per poll

* test(assets): drop the domain move check that waits on main's lossy column propagation

* fix(assets): authorize the tag tab job with the request's impersonation

* fix(ui): report assets the server refuses to remove from an Assets tab

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

* fix(ui): ask to refresh when a tag tab removal's outcome does not arrive

* test(glossary): expect a refused bulk asset row instead of a 403

* fix(search): send column entries the glossary terms they inherit from their table

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fixes #34249: Add Neo4j database connector (#34250)

* feat(ingestion): Add Neo4j database connector

Ingest a Neo4j graph schema as a database service: node labels become tables
in a `nodes` schema and relationship types become tables in a `relationships`
schema, with their properties as columns typed from
db.schema.nodeTypeProperties() / db.schema.relTypeProperties().

- Connection schema (scheme, hostPort, username, password, databaseName,
  includeRelationships, propertyFilterPattern and the standard filters) and
  a test connection definition (CheckAccess, GetDatabases, GetNodeLabels,
  GetRelationshipTypes)
- Source built on CommonNoSQLSource with declared property types, the
  multi-label NOT NULL rule, a property filter, and a failed schema read
  skipping only that schema
- BaseConnection with test-connection checks and an error pack for the
  neo4j driver's status codes
- `neo4j` pip extra, CLI workflow example, unit tests
- UI: connection form schema, service icon, side-panel docs, Beta flag and
  regenerated TypeScript types

* fix(ingestion): read the Neo4j graph schema once and keep failed schemas out of deletion

The post-process deletion hooks list schemas again through
get_schema_name_list(), which re-queried Neo4j. A schema whose read failed
during the walk could then reappear and have all its tables soft-deleted, a
persistently failing schema was soft-deleted when markDeletedSchemas is on,
and each database ran the schema procedures up to four times.

Cache the graph schema per database, record which schemas failed, and add
failed schemas to the schema source state before the schema deletion sweep.

* Address Neo4j connector review feedback

- Silence driver notifications so schema reads don't log a deprecation warning each run
- Reuse the shared neo4j pin (now ~=5.7, needed for notifications_min_severity)
- Fix the GetNodeLabels / GetRelationshipTypes test-connection descriptions
- Drop the unused databaseFilterPattern from the connection schema
- Note the upcoming propertyTypes format change next to the schema queries

* Fix py-checkstyle and regenerate UI types for the Neo4j connector

- Use lazy %-style logging for the filtered-property debug message (G004)
- Regenerate TS types and dereferenced schemas with json2ts-generate-all.sh and parse-schema

---------

Co-authored-by: michael gong <209566851+michaelgong428@users.noreply.github.com>
Co-authored-by: Khairajani <himanshukhairajani8@gmail.com>

* fix(lineage): strip FQN quotes from schema/db/table names before applying view filters (#34365) (#34568)

* fix(lineage): strip FQN quotes from schema/db/table names before applying view filters

Fixes #34365

`yield_es_view_def` splits each view's `fullyQualifiedName` with `fqn.split()`,
which preserves double-quoted identifiers verbatim.  A schema named `folder.sub`
(containing a dot) becomes `'"folder.sub"'` in the split result.
`view_lineage_producer` passed that quoted string directly to `filter_by_schema`,
so a pattern like `^folder\.sub$` never matched and every view in the schema was
reported as *View Filtered Out* (includes filter) or passed through unchecked
(excludes filter).

The fix calls `fqn.unquote_name()` on all three name fields before passing them
to the filter helpers.  `unquote_name` strips outer double-quotes only when they
are present, so plain names are unaffected.

Two unit tests added:
- Verifies that an includes-pattern on the unquoted schema name keeps the view.
- Verifies that an excludes-pattern on the unquoted schema name filters it out.
- Existing view-lineage-producer tests continue to pass.

Prepared with AI assistance (Claude Code, Anthropic), reviewed for correctness before submission.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(ingestion): pass Python checkstyle for view lineage PR

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Harsh Soni <64592571+harshsoni2024@users.noreply.github.com>
Co-authored-by: harshsoni2024 <harshsoni2024@gmail.com>

* Fix TagPage test mock, refresh ai-explore baseline, record Classic deprecation

- TagPage.test mocks @openmetadata/ui-core-components without Badge, which
  TabsLabel's count now renders; add it from the real module.
- ai-explore visual baseline predates the Lineage nav item #34551 added on
  main (its own merge-queue run failed the same snapshot). The new baseline is
  CI's actual render from the pinned Playwright container, pixel-identical with
  and without this PR.
- Add the decision record for the Classic mode deprecation notice.

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

* Update generated TypeScript types and dereferenced schemas

* Reset bot-generated schema JSON and impact map to main

They were generated from the branch before the replayed main commits were
dropped; this PR changes no schemas, and CI regenerates the impact map.

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

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rohit Jain <60229265+Rohit0301@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Teddy <teddy.crepineau@gmail.com>
Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>
Co-authored-by: Karan Hotchandani <33024356+karanh37@users.noreply.github.com>
Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com>
Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
Co-authored-by: Akash Verma <138790903+akashverma0786@users.noreply.github.com>
Co-authored-by: Adrià Manero <adria.estivill@getcollate.io>
Co-authored-by: michaelgong428 <michael.gong@finsure.com.au>
Co-authored-by: michael gong <209566851+michaelgong428@users.noreply.github.com>
Co-authored-by: Khairajani <himanshukhairajani8@gmail.com>
Co-authored-by: zerafachris <christopher.zerafa@blocklabs.io>
Co-authored-by: Harsh Soni <64592571+harshsoni2024@users.noreply.github.com>
Co-authored-by: harshsoni2024 <harshsoni2024@gmail.com>
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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>

* 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 <noreply@anthropic.com>
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.

Glossary Playwright specs flaky in merge queue (related terms, assets, import, request tags)

3 participants