Repository navigation
fix(ui): dark-mode Classification & sign-in pages — sticky columns, selection, disabled states, toggle - #33942
shah-harshit wants to merge 19 commits into
Conversation
Dark bg-tertiary resolves to gray-800, the same as bg-surface, so the unchecked track vanished on raised cards. Use bg-quaternary (gray-700) for the unchecked, enabled state in dark only; light is unchanged.
…isabled - TableV2 sticky (fixed) columns painted inline white; use surface for cells and bg-secondary for the header so they match their row - .activeCategory used the light brand-100 tint; dark uses the selected brand surface - disabled antd buttons and pagination used a static 25% black; dark retints to text-disabled
The login video panel kept its fixed lavender gradient in dark, leaving half the page light. Dark drops the gradient for bg-primary so it matches the form panel; light and the Collate override hook are unchanged.
…ntity-dark-surface Folds PR #33942 into this PR. Explore changes are taken from #33942 as-is (no textual conflicts). The four overlay conflicts (core Popover, both date pickers, antd popover/dropdown less vars) keep this branch's bg-overlay-surface token, which already covers modals, drawers, menus and calendars and resolves to the same gray-800 in dark; #33942's AI user submenu and TableV2 filter menu are aligned to that token.
|
Closing in favour of #33905: all changes from this PR have been merged into that branch (merge commit e462205). Explore changes were taken from here unchanged; the overlay-background conflicts (core Popover, date pickers, antd popover/dropdown vars) resolve to #33905's |
Pull request was closed
|
| Count | Rule |
|---|---|
| 25 | react-hooks/exhaustive-deps |
| 9 | openmetadata-ui-patterns/no-non-adaptive-palette |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/common/EntityTitleSection/EntityTitleSection.tsx:156:22 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:bg-gray-blue-50" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg-utility-gray-blue-50) or a se |
| 🟡 | src/components/common/EntityTitleSection/EntityTitleSection.tsx:157:25 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-700) or a semant |
| 🟡 | src/components/common/EntityTitleSection/EntityTitleSection.tsx:166:25 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-700) or a semant |
| 🟡 | src/components/common/Table/TableV2.tsx:1084:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'scroll'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1282:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'rest'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1310:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'rest'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1340:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'rest'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1389:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setPreference'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1411:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setPreference'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1627:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'filteredDataSource.length' and 'rest'. Either include them or remove the dependency array. |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:95:19 |
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/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:113:21 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-500" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-500) or a semant |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:171:35 |
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/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:181:35 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-500" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-500) or a semant |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:242:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'appVersion' and 'setAppVersion'. Either include them or remove the dependency array. |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:398:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'openPanel'. Either exclude it or remove the dependency array. |
| 🟡 | src/pages/ExplorePage/ExplorePageV1.component.tsx:237:7 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'navigate' and 'tabsInfo'. Either include them or remove the dependency array. |
| 🟡 | src/pages/ExplorePage/ExplorePageV1.component.tsx:250:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ExplorePage/ExplorePageV1.component.tsx:276:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ExplorePage/ExplorePageV1.component.tsx:315:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabsInfo'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ExplorePage/ExplorePageV1.component.tsx:620:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'performFetch'. Either include it or remove the dependency array. |
| 🟡 | src/pages/TagsPage/TagsPage.tsx:223:9 |
react-hooks/exhaustive-deps |
The 'handleCreateClassification' function makes the dependencies of useCallback Hook (at line 688) change on every render. Move it inside the useCallback callba |
| 🟡 | src/pages/TagsPage/TagsPage.tsx:264: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:271:9 |
react-hooks/exhaustive-deps |
The 'handleDeleteTag' function makes the dependencies of useCallback Hook (at line 320) change on every render. Move it inside the useCallback callback. Alterna |
| 🟡 | src/pages/TagsPage/TagsPage.tsx:378: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:381:9 |
react-hooks/exhaustive-deps |
The 'handleCreatePrimaryTag' function makes the dependencies of useCallback Hook (at line 522) change on every render. Move it inside the useCallback callback. |
| 🟡 | src/pages/TagsPage/TagsPage.tsx:426:9 |
react-hooks/exhaustive-deps |
The 'handleUpdatePrimaryTag' function makes the dependencies of useCallback Hook (at line 522) change on every render. Move it inside the useCallback callback. |
| 🟡 | src/pages/TagsPage/TagsPage.tsx:490: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:500: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:508: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:628:5 |
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:729:35 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-brand-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-brand-600) or a sema |
| 🟡 | src/pages/TagsPage/TagsPage.tsx:754:21 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-brand-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-brand-600) or a sema |
| 🟡 | src/pages/TagsPage/TagsPage.tsx:783:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'onClickClassifications'. Either include it or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|



Describe your changes:
Dark-mode fixes for the AI-mode Classification page (
/tags/<classification>), the sign-in page, and the core Toggle off-state. Split out of #33905.background: 'white'→var(--om-color-bg-surface)for cells andvar(--om-color-bg-secondary)for the header, so pinned columns (e.g. Actions) match their row instead of a white strip. Applies to every TableV2 table with a fixed column..activeCategory(selected left-list item)@primary-1(brand-100) tint → dark selected brand surface (--tw-background-color-brand-primary) under.dark-mode@disabled-color/--om-legacy-color-0-0-0-0-25) →--om-color-text-disabledunder.dark-mode(disabled row actions, Previous/Next)Toggletw:dark:bg-quaternary: darkbg-tertiaryequalsbg-surface(gray-800), so the off track vanished on cardsLoginClassBase.getLoginVideoPanelClassName) stayed light in dark; dark addstw:dark:bg-none tw:dark:bg-primaryso it matches the form panel. Collate override hook unchanged.Resulttitle/subtitle hardcodergba(0,0,0,…);.error-boundary-resultnow uses--om-color-text-primary/--om-color-text-tertiary, which flip with the theme.bg-primary, the canvas tone, so none read as surfaces; one.explore-page-scoped dark rule puts them onbg-surface, matching the search card. Page background (AI-mode wrapper, incl. its!importanton.explore-page) and result cards usebg-secondary, a step below.border-secondary,radius-2xl,shadow-xs; hover →brand-300border,shadow-lg, 2px lift (160ms). Selected card uses the samebrand-300border. Applied in the component (Explore, glossary/domain assets, tasks, search preview); dark assets-tab!importantborder dropped so it isn't masked; embedded entity-popover preview stays flat. Both themes.EntityTitleSection) wasbg-surface, same as the panel; dark nowbg-secondary, matching the entity cards..overview-valuerawgray-900(near-black in dark) →--om-color-text-primary; bordered antd icon buttons (bg-primaryblack boxes) → transparent in dark.bg-primarycard behind description + table was a redundant layer; dark makes it transparent (no border/shadow) and lifts the description tobg-surfaceto match the table. Scoped via.classification-details-card; sharedDescriptioncomponent untouched.cardClassName: 'tw:dark:bg-surface'viaResizableLeftPanels, scoped to TagsPage.@popover-bgfell back to@component-background(bg-primary), blending into the canvas;variables.lesspoints@popover-bg/@popover-background/@dropdown-menu-bg/@select-dropdown-bgat bg-surface, and a Tree inside a popover goes transparent. Dark also gives.ant-popover-innerthe core Popover edge (1pxborder-secondary_altoutline,radius-xl). Light: surface = white, unchanged.PopoverTrigger, date pickers, AI user submenu, TableV2 filter menu)tw:bg-primary→tw:bg-surface(resolves to bg-primary in light, gray-800 in dark). Core Dropdown/Select menus already onbg-raised, untouched.Light mode is unchanged except the pinned header cell, which now uses
bg-secondaryto match the header row. It was white before, a pre-existing mismatch.Type of change:
Testing
/tags/Certification: sticky headerrgb(19,22,27)= thead, sticky cellsrgb(34,38,47), selected category brand surface, Previous/Next and disabled iconsrgb(123,127,134)jestTable, Classifications, TagsPage: 244 passedjestLoginPage, CarouselLayout, constants: 47 passed; dark panel computesbackground-image: none,rgb(12,14,18); light keeps the gradient🤖 Generated with Claude Code