Skip to content

refactor(ui): migrate glossary, classification and tag details pages to core components - #33916

Merged
karanh37 merged 26 commits into
mainfrom
glossary-listing-core-components
Sep 25, 2026
Merged

karanh37 merged 26 commits into
mainfrom
glossary-listing-core-components

Conversation

@karanh37

@karanh37 karanh37 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Part of #30570 (Epic: Migrate UI from Ant Design to @openmetadata/ui-core-components).

Replaces the remaining antd usage on the glossary page (glossary list, glossary header and the glossary terms table), the Classification page and the tag details page with @openmetadata/ui-core-components, and fixes a few core navigation issues found along the way.

Type of change:

  • Improvement

High-level design:

Glossary left panel (GlossaryLeftPanel)

  • antd Menu → core NavList (semantic <nav> + links, aria-current="page" on the active glossary, navigation through the app's react-aria RouterProvider). The active glossary still resolves from the first FQN part, so nested term URLs highlight their glossary.
  • Add button → core Button, skeleton → core Skeleton.

Glossary terms table (GlossaryTermTab)

  • Move-term confirmation: antd Modal/Checkbox → core ModalOverlay + Dialog + Checkbox (reviewer-confirmation gating unchanged).
  • Status filter: antd Dropdown + Checkbox.Group → core PopoverTrigger/Popover + Checkbox; save/cancel/"all" logic unchanged.
  • Status badge workflow history: antd hover Popover → core Popover opened on hover (with a short close delay so the pointer can move into it) and also on click/keyboard.
  • Expand chevron (was a clickable span), row add/edit actions, "view more" children, expand-all → core ButtonUtility / Button.
  • antd Row/Col wrapper → flex containers that keep the table filling the tab height.

Glossary header (GlossaryHeader)

  • Wrapped in core PageHeader (data-testid="glossary-header"). The breadcrumb is now HeaderBreadcrumb (core Breadcrumbs) configured exactly like DataAssetsHeader on entity pages, ending with the current entity. The legacy TitleBreadcrumb is no longer used here. Title/actions content is unchanged.

Classification page (TagsPage, ClassificationDetails)

  • Left panel: raw <button> list → core NavList (sm), disabled + term-count badges in the item badge slot (side-panel-classification, disabled, filter-count test ids kept). Skeleton → core Skeleton.
  • Header wrapped in core PageHeader (data-testid="header") with the same HeaderBreadcrumb trail (Classifications → classification). Header actions unchanged.
  • Body antd Row/Col/Card → core Card + flex (same 3:1 split); Less rewritten off .ant-row/.ant-col/.ant-card-body.
  • Tags table row actions (ClassificationUtils): antd Button/Tooltip/Space → core ButtonUtility wrapped in core Tooltip so the "why disabled" message still shows on a disabled button.

Tag details page (TagPage)

  • Classic header → core PageHeader + HeaderBreadcrumb (Classifications → classification → tag), title via EntityHeaderTitle, actions unchanged. Tabs/page layout are left to refactor(ui): migrate remaining antd Tabs to core Tabs #33912, which already migrates them (expect a small conflict in the header block there).
  • No grey grid background on the tag overview (GenericTab, alongside glossary + glossary term).

Shared pieces

  • ResizableLeftPanels: first-panel antd Card → core Card + Typography title (affects Glossary, Classification, Explore, Data Insight, Domain tree left panels).
  • getBulkEditButton (bulk-edit-table): antd Button → core link Button with the core Edit icon.
  • WorkflowHistory: core Card in the right panel (bare inside the status popover), EmptyPlaceholder, Typography, and a real button for the collapse header.
  • GenericTab: no grey grid background on glossary and glossary term pages.

Header buttons and menus (glossary, classification, tag)

  • New ManageMenu (core Dropdown + ButtonUtility trigger). Keeps manage-button, manage-dropdown-list-container and every item test id, and still accepts antd-shaped { key, label, onClick } items (handlers get a no-op domEvent), so callers need no changes.
  • The shared ManageButton now renders through ManageMenu, which changes the manage menu on every entity page that uses it.
  • Add-term / add-tag / add-assets buttons and the glossary-term "Add" menu use core Button / ManageMenu. Votes and version use the core StatItem, same as DataAssetsHeader; Voting now renders StatItems (also used by the domain and data product headers).
  • ManageButtonItemLabel is presentational; the few item handlers that lived on the label moved to the menu item (onClick), which core menus also fire from the keyboard.

Core components (openmetadata-ui-core-components)

  • NavList: key items by href (labels such as display names need not be unique); new size prop (sm = 14px regular text, 16px icon; md default unchanged); optional per-item dataTestId forwarded to the link.
  • Dropdown.Item: unstyled items now render their children (they were dropped).
  • NavItemBase: no-underline! so the app's unlayered a:hover/a:focus underline rule can't leak in; current item uses the selected button-brand tab tokens (bg-brand-primary_alt, text-brand-secondary, brand icon) so it is visible in dark mode, and is semibold at sm. The main app sidebar keeps its own active style (it overrides with !important).

Cleanup: removed Less rules only the antd markup used (glossaryV1.less, workflow-history.less, classification-details.less, .remove-button-background-hover, .activeCategory).

No data-testid used by tests was removed; Playwright helpers/specs that relied on antd DOM (menuitem role, ant-menu-item-selected, .ant-modal-*, .ant-popover, .activeCategory) were updated to role/testid/aria-current locators.

Tests:

Use cases covered

  • Glossary list renders links, marks the current glossary (including for a nested term URL), Add navigates to the add page.
  • Terms table: status filter shows default selection, Save refetches with the chosen statuses, Cancel discards changes, "All" selects every status.
  • Expand/collapse rows, add/edit row actions, move-term modal gating, reject dialog.
  • Glossary header renders the core breadcrumb ending with the current entity.
  • Workflow history steps/timeline/empty state.
  • Classification left panel renders links with exactly one aria-current item and per-item counts; tag details header breadcrumb ends with the current tag.

Unit tests

  • Updated/added: GlossaryLeftPanel.test.tsx, GlossaryLeftPanel.integration.test.tsx, GlossaryTermTab.test.tsx (status filter save/cancel/all), GlossaryHeader.test.tsx (breadcrumb), ResizableLeftPanels.test.tsx, ExploreV1.test.tsx, EntityBulkEditUtils.test.tsx, TagsPage.test.tsx (left-panel links / current item), TagPage.test.tsx (breadcrumb).
  • 426 tests across the affected glossary, classification/tag, resizable-panel, explore, bulk-edit, generic-tab, data-insight, domain and sidebar suites pass (run against this branch's core-components build); core-components app-navigation suite: 254 pass.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated for the new DOM: playwright/utils/glossary.ts, playwright/utils/common.ts, playwright/utils/asyncDelete.ts, Pages/Glossary.spec.ts, Features/Glossary/GlossaryHierarchy.spec.ts, GlossaryMutualExclusivity.spec.ts, GlossaryDisplayNameEdit.spec.ts, Pages/Tags.spec.ts, Pages/Tag.spec.ts, Pages/ClassificationConditionalRendering.spec.ts, support/tag/ClassificationClass.ts.

Manual testing performed

  1. Local backend + Vite dev server, logged in as admin.
  2. Seeded 30 glossaries (a 205-term glossary with nesting, >50 top-level terms, a term with 55 children, mixed statuses; a reviewed glossary; two glossaries sharing a display name; an empty glossary; 25 filler glossaries).
  3. Verified left-panel navigation/active state/scroll, status filter, expand/collapse and expand-all, "view more" children, move-term dialog, workflow history hover popover and right-panel widget, header breadcrumb, bulk edit button, in light and dark mode.

UI screen recording / screenshots:

To be added.

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation>

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.

  • I have commented on my code, particularly in hard-to-understand areas.

  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed. (No schema changes.)

  • For UI changes: I attached a screen recording and/or screenshots above.

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

  • I have added tests around the new logic.

🤖 Generated with Claude Code

RetriggerConfidence Score: 2/5

The PR does not appear safe to merge until core-import resolution and the outstanding limit-wrapped manage actions are addressed.

Findings

  1. P1 Runtime imports may resolve to declarations ▶
  2. P1 Limit-wrapped actions remain enabled ▶
  3. P2 Menu typeahead uses internal keys ▶
  4. P2 Icons bypass core export ▶
Summary

The PR migrates glossary, classification, and tag detail controls to core components and updates navigation, shared menus, layouts, and Playwright selectors. Since the last review, it also adds direct core declaration paths to the UI TypeScript configuration.

  • The declaration paths need to be kept separate from Vite’s runtime resolution.

Reviews (6) · Last reviewed commit: "chore(ui): resolve core-components types..."

…ents

Replace the remaining antd usage on the glossary page with
@openmetadata/ui-core-components:

- Glossary left panel: antd Menu -> core NavList (sm size), Button, Skeleton
- Terms table: move-term Modal/Checkbox, status filter Dropdown, hover
  workflow Popover, expand icon, row actions, load-more and expand-all
  buttons now use core Dialog, Checkbox, Popover, Button, ButtonUtility
- Glossary header wrapped in core PageHeader, with the same
  HeaderBreadcrumb used by DataAssetsHeader
- Workflow history widget: core Card, EmptyPlaceholder, Typography
- Shared ResizableLeftPanels card and bulk-edit button moved to core Card
  and Button
- Drop the grey grid background on glossary and glossary term pages

Core NavList/NavItemBase: key items by href, add a `size` prop, suppress
host link underlines and give the current item the brand-tab treatment
so it stays visible in dark mode.
Copilot AI lite review requested due to automatic review settings September 24, 2026 05:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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

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

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 24, 2026
@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: 803 → 803
- 0 added, 0 removed, 1 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/pages/Glossary/GlossaryLeftPanel/GlossaryLeftPanel.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

Copilot AI review requested due to automatic review settings September 24, 2026 05:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@karanh37 karanh37 added the skip-pr-checks Bypass PR metadata validation check label Sep 24, 2026
…mponents

Apply the glossary treatment to the Classification page and the tag
details page:

- Classification left panel: raw buttons -> core NavList (sm) with the
  disabled and term-count badges in the badge slot; skeleton on core
  Skeleton
- Classification details: header wrapped in core PageHeader with the
  HeaderBreadcrumb trail; antd Row/Col/Card body -> core Card + flex
- Tags table row actions: antd Button/Tooltip/Space -> core
  ButtonUtility + Tooltip (reason still shown while disabled)
- Tag details classic header: core PageHeader + HeaderBreadcrumb ending
  with the current tag
- No grey grid background on the tag details overview

Core NavList/NavItemBase accept an optional dataTestId so existing test
ids survive. Playwright `.activeCategory` checks now use aria-current.
Copilot AI review requested due to automatic review settings September 24, 2026 05:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@karanh37 karanh37 changed the title refactor(ui): migrate glossary listing and terms table to core components refactor(ui): migrate glossary, classification and tag details pages to core components Sep 24, 2026
@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: 803 → 803
- 0 added, 0 removed, 1 changed spec-list

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

Copilot AI review requested due to automatic review settings September 24, 2026 05:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…button

- TableV2 sticky (fixed) columns used an inline `background: white`, which
  ignores dark mode; use the `tw:bg-primary` token class instead
- Add Glossary button now matches Add Classification (brand label,
  plus icon, "Add Glossary")
Copilot AI review requested due to automatic review settings September 24, 2026 05:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 73%
73.08% (106225/145341) 58.4% (64930/111180) 59.58% (21418/35947)

… components

- Synonyms, References and Related Terms render in the core WidgetCard with
  WidgetEditButton/WidgetPlusButton instead of the antd ExpandableCard.
- Synonym and reference chips are core Badges (new SynonymBadge and
  ReferenceBadge), used by the term widgets, the terms table, the Explore
  summary panel and the customize-page preview. Version diffs are marked with
  data-diff instead of the global .diff-added class, whose styles override
  Badge's.
- GlossaryTermReferencesModal is rebuilt on the core Dialog, Input and Button
  with react-hook-form, keeping the same validation and test ids.
ChangeParentHierarchy uses the core Dialog, Checkbox, Alert and Button, and
takes GlossaryTermPicker directly. Save stays disabled until a parent is
picked, which replaces the antd form's required rule.

The core Dialog carries data-testid="change-parent-hierarchy-modal" on the
visible dialog. antd put it on the zero-size .ant-modal-root, which is why
"should cancel move operation" failed on toBeVisible. The Playwright helpers
now target the test id directly.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Add ThumbsUp, ThumbsDown, RefreshCcw01 and AlertTriangle SVGs to
ui-core-components/icons (regenerated per ICONS.md) and import the vote,
version-history and move-confirmation icons from
@openmetadata/ui-core-components/icons instead of @untitledui/icons.

Only pass http(s) glossary term reference endpoints to the anchor href so a
javascript: or data: endpoint can no longer execute (CodeQL js/xss-through-dom).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…ed as HTML'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…-components

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

getSafeReferenceHref now returns the parsed URL, which normalizes origin-only
endpoints with a trailing slash.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 68 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), 68 warning(s) across 21 changed file(s).

Count Rule
43 react-hooks/exhaustive-deps
14 no-restricted-imports
6 openmetadata-imports/no-circular-imports
3 openmetadata-imports/no-lower-layer-page-imports
2 openmetadata-imports/review-sequential-api-calls
All findings
Location Rule Message
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:303:8 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'isVersionView' and 'navigate'. Either include them or remove the dependency array.
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:467:8 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:543:7 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:593:8 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchClassificationChildren', 'handlePageChange', and 'isAddingTag'. Either include them or remove the dependenc
🟡 src/components/Explore/EntitySummaryPanel/GlossaryTermSummary/GlossaryTermSummary.component.tsx:50:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'entityDetails.reviewers'. Either include it or remove the dependency array.
🟡 src/components/Explore/EntitySummaryPanel/GlossaryTermSummary/GlossaryTermSummary.component.tsx:55:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'entityDetails.synonyms'. Either include it or remove the dependency array.
🟡 src/components/Explore/EntitySummaryPanel/GlossaryTermSummary/GlossaryTermSummary.component.tsx:80:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchGlossaryTermDetails'. Either include it or remove the dependency array.
🟡 src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:599:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'isGlossary', 'onAddGlossaryTerm', and 'selectedData'. Either include them or remove the dependency array. If '
🟡 src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:679:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'showModal'. Either include it or remove the dependency array.
🟡 src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:738:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'handleAddGlossaryTermClick' and 't'. Either include them or remove the dependency array.
🟡 src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:780:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'handleBreadcrumb'. Either include it or remove the dependency array.
🟡 src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:799:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchCurrentGlossaryInfo' and 'isVersionView'. Either include them or remove the dependency array.
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:654:34 react-hooks/exhaustive-deps React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead.
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:658:9 react-hooks/exhaustive-deps The 'fetchChildTerms' function makes the dependencies of useCallback Hook (at line 1198) change on every render. To fix this, wrap the definition of 'fetchChild
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:742:22 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/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:757:9 react-hooks/exhaustive-deps The 'fetchAllTerms' function makes the dependencies of useCallback Hook (at line 1484) change on every render. To fix this, wrap the definition of 'fetchAllTerm
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:825:9 react-hooks/exhaustive-deps The 'fetchExpadedTree' function makes the dependencies of useCallback Hook (at line 1484) change on every render. To fix this, wrap the definition of 'fetchExpa
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:965:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchAllTerms', 'handlePagingChange', and 'setGlossaryChildTerms'. Either include them or remove the dependency
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:977:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'setGlossaryChildTerms'. Either include it or remove the dependency array.
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1144:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'applyGlossaryTermApprovalOutcome', 'notifyPendingApprovalTasks', and 't'. Either include them or remove the de
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1403:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'currentUser', 'onAddGlossaryTerm', 'onEditGlossaryTerm', and 't'. Either include them or remove the dependency arr
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1593:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'handleEditGlossary', 'handleSearchChange', 'handleStatusSelectionDropdownCancel', 'handleStatusSelectionDropdownSa
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1669:5 react-hooks/exhaustive-deps React Hook useMemo has unnecessary dependencies: 'glossaryChildTerms', 'glossaryTerms', and 'setGlossaryChildTerms'. Either exclude them or remove the dependenc
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1742:6 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 'movedGlossaryTerm'. Either exclude it or remove the dependency array.
🟡 src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1955:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'activeGlossary', 'fetchAllTerms', 'handlePagingChange', and 'previousGlossaryFQN'. Either include them or remove
🟡 src/components/Glossary/GlossaryTerms/GlossaryTermReferencesModal.component.tsx:101:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'references' and 'reset'. Either include them or remove the dependency array.
🟡 src/components/Glossary/GlossaryTerms/tabs/GlossaryTermSynonyms.tsx:57:9 react-hooks/exhaustive-deps The 'getSynonyms' function makes the dependencies of useCallback Hook (at line 133) change on every render. Move it inside the useCallback callback. Alternative
🟡 src/components/Glossary/GlossaryTerms/tabs/WorkFlowTab/WorkflowHistory.component.tsx:106:8 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'propGlossaryTerm'. Either include it or remove the dependency array.
🟡 src/components/Glossary/GlossaryTerms/tabs/WorkFlowTab/WorkflowHistory.component.tsx:145:32 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/components/Glossary/GlossaryTerms/tabs/WorkFlowTab/WorkflowHistory.component.tsx:304:8 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Modals/ChangeParentHierarchy/ChangeParentHierarchy.component.tsx:121:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/common/ManageButtonContentItem/ManageButtonContentItem.test.tsx:14:1 no-restricted-imports '../../../assets/svg/teams-grey.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated
🟡 src/context/LimitsProvider/useLimitsStore.ts:16:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/pages/Glossary/GlossaryLeftPanel/GlossaryLeftPanel.component.tsx:91:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'glossaries' and 'selectedKey'. Either include them or remove the dependency array.
🟡 src/pages/TagPage/TagPage.tsx:345:9 react-hooks/exhaustive-deps The 'activeTabHandler' function makes the dependencies of useCallback Hook (at line 515) change on every render. To fix this, wrap the definition of 'activeTabH
🟡 src/pages/TagPage/TagPage.tsx:744:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'fetchFeedCount'. Either include it or remove the dependency array.
🟡 src/pages/TagPage/TagPage.tsx:819:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/pages/TagsPage/TagsPage.tsx:222:9 react-hooks/exhaustive-deps The 'handleCreateClassification' function makes the dependencies of useCallback Hook (at line 683) change on every render. Move it inside the useCallback callba
🟡 src/pages/TagsPage/TagsPage.tsx:263:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array.
🟡 src/pages/TagsPage/TagsPage.tsx:270:9 react-hooks/exhaustive-deps The 'handleDeleteTag' function makes the dependencies of useCallback Hook (at line 319) change on every render. Move it inside the useCallback callback. Alterna
🟡 src/pages/TagsPage/TagsPage.tsx:377:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'navigate' and 't'. Either include them or remove the dependency array. Outer scope values like 'history' aren'
🟡 src/pages/TagsPage/TagsPage.tsx:380:9 react-hooks/exhaustive-deps The 'handleCreatePrimaryTag' function makes the dependencies of useCallback Hook (at line 517) change on every render. Move it inside the useCallback callback.
🟡 src/pages/TagsPage/TagsPage.tsx:425:9 react-hooks/exhaustive-deps The 'handleUpdatePrimaryTag' function makes the dependencies of useCallback Hook (at line 517) change on every render. Move it inside the useCallback callback.
🟡 src/pages/TagsPage/TagsPage.tsx:489:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/pages/TagsPage/TagsPage.tsx:499:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchCurrentClassification'. Either include it or remove the dependency array.
🟡 src/pages/TagsPage/TagsPage.tsx:507:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchClassifications' and 'tagCategoryName'. Either include them or remove the dependency array.
🟡 src/pages/TagsPage/TagsPage.tsx:623:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/utils/ClassificationUtils.tsx:23:1 no-restricted-imports '../assets/svg/disable-tag.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstr
🟡 src/utils/ClassificationUtils.tsx:24:1 no-restricted-imports '../assets/svg/edit-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstract
🟡 src/utils/ClassificationUtils.tsx:31: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.

… and 18 more. Run make ui-checkstyle-changed locally for the full list.


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

make ui-checkstyle-changed

Revert the CodeQL autofix that returned URL.toString(), which appended a
trailing slash to origin-only endpoints. The http(s) protocol allow-list is
the sanitizer; the original endpoint is safe to render once it passes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Trim reference names and endpoints before saving and validate the trimmed
value, so whitespace-only or padded javascript: endpoints are rejected in the
form. Drop the unused updateState branch that copied unsaved form values into
the rendered references; the list now renders only the saved term.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…-components

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…-components

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
#	openmetadata-ui/src/main/resources/ui/src/components/Classifications/ClassificationDetails/classification-details.less
#	openmetadata-ui/src/main/resources/ui/src/components/Customization/GenericTab/GenericTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/common/Table/TableV2Utils.ts
#	openmetadata-ui/src/main/resources/ui/src/pages/TagPage/TagPage.test.tsx
#	openmetadata-ui/src/main/resources/ui/src/pages/TagPage/TagPage.tsx
#	openmetadata-ui/src/main/resources/ui/src/styles/app.less

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gitar-bot

gitar-bot Bot commented Sep 25, 2026

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

🟡 Medium risk · Shared menu and navigation migrations alter controls across multiple entity pages.

Migrates glossary, classification, and tag details pages from Ant Design to core components, including left-panel navigation, headers with breadcrumbs, status filters, and shared menus. Resolves status popover dismissal on click/tap and URL normalization for href test expectations. No issues remain.

✅ 2 closed
✅ Edge Case: Status popover opened by click/tap can't be dismissed by clicking outside

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:489-503
GlossaryTermStatusCell renders the core Popover with isNonModal. In react-aria's usePopover, that makes the overlay non-dismissable, so clicking outside doesn't close it. Focus also stays on the trigger, which means close-on-blur and Escape don't close it either. With a mouse this is hidden, because onHoverEnd closes the popover. But when a touch or keyboard user opens it (a press toggles isOpen), the workflow-history popover stays over the table until they press the badge again. The antd hover popover it replaces had none of these problems. A fix is to pass shouldCloseOnInteractOutside={() => true} (which re-enables outside dismissal in usePopover), or to close it from the trigger's onBlur and an Escape handler.

✅ Bug: URL normalization breaks the existing http://example.com href test

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermBadges/GlossaryTermBadges.tsx:44-48 📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermBadges/GlossaryTermBadges.test.tsx:17-26
getSafeReferenceHref now returns new URL(endpoint).toString(), and that normalizes the URL. For 'http://example.com' it returns 'http://example.com/', so the links to the http://example.com endpoint case in GlossaryTermBadges.test.tsx (which expects href to equal the raw endpoint) will now fail. It also changes the reference links users see, e.g. by adding a trailing slash or percent-encoding characters. Either update the test to expect new URL(endpoint).href, or keep the original endpoint string after the protocol check. The protocol check is what blocks the javascript: and data: schemes, so keeping the original string stays safe.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants