Skip to content

Fixes 7300: migrate antd Affix, Image, Result, Empty and Spin to core UI - #35339

Merged
anuj-kumary merged 12 commits into
mainfrom
anuj-kumary/issue-6884-untracked-fixes
Oct 14, 2026
Merged

anuj-kumary merged 12 commits into
mainfrom
anuj-kumary/issue-6884-untracked-fixes

Conversation

@anuj-kumary

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

Copy link
Copy Markdown
Member

Describe your changes:

Fixes open-metadata/openmetadata-collate#7300 (partially — 5 of its 13 components; part of open-metadata/openmetadata-collate#6884)

Takes five of the previously untracked antd components to zero named imports in the OSS UI: Affix, Image, Result, Empty and Spin. 11 call-site files, no behaviour change intended.

antd Files Replacement
Affix 3 plain <div>
Image 1 <img>
Result 1 core Box / Typography / Button
Empty 3 core EmptyPlaceholder
Spin 3 files / 4 sites components/common/Loader

Affix → <div> — WhatsNewAlert, GithubStarCard and EntityImport all already declare position: fixed in their own .less, so antd's Affix contributed nothing but a wrapper element. Tag swap only; the LESS is untouched (every selector is descendant-based, so losing Affix's inner div changes nothing).

Image → <img> — UserProfileImage passed preview={false} and no .ant-image* rule exists anywhere in the codebase. antd's .ant-image-img { width: 100%; height: auto; vertical-align: middle } is preserved as tw:w-full tw:h-auto tw:align-middle so the rendered size is identical. data-testid stays on the <img>, which is where antd put it, so the existing test still resolves. Needed the repo's established jsx-a11y/no-noninteractive-element-interactions disable for onError (same comment as ImageAttachment.tsx).

Result → core primitives, not EmptyPlaceholder — this deviates from the target named in the epic, deliberately. ErrorFallback renders om-upgrade.svg, a 582×338 illustration, on a full-page 500 screen. Core EmptyPlaceholder is a 300px-wide absolutely-positioned overlay that wraps its icon in a 64px bordered box and forces the glyph to size-7 (28px) — it would have destroyed the illustration. Instead the existing .error-boundary-result container keeps antd Result's metrics (24px title, 14px tertiary subtitle, 24px gaps, 48/32 padding) with core Box/Typography/Button inside. The now-dead .ant-result-title / .ant-result-subtitle overrides are deleted from app.less.

Empty → EmptyPlaceholder — TreeViewTab, TableConstraintsModal, TaskFormBuilderSection. Core EmptyPlaceholder renders tw:absolute tw:inset-0, so a bare drop-in would have collapsed to zero height and rendered invisible at all three sites. Each is wrapped in <Box className="tw:relative tw:min-h-40 tw:w-full"> (min-h-24 inside the Select dropdown), the pattern already used in TestSuitePipelineTab.

Spin → Loader — mapped by rendered size rather than by prop name: antd small (14px) → size="x-small" (14px), antd default (20px) → size="small" (20px), antd large → default Loader. The two large sites sit in flex-centred 300/400px containers, so the default loader's 96px margins still fit.

Enforcement: Affix, Empty, Image, Result, Spin added to MIGRATED_ANTD_COMPONENTS; eslint-suppressions.json pruned via yarn lint:src:suppressions; EXPECTED_SUPPRESSED_ANTD_SYMBOLS lowered 509 → 498 (exactly the 11 symbols removed).

Type of change:

  • Improvement

High-level design:

Mechanical, one component at a time, with the replacement chosen from the rendered result rather than from the prop name. Three of the five had a trap that a literal swap would have hit:

  • Affix looked like it needed a sticky-positioning replacement; it needed nothing, because the CSS was already doing the work.
  • EmptyPlaceholder is an absolutely-positioned overlay, not an inline block — every Empty site needed a sized relative host.
  • EmptyPlaceholder's icon slot is a 64px chip, so it is the wrong target for a full-page illustration; Result got core primitives instead.

Alternative considered and rejected: forcing tw:static onto EmptyPlaceholder to make it inline. Tailwind emits static before absolute in the position group, so absolute wins — the override is silently a no-op.

Tests:

Use cases covered

  • What's New alert, GitHub star popup and the CSV import footer stay pinned in the same screen positions.
  • A user with a profile image still renders it at the same size; a user without one still falls back to ProfilePicture.
  • A chunk-load error and a generic error both still render the upgrade illustration, title, message and the Refresh/Home button on the 500 page.
  • Pipeline Execution tree with no runs, Table Constraints related-column search with no matches, and the Task Form builder with no fields all show their empty state.
  • User Permissions, Admin Permission Debugger (page load + user search) and Task Form Settings schema list all show a spinner while loading.

Unit tests

  • Existing unit tests cover the changed render paths; no new logic was introduced, so no new tests were added.
  • Files added/updated: none
  • Ran the 17 suites covering every changed file: 95 passed, 0 failed.
PASS src/components/Settings/Users/UsersProfile/UserProfileImage/UserProfileImage.test.tsx
PASS src/pages/TableDetailsPageV1/TableConstraints/TableConstraintsModal/TableConstraintsModal.component.test.tsx
PASS src/components/Modals/WhatsNewModal/WhatsNewAlert/WhatsNewAlert.test.tsx
PASS src/components/MyData/GithubStarCard/GithubStarCard.test.tsx
PASS src/components/Settings/Users/AdminPermissionDebugger/AdminPermissionDebugger.test.tsx
PASS src/components/common/EntityImport/EntityImport.test.tsx
PASS src/pages/TaskFormSettingsPage/TaskFormSettingsPage.test.tsx
... 17 passed, 17 total / 95 tests passed

Also green:

yarn lint (full src)                    0 errors
eslint (changed files)                  0 errors, 15 warnings (all pre-existing)
node --test eslint-rules/openmetadata-antd.test.mjs   21 pass, 0 fail
yarn tw-guard                           No new Antd or raw-SVG imports
tsc --noEmit                            no new errors in changed files
prettier + organize-imports-cli         clean, diff stable

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no new UI surface — existing specs cover these screens).
  • Files added/updated: none

make playwright_affected selects 39 specs. These were not run locally — no local stack was available in this environment. The merge queue runs the full suite. No spec in the repo selects on .ant-affix, .ant-image, .ant-result, or on the .ant-empty / .ant-spin rendered by the five removed imports (the surviving .ant-empty / .ant-spin references come from antd Table's internals, which this PR does not touch).

Manual testing performed

Not performed — verification was automated (jest, eslint, tsc, tw-guard, the antd ratchet test). The five replacements are render-only and each was checked against the component's own LESS before the swap; see the per-component reasoning above for what was preserved.

UI screen recording:

Screenshot 2026-10-13 at 7 00 48 PM Screenshot 2026-10-13 at 5 56 48 PM Screenshot 2026-10-13 at 7 06 43 PM

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue above.

🤖 Generated with Claude Code

Removes five untracked antd components from the OSS UI, taking each to zero
named imports.

- Affix (3 files) -> plain div. WhatsNewAlert, GithubStarCard and EntityImport
  already set position: fixed in their own LESS, so Affix only added a wrapper.
- Image (1) -> img. UserProfileImage used preview={false} and no .ant-image
  rule exists; the antd img sizing is kept as Tailwind classes.
- Result (1) -> core Box/Typography/Button. ErrorFallback renders a 582x338
  illustration on a full-page 500, which EmptyPlaceholder would clamp to a 28px
  glyph in a 300px column, so the existing .error-boundary-result container
  keeps the antd Result metrics instead. Dead .ant-result-* overrides dropped.
- Empty (3) -> EmptyPlaceholder, each inside a relative wrapper because the core
  placeholder is absolutely positioned.
- Spin (3 files, 4 sites) -> Loader, size-matched: antd small -> x-small,
  antd default -> small, antd large -> default.

All five added to MIGRATED_ANTD_COMPONENTS; eslint-suppressions.json pruned and
EXPECTED_SUPPRESSED_ANTD_SYMBOLS lowered 509 -> 498.
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • Linked issue open-metadata/openmetadata-collate#7300 does not exist or is not accessible.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Oct 13, 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: 922 → 923
- 1 added, 0 removed, 1 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/DataQuality/AddDataQualityTest/components/TestCaseFormDrawer.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/EntitySummaryPanel.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

@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 added skip-pr-checks Bypass PR metadata validation check safe to test Add this label to run secure Github workflows on PRs labels Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 15 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 15 warning(s) across 7 changed file(s).

Count Rule
11 react-hooks/exhaustive-deps
2 openmetadata-imports/review-sequential-api-calls
1 openmetadata-imports/no-lower-layer-page-imports
1 openmetadata-imports/no-cross-page-imports
All findings
Location Rule Message
🟡 src/components/MyData/GithubStarCard/GithubStarCard.component.tsx:57:5 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 'cookieStorage'. Either exclude it or remove the dependency array. Outer scope values like 'cookieStorage' are
🟡 src/components/MyData/GithubStarCard/GithubStarCard.component.tsx:104:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'userCookieName'. Either exclude it or remove the dependency array.
🟡 src/components/Settings/Users/AdminPermissionDebugger/AdminPermissionDebugger.component.tsx:78:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Settings/Users/AdminPermissionDebugger/AdminPermissionDebugger.component.tsx:81:23 react-hooks/exhaustive-deps React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead.
🟡 src/components/Settings/Users/UsersProfile/UserPermissions/UserPermissions.component.tsx:96:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchPermissions'. Either include it or remove the dependency array.
🟡 src/components/common/EntityImport/EntityImport.component.tsx:32:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/common/EntityImport/EntityImport.component.tsx:207:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'handleImportWebsocketResponse'. Either include it or remove the dependency array.
🟡 src/pages/TableDetailsPageV1/TableConstraints/TableConstraintsModal/TableConstraintsModal.component.tsx:123:27 react-hooks/exhaustive-deps React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead.
🟡 src/pages/TableDetailsPageV1/TableConstraints/TableConstraintsModal/TableConstraintsModal.component.tsx:211:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/pages/TableDetailsPageV1/TableConstraints/TableConstraintsModal/TableConstraintsModal.component.tsx:273:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'form'. Either include it or remove the dependency array.
🟡 src/pages/TableDetailsPageV1/TableConstraints/TableConstraintsModal/TableConstraintsModal.component.tsx:290:5 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 't'. Either exclude it or remove the dependency array.
🟡 src/pages/TaskFormSettingsPage/TaskFormSettingsPage.tsx:558:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'loadSchemas'. Either include it or remove the dependency array.
🟡 src/pages/TaskFormSettingsPage/TaskFormSettingsPage.tsx:726:11 openmetadata-imports/review-sequential-api-calls Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent
🟡 src/pages/TaskFormSettingsPage/TaskFormSettingsPage.tsx:727:11 openmetadata-imports/review-sequential-api-calls Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent
🟡 src/pages/TaskFormSettingsPage/components/TaskFormBuilderSection.tsx:46:1 openmetadata-imports/no-cross-page-imports Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@anuj-kumary anuj-kumary self-assigned this Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 77%
77.42% (125006/161455) 63.9% (78286/122508) 65.15% (26098/40056)

@shah-harshit shah-harshit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked the Affix → div swap and className usage.

Affix stickiness is preserved. All three former Affix wrappers (.whats-new-alert-affix, .github-star-popup-card, .import-preview-footer) are already position: fixed in their own LESS. antd Affix without offsets only pins content once it scrolls past the viewport top, which a bottom-anchored fixed element never does, so Affix was never engaged. No LESS uses a child (>) selector on these wrappers, so losing Affix's inner div is safe, and the GitHub card's slide-in keyframes are pure CSS.

Please remove classnames where core props can replace them: raw divs → Box; the ErrorFallback margins/text colour → EmptyPlaceholder (or gap + Typography color); the legacy bg-white p-md on the import footer (also a dark-mode white bar); my-4 mixed into tw: lists; and the legacy layout-space/d-flex classes on the GitHub card's inner Box.

The five migrated containers kept their component-specific LESS class names.
Per ADR:2026-10-11-migrated-antd-components-adopt-core-styling, move the
caller-side styling to Tailwind utilities and delete the rules.

- ErrorFallback: .error-boundary-result removed from app.less; Box already
  does the flex centring, so only h-full / text-center / padding remain.
- EntityImport: .import-preview-footer and its dead .reserve-right-sidebar
  override removed (no TSX applies that class); bg-white -> bg-surface so the
  footer follows dark mode.
- WhatsNewAlert: .whats-new-alert-affix removed; its two child rules are
  promoted to top level, unchanged.
- GithubStarCard: positioning moved off .github-star-popup-card and its three
  child rules promoted to top level. The two animation classes stay in LESS —
  they are @Keyframes, which has no Tailwind utility equivalent.
- UserProfileImage: .profile-image-container had no CSS at all; dropped,
  data-testid kept.
- TreeViewTab: legacy my-4 -> tw:my-4.
…snames

Review follow-up on the five migrated containers.

- Raw `div`s that only carried positioning are now `Box` (WhatsNewAlert,
  GithubStarCard, both EntityImport footers).
- GithubStarCard: the no-op `layout-space` / `d-flex justify-between` classes
  and `itemClassName` on the inner Boxes are replaced by `justify="between"`
  and `gap`; the inner button row is a `Box` too. Same for the EntityImport
  footer's inner Box (`justify-end w-full p-r-md` -> `justify="end"` + tw).
- ErrorFallback keeps primitives rather than EmptyPlaceholder: the
  om-upgrade illustration is 582x338 and EmptyPlaceholder clamps its icon to
  28px inside a 64px chip. Applied the reviewer's fallback instead — `gap`
  on the Box rather than per-child margins, Typography `color="secondary"`
  rather than `tw:text-tertiary`, and `onPress` on the core Button.
- Loader wrappers whose only job was centring (`user-permissions-loading`,
  `loading-container`) are `Box align/justify` with the min-height in tw; both
  LESS rules deleted.
- The three EmptyPlaceholders now pass an icon, so the empty states are not
  text-only the way antd `Empty` never was; dropped the redundant `tw:w-full`.
- TaskFormBuilderSection: the hard-coded "No fields configured yet" moves to
  `message.no-fields-configured`, translated in all 19 non-English locales.
Flattening `.github-star-popup-card .github-star-popup-description` to a
top-level selector dropped its specificity from (0,2,0) to (0,1,0).
`Typography as="p"` renders the paragraph as the first child of a `.prose`
wrapper, so the typography plugin's `> :first-child { margin-top: 0 }` reset
— also (0,2,0) — started winning and the 10px gap under the header collapsed.

Measured against origin/main at 1512x900: margin-top was 10px, had become 0px,
and is 10px again. Card height 117px -> 106px -> 116px.

A `tw:mt-2.5` utility does not fix this: it is (0,1,0) and loses to the same
reset.
The card had no width constraint, so `position: fixed; right: 30px` with
`width: auto` let it shrink-to-fit the description's max-content — a ~950px
bar across the page on a wide viewport. `main` behaves the same way; this
caps it instead of reproducing that.

- `tw:w-full tw:max-w-90` (360px), so the description wraps to three lines.
- `tw:mt-4` on the button row, which previously sat flush against the
  description because `p { margin-bottom: 0 }` applies to it.
…se icon

Matches the card's pre-migration look. The Button migration (#35252) replaced
`antd/lib/button/button-group` with a plain flex wrapper, which split the
Star/count pair into two detached buttons, and swapped the close glyph for a
faint `xs` CloseButton.

- Star and the count rejoin into one pill: `gap={0}`, the left button loses its
  right radius and takes the grey fill, the right button loses its left radius
  and pulls back a pixel so the two borders collapse into one divider.
- Close icon back to `sm` at `text-primary`.

Core `ButtonGroup` is not usable here: it is a react-aria ToggleButtonGroup and
`ButtonGroupItem` has no `href`, so a link plus a static count cannot use it.

@shah-harshit shah-harshit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review since eb1daff (3 GitHub star card styling commits; the rest is the main merge). Stickiness and the earlier fixes are unchanged. New: the segmented pill and close icon are built by overriding core Button/CloseButton styles, and the header gap is restored by out-specifying the .prose reset. All three are inline.

Review follow-up: the segmented pill, the recoloured close icon and the
`.prose` specificity fight were all caller-side overrides of core internals.

- Buttons go back to two plain `color="secondary"` buttons with `gap={2}`.
  The joined pill needed `rounded-*-none`, `bg-secondary` and `-ml-px`, which
  pins the card to Button's current radius/border values and overrides the
  secondary colour's background in both themes. Core `ButtonGroup` cannot
  replace it either — it is a react-aria ToggleButtonGroup whose items take
  no `href`. A link-capable segmented variant belongs in core, not here.
- `CloseButton` keeps `size="sm"` and the `-mt-1` layout nudge; the
  `tw:text-primary` recolour is gone.
- Spacing is layout now: one `Box direction="col" gap={3}` around the header
  row, the description and the button row. That deletes the
  `.prose > .github-star-popup-description` rule, which only existed to
  out-specify the typography plugin's `> :first-child` margin reset and would
  have broken whenever that wrapper changed.
- The description's colour/size/weight move to `Typography size="text-xs"`,
  so the whole `.github-star-popup-description` LESS block is gone.
@anuj-kumary
anuj-kumary enabled auto-merge October 13, 2026 13:51
@anuj-kumary

anuj-kumary commented Oct 13, 2026 •

Copy link
Copy Markdown
Member Author

Visual validation — main vs this PR, side by side

Every reachable changed surface captured on both builds at the same viewport (1512×950), same backend, same session: origin/main on one dev server, 8921678c284 on another. Left is before, right is after.

1. Affix → Box — What's New alert

What's New alert

2. Affix → Box — GitHub star card

GitHub star card

3. Affix → Box — fixed CSV import footer

/settings/members/teams/Organization/import
Import footer

4. Spin → Loader — Permission Debugger

/settings/access/permission-debugger
Permission Debugger

5. Spin → Loader, Empty → EmptyPlaceholder — Task Forms

/settings/governance/task-forms
Task Forms

@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 13, 2026
shah-harshit added a commit that referenced this pull request Oct 13, 2026
#35339 migrates every remaining Affix, Empty,
Image, Result and Spin import. Drop this branch's copies of those swaps so
the two PRs don't conflict, keeping the Tree, Accordion, Alert, Checkbox
and ComboBox migrations in the same files. Restore the matching
suppressions and keep the five components off the migrated list until
#35339 lands.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 14, 2026
@github-actions github-actions Bot added the merge conflict Conflicts with the latest main; removed from the merge queue label Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — merge_conflict (2026-10-14T00:33:29Z)

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

Conflicts with the latest main — rebase, then re-queue.

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/eslint-rules/openmetadata-antd.test.mjs
@github-actions github-actions Bot removed the merge conflict Conflicts with the latest main; removed from the merge queue label Oct 14, 2026
@gitar-bot

gitar-bot Bot commented Oct 14, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Replacing Ant Design components across 11 UI call sites changes positioning and state rendering, which could misplace controls or obscure empty and loading feedback.

Migrates antd Affix, Image, Result, Empty and Spin to core UI components across 11 call-site files, with no intended behaviour change. 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 enabled auto-merge October 14, 2026 00:56
@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit cfdade8 Oct 14, 2026
77 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/issue-6884-untracked-fixes branch October 14, 2026 06:46
yan-3005 added a commit that referenced this pull request Oct 14, 2026
… Flowable async executor (#35442)

* fix(ui-core): add bottom padding to the TreeSelect dropdown list (#35352)

* fix(ui-core): add bottom padding to the TreeSelect dropdown list

The list ended flush against the popover edge, so the last row touched
the card border in every TreeSelect dropdown (e.g. the domain scope
picker). Add 8px below the list, except when the staged Apply/Cancel
footer follows, since that footer already has an 8px top margin.

* fix(ui-core): align TreeSelect row highlight with the search field

The list's 14px/6px side padding left a row's hover fill starting 4px
inside the search field and running 6px past it. Pad the list so the
fill spans the search field's 12px inset on both sides, and inset row
content by 4px so the chevron stays in line with the Select all
checkbox.

* fix(ui-core): apply prettier formatting to tree-select-node

---------

Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>

* fix(ui): reset loading state when clearing bots search mid-flight (#34524)

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>

* Fixes #35304: Make the product tour offline, visible and startable (#35305)

* fix(ui): make the product tour offline, visible and startable

- Pre-mount the tour's Explore page with visibility instead of display:none,
  so its results panel keeps its width and the highlighted card is not clipped.
- Stop components fetching the tour's mock table for real; serve a mock
  lineage scene to LineageMap.
- On /tour, skip the welcome screen and use the default landing layout so
  the first step's activity feed is always there.
- Normalise react-tour's lazy import for Vite's dev pre-bundle.
- Harden Tour.spec: real step actions, in-viewport targets, a mock-request
  tripwire, a first-visit test, and per-test accounts.

* fix(ui): keep the tour's summary panel read-only and offline on every tab

Address review: the Explore summary panel gave the tour's mock table the
full mock grants and still fetched its lineage tab. Give it a view-only
grant, which also stops the data quality tab querying the mock FQN, and
skip the lineage request on /tour.

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

---------

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

* Fixes 7300: migrate antd Affix, Image, Result, Empty and Spin to core UI (#35339)

* Fixes 7300: migrate antd Affix, Image, Result, Empty and Spin to core UI

Removes five untracked antd components from the OSS UI, taking each to zero
named imports.

- Affix (3 files) -> plain div. WhatsNewAlert, GithubStarCard and EntityImport
  already set position: fixed in their own LESS, so Affix only added a wrapper.
- Image (1) -> img. UserProfileImage used preview={false} and no .ant-image
  rule exists; the antd img sizing is kept as Tailwind classes.
- Result (1) -> core Box/Typography/Button. ErrorFallback renders a 582x338
  illustration on a full-page 500, which EmptyPlaceholder would clamp to a 28px
  glyph in a 300px column, so the existing .error-boundary-result container
  keeps the antd Result metrics instead. Dead .ant-result-* overrides dropped.
- Empty (3) -> EmptyPlaceholder, each inside a relative wrapper because the core
  placeholder is absolutely positioned.
- Spin (3 files, 4 sites) -> Loader, size-matched: antd small -> x-small,
  antd default -> small, antd large -> default.

All five added to MIGRATED_ANTD_COMPONENTS; eslint-suppressions.json pruned and
EXPECTED_SUPPRESSED_ANTD_SYMBOLS lowered 509 -> 498.

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

* refactor(ui): drop legacy LESS classes from the migrated antd containers

The five migrated containers kept their component-specific LESS class names.
Per ADR:2026-10-11-migrated-antd-components-adopt-core-styling, move the
caller-side styling to Tailwind utilities and delete the rules.

- ErrorFallback: .error-boundary-result removed from app.less; Box already
  does the flex centring, so only h-full / text-center / padding remain.
- EntityImport: .import-preview-footer and its dead .reserve-right-sidebar
  override removed (no TSX applies that class); bg-white -> bg-surface so the
  footer follows dark mode.
- WhatsNewAlert: .whats-new-alert-affix removed; its two child rules are
  promoted to top level, unchanged.
- GithubStarCard: positioning moved off .github-star-popup-card and its three
  child rules promoted to top level. The two animation classes stay in LESS —
  they are @Keyframes, which has no Tailwind utility equivalent.
- UserProfileImage: .profile-image-container had no CSS at all; dropped,
  data-testid kept.
- TreeViewTab: legacy my-4 -> tw:my-4.

* refactor(ui): address review — Box over raw div, core props over classnames

Review follow-up on the five migrated containers.

- Raw `div`s that only carried positioning are now `Box` (WhatsNewAlert,
  GithubStarCard, both EntityImport footers).
- GithubStarCard: the no-op `layout-space` / `d-flex justify-between` classes
  and `itemClassName` on the inner Boxes are replaced by `justify="between"`
  and `gap`; the inner button row is a `Box` too. Same for the EntityImport
  footer's inner Box (`justify-end w-full p-r-md` -> `justify="end"` + tw).
- ErrorFallback keeps primitives rather than EmptyPlaceholder: the
  om-upgrade illustration is 582x338 and EmptyPlaceholder clamps its icon to
  28px inside a 64px chip. Applied the reviewer's fallback instead — `gap`
  on the Box rather than per-child margins, Typography `color="secondary"`
  rather than `tw:text-tertiary`, and `onPress` on the core Button.
- Loader wrappers whose only job was centring (`user-permissions-loading`,
  `loading-container`) are `Box align/justify` with the min-height in tw; both
  LESS rules deleted.
- The three EmptyPlaceholders now pass an icon, so the empty states are not
  text-only the way antd `Empty` never was; dropped the redundant `tw:w-full`.
- TaskFormBuilderSection: the hard-coded "No fields configured yet" moves to
  `message.no-fields-configured`, translated in all 19 non-English locales.

* fix(ui): restore the GitHub star card's header-to-description gap

Flattening `.github-star-popup-card .github-star-popup-description` to a
top-level selector dropped its specificity from (0,2,0) to (0,1,0).
`Typography as="p"` renders the paragraph as the first child of a `.prose`
wrapper, so the typography plugin's `> :first-child { margin-top: 0 }` reset
— also (0,2,0) — started winning and the 10px gap under the header collapsed.

Measured against origin/main at 1512x900: margin-top was 10px, had become 0px,
and is 10px again. Card height 117px -> 106px -> 116px.

A `tw:mt-2.5` utility does not fix this: it is (0,1,0) and loses to the same
reset.

* style(ui): make the GitHub star card a compact popup again

The card had no width constraint, so `position: fixed; right: 30px` with
`width: auto` let it shrink-to-fit the description's max-content — a ~950px
bar across the page on a wide viewport. `main` behaves the same way; this
caps it instead of reproducing that.

- `tw:w-full tw:max-w-90` (360px), so the description wraps to three lines.
- `tw:mt-4` on the button row, which previously sat flush against the
  description because `p { margin-bottom: 0 }` applies to it.

* style(ui): restore the star card's segmented button pill and bold close icon

Matches the card's pre-migration look. The Button migration (#35252) replaced
`antd/lib/button/button-group` with a plain flex wrapper, which split the
Star/count pair into two detached buttons, and swapped the close glyph for a
faint `xs` CloseButton.

- Star and the count rejoin into one pill: `gap={0}`, the left button loses its
  right radius and takes the grey fill, the right button loses its left radius
  and pulls back a pixel so the two borders collapse into one divider.
- Close icon back to `sm` at `text-primary`.

Core `ButtonGroup` is not usable here: it is a react-aria ToggleButtonGroup and
`ButtonGroupItem` has no `href`, so a link plus a static count cannot use it.

* refactor(ui): stop overriding core components in the GitHub star card

Review follow-up: the segmented pill, the recoloured close icon and the
`.prose` specificity fight were all caller-side overrides of core internals.

- Buttons go back to two plain `color="secondary"` buttons with `gap={2}`.
  The joined pill needed `rounded-*-none`, `bg-secondary` and `-ml-px`, which
  pins the card to Button's current radius/border values and overrides the
  secondary colour's background in both themes. Core `ButtonGroup` cannot
  replace it either — it is a react-aria ToggleButtonGroup whose items take
  no `href`. A link-capable segmented variant belongs in core, not here.
- `CloseButton` keeps `size="sm"` and the `-mt-1` layout nudge; the
  `tw:text-primary` recolour is gone.
- Spacing is layout now: one `Box direction="col" gap={3}` around the header
  row, the description and the button row. That deletes the
  `.prose > .github-star-popup-description` rule, which only existed to
  out-specify the typography plugin's `> :first-child` margin reset and would
  have broken whenever that wrapper changed.
- The description's colour/size/weight move to `Typography size="text-xs"`,
  so the whole `.github-star-popup-description` LESS block is gone.

---------

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

* feat(ui-core): align Button/ButtonUtility icons and sizes with the Figma icon spec (#35348)

* feat(ui-core): align Button/ButtonUtility icons and sizes with the Figma icon spec

- Button: five sizes xs–xl (28/32/36/40/44px), dropping xxs; 20px leading /
  18px trailing icon frames (18/16 on xs); icons gray-500 → gray-600 on hover,
  white on primary; spec frame→label gaps.
- ButtonUtility: five icon-only sizes xs–xl (20–36px) with 8/6/4px radius;
  primary and destructive colors; xs is always borderless.
- Glyphs sit at frame − 4px (16/14/12) via svg padding on 18/16 frames.
- Icons: generator rescales 24-grid sources to a 20×20 viewBox without scaling
  stroke; default size 20; all outline icons use a 1.3 stroke.
- Stories: Button sizes with icons, ButtonUtility sizes across colors.

* fix(ui-core): address review — migrate xxs call sites, keep DateRangePicker heights, add ADR

- Move the 4 openmetadata-ui `size="xxs"` Buttons (EditIconButton, Description) to `xs`.
- DateRangePicker maps its input-aligned sm/md to Button md/lg so the trigger and
  footer keep their 36/40px heights.
- Record the icon grid, stroke and button-size rules in
  ADR:2026-10-13-core-icons-and-buttons-follow-the-figma-icon-spec and cite it.

* fix(ui-core): default ButtonUtility to the 24px sm size

* Run event-triggered workflows on the Flowable async executor

The single WorkflowEventConsumer thread ran every event-based workflow
body inline: the signal start event had no async boundary since #18664
dropped the one #17837 added. Once #32335 seeded MetricApprovalWorkflow
on every metric create/update, the consumer fell minutes behind and
unrelated approval ITs (glossary, data product, metric) timed out.

- Signal start events leave asynchronously, as the periodic trigger
  already does: the consumer commits the instance and one job, the body
  runs on the async executor.
- Every async job runs inside a FreshReadScope, so workflow gates keep
  reading the database on executor threads.
- Runs for one entity can now overlap, so an approval task supersedes
  only tasks created before it, ordered by the TASK-n sequence; two
  concurrent runs can no longer cancel each other's task.

* Keep only the newest open approval task when runs interleave

The one-way supersede left two open approvals when the older run
listed last: run B (TASK-42) lists before A's row is visible and
closes nothing, then run A (TASK-41) sees B but may only close older
tasks.

Every run now keeps the newest task it can see, including its own,
and closes the rest. When another run's task is newer, the run closes
its own task and terminates its own process after its Flowable commit.
The run that lists last sees every task, so exactly one survives, and
no run closes the newest, so at least one does.

---------

Co-authored-by: Vansh Shah <107346648+Vansh0310@users.noreply.github.com>
Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: Harsh Vador <58542468+harsh-vador@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rohit Jain <60229265+Rohit0301@users.noreply.github.com>
Vansh0310 pushed a commit to Vansh0310/OpenMetadata that referenced this pull request Oct 15, 2026
…open-metadata#35253)

* Fixes open-metadata#6884: migrate display and navigation components to core

* fix(ui): use core alert spacing in marketplace details

* fix(ui): preserve collapsed navigation and notification interactions

* test(playwright): cover pipeline execution tree view after Tree migration

* fix(ui): repair build after syncing main and drop accordion codemod leftovers

Main added CustomizeAppModeSidebarPage importing the antd-tree LESS file this branch deletes; the page renders the core Tree, so the import is dead. The rebase also truncated alert-recent-events-tab.less into an unterminated comment; its antd Collapse styles are unused after the Accordion swap, so remove it. Strip empty className props and string-concat classNames left by the Collapse codemod, and lower the pinned no-positional-locator suppression count.

* fix(ui): give collapsed sidebar groups and links the same core icon size and row height

Collapsed leaf links enlarged NavItemButton through className, so their icons rendered larger than the ButtonUtility group triggers. Use NavItemButton's own size and match the group row height with wrapper layout instead.

* refactor(ui): migrate selection and numeric fields to core

* fix(ui): preserve tree picker keyboard navigation and labels

* fix(ui): name learning resource rows for accessible tables

* fix(ui): keep KPI sliders visible beside numeric targets

* fix(ui): retain async permission search results in combobox

* test(ui): assert core ButtonGroup, NumberInput and Slider behaviour in migrated profiler and contract tests

* test(ui): upload CSVs through the core file input in EntityImport tests

* refactor(ui): leave Affix, Empty, Image, Result and Spin to open-metadata#35339

open-metadata#35339 migrates every remaining Affix, Empty,
Image, Result and Spin import. Drop this branch's copies of those swaps so
the two PRs don't conflict, keeping the Tree, Accordion, Alert, Checkbox
and ComboBox migrations in the same files. Restore the matching
suppressions and keep the five components off the migrated list until
open-metadata#35339 lands.

* docs: keep main's generated API reference

* fix(ui): keep core Accordion styling and name its toggles

Drop the caller-side `tw:outline-0 tw:divide-y-0` overrides so the migrated
accordions keep the core frame, per
ADR:2026-10-11-migrated-antd-components-adopt-core-styling. Remove the
leftover antd expand arrow from the agents status header, which duplicated
the core chevron. Name the policy and summary toggles after their item.

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

* fix(ui): clear UI checkstyle for core i18n, half-circle color and boot bundle

Add the label.select and label.remove keys the core TreeSelect uses to every
core locale, apply ProgressBarHalfCircle's color prop like the full circle,
and drop the antd/rc packages this branch removed from the boot bundle list.

* fix(ui): restore navbar header box and align sidebar items

Recreate the 80px header box antd's Layout.Header supplied, keep the version
alert floating bottom-centre, and render sidebar groups with core's
collapsible NavItemBase so groups and links share one size and indent.

* fix(ui): restore form spacing, teams tree loading and slideout stacking

Visual regression against main found:
- React Hook Form pages (KPI, lineage config, policy/rule forms, profiler
  settings) lost antd's Form.Item spacing; lay fields out with the column
  gap main's core forms use.
- The team pickers fetched their tree before the teams request finished,
  so an immediately opened picker cached an empty tree; await the shared
  request inside fetchData.
- The profile Teams popover grew by the tree list's height, a leftover from
  antd's inline dropdown; the list is its own overlay now.
- Slideout overlays had no z-index, so sticky table headers painted over
  them; match the core Modal overlay (z-50).
- Search boost actions were not pushed to the end of their header row.

* fix(ui): retry failed team loads, toast once, and tokenise the version alert offset

A rejected teams request stayed cached, so the picker never retried and a
single failure toasted twice (mount load and picker). Cache the request per
filterJoinable, drop it on failure, and route both error paths through one
notifier. Use --om-space-30 for the version alert offset and let it size to
its content instead of a raw 470px width.

* fix(ui): fit 3-digit sample values, restore rule placeholders, mark the current rail item

- SliderWithInput: give the number input a 160px column so 100 % fits next
  to its suffix, and lay it out with core Box instead of the legacy grid.
- RuleForm: pass the "Select Resources/Operations" placeholders main shows.
- NavItemButton: use the same current-page treatment as the expanded
  NavItemBase so the collapsed rail still shows where the user is.
- UserProfileTeams: core Box with tw:h-39 instead of an inline height and
  absolutely positioned buttons.

* fix(ui): keep the profiler sample slider full width; refresh sidebar visual baselines

- SliderWithInput: the core Box row needs full width and a block slider
  column, or the slider collapses to its thumb.
- Refresh the six visual-regression baselines that include the classic
  sidebar (landing page, collapsed landing page, glossary, applications,
  metric list desktop/narrow) from CI's own run on 3c7ba3b. The only
  change is the core sidebar styling this PR introduces.

* fix(ui): opt the column filter out of the table selection slot; align E2E specs with core components

The TableV2 header provides react-aria's slotted selection CheckboxContext, so
the core Checkbox inside the column filter dropdown threw 'A slot prop is
required'. Pass slot={null} and cover it with a test.

Point Playwright specs at the core DOM: upload widget/input test ids, TreeSelect
popovers, combobox search and Remove chips, slider track and input value,
accordion buttons, treegrid rows, rows-per-page dropdown, SlideoutMenu dialog
header and plain notification list items.

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

* test(ui): point remaining E2E specs at the core sidebar, insights nav, persona menu and forms

The classic sidebar and data insights panel are core navs (links and buttons,
not antd menu items); customize-navigation switches live in core tree rows;
persona rows mark selection with text instead of a radio input; the
create-user, profiler and profiler-configuration forms are React Hook Form
without antd field ids.

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

* chore(ui): drop unused team chip locator and fix hook dependency warnings

Remove the unused selectedTeamChips locator in TeamsHierarchy.spec (TS6133
under noUnusedLocals). Memoize getIncludesColumns so handleSave stops
changing every render, and list the stable t/handleStateChange/form
dependencies in ProfilerSettingsModal and EditKPIPage.

* fix(ui): let search settings accordion rows toggle across their width and mount field controls lazily

The core AccordionHeader's flex child is its heading wrapper, so tw:flex-1 on
the header button left only the label clickable; wrap the header in a flex-1
container so the whole row toggles again, as it did with antd Collapse.

antd Collapse never mounted unopened panels; the core Accordion mounts all of
them, so each entity's dozen-plus field configurations rendered their switch,
slider and selects up front. Render the field controls only while expanded.

* fix(ui): restore the SAML drop zone copy and give profiler metric rows a test id

The SAML metadata drop zone lost "an XML file here" when it moved to the core
FileUploadDropZone; use the original label again. Wrap each profiler metric
row in a display:contents element with a metric-row-<n> test id so specs can
scope its controls, matching the platform-settings profiler form.

Point the profiler configuration, add-role, SAML upload and settings
navigation specs at the core DOM: row-scoped selects and TreeSelect popover,
the roles search combobox, the drop zone wrapper and input test ids, and the
treegrid role.

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

* fix(ui): keep a matching tree node's subtree visible while searching TreeSelect

antd TreeSelect kept every descendant of a matching node, so searching for a
parent team still offered its sub-teams; the core filter hid them unless they
matched too. Keep the matched node's subtree visible.

Close the team picker after a pick so the next Save click is not swallowed by
the overlay, open the KPI chart select by test id, and use the Data
Marketplace label in the customize-navigation default-state check.

* fix(ui): name the TableV2 row expander and stop specs toggling an open search field

The default TableV2 expander was an icon-only button with no accessible name;
label it Expand/Collapse as the antd table did, and drive the API endpoint
summary panel's nested rows through those names.

A newly added search field opens on its own, so the custom-property search
specs' extra click on the panel could land on its header and close it. Open
the panel only when it is collapsed.

* test(ui): drop on the target row's edge when reordering navigation and use the team picker overlay

react-aria treats the middle of a tree row as a drop onto it; drop near the
bottom edge to place the item after it, as the antd tree did. Look up team
options in the team-select-popover overlay instead of a tree role the core
TreeSelect does not expose.

* fix(ui): route collapsed sidebar links through the client router

The core NavItemButton rendered a plain anchor, so every click on a
collapsed-sidebar item reloaded the whole app instead of navigating in place
(it also made the Data Consumer settings E2E time out). Under a react-aria
RouterProvider, hand same-tab clicks to the client router like react-aria's
Link does, leaving modified clicks to the browser.

* fix(ui): unmount collapsed alert event, sample message and search field panels

antd Collapse never rendered an unopened panel; the core AccordionPanel keeps
collapsed content mounted unless unmountOnCollapse is set. Set it on alert
recent events and Kafka sample message cards, which each mount a CodeMirror
editor, and use it for search field configurations instead of gating the
body by hand.

* fix(ui): keep tag tooltip FQN bold when the description is HTML

getTagTooltip prefixed the description with markdown **fqn**. A description
holding a list or table is treated as HTML, so markdown was skipped and the
asterisks showed literally. Render the FQN as its own element instead.

* fix(ui): flatten the left-panel frame card on every entity tab

Entity pages (table, topic, dashboard, ...) wrapped their widgets in a
left-panel frame card, so the Description and schema cards rendered as
cards inside a card. The governance pages already dropped that frame
through GenericTab's flat variant; every GenericTab now renders flat, so
the variant prop goes away. The customize page grid keeps its frame.

* fix(ui): let the Explore search fill the header row on wide screens

The search and quick filters were capped at max-w-4xl (800px usable) and
centred in the space beside the title, so on large screens they looked
small and off-centre. Drop the cap so the column grows with the row.

* fix(ui): use the shared core edit button on every header field

Retention Period, the service header row (domain, owner, tier), the
Context Center article header (domain, owner) and the workflow title each
hand-built their edit trigger from legacy SVG assets (edit-new.svg,
action-icons/edit.svg) on ButtonUtility or a restyled Button, so their
pencil glyph, box and border differed from the other header fields.
They now render EditIconButton (newLook, small) like Domains, Owners,
Tier and Certification, keeping their test ids.

* fix(ui): keep the Explore search centred while it grows with the screen

Filling the whole header row made the search too wide on large screens.
Centre it again with a fluid cap: at least 56rem (the previous 800px
usable width) and 55% of the header row beyond that.

* chore(ui): sort WorkflowHeader imports for UI checkstyle

* test(playwright): fix Data Insight, settings navigation and topic copy-link specs

- Data Insight: the left panel entries are nav links since the core
  migration, so open App Analytics by link role, as the KPIs steps do.
- Settings navigation: the persist-after-reload test still dropped on the
  middle of the target row, which the core tree treats as a drop onto it;
  drop on the bottom edge so the item is reordered after it.
- Topic: the expand-icon locator matched the toolbar's Expand All icon
  first, so the nested row never opened and the copy button picked was a
  top-level row's. Scope the locator to table rows.

* fix(ui): restore the header Tier tooltip and stop tooltips closing mid-hover

The header Tier chip lost its description tooltip when open-metadata#32557 swapped
TagsV1 for ClassificationTag. Wrap it in the chip tooltip TagsViewer
already uses, moved to its own TagChipTooltip module so both share it.

That tooltip flickered: the chip sits near the top of the page, so the
tooltip flips from top to bottom, and for one frame while it is being
positioned it lands under the cursor. Taking the pointer fired
pointerleave on the chip and react-aria closed the tooltip. Core
Tooltip now has pointer-events: none; react-aria tooltips close once the
cursor leaves the trigger, so they were never hoverable anyway.

* fix(ui): only ignore the pointer while a tooltip enters

Blocking pointer events on every tooltip broke tooltips that hold links or
"view more" buttons: react-aria keeps a tooltip open while it is hovered,
so its content is meant to be reachable. The flicker only needs the pointer
ignored for the frames where the tooltip is still being positioned (it can
flip under the cursor then), so scope pointer-events: none to the entering
phase.

* feat(ui-core): pass the clicked preset to DateRangePicker onApply

Export getDateRangePresets so callers can re-derive a preset's range
from its key, and hand onApply the clicked preset's key so a caller can
store the preset rather than its frozen bounds. Presets are also built
from today on each mount instead of at module load.

Part of open-metadata/openmetadata-collate#7439

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

* fix(ui-core): keep the DateRangePicker preset key on mobile and drop it on dismiss

- Below the md breakpoint presets are picked through RangeCalendar's own
  buttons, whose setValue went through the picker's onChange and cleared
  the key, so Apply reported no preset. RangeCalendar now reports the
  picked preset through onPresetSelect, called after the value change.
- The key outlived a dismissed picker (Escape, outside click), so a later
  Apply without edits could report a preset the range no longer matched.
  Clear it whenever the popover closes; Apply reads it before closing.

* test(ui): drive merged numeric and metric pickers through their core roles

The core NumberInput main now ships is a react-aria NumberField: its input is
a textbox that commits on blur, not an antd spinbutton. The core TreeSelect
search input is a combobox.

* test(ui): refresh roles, glossary and narrow metric-list visual baselines

After merging main, these pages render this PR's core sidebar next to main's
updated navbar; take the CI renders as the new baselines.

* test(ui): refresh the explore visual baseline for the core sidebar

The baseline still showed main's previous icon rail; it sat just under the
diff threshold and tipped over when the sample record count shifted.

* test(ui): open the profiler metrics picker through its combobox

The core TreeSelect's search input is a combobox in this branch, not a plain
textbox.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
anuj-kumary added a commit to anuj-kumary/OpenMetadata that referenced this pull request Oct 15, 2026
…proved (open-metadata#4673) (open-metadata#32038)

* feat(governance): hold approval-gated changes off-entity until approved (open-metadata#4673) [WIP]

Pending-hold model with an opt-in workflow hook node (resolvePendingChangeTask).

- PendingApprovalChangeStore: per-entity, accumulating, ChangeDescription-shaped hold
  (entity_extension-backed; never touches the row/version history); effective() unions hold with
  the entity's persisted change description.
- ApprovalGate (PUT/PATCH): when a workflow that opts in (contains a resolvePendingChange hook) gates
  a covered field (description/tags/owners/domains) and its filter doesn't exclude the entity, revert
  the field to approved (nothing persists, no ChangeEvent) and record the proposal as a hold.
  Post-commit, trigger the workflow directly via triggerWithSignal (no synthetic event -> no
  alert/webhook/search leak). Skips governance-bot; fails open.
- resolvePendingChangeTask hook node (schema + NodeSubType + WorkflowNodeDefinitionInterface subtype
  registration + wrapper + impl + NodeFactory). Node-configured action: commit (apply held change as
  governance-bot -> the one real ChangeEvent), discard (clear hold), hold (leave held). Author places
  it at the status transition; presence is the opt-in signal.
- checkChangeDescription + FilterEntityImpl evaluate effective() so "what changed" nodes see the
  held proposal.
- Seed workflows unchanged; no migration (no existing node config changed) - adoption is opt-in by
  adding the hook. v0.1 creates go through create() -> never held.

Tests:
- Unit (run, green): PendingApprovalChangeStoreTest + GovernanceApprovalRegistryTest (10 pass).
- IT (authored, compiles): PendingApprovalChangeIT - hold->approve->commit / reject->discard.

WIP - remaining: run the IT end-to-end (stack) incl. resolving seeded-vs-custom workflow
coexistence; surface the held change on the approval task for reviewers.

Verified: openmetadata-service compiles + 10 unit tests green; integration-tests test-compiles.

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

* feat(governance): per-requester approval holds with trigger and UI filter support

- Hold approval-gated changes per (entity, requester); each requester's edit
  forms its own hold in pending_approval_change and its own approval task.
- Attribute the approval task's requester and creator to the editor of the run.
- Supersede only the same requester's prior task for hook workflows.
- Evaluate each edit's change on the trigger: the held change carried on the
  gate signal, otherwise the persisted change description; run the exclusion
  filter against the proposed entity so the trigger and gate agree.
- Fire a hook workflow only on the gate's held-change signal.
- Emit JsonLogic from the event-trigger exclude filter; persist a cleared filter.
- Add tests for the trigger decision and the requester/creator resolution.

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

* feat(governance): mutually-exclusive tag handling for held changes + held-change test coverage

- Reject mutually-exclusive tags at the edit when tags are gated, before the change
  is held, so the conflict never reaches the review workflow's commit node.
- On commit, merge held tags into the entity's current tags with the held change
  taking precedence, dropping a conflicting current tag and keeping non-conflicting ones.
- Tolerate a held-only change (only fieldsUpdated set) in the change-description check.
- Add CheckChangeDescriptionTaskImpl coverage for held changes, and integration tests
  for per-requester holds resolved independently, the task creator, and mutual exclusivity.

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

* fix(governance): hold cleared gated fields and reject hold only hook workflows

- Hold an explicit removal of a gated scalar field (a PATCH remove) so a destructive
  edit is reviewed instead of written straight through; an omitted collection is still
  left alone so a PUT that leaves it out is not mistaken for a change.
- Reject a hook workflow whose resolvePendingChangeTask nodes all only hold the change:
  with no commit or discard anywhere the edit would stay held forever.
- Add integration tests for clearing a gated field and for the hold only rejection.

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

* refactor(governance): drop the dead submitPending argument and short circuit hook checks

- Remove the unused user parameter from ApprovalGate.submitPending and update its caller;
  the real editor already comes from the held trigger recorded at hold time.
- Stop scanning after the first match in hasPendingChangeHook and targetsEntityType.

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

* style(governance): apply spotless formatting to pending change files

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

* Update generated TypeScript types

* fix(governance): serialize pending-change holds and scope their cleanup

Accumulate a requester's held change in a single transaction: insert the
first hold atomically, and merge a later edit behind a row lock so two
concurrent edits by the same requester each survive.

Resolve (commit or discard) deletes only the hold version it read, so an
edit accumulated after that read stays in place for its own review.

Remove an entity's remaining holds during hard-delete cleanup, and drop the
duplicated supersede comment in CreateTask.

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

* fix(governance): seed the hold row before locking it in accumulate

Ensure the (entity, requester) hold row exists (insert-if-absent, seeded with
this edit when absent) before the SELECT FOR UPDATE, so the lock always lands
on a real record instead of a gap. A gap lock on the low-population hold table
deadlocks concurrent inserts for different entities. The insert-if-absent
affected-row count is not read, so the MySQL and Postgres reporting difference
for a no-op upsert does not affect the merge.

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

* fix(governance): make the pending-change version token strictly monotonic

accumulate advances the stored updated_at past the hold row's current value
(under the same FOR UPDATE lock), so every state of a hold carries a unique
token. A resolution snapshots that token and deletes the hold only on an exact
match, so a newer edit that accumulates during resolution always has a greater
token and cannot be matched and dropped, even within one clock millisecond.
findForUpdate now returns the current updated_at alongside the held json.

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

* feat(pending-changes): read API, notification bell UI, and resolve guards

- Add GET /{id}/pendingChanges on the shared EntityResource, visibility-scoped
  so owners/reviewers/admins see all proposals and any other user sees only
  their own (findAllForEntity + PendingApprovalChangeEntry for a bulk read).
- Add the PendingChanges notification bell across entity detail headers (data
  assets, services, glossary/term, domain, data product): per-requester diff
  with red/green chips matching the task Proposed Changes panel, self-first
  ordering, a user filter that defaults to the viewer, and full i18n.
- Enforce the reviewer gate at task resolve time (TaskRepository) so a
  non-reviewer is rejected with 403 up front instead of failing the governance
  workflow instance downstream on the reviewer-gated status transition.
- Fix the workflow trigger form silently restoring a cleared include list
  (WorkflowValidationService) so an empty include (gate every field) persists.
- Tolerate both black layouts in datamodel_generation.py.

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

* Update generated TypeScript types and dereferenced schemas

* fix(pending-changes): resolve-task 400 on reviewer-less entities, tag preview, header entityId

- TaskRepository: the reviewer guard requested the `reviewers` field on the task's
  target entity, which 400s ("Invalid field name reviewers") for types without it
  (e.g. a table). Skip entity types whose repository does not support reviewers
  before fetching the field.
- ChangePreviewUtils: store resolved mutually-exclusive tags as JSON objects so the
  task Proposed Changes shows tagFQN, not a raw TagLabel toString.
- DataAssetsHeader: the pending-changes bell referenced an undefined `entityId`;
  use dataAsset.id (crashed every data-asset page in the minified build, which
  esbuild's transform does not catch).

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

* fix(pending-changes): tolerate string-shaped tag values in preview; clear refresh timer

- ChangePreviewUtils.resolveMutuallyExclusiveTags read the tags newValue with
  convertValue, which throws when the value is a serialized JSON string rather
  than an array (breaking ChangePreviewUtilsTest). Read tolerantly with
  readOrConvertValues so both a string and a list resolve to tagFQN.
- PendingChangesNotification: track the post-resolve refresh setTimeout in a ref
  and clear it on unmount, so an unmount within the window does not setState on
  an unmounted component.

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

* feat(approval): change request schemas

Adds ChangeRequest, ChangeRevision (immutable MutationOps with base values and
digest), ApprovalDecision, ChangeApplication and WithdrawChangeRequest. Task
resolution carries changeRequestRevision so a decision names the exact revision
reviewed; CSV and bulk results count rows pending approval.

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

* feat(approval): pure MutationPlanner for change request ops

Diffs entity JSON into normalized set/add/remove ops recorded with the base
value each was computed against. List fields are diffed by element identity
(reference id, tag FQN, string) and ignore inherited elements, so cosmetic
reference drift and unrelated element changes never conflict. Provides
cumulative merge, canonical digest, and a conflict split that separates gated
drift (conflict) from non-gated drift (dropped). Also drops an import left
unused by the main merge.

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

* feat(approval): change request tables

change_request, change_revision, approval_decision and change_application in
both dialects. activeInterceptKey is non-null only while an intercepted request
is pending, so a unique index allows one active request per (entity,
requester); delivery claim/lease columns back the outbox-style hand-off.

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

* feat(approval): change request DAOs

DAOs for the change request tables on GovernanceDAOs, with row mappers that
take delivery state from its columns. Adds license headers to the planner
sources.

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

* feat(approval): change requests replace pending-change holds

A human edit to a field gated by an approval workflow is no longer
reverted in place and held per user. The whole request becomes a
change_request with an immutable revision of normalized ops (each with
the published value it was based on), committed in one transaction with
an entity row lock. Nothing is published; the response is 200 with the
unchanged entity and X-OpenMetadata-Pending-Change. The same requester
editing again supersedes into a cumulative revision and restarts review.
Bots acting on their own behalf publish as before; impersonated requests
are gated as the human.

Review and publication:
- Hook workflows start only from a dedicated change-request signal, and
  only the reviewing workflow runs a request; reactive workflows no
  longer see speculative signals.
- Task resolution records the reviewer's decision for the exact revision
  in the catalog before Flowable completes the task. The requester
  (admin or not) and impersonated reviewers are refused; decisions on a
  superseded revision are rejected.
- The commit node applies only with an eligible recorded approval. Apply
  locks entity then request, reads fresh, and never overwrites a gated
  field that moved since submission (Conflicted); drifted non-gated
  fields keep the newer value. Entity write, version, change event and
  change_application commit together, as the requester.
- Delivery to the workflow is claim/lease tracked with retry; a recovery
  scanner redelivers and re-applies. Deleting the entity or the workflow
  cancels open requests. Admission fails closed when rules cannot be
  resolved.

Coverage beyond PATCH/PUT: CSV import stages gated rows (and reports
them on dry run), bulk upsert stages gated items, bulk tag/glossary/
domain/data-product assignment refuses gated assets per item, and the
tier task goes through PATCH.

Adds /v1/changeRequests (list/get/withdraw/cancel) in place of
/{entity}/{id}/pendingChanges, and drops the resolvePendingChange hold
action.

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

* feat(approval-ui): pending change requests indicator and submit notice

- Edits held for approval return a pending-change header; an interceptor
  tells the user the change was submitted for approval, so an unchanged
  page no longer reads as a failed save, and signals indicators to refresh.
- The asset headers (data assets, glossary, domain, data product) show
  the change requests awaiting approval with their proposed ops; the
  requester can withdraw at the revision they see. Built on
  ui-core-components; replaces the antd pending-changes bell and its less.
- REST client for /v1/changeRequests replaces the per-entity
  pendingChanges call.
- Workflow builder: the resolvePendingChange node offers commit/discard
  only; direct imports instead of the forms barrel.
- Regenerated types for the change request schemas; i18n keys updated in
  every locale.

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

* fix(approval): workflow automation publishes; rollback marks governance-bot

Workflow nodes write as the acting user with governance-bot as
impersonator. Admission now treats that as automation and publishes it,
so a workflow setting a gated field (for example marking a rejected
asset) is not staged as a new change request by the requester. Other
impersonation - a bot acting for a user - is still gated as that user.

RollbackEntity now marks its writes the same way SetEntityAttribute
does, so audits and admission can tell them from the user's own edits.

Adds an IT for reject -> set Draft -> discard.

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

* feat(governance): exclude bot changes from workflows, gate custom properties per property

- Any change whose updatedBy user is a bot is excluded from all governance
  workflows: it is never held for approval and reactive event-based workflows
  do not start for it. One rule, WorkflowEventConsumer.isBotChange, is shared by
  the event consumer and ApprovalGate. A bot impersonating a user records that
  user as updatedBy, so the change is gated as the user.
- A request that touches a gated field is held whole, whatever other fields it
  changes, and is applied on approval as the write would have been applied
  directly.
- Custom properties are gated per property: a workflow including
  extension.<name> holds changes to that property only.
- A PUT upsert aligns the stored id before admission, so gated upserts are held
  instead of refused.
- WorkflowDefinitionResourceIT: re-enable the disabled tests against current
  behaviour with Awaitility waits, and add change-request lifecycle coverage
  (apply as requester, reject, self-approval, revisions, rename, gated and
  ungated drift, two requesters, withdraw, workflow deletion, upsert, custom
  properties, bot exclusion). Unit tests for ApprovalGate admission and the
  bot rule.

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

* Update generated TypeScript types and dereferenced schemas

* fix(ui): format ChangeRequestsIndicator test for checkstyle

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

* fix(governance): skip change-request clean-up on delete when no DAO is wired

Entity and workflow delete clean-up cancel open change requests through the
change-request DAO. Before the server wires its DAOs, and in repository unit
tests that build repositories without one, there is nothing to cancel, so the
clean-up is skipped instead of dereferencing a missing DAO.

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

* feat(approval): change request history, preview, admin override and shadow mode

- Lifecycle event log: every change request step (submitted, revised,
  approved, applied, rejected, conflicted, withdrawn, cancelled,
  overridden) is recorded in change_lifecycle_event with an ordered
  sequence, actor and reason, in the same transaction as the step.
- Read endpoints: GET /v1/changeRequests/{id}/revisions, /decisions and
  /events, under the same visibility rules as GET /{id}.
- Preview: POST /v1/changeRequests/preview/{entityType}/{id} evaluates a
  JSON Patch exactly as a PATCH would (authorization, validation, gating)
  without saving it, and reports whether it would be held and by which
  workflow.
- Admin override: POST /v1/changeRequests/{id}/override publishes a
  pending request without review, recorded as an Override decision and an
  Overridden event; conflict protection still applies and an admin cannot
  override their own request.
- Shadow mode: approvalMode (Enforce | Shadow) on the event-based trigger.
  A shadow workflow lets gated edits publish and only logs and counts the
  hold it would have made; absent means Enforce.
- Metrics: admission (held / shadow), admission latency, lifecycle events,
  delivery results and a pending gauge, counted after commit.
- A change request with no eligible reviewer other than its requester is
  routed to the platform admins.
- A review task created for a request that has ended or moved to a newer
  revision is closed after its workflow step commits.
- Batched reads for request lists, delete-time cancellation and bulk
  refusals; delivery runs off the request thread after commit.

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

* Update generated TypeScript types and dereferenced schemas

* fix(approval): keep conflicting change requests open, report held CSV rows, review fixes

- A change request whose revision no longer applies (a gated value moved, or
  the result fails validation, e.g. mutually exclusive tags) stays Pending
  with its conflicts and reason. The review task gets a comment, approval is
  refused with 409, and the requester's next edit continues as the next
  revision. Open requests are re-checked after every committed change to
  their asset, off the request thread.
- The Commit step reports `applied` or `notApplied`, so a hook workflow can
  branch on whether the change was published.
- When no one but the requester could review a request (no reviewers, owners
  or other admins), the workflow approves it and records a governance-bot
  decision with the reason.
- A review task created for a request that has ended or moved to a newer
  revision is closed after its workflow step commits; linking the task to
  the request happens under the entity and request locks.
- Table column CSV imports (table and schema/database level, sync and async)
  report held rows as "Pending approval: change request <id>" and count them
  in numberOfRowsPendingApproval, including dry runs.
- The import status shows a "Pending approval" chip and the import
  completion toast says rows are waiting for approval.
- Approval tasks of hook workflows are not subject to the In Review reviewer
  gate, so the admin fallback can approve.
- Bulk data-product assignment still adds lineage for the assets that were
  added when some were refused for approval.
- The workflow builder keeps the saved approval mode and saves a cleared
  trigger filter as no filter.

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

* Hold gated assets in bulk asset assignment; add approval mode to the trigger UI

Bulk add/remove of a domain, data product, glossary term or classification
tag on assets now holds each asset gated by a hook workflow as its own change
request. Held assets are skipped by the bulk write and reported per item as
"Pending approval: change request <id>" (dry run: "Pending approval"), counted
in numberOfRowsPendingApproval. An asset whose change cannot be submitted is
reported as a failed item.

The workflow builder's start node shows an Approval Mode selector
(Enforce / Shadow) with an explanation of each mode for event-based workflows
that contain a Resolve Pending Change step, and saves it to
trigger.config.approvalMode.

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

* Expect gated assets to be held in the bulk domain assignment IT

Bulk domain assignment of a gated asset submits it as a change request, so
the test asserts the pending item, the change request id in its message, a
dry run that submits nothing, and an asset whose domain stays unchanged.

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

* Scope change request delivery to its workflow; record how review runs end

- Each hook workflow listens for its own change-request signal
  (changeRequestSubmitted-<workflow>-<entityType>), so a request reaches only
  the workflow that holds it. Delivery fails, and retries, when no deployed
  workflow listens for the signal.
- A suspended hook workflow holds no edits. Suspend and resume refresh the
  cached approval rules; updating, redeploying or resuming a workflow
  requeues its requests whose delivery gave up.
- A commit that cannot be applied ends the run inside the Resolve Pending
  Change node; steps after a commit only follow a published change.
- Workflow instances record how a run was ended from outside it: a newer
  revision marks the earlier run SUPERSEDED; withdrawal, cancellation, a stale
  review task and a hard-deleted entity mark it CANCELLED (new status), each
  with a terminationReason.
- A change request with no eligible reviewer follows the node's
  emptyAssigneeStrategy, like any approval: admins with assignAdmins,
  automatic approval otherwise.
- A workflow step setting entityStatus applies its approval task's decision,
  so the entity-reviewer check for In Review -> Approved/Rejected applies to
  direct edits only.

* Update generated TypeScript types and dereferenced schemas

* Expect cancelled review runs to be recorded when a change request is cancelled

Cancelling or withdrawing a change request closes its review task and marks the workflow run CANCELLED, so the test verifies the closeTask call that carries the run status.

* Answer held edits with 202 and show what a change request proposes

- A held PUT or PATCH answers 202 Accepted with the unchanged entity, its
  ETag and the X-OpenMetadata-Pending-Change header; edits that publish
  still answer 200.
- Bulk asset writes (tag, glossary term, domain, data product; add and
  remove) report held assets with X-OpenMetadata-Pending-Change-Count and
  answer 202 when every asset was held, 200 otherwise. The async tag job
  start carries the count; dry runs submit nothing and carry none.
- The UI toasts on the count header and refreshes pending-change
  indicators.
- A change request's ops reach the task preview as plain values, so tags
  read by FQN and descriptions unquoted.
- The Pending Changes popover and a review task's Proposed Changes share
  one summary: added / removed / updated per field with the previous
  value, tags, glossary terms and entities linked by FQN, and column
  changes listed per column.

* Review assets from creation in hold workflows that trigger on Created

A hold workflow whose trigger lists Created reviews an asset from its
creation until its first approval, then holds its edits:
- Before the asset is Approved, edits publish. The workflow starts from
  the Created/Updated change events; the first one opens a review task
  and later edits, by anyone, join that same task, which folds in every
  version saved since it last caught up. Approving makes the asset
  Approved; rejecting marks it Rejected and the next edit starts a new
  review.
- Once the asset is Approved, edits are held as change requests and the
  asset keeps its status and published values while they are reviewed.
- Commit and discard continue on a review run that holds nothing.
- A hold workflow that triggers only on Updated holds every edit, as
  before.
- Saving a hold workflow that triggers on Created requires a step that
  sets the status to Approved.

Approval tasks of a change request supersede per requester and skip the
status reviewer check; other approval tasks keep the entity-level
supersede and the check. The reviewer check on a status change now looks
at the status stored before the request, so a status a workflow step set
in a version that session consolidation folds in is not read as the
user's own change.

* Deliver a held edit only to an active workflow; scope the stage-owner test

- A change request is delivered only when an active workflow listens for
  its signal. A suspended workflow keeps its start subscription but starts
  nothing from it, so delivery now retries instead of being recorded as
  delivered.
- The direct stage-change test runs only when a workflow without a
  trigger filter owns the stage: a filtered workflow may not own the
  stage of the entity the test creates.

* Keep an overridden review open on conflict; read legacy trigger filters

- An admin override that conflicts with the current asset leaves the
  change request open, so its review task stays open with a comment
  instead of being closed as published.
- An event-based trigger reads its entity types the way the approval gate
  does, including the deprecated single entityType, so a change request
  held for such a workflow has a start event to deliver to.
- The workflow editor reads a trigger filter saved as a JSON string, the
  form older workflows used and the server still applies, so it shows and
  can be cleared.

* Hold status changes for approval; restate revisions; faster held writes

- A direct status change on an asset a hook workflow gates is held as a
  change request and applied on approval; a move the entity lifecycle does
  not allow is refused before anything is held. A PUT without a status
  keeps the stored one.
- Approving a change request task publishes only the reviewed change; the
  task form's own entity actions do not run for it.
- A new revision restates the changes it carries over against the asset as
  published now, so it can be approved after another change was applied.
- Delivery cancels a request whose workflow no longer exists.
- Remove the review-from-creation phase; lifecycle templates cover it.
- Held bulk updates hydrate originals in one batch and only for users that
  can be held; bulk asset holds reuse the loaded assets; closing a
  superseded task runs off the request thread with delivery; gating rules
  are rechecked against the workflow epoch at most every 5s.

* Review pending changes in a modal listing each user's revision

The Pending Changes header button opens a modal instead of a popover. The
left side lists one revision per user with a search by user or field; the
right side shows the selected revision's changes grouped by field, with
added values in green and removed or replaced values struck through in red.
The author of a pending revision can withdraw it from the footer; reviewers
still decide on the request's task.

* Decide a change request change by change

A reviewer resolving a change request task can approve or reject each
change (field, and element key for list fields) through changeDecisions on
resolveTask. The approved changes are published as the requester and the
others are dropped; with several reviewers, a change is published only when
every approving reviewer approved it and none rejected it. Decisions record
the approved and rejected changes; a request with dropped changes records a
PartiallyApplied event. Without changeDecisions a resolution covers the
whole revision as before.

* Decide change requests change by change, and settle changes others publish

Partial decisions (opt-in per approval step, userApprovalTask.allowPartialDecisions):
- Reviewers approve or reject individual changes; each change needs the step's approval
  or rejection threshold. Agreed changes are published through a partialApprove loop,
  rejected ones dropped through a partialReject loop, on the same task and revision.
- A change its reviewers can no longer agree on is not published and the task says who
  voted which way; with nothing pending the task closes as Approved or Rejected.
- Votes are re-checked under the lock; a reviewer cannot decide a change twice or switch
  between per-change and whole-revision decisions.
- Validation requires partial edges to loop back through a commit or discard step and
  refuses mis-cased conditions.

Changes published by others:
- A change the asset already shows is recorded as AlreadyPublished; a change whose field
  was published with another value is Superseded. Both leave the review with a bot comment;
  the rest stays on the same task, and a request with nothing left ends and closes its task.
- Per-change outcomes are reported on open and ended requests; bot comments name list
  elements by display name.

Also:
- Commit results report applied only when the commit published something.
- Normal approval steps drop changes nobody agreed on when they approve.
- Bulk imports report a gated row that cannot be admitted as a failed row.

UI:
- Review pending changes modal: changes grouped by field with per-change accept/reject,
  competing edits, conflicts, earlier votes, admin override/cancel and outcome badges.
- By request view: history (revisions, decisions, events), My requests, preview of an
  edit by fields or JSON Patch.
- Task card lists decided changes by outcome.
- Workflow builder keeps settings it does not edit, adds an Allow partial decisions toggle
  for workflows that hold changes, and keeps edge conditions as written.
- Generated types regenerated; new strings translated.

* Hold changes through the approval step in Enforce mode

The start node's approvalMode is Default or Enforce. In Enforce mode the
user approval task publishes the change on approve and discards it on
reject inside its own subprocess, and settles partial decisions there too,
so a workflow needs no resolve-pending-change node and only approve and
reject edges. Shadow mode and the resolvePendingChangeTask node are removed.

An Enforce workflow must start from edits, filter with JSON Logic, and have
exactly one approval task on every path. Open requests are re-checked after
an asset changes even while the approval rules are being reloaded.

The review screens and the task card list only the changes still pending
while a request is open.

* Review pending changes in one dialog, with Tasks tab decide rights

- Replace the old pending changes modal with the field-grouped review
  dialog and drop its preview/admin pieces: the Admin actions section
  (override / cancel request) and their API calls and locale keys.
- Accept/Reject in the dialog now use the same rule as the Tasks tab's
  Approve/Reject: admins, task assignees, members of an assigned team
  (unless they raised the request), and entity owners when the glossary
  has no reviewers. The rule moves unchanged into TaskTab.utils so both
  surfaces share it.

* Center the requester avatar on the suggestion's name line

* Load data products' published entity and count only rejected verdicts

The review dialog read no published entity on data products, so owners got
no Approve/Reject there. The footer counted superseded suggestions as rejected.

* Pass patchedFields through to putAndStore after merging main

Main scoped the PUT diff to patchedFields inside updateInternal; this branch had
moved that body into putAndStore, so the merge left patchedFields out of scope.

* Update generated TypeScript types and dereferenced schemas

* Fix Sonar findings in the pending changes review

Mark fire-and-forget promises with void, drop lodash uniq for Set, keep
taskNumber off SuggestionControls' props, unnest the verdict label template,
bound the markup-stripping regex to linear time, and drop a useless empty
object spread. The sequential resolve loop stays: requests on one asset
publish to it in turn.

* Show pending changes only on entity types an Enforce workflow gates

GET /v1/metadata/types/workflows/approvalEnforcedEntityTypes lists the entity
types an active Enforce-mode workflow targets, read from the same registry the
approval gate uses. The UI keeps them in a store, read once and invalidated
when a workflow is saved or deleted, and renders the pending changes button
and its change request read only for those types.

* Keep a suspended Enforce workflow's entity types listed

Suspending an Enforce workflow keeps the change requests it holds open until
it resumes, so the pending changes button must stay on their assets. The
approval-enforced entity types now count suspended workflows; the gating rules
still skip them, so they hold no new edit.

* Order imports in the pending changes indicator test

* Keep main's EventBasedEntityTrigger constructors after merging main

The merge replaced the (name, id, definition) and (name, id, definition,
excludedEntityTypes) constructors that main added, which Collate calls.
They are back, and the change-request hook takes the full constructor.

* Hold edits as the write would publish them; let task assignees read requests

Approval admission now stages what the write itself would publish:
- PATCH clears only the top-level fields its operations target, so
  replacing a gated collection with null is held instead of applied.
- PUT adds the tags it sends to the stored ones, keeps owners and domains
  it sends empty, and clears the stored-row fields and replaced
  relationships it leaves out; a bulk upsert with overrideMetadata
  replaces only the tags of the classifications it sends.
- Imports replace the row's fields and relationships as the import does.
Repositories name the relationships a PUT or an import replaces and the
fields a PUT keeps. A bulk row the gate rejects is reported as a failed
item instead of failing the request.

A later edit reviewed by another workflow is refused while the requester
has an open request on the asset, so its changes keep their reviewer.
Bulk data product removal cleans up lineage and output ports only for the
assets it removed; held assets keep them until approval.

Users who may resolve a change request's review task can read the request.

Adds ChangeRequest*IT to the governance impact area and a Playwright spec
for the held-change review lifecycle.

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

* Order imports in the change request review lifecycle spec

* Run the change request review lifecycle spec in the global-state lane

* Use the handbook helpers in the change request review lifecycle spec

* Clear the lint warnings the pending changes modal added

Memoize the ordered requests so the modal's hooks can depend on them
directly instead of on string keys, and mark the deliberate per-item
task, decision and resolve calls.

* Cover ungated edits, visibility, thresholds, competing edits and bot writes in the change request review spec

* Run the change request ITs that deploy workflows in the global-state lane

Each test in these classes deploys its own Enforce workflow, and an
event-triggered workflow receives the signal of every event on its entity
type. Running them beside the shared-lane suites adds that workflow load to
the event consumer the other approval tests wait on, so they run isolated in
the global-state lane, like WorkflowDefinitionResourceIT.

* Fix approval workflow IT flakes: run event-triggered workflows on the Flowable async executor (open-metadata#35442)

* fix(ui-core): add bottom padding to the TreeSelect dropdown list (open-metadata#35352)

* fix(ui-core): add bottom padding to the TreeSelect dropdown list

The list ended flush against the popover edge, so the last row touched
the card border in every TreeSelect dropdown (e.g. the domain scope
picker). Add 8px below the list, except when the staged Apply/Cancel
footer follows, since that footer already has an 8px top margin.

* fix(ui-core): align TreeSelect row highlight with the search field

The list's 14px/6px side padding left a row's hover fill starting 4px
inside the search field and running 6px past it. Pad the list so the
fill spans the search field's 12px inset on both sides, and inset row
content by 4px so the chevron stays in line with the Select all
checkbox.

* fix(ui-core): apply prettier formatting to tree-select-node

---------

Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>

* fix(ui): reset loading state when clearing bots search mid-flight (open-metadata#34524)

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>

* Fixes open-metadata#35304: Make the product tour offline, visible and startable (open-metadata#35305)

* fix(ui): make the product tour offline, visible and startable

- Pre-mount the tour's Explore page with visibility instead of display:none,
  so its results panel keeps its width and the highlighted card is not clipped.
- Stop components fetching the tour's mock table for real; serve a mock
  lineage scene to LineageMap.
- On /tour, skip the welcome screen and use the default landing layout so
  the first step's activity feed is always there.
- Normalise react-tour's lazy import for Vite's dev pre-bundle.
- Harden Tour.spec: real step actions, in-viewport targets, a mock-request
  tripwire, a first-visit test, and per-test accounts.

* fix(ui): keep the tour's summary panel read-only and offline on every tab

Address review: the Explore summary panel gave the tour's mock table the
full mock grants and still fetched its lineage tab. Give it a view-only
grant, which also stops the data quality tab querying the mock FQN, and
skip the lineage request on /tour.

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

---------

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

* Fixes 7300: migrate antd Affix, Image, Result, Empty and Spin to core UI (open-metadata#35339)

* Fixes 7300: migrate antd Affix, Image, Result, Empty and Spin to core UI

Removes five untracked antd components from the OSS UI, taking each to zero
named imports.

- Affix (3 files) -> plain div. WhatsNewAlert, GithubStarCard and EntityImport
  already set position: fixed in their own LESS, so Affix only added a wrapper.
- Image (1) -> img. UserProfileImage used preview={false} and no .ant-image
  rule exists; the antd img sizing is kept as Tailwind classes.
- Result (1) -> core Box/Typography/Button. ErrorFallback renders a 582x338
  illustration on a full-page 500, which EmptyPlaceholder would clamp to a 28px
  glyph in a 300px column, so the existing .error-boundary-result container
  keeps the antd Result metrics instead. Dead .ant-result-* overrides dropped.
- Empty (3) -> EmptyPlaceholder, each inside a relative wrapper because the core
  placeholder is absolutely positioned.
- Spin (3 files, 4 sites) -> Loader, size-matched: antd small -> x-small,
  antd default -> small, antd large -> default.

All five added to MIGRATED_ANTD_COMPONENTS; eslint-suppressions.json pruned and
EXPECTED_SUPPRESSED_ANTD_SYMBOLS lowered 509 -> 498.

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

* refactor(ui): drop legacy LESS classes from the migrated antd containers

The five migrated containers kept their component-specific LESS class names.
Per ADR:2026-10-11-migrated-antd-components-adopt-core-styling, move the
caller-side styling to Tailwind utilities and delete the rules.

- ErrorFallback: .error-boundary-result removed from app.less; Box already
  does the flex centring, so only h-full / text-center / padding remain.
- EntityImport: .import-preview-footer and its dead .reserve-right-sidebar
  override removed (no TSX applies that class); bg-white -> bg-surface so the
  footer follows dark mode.
- WhatsNewAlert: .whats-new-alert-affix removed; its two child rules are
  promoted to top level, unchanged.
- GithubStarCard: positioning moved off .github-star-popup-card and its three
  child rules promoted to top level. The two animation classes stay in LESS —
  they are @Keyframes, which has no Tailwind utility equivalent.
- UserProfileImage: .profile-image-container had no CSS at all; dropped,
  data-testid kept.
- TreeViewTab: legacy my-4 -> tw:my-4.

* refactor(ui): address review — Box over raw div, core props over classnames

Review follow-up on the five migrated containers.

- Raw `div`s that only carried positioning are now `Box` (WhatsNewAlert,
  GithubStarCard, both EntityImport footers).
- GithubStarCard: the no-op `layout-space` / `d-flex justify-between` classes
  and `itemClassName` on the inner Boxes are replaced by `justify="between"`
  and `gap`; the inner button row is a `Box` too. Same for the EntityImport
  footer's inner Box (`justify-end w-full p-r-md` -> `justify="end"` + tw).
- ErrorFallback keeps primitives rather than EmptyPlaceholder: the
  om-upgrade illustration is 582x338 and EmptyPlaceholder clamps its icon to
  28px inside a 64px chip. Applied the reviewer's fallback instead — `gap`
  on the Box rather than per-child margins, Typography `color="secondary"`
  rather than `tw:text-tertiary`, and `onPress` on the core Button.
- Loader wrappers whose only job was centring (`user-permissions-loading`,
  `loading-container`) are `Box align/justify` with the min-height in tw; both
  LESS rules deleted.
- The three EmptyPlaceholders now pass an icon, so the empty states are not
  text-only the way antd `Empty` never was; dropped the redundant `tw:w-full`.
- TaskFormBuilderSection: the hard-coded "No fields configured yet" moves to
  `message.no-fields-configured`, translated in all 19 non-English locales.

* fix(ui): restore the GitHub star card's header-to-description gap

Flattening `.github-star-popup-card .github-star-popup-description` to a
top-level selector dropped its specificity from (0,2,0) to (0,1,0).
`Typography as="p"` renders the paragraph as the first child of a `.prose`
wrapper, so the typography plugin's `> :first-child { margin-top: 0 }` reset
— also (0,2,0) — started winning and the 10px gap under the header collapsed.

Measured against origin/main at 1512x900: margin-top was 10px, had become 0px,
and is 10px again. Card height 117px -> 106px -> 116px.

A `tw:mt-2.5` utility does not fix this: it is (0,1,0) and loses to the same
reset.

* style(ui): make the GitHub star card a compact popup again

The card had no width constraint, so `position: fixed; right: 30px` with
`width: auto` let it shrink-to-fit the description's max-content — a ~950px
bar across the page on a wide viewport. `main` behaves the same way; this
caps it instead of reproducing that.

- `tw:w-full tw:max-w-90` (360px), so the description wraps to three lines.
- `tw:mt-4` on the button row, which previously sat flush against the
  description because `p { margin-bottom: 0 }` applies to it.

* style(ui): restore the star card's segmented button pill and bold close icon

Matches the card's pre-migration look. The Button migration (open-metadata#35252) replaced
`antd/lib/button/button-group` with a plain flex wrapper, which split the
Star/count pair into two detached buttons, and swapped the close glyph for a
faint `xs` CloseButton.

- Star and the count rejoin into one pill: `gap={0}`, the left button loses its
  right radius and takes the grey fill, the right button loses its left radius
  and pulls back a pixel so the two borders collapse into one divider.
- Close icon back to `sm` at `text-primary`.

Core `ButtonGroup` is not usable here: it is a react-aria ToggleButtonGroup and
`ButtonGroupItem` has no `href`, so a link plus a static count cannot use it.

* refactor(ui): stop overriding core components in the GitHub star card

Review follow-up: the segmented pill, the recoloured close icon and the
`.prose` specificity fight were all caller-side overrides of core internals.

- Buttons go back to two plain `color="secondary"` buttons with `gap={2}`.
  The joined pill needed `rounded-*-none`, `bg-secondary` and `-ml-px`, which
  pins the card to Button's current radius/border values and overrides the
  secondary colour's background in both themes. Core `ButtonGroup` cannot
  replace it either — it is a react-aria ToggleButtonGroup whose items take
  no `href`. A link-capable segmented variant belongs in core, not here.
- `CloseButton` keeps `size="sm"` and the `-mt-1` layout nudge; the
  `tw:text-primary` recolour is gone.
- Spacing is layout now: one `Box direction="col" gap={3}` around the header
  row, the description and the button row. That deletes the
  `.prose > .github-star-popup-description` rule, which only existed to
  out-specify the typography plugin's `> :first-child` margin reset and would
  have broken whenever that wrapper changed.
- The description's colour/size/weight move to `Typography size="text-xs"`,
  so the whole `.github-star-popup-description` LESS block is gone.

---------

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

* feat(ui-core): align Button/ButtonUtility icons and sizes with the Figma icon spec (open-metadata#35348)

* feat(ui-core): align Button/ButtonUtility icons and sizes with the Figma icon spec

- Button: five sizes xs–xl (28/32/36/40/44px), dropping xxs; 20px leading /
  18px trailing icon frames (18/16 on xs); icons gray-500 → gray-600 on hover,
  white on primary; spec frame→label gaps.
- ButtonUtility: five icon-only sizes xs–xl (20–36px) with 8/6/4px radius;
  primary and destructive colors; xs is always borderless.
- Glyphs sit at frame − 4px (16/14/12) via svg padding on 18/16 frames.
- Icons: generator rescales 24-grid sources to a 20×20 viewBox without scaling
  stroke; default size 20; all outline icons use a 1.3 stroke.
- Stories: Button sizes with icons, ButtonUtility sizes across colors.

* fix(ui-core): address review — migrate xxs call sites, keep DateRangePicker heights, add ADR

- Move the 4 openmetadata-ui `size="xxs"` Buttons (EditIconButton, Description) to `xs`.
- DateRangePicker maps its input-aligned sm/md to Button md/lg so the trigger and
  footer keep their 36/40px heights.
- Record the icon grid, stroke and button-size rules in
  ADR:2026-10-13-core-icons-and-buttons-follow-the-figma-icon-spec and cite it.

* fix(ui-core): default ButtonUtility to the 24px sm size

* Run event-triggered workflows on the Flowable async executor

The single WorkflowEventConsumer thread ran every event-based workflow
body inline: the signal start event had no async boundary since open-metadata#18664
dropped the one open-metadata#17837 added. Once open-metadata#32335 seeded MetricApprovalWorkflow
on every metric create/update, the consumer fell minutes behind and
unrelated approval ITs (glossary, data product, metric) timed out.

- Signal start events leave asynchronously, as the periodic trigger
  already does: the consumer commits the instance and one job, the body
  runs on the async executor.
- Every async job runs inside a FreshReadScope, so workflow gates keep
  reading the database on executor threads.
- Runs for one entity can now overlap, so an approval task supersedes
  only tasks created before it, ordered by the TASK-n sequence; two
  concurrent runs can no longer cancel each other's task.

* Keep only the newest open approval task when runs interleave

The one-way supersede left two open approvals when the older run
listed last: run B (TASK-42) lists before A's row is visible and
closes nothing, then run A (TASK-41) sees B but may only close older
tasks.

Every run now keeps the newest task it can see, including its own,
and closes the rest. When another run's task is newer, the run closes
its own task and terminates its own process after its Flowable commit.
The run that lists last sees every task, so exactly one survives, and
no run closes the newest, so at least one does.

---------

Co-authored-by: Vansh Shah <107346648+Vansh0310@users.noreply.github.com>
Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: Harsh Vador <58542468+harsh-vador@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rohit Jain <60229265+Rohit0301@users.noreply.github.com>

* Revert the event-triggered async executor change from open-metadata#35442

Restores WorkflowHandler, EventBasedEntityTrigger, CreateTask, TaskIdGenerator,
WorkflowThreadCleanupListener and their tests to their state before open-metadata#35442, and
removes FreshReadJobRunnableFactory and the decision record.

* Deploy approval workflows before creating the entities that trigger them, and retry workflow ITs

test_WorkflowWithReviewersOwnersCandidates and test_WorkflowWithTeamCandidates create their table
after the workflow is deployed, and test_CustomApprovalWorkflowForNewEntities waits for deployment
before creating its entities, so each creation event reaches a listening workflow.

Workflow ITs that wait on asynchronous results retry once (@RetryingTest(2)). A retried attempt
gets its own namespace names (TestNamespaceExtension appends _rN), so it never collides with the
entities an earlier attempt created.

* Order EntityCsvTest imports for spotless

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: karanh37 <karanh37@gmail.com>
Co-authored-by: Vansh Shah <107346648+Vansh0310@users.noreply.github.com>
Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: Harsh Vador <58542468+harsh-vador@users.noreply.github.com>
Co-authored-by: Rohit Jain <60229265+Rohit0301@users.noreply.github.com>
Co-authored-by: sonika-shah <58761340+sonika-shah@users.noreply.github.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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants