Skip to content

fix(ui): entity details pages dark mode (page-by-page) - #33987

Merged
shah-harshit merged 48 commits into
mainfrom
fix/entity-details-dark-mode
Sep 25, 2026
Merged

shah-harshit merged 48 commits into
mainfrom
fix/entity-details-dark-mode

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Page-by-page dark-mode pass over the entity details pages (AI mode). Approach: instead of patching .less for dark mode, migrate the antd component to @openmetadata/ui-core-components (or put theme tokens on the element as tw: classes) and delete the LESS patch. Light mode is kept visually identical (values measured from the compiled antd/LESS and reproduced; the few unavoidable differences are listed below).

Also absorbs #33960 (Workflows cards / Marketplace) and #33884 (StatusBadge → core Badge), both closed in favour of this PR.

Collate companion: open-metadata/openmetadata-collate#6824

Progress (entity pages audited in dark)

Table, Topic, Dashboard, Chart, Pipeline, Database, Database Schema, ML Model, Container, Dashboard Data Model, Stored Procedure, API Collection, API Endpoint, Drive, Glossary (landing), Tag, Domain, Data Product, Test Case, Test Suite, Service details — done. Search Index / Metric: no local sample data.

antd → core-ui migrations

Component Now LESS removed
EntityHeaderTitle (name, badges, follow + copy buttons) core Typography, Tooltip, Badge, Button entity-header-title.less patches, badge.less
Segmented toggles ×6 (Topic/API schema, Pipeline tasks/executions, List/Grid, summary panel) core ButtonGroup .segment-toggle in radio.less
Activity Feed left menu semantic nav list (tw tokens) menu.less dark patch
TierCard popover (content + shell) and its 5 callers core Popover, Accordion, RadioGroup, Button; pressable triggers tier-card.style.less antd overrides
Lineage collapse handle core Button —
BarMenu (description editor toolbar) core ButtonUtility + Divider, inline SVG glyphs bar-menu.less (deleted)
NextPrevious Previous/Next core Button pagination.less patch narrowed to antd Pagination only
RetentionPeriod edit modal core Modal/Dialog, Alert (showIcon), Input, Button antd button LESS
QueryViewer (Topic Config, SQL tab) core Card, Badge, Button .ant-card-body override
ExpandableCard, QueryCard, Pipeline DAG card, ContractSecurityCard, Certification, GenericWidget, CodeEditor core Card .ant-card-* overrides, generic-widget.less, pipeline-details.style.less
DataProducts contract result button core Button .ant-btn-group.spaced block
Table Constraints icons core Tooltip, inline bracket SVG background rules

Token / element-level fixes (no component swap needed)

  • Header labels, contract result pills (new legacy tokens #b93815/#fef6ee/#f9dbaf for "aborted"), Data Observability tab, lineage node shells/labels/handles (--lineage-node-border var), core Table sticky cells + markdown fade follow row hover, Table Constraints box, marketplace sections, StatusBadge overrides → classes at the render site.
  • Core additions: RadioButton indicatorClassName, Alert showIcon, TableRow hover fade.
  • Removed dead utils/DataAssetsHeaderExtraInfo.tsx.

Known light-mode differences

  • TierCard radio: selected state is core's solid brand dot (16px vs 14px).
  • Keyboard focus rings on migrated buttons (core a11y); antd click wave gone.
  • Table pinned cells now share the row's hover tint in light (were a white strip).
  • TierWidget with no tier: popover aligns to the widget's right edge.

CI

  • impact-map.json: TierCard/** and utils/CSV/** now route to DataAssetRulesDisabled, BulkEditEntity, BulkImport and TierWidget. Before this, a change that touched only TierCard ran just TierWidget, so the bulk-edit tier step first ran in the merge queue.

Still on global antd patches (follow-up)

.dark-mode .ant-alert / .ant-card-head in app.less stay: ~70 antd Alerts and ~50 titled antd Cards (Settings, DataInsight, Explore panels, MyData widgets…) still rely on them. Global .ant-btn[disabled] (from #33905) likewise.

Type of change:

  • Bug fix
  • Refactor

Testing

  • Every migration verified in the browser in light (computed-style measurements against the pre-change baseline) and dark (AI mode).
  • Unit tests updated to assert real behaviour; related suites pass (e.g. ExpandableCard users/TableQueries/Pipeline/DataContract: 1186 tests; TierCard family: 146; Segmented sites; ActivityFeed; RetentionPeriod/QueryViewer).
  • Playwright selectors updated where antd classes/roles changed (Activity Feed menu → button).

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests around the new logic.

shah-harshit and others added 8 commits September 23, 2026 17:10
Replace the legacy div + status-badge.less implementation of StatusBadge
and StatusBadgeV2 with the core `@openmetadata/ui-core-components` Badge,
keeping the exact public API so all call sites stay untouched. Each
StatusType maps to the nearest core Badge (utility-scale) color via a new
STATUS_TYPE_TO_BADGE_COLOR map; the utility palette auto-flips in dark, so
every status gains dark-mode support with no per-status CSS.

- v1 keeps label-keyed icons, v2 keeps status-keyed icons + showIcon/externalIcon
- Preserve `status-badge`/`status-badge-v2`/`status-badge-label` + status hook
  classes so existing consumer LESS overrides and Playwright locators keep working
- Delete status-badge.less (-149 lines)
- Add core Storybook StatusBadge story (status -> color reference, light/dark)
- Add StatusBadge unit test (label, testid, hook classes, color mapping)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ExploreSearchCard's @openmetadata/ui-core-components mock returns an explicit
subset, so after StatusBadge moved onto the core Badge it resolved undefined
("Element type is invalid"). Pass the real Badge through, matching the
existing toOwnerRef passthrough.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Workflow cards get the AI Automations template-card hover (brand-300
border, shadow-lg, 2px lift, 160ms) plus shadow-xs at rest. In dark the
grid container and pagination footer drop bg-primary so the page
background shows through instead of a darker panel. Light unchanged.
Disabled antd buttons and pagination used the legacy 25%-black colour,
which vanished on the dark page. Retint to --om-color-text-disabled
under .dark-mode (same rules as #33905, so the two merge cleanly).
The New Data Products / New Domains sections were bg-primary, a darker
frame around bg-surface item cards. Use the surface token so section
and cards share one colour; light stays white.
Data product and domain cards move to bg-secondary in dark, the Explore
entity-card tone, so they sit a step below the bg-surface sections.
- Header labels (Domains, Retention Period, owner headings) used the raw
  gray-700 palette step, which goes near-black in dark; use the
  text-secondary token (same value in light).
- Data contract result button tints use the utility scale (flips in
  dark); aborted keeps its light hexes with a dark override.
- Incident header labels get the same text-secondary swap.
- Data Observability tab container moves from bg-primary to bg-surface so
  it doesn't sink below the canvas.
- SummaryCardV1 stat icons fade their baked-in pale backdrop in dark.
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Sep 25, 2026
@shah-harshit shah-harshit self-assigned this Sep 25, 2026
…enus

- Pinned (sticky) table cells and the markdown clamp fade follow the row
  hover/selected background in dark.
- Block editor toolbar: static light hexes get a dark override
  (bg-secondary, theme-aware hover/active and separators).
- Lineage canvas: white node shells, handles, badge tab and expand buttons
  map to bg-surface in dark; static grey borders to border-primary; the
  drill/zoom button uses the dark brand tint.
- .custom-menu (activity feed left panel etc.): surface background and a
  dark selected-item brand surface instead of antd's light tint.
The right-panel widget used bg-primary (the page colour) while the other
right-panel widgets sit on bg-surface; surface is white in light.
…/card/segmented

- Entity header icon chip (data assets, test case, test suite): bg-primary
  (a dark hole on the header) -> bg-surface; fallback glyph blue-700 ->
  utility-blue-700 (same in light).
- Edit Tier popover: the antd Collapse list sits on the popover surface
  with theme-aware dividers instead of the page colour.
- antd Alert (e.g. Edit Retention Period): per-type light tints -> utility
  scale in dark with readable message/description text.
- antd Card header (Topic Config): readable title and divider in dark.
- Segment toggle (Topic schema Fields/Text): dark selected pill and border.
- Core tag chips colour their label with the user-picked --tag-color; dark
  hues were unreadable on the dark surface. In dark the label/icon mix the
  colour 55% with white (hue kept; accent border unchanged).
- Entity header follow star: the SVGs bake in a light brand-50 disc and
  brand-100 ring; retint to the utility brand scale in dark.

Dashboard, Chart, Pipeline, Database, Database Schema, ML Model,
Container, Dashboard Data Model, Stored Procedure, API Collection and API
Endpoint pages audited in dark; no other page-specific issues.
- antd follow button (Domain, Data Product headers): static light brand
  background/text -> dark brand tint and brand text in dark.
- Customizable widget grid (GenericTab, e.g. Tag page): dark gaps now
  transparent so they match the AI canvas (bg-primary kept in light).
- Test case / test suite / incident detail header icon chip -> bg-surface;
  the checklist icon's baked white page goes transparent in dark.
- Core AccordionItem (service Metadata Details etc.): bg-primary ->
  bg-surface (white in light).
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 73%
73.16% (106419/145442) 58.48% (65047/111226) 59.66% (21457/35960)

The core Popover's underlay swallows outside clicks and handles Escape,
so the grid never saw them; forward the dismissal to onClose.
@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: 802 → 801
- 0 added, 1 removed, 1 changed spec-list

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/Database/RetentionPeriod/RetentionPeriod.component.tsx

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

The constraint box used @Grey-1, which bridges to the near-black
secondary background in dark, and the key icon disc was literal white.
Both move to tw classes on the elements (light keeps #f8f8f8 / white;
dark lets the card surface show), the dotted bracket renders inline so
its stroke follows the theme, and the icon tooltips use core Tooltip.
…Card

ExpandableCard, QueryCard, the pipeline DAG card, ContractSecurityCard,
Certification, GenericWidget and CodeEditor render core Card with the
antd 4 light metrics (head 48px/16px-500, body padding, #eaecf5 border)
reproduced in tw; their .ant-card LESS overrides move to hook classes
or are deleted. RetentionPeriod modal matches the antd header, footer
and 40px buttons, core Alert gains showIcon, and QueryViewer restores
its copy glyph and pill colours. The global .ant-alert/.ant-card-head
dark patches stay: ~70 Alerts and ~50 titled Cards still depend on them.
…ta/OpenMetadata into fix/entity-details-dark-mode
The core Tooltip trigger wraps the name in an AriaButton whose usePress
stops propagation, so clicks never reached the enclosing react-router
Link. Continue propagation on both name tooltips.
shah-harshit and others added 3 commits September 25, 2026 12:38
The Activity Feed left menu is now a nav list of buttons, not an antd
menu; this spec was missed when the other selectors moved.
@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: 801 → 801
- 0 added, 0 removed, 1 changed spec-list

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

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

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

Count Rule
62 no-restricted-imports
61 react-hooks/exhaustive-deps
18 openmetadata-imports/no-impure-pure-utils
14 openmetadata-imports/no-lower-layer-page-imports
4 openmetadata-imports/no-circular-imports
3 openmetadata-ui-patterns/no-non-adaptive-palette
1 openmetadata-imports/review-sequential-api-calls
1 openmetadata-imports/no-cross-page-imports
All findings
Location Rule Message
🟡 src/components/APIEndpoint/APIEndpointSchema/APIEndpointSchema.tsx:482:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Certification/Certification.component.tsx:129:9 react-hooks/exhaustive-deps The 'handleScroll' function makes the dependencies of useMemo Hook (at line 235) change on every render. Move it inside the useMemo callback. Alternatively, wra
🟡 src/components/Certification/Certification.component.tsx:271:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'currentCertificate' and 'getCertificationData'. Either include them or remove the dependency array. If 'setSelec
🟡 src/components/Customization/GenericTab/GenericTab.tsx:23: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/Customization/GenericTab/GenericTab.tsx:24: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/components/Customization/GenericTab/GenericTab.tsx:70:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'handleHeightChange'. Either include it or remove the dependency array.
🟡 src/components/Customization/GenericWidget/GenericWidget.tsx:21: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/Customization/GenericWidget/GenericWidget.tsx:22: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/Customization/GenericWidget/GenericWidget.tsx:76:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'data' and 'widgetName'. Either include them or remove the dependency array.
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:42: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/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:253:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'hasFollowers'. Either include it or remove the dependency array.
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:377:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'entityType', 'fetchActiveAnnouncement', 'fetchContainerAncestors', and 'fetchDQFailureCount'. Either include the
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:667:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'dataAsset.fullyQualifiedName'. Either include it or remove the dependency array.
🟡 src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:743:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchDataContract'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSecurity/ContractSecurityCard.component.tsx:129:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 't' and 'tableColumnNameMap'. Either include them or remove the dependency array.
🟡 src/components/DataMarketplace/MarketplaceDataProductsWidget/MarketplaceDataProductsWidget.component.tsx:28: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/DataMarketplace/MarketplaceDomainsWidget/MarketplaceDomainsWidget.component.tsx:28: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/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:929:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'getEntityFeedCount', 'isVersionsView', and 'openAssetDrawer'. Either include them or remove the dependency array.
🟡 src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:967:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchActiveAnnouncement', 'fetchActivityCount', 'fetchDataProductAssets', 'fetchDataProductContract', and 'fetch
🟡 src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:980:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array.
🟡 src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:980:6 react-hooks/exhaustive-deps React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.
🟡 src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:1022:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'handleTabChange' and 't'. Either include them or remove the dependency array.
🟡 src/components/DataProducts/InputOutputPortsTab/PortsLineageView/DataProductNode.component.tsx:56:21 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-gray-400" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-400) or a semant
🟡 src/components/Database/Profiler/DataObservability/DataObservabilityTab.tsx:125:44 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/Database/Profiler/DataObservability/DataObservabilityTab.tsx:163:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchNewIncidentCount'. Either include it or remove the dependency array.
🟡 src/components/Database/TableQueries/QueryCard.tsx:119:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Entity/EntityHeaderTitle/EntityHeaderTitle.component.tsx:138:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Entity/EntityLineage/CustomNodeV1.component.tsx:280:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'node.id' and 'setNodeFilterState'. Either include them or remove the dependency array.
🟡 src/components/Explore/EntitySummaryPanel/DataQualityTab/DataQualityTab.tsx:490:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchTestCases'. Either include it or remove the dependency array.
🟡 src/components/Pipeline/Execution/Execution.component.tsx:134:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchPipelineStatus'. Either include it or remove the dependency array.
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:139:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:177:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'pipelineDetails' and 'settingsUpdateHandler'. Either include them or remove the dependency array. If 'settings
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:272:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array.
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:278:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchActivityCount' and 'fetchTaskCounts'. Either include them or remove the dependency array.
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:305:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'customizedPage?.tabs', 'feedCount', 'fetchPipeline', 'getEntityFeedCount', and 'tab'. Either include them or remov
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:340:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'updatePipelineDetailsState'. Either include it or remove the dependency array.
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:344:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array.
🟡 src/components/Pipeline/PipelineDetails/PipelineDetails.component.tsx:344:6 react-hooks/exhaustive-deps React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.
🟡 src/components/Pipeline/PipelineTaskTab/PipelineTaskTab.tsx:178:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'currentPage', 'handlePageChange', and 'handlePagingChange'. Either include them or remove the dependency array.
🟡 src/components/Pipeline/PipelineTaskTab/PipelineTaskTab.tsx:233:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Pipeline/PipelineTaskTab/PipelineTaskTab.tsx:413:5 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'handleTaskClick', 'pipelineFQN', 't', 'tagFilter.Classification', and 'tagFilter.Glossary'. Either include them or
🟡 src/components/Topic/TopicSchema/TopicSchema.tsx:211:9 react-hooks/exhaustive-deps The 'handleFieldTagsChange' function makes the dependencies of useCallback Hook (at line 374) change on every render. To fix this, wrap the definition of 'handl
🟡 src/components/Topic/TopicSchema/TopicSchema.tsx:211:9 react-hooks/exhaustive-deps The 'handleFieldTagsChange' function makes the dependencies of useCallback Hook (at line 391) change on every render. To fix this, wrap the definition of 'handl
🟡 src/components/Topic/TopicSchema/TopicSchema.tsx:448:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'handleColumnClick'. Either include it or remove the dependency array.
🟡 src/components/WorkflowDefinitions/WorkflowCard/WorkflowCard.component.tsx:45:9 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:hover:border-brand-300" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-brand-300)
🟡 src/components/common/DomainLabel/DomainLabel.component.tsx:31: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/components/common/DomainLabel/DomainLabel.component.tsx:62:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/common/DomainLabel/DomainLabel.component.tsx:105:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'onUpdate'. Either exclude it or remove the dependency array.
🟡 src/components/common/DomainLabel/DomainLabel.component.tsx:212:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'defaultDomainText' and 't'. Either include them or remove the dependency array.
🟡 src/components/common/DomainLabel/DomainLabel.component.tsx:292:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'defaultDomainText', 'domainLink', 'headerLayout', 'showDomainHeading', and 't'. Either include them or remove the

… and 114 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

@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — merge_conflict (2026-09-25T08:48:32Z)

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

…rk-mode

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/pages/WorkflowDefinitions/WorkflowsPage/WorkflowsPage.tsx
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-09-25T11:52:41Z)

Blocked the queue: playwright-summary

The core Popover's dialog takes focus on open, so keydowns inside it
bubble through the portal to react-data-grid's EditCell, which closes
the editor on Enter. Wrap the tier editor in KeyDownStopPropagationWrapper
like the other popover editors in this file. Fixes the bulk-edit tier
step in DataAssetRulesDisabled (Database service / Database Schema).
TierCard only mapped to TierWidget, so a TierCard-only change skipped
the bulk-edit tier step in DataAssetRulesDisabled; it first ran (and
failed) in the merge queue.
- StatusBadge maps the lower-cased test-case status `failed` to the error
  colour (it fell through to gray; legacy LESS styled it like failure).
- Dark utility-orange uses the same 16%/35% tint + 400 text recipe as
  success/warning/error instead of solid 950/800 steps, so Aborted is a
  tinted chip rather than a filled block.
- Pie chart centre count turns white in dark; light keeps #1D2939.
Replaces the hardcoded #1D2939 fill plus dark override with the adaptive
tw:fill-text-primary (gray-900 light, gray-50 dark), per review.
@gitar-bot

gitar-bot Bot commented Sep 25, 2026

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

🟡 Medium risk · Broad UI migrations touch entity pages, navigation, dialogs, and tier editing behavior

Page-by-page dark mode migration for entity details pages, moving antd components to core UI and removing LESS patches. All findings addressed: pie chart centre count now uses the text-primary token, name tooltips refactored to preserve Link clicks, and coverage count switched to token-based theming. No open issues.

✅ 3 closed
✅ Bug: Dark brand text uses --tw-color-text-brand-secondary, never flipped

📄 openmetadata-ui/src/main/resources/ui/src/styles/components/radio.less:96-101 📄 openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityHeaderTitle/entity-header-title.less:38-40
The new dark rules for the segmented toggle's selected label/SVG fill and the antd follow button text use var(--tw-color-text-brand-secondary). The .dark-mode block in core globals.css does not mirror that variable. It only mirrors --tw-text-color-brand-secondary (line ~1597), and its own comment says un-mirrored --tw-* vars keep their light values. So in dark the text either stays light brand-700 on the dark brand tint, which is low contrast, or falls back to inherited color if the var is not emitted. Either way the intended brand text never appears. Switch to the mirrored --tw-text-color-brand-secondary, or use --color-text-brand-secondary, which is redefined in dark.

✅ Bug: Name tooltips wrap the title in AriaButton, swallowing Link clicks

📄 openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityHeaderTitle/EntityHeaderTitle.component.tsx:157-160 📄 openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityHeaderTitle/EntityHeaderTitle.component.tsx:228-231 📄 openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityHeaderTitle/EntityHeaderTitle.component.tsx:278-285
Setting triggerClassName on the core-ui Tooltip forces it to wrap the child in a react-aria AriaButton. That button's usePress stops press/click events from reaching ancestor listeners; core-ui's own Typography works around this with onTriggerPress={e => e.continuePropagation()}. When link is set (e.g. TableDataCardV2 search/explore cards via EntityHeader titleIsLink), the entity name now sits in a <button> inside the react-router <Link>. A click on the name no longer reaches the Link's onClick, so client-side navigation is lost: depending on the browser you get either a full page reload or no navigation at all. It is also invalid <a><button> nesting. Fix: pass onTriggerPress={(e) => e.continuePropagation()} (or excludeTriggerFromTabOrder so a plain span is used) on both name tooltips.

✅ Quality: Coverage count uses hardcoded palette + dark override, not a token

📄 openmetadata-ui/src/main/resources/ui/src/utils/DataQuality/DataQualityUtils.tsx:43-46
The chart label keeps a hardcoded fill="#1D2939" and adds tw:dark:fill-white. That breaks the styling rules, which call for adapting design tokens instead of palette classes or tw:dark:* overrides. It also means dark mode shows pure white, while other text uses --color-text-primary (gray-50). One adapting fill class fixes both modes and lets you delete the hex attribute.

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.

3 participants