Repository navigation
Fixes #37178: Match Glossary, Classification and Tag headers to the Metrics title - #37179
Conversation
Extract the Metrics header title row into EntityPageTitle (icon, display name/name, copy button on the title line, badges level with the title) and use it in DataAssetsHeader, GlossaryHeader, ClassificationDetails and TagPage, so font size, weight, copy button and icon alignment match. The Tag page icon moves to the surface FeaturedIcon. Glossary specs now target the confirm dialog heading by name, since the title is an h2.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated 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 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Drop the m-t-xss top margin that pushed the bulb 2px below the title in both the classic and AI-mode Tag headers.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Glossary and Classification version views pass getTextDiff HTML as the name and display name. Render them through renderHighlightedText, as EntityHeaderTitle did, so the diff spans show instead of raw markup.
Replace the native div/span containers with Box, and the deleted marker with a core error Badge (keeps data-testid=deleted-badge). Classification's mutually-exclusive wrapper also uses Box. Layout classes are unchanged.
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Extracting shared entity titles and changing glossary, classification, and tag headers could cause display or copy-action regressions across these pages. Refactors the Glossary, Classification and Tag headers to reuse the Metrics title row via a shared ✅ 1 closed✅ Bug: Version-view diff markup is shown as literal HTML in the new title
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
| Count | Rule |
|---|---|
| 12 | react-hooks/exhaustive-deps |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:295: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:459: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:535: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:585:8 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchClassificationChildren', 'handlePageChange', and 'isAddingTag'. Either include them or remove the dependenc |
| 🟡 | src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:644: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:724: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:783: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:825: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:844:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchCurrentGlossaryInfo' and 'isVersionView'. Either include them or remove the dependency array. |
| 🟡 | src/pages/TagPage/TagPage.tsx:352:9 |
react-hooks/exhaustive-deps |
The 'activeTabHandler' function makes the dependencies of useCallback Hook (at line 518) change on every render. To fix this, wrap the definition of 'activeTabH |
| 🟡 | src/pages/TagPage/TagPage.tsx:747: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:833:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed…le glossary and ontology specs (#37337) * Fix governance AUT failures: slow workflow cancel on hard delete and stale glossary/ontology specs - WorkflowHandler.cancelInstancesForEntities: find running instances with one native IN query per chunk. Flowable's or().variableValueEquals() emits one correlated EXISTS per id, a full ACT_RU_VARIABLE scan each; with ~10k running instances a 100-id chunk took 15-18s, so hard-deleting a 400-concept ontology took ~97s and OntologyLargeGraph cleanup timed out. - LargeGlossaryPerformance: glossary terms page at 15 since #35288; after clearing the search, wait for a listed term the search did not match. - utils/glossary assignTagToGlossaryTerm: name the confirmation heading; #37179 made the glossary title an h2. - OntologyConceptDrawer: match "Unsaved changes" case-insensitively (Collate overrides the label); preselect the test's own ontology in All ontologies so a parallel worker deleting the first one cannot leave the drawer loading a 404. * Cover the native cancel lookup with two ids and a surviving bystander; tighten comments * Match SQL probe fragments past optimizer hints EntityDAO.deleteByIds (#36868) renders DELETE /*+ INDEX(t PRIMARY) */ FROM t, so SqlFailureProbe and SqlQueryCounter fragments like "delete from chart_entity" stopped matching. The bulk-path atomicity cases in EntityHardDeletionAtomicityIT injected nothing and failed. Match against the SQL with block comments removed.
Describe your changes:
Fixes #37178
Design feedback: the Glossary, Glossary term, Classification and Tag detail headers should use the Metrics header title treatment.
EntityPageTitle(components/Entity/EntityPageTitle/EntityPageTitle.tsx) is the Metrics title row extracted fromDataAssetsHeaderunchanged: leading icon (vertically centred), display name (h2,text-lgbold) over name (text-smmedium, tertiary), or the name alone as thetext-lgboldh2; copy-URL button and actions on the title line; badges level with the title line. With only a name, title + copy + badges stay on one line.DataAssetsHeader) now render through it: no visual change (pixel-identical before/after in both themes), ~90 lines removed.GlossaryHeader), Classification (ClassificationDetails) and Tag (TagPage) switch fromEntityHeaderTitletoEntityPageTitle. Glossary's status badge drops its leading divider, like Metrics.FeaturedIconsurfacebadge as the other headers (the customstyle.iconURLat 20px, else the coreTagicon). This fixes the large icon/title gap and the alignment.m-t-xsstop margin, which sat it 2px below the title line in both the classic and AI-mode Tag headers (measured centre: title 83px / bulb 85px → both 83px in AI mode; 139px for title, copy and bulb in classic).EntityPageTitlerenders the name and display name throughrenderHighlightedText, asEntityHeaderTitledid, so thegetTextDiffmarkup that Glossary/Classification version views pass shows as diff highlighting instead of raw<span>HTML (raised by the Gitar review). Covered byEntityPageTitle.test.tsx, which fails without the fix.EntityPageTitleusesBoxfor every layout container,Typographyfor text,ButtonUtilityfor copy and a coreBadge(color="error") for the "Deleted" marker (stilldata-testid="deleted-badge"), with no nativediv/span. Classification's mutually-exclusive wrapper is aBoxtoo. Box emits the same flex/align/gap classes, so headers are pixel-identical before/after this refactor except the Deleted badge (new core style) and the Mutually Exclusive badge, which now sits level with the System badge (it was 1px low).EntityHeaderTitleusers (Domain, Data Product, Roles, Policies, Persona, Alerts, …) are unchanged.entity-header-title,entity-header-display-name,entity-header-name,entity-header-copy-button,deleted-badge,disabled, and theclassification-<name>/<tag>-<tag>containers thatTags.specuses.Type of change:
High-level design:
N/A — one small shared component extracted from the Metrics header and reused by three more headers.
Tests:
Use cases covered
Unit tests
GlossaryHeader.testandClassificationDetails.testno longer mock the title: they assert the realentity-header-display-name/entity-header-name/disabledoutput.TagPage.testmocksEntityPageTitle(it doesn't test the header). NewEntityPageTitle.test.tsxcovers diff-markup rendering and the name-only heading. Affected suites: 554 tests pass. After the core-components refactor, PlaywrightClassificationConditionalRendering,Tags,MetricHierarchy,GlossaryAdvancedOperations,GlossaryRemoveOperations: 47 passed (GlossaryHeader,Classifications,DataAssetsHeader,Entity,TagPage).Backend integration tests
Ingestion integration tests
Playwright (UI) tests
h2(as on Metrics), so the three barepage.getByRole('heading')checks for the tag-update confirm dialog inGlossaryAdvancedOperations/GlossaryRemoveOperationsnow match the dialog heading by name.ClassificationConditionalRendering,Tags,Tag,MetricHierarchy,GlossaryAdvancedOperations,GlossaryRemoveOperations: 53 passed, 1 failed, 14 did not run. The failure isTag.spec› Add and Remove Assets timing out on the Explore "Entity Type" filter optiontable. It fails identically with themainversions of these files (environment: seeded data overflows that facet list), and the 14 are the serial tests after it.Manual testing performed
main) and after, in light and dark themes.Screenshots
Light theme
Tag page learning icon (AI mode)
Version view with a display-name change (Classification v0.2)
Deleted entity (Metric) — legacy span → core Badge
Dark theme
UI screen recording:
Not applicable — styling change; before/after screenshots above.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.docs/decisions/.🤖 Generated with Claude Code