Repository navigation
Fixes #37122: Match Glossary and Classification header icons to the Metrics header - #37123
Conversation
…etrics header Extract the Metrics header icon badge into EntityHeaderIcon and use it in the Glossary, Glossary Term and Classification headers so the icon keeps the same size and alignment with or without a subtitle.
❌ 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! |
Add a 'surface' theme to FeaturedIcon (36px bordered circle at md) that matches the Metrics header badge, and use it in the Metrics, Glossary, Classification, test case and test suite headers instead of hand-rolled classes. Removes EntityHeaderIcon.
|
| Count | Rule |
|---|---|
| 11 | react-hooks/exhaustive-deps |
| 8 | openmetadata-imports/no-lower-layer-page-imports |
| 1 | openmetadata-imports/no-cross-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:294: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:458: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:534: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:584: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:649: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:729: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:788: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:830: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:849:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchCurrentGlossaryInfo' and 'isVersionView'. Either include them or remove the dependency array. |
| 🟡 | src/components/observability/TestCaseDetail/TestCaseDetail.tsx:35: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/observability/TestCaseDetail/TestCaseDetail.tsx:36: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/observability/TestCaseDetail/TestCaseDetail.tsx:37: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/observability/TestCaseDetail/TestCaseDetail.tsx:42: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/observability/TestCaseDetail/TestCaseDetail.tsx:43: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/observability/TestSuiteDetail/TestSuiteDetail.tsx:39: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/observability/TestSuiteDetail/TestSuiteDetail.tsx:40: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/observability/TestSuiteDetail/TestSuiteDetail.tsx:41: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/observability/TestSuiteDetail/TestSuiteDetail.tsx:345:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'handlePipelinesChange'. Either include it or remove the dependency array. |
| 🟡 | src/pages/TestSuiteDetailsPage/TestSuiteDetailsPage.component.tsx:58: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. |
| 🟡 | src/pages/TestSuiteDetailsPage/TestSuiteDetailsPage.component.tsx:381:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'handlePipelinesChange'. Either include it or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changedDrop the raw ic-checklist/icon-test-suite SVGs and the dark-mode rect override; FeaturedIcon sizes and colours the core icons itself.
Code Review ✅ Approved🟡 Medium risk · Shared icon styling changes several entity headers; a faulty theme could misalign or obscure identifying icons across glossary, classification, metrics, and test pages. Standardizes entity header icons on a new 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 |
Describe your changes:
Fixes #37122
Entity detail headers drew their leading icon differently: Glossary, Glossary Term and Classification used a bare 36px glyph whose size and vertical alignment shifted with/without a subtitle, while Metrics (and the test case / test suite / incident pages) hand-rolled a 36px bordered badge with the same five Tailwind classes copied in each file.
surfacetheme toFeaturedIcon(openmetadata-ui-core-components) — the Metrics badge: neutralbg-surfacecircle,border-secondaryborder,shadow-xs-skeumorphic,md= 36px with a 20px icon,brand=utility-brand-700(same colour as the oldutility-blue-700in both themes). Storybook:Foundations/FeaturedIcon→Surface, plus theThemesrow.DataAssetsHeader), Glossary + Glossary Term (GlossaryHeader, incl. a customstyle.iconURLterm icon), Classification (ClassificationDetails), test case / incident (IncidentManagerDetailPage,TestCaseDetail) and test suite (TestSuiteDetailsPage,TestSuiteDetail) now render<FeaturedIcon color="brand" size="md" theme="surface" />— no wrapper divs/spans or caller-side classes left.TestCase/TestSuiteicons (@openmetadata/ui-core-components/icons) instead of the rawic-checklist.svg/icon-test-suite.svgassets, which also drops thetw:dark:[&>rect]:fill-transparentoverride the old SVG's baked-in white rect needed. They render in the Metrics blue like every other entity header.imageClassName(coreIconalready appliesobject-fit: contain). The service-logo<img>inDataAssetsHeaderis kept as is (onlytw:size-5), since swapping it to coreIconwould add a load skeleton and rewrite relative logo URLs for every data asset.Computed styles verified identical on all pages: 36×36, radius 9999px, border
rgb(233,234,235), bg white, iconrgb(23,92,211)at 20×20.Not changed: the existing
modern/darkFeaturedIconthemes referenceshadow-xs-skeuomorphic, a misspelled token that doesn't exist (the real one isshadow-xs-skeumorphic). Fixing it would add a shadow to ~10 unrelated screens, so it is left for a separate PR.Type of change:
High-level design:
N/A — small change; one new core variant, callers switched to it.
Tests:
Use cases covered
Unit tests
GlossaryHeader,ClassificationDetails,DataAssetsHeader,TestCaseDetail,TestSuiteDetail,IncidentManagerDetailPage,TestSuiteDetailsPage).TestSuiteDetail.test.tsxmock now passes the realFeaturedIconthrough.ref-forwarding.test.tsxpasses;yarn tw-audit0 errors.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
ClassificationConditionalRendering,Tags,TestSuiteDetailsPage,MetricHierarchy,GlossaryAdvancedOperations(style/icon tests).Manual testing performed
Screenshots — every changed place
Data-asset headers (table, dashboard) and Metrics share
DataAssetsHeader; they are pixel-identical before/after in both themes (canvas diff: no changed pixels).Light theme
DataAssetsHeader, unchanged)DataAssetsHeader, unchanged)IncidentManagerDetailPage)TestSuiteDetailsPage)TestSuiteDetail)TestCaseDetail)Dark theme
DataAssetsHeader, unchanged)DataAssetsHeader, unchanged)IncidentManagerDetailPage)TestSuiteDetailsPage)TestSuiteDetail)TestCaseDetail)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