Skip to content

fix(ui): dark-mode Classification & sign-in pages — sticky columns, selection, disabled states, toggle - #33942

Closed
shah-harshit wants to merge 19 commits into
mainfrom
fix/ai-classification-dark
Closed

shah-harshit wants to merge 19 commits into
mainfrom
fix/ai-classification-dark

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

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.

Area Change
TableV2 sticky (fixed) columns Inline background: 'white' → var(--om-color-bg-surface) for cells and var(--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) Light @primary-1 (brand-100) tint → dark selected brand surface (--tw-background-color-brand-primary) under .dark-mode
Disabled antd buttons + pagination Static 25% black (@disabled-color / --om-legacy-color-0-0-0-0-25) → --om-color-text-disabled under .dark-mode (disabled row actions, Previous/Next)
Core Toggle Unchecked track gets tw:dark:bg-quaternary: dark bg-tertiary equals bg-surface (gray-800), so the off track vanished on cards
Sign-in page video panel Fixed lavender gradient (LoginClassBase.getLoginVideoPanelClassName) stayed light in dark; dark adds tw:dark:bg-none tw:dark:bg-primary so it matches the form panel. Collate override hook unchanged.
Error page ("Something went wrong") antd Result title/subtitle hardcode rgba(0,0,0,…); .error-boundary-result now uses --om-color-text-primary / --om-color-text-tertiary, which flip with the theme.
Explore containers (filters, Browse Estate, results, entity summary) All used bg-primary, the canvas tone, so none read as surfaces; one .explore-page-scoped dark rule puts them on bg-surface, matching the search card. Page background (AI-mode wrapper, incl. its !important on .explore-page) and result cards use bg-secondary, a step below.
Entity cards (ExploreSearchCard, all lists) — border & hover Match the AI Automations template card: border-secondary, radius-2xl, shadow-xs; hover → brand-300 border, shadow-lg, 2px lift (160ms). Selected card uses the same brand-300 border. Applied in the component (Explore, glossary/domain assets, tasks, search preview); dark assets-tab !important border dropped so it isn't masked; embedded entity-popover preview stays flat. Both themes.
Entity summary header Title pill (EntityTitleSection) was bg-surface, same as the panel; dark now bg-secondary, matching the entity cards.
Summary edit icons + overview values .overview-value raw gray-900 (near-black in dark) → --om-color-text-primary; bordered antd icon buttons (bg-primary black boxes) → transparent in dark.
Classification details wrapper + description Bordered bg-primary card behind description + table was a redundant layer; dark makes it transparent (no border/shadow) and lifts the description to bg-surface to match the table. Scoped via .classification-details-card; shared Description component untouched.
Classifications left panel Card sat on bg-primary (canvas tone); cardClassName: 'tw:dark:bg-surface' via ResizableLeftPanels, scoped to TagsPage.
antd popovers / dropdowns (domain, owner pickers, menus, selects) @popover-bg fell back to @component-background (bg-primary), blending into the canvas; variables.less points @popover-bg / @popover-background / @dropdown-menu-bg / @select-dropdown-bg at bg-surface, and a Tree inside a popover goes transparent. Dark also gives .ant-popover-inner the core Popover edge (1px border-secondary_alt outline, radius-xl). Light: surface = white, unchanged.
Core popovers / overlay panels (owner picker + every PopoverTrigger, date pickers, AI user submenu, TableV2 filter menu) Hardcoded tw:bg-primary → tw:bg-surface (resolves to bg-primary in light, gray-800 in dark). Core Dropdown/Select menus already on bg-raised, untouched.

Light mode is unchanged except the pinned header cell, which now uses bg-secondary to match the header row. It was white before, a pre-existing mismatch.

Type of change:

  • Bug fix

Testing

  • Verified live in dark on /tags/Certification: sticky header rgb(19,22,27) = thead, sticky cells rgb(34,38,47), selected category brand surface, Previous/Next and disabled icons rgb(123,127,134)
  • jest Table, Classifications, TagsPage: 244 passed
  • jest LoginPage, CarouselLayout, constants: 47 passed; dark panel computes background-image: none, rgb(12,14,18); light keeps the gradient
  • Prettier + ESLint clean

🤖 Generated with Claude Code

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
@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 24, 2026
@shah-harshit shah-harshit self-assigned this Sep 24, 2026
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.
@shah-harshit shah-harshit changed the title fix(ui): dark-mode Classification page — sticky columns, selection, disabled states, toggle fix(ui): dark-mode Classification & sign-in pages — sticky columns, selection, disabled states, toggle Sep 24, 2026
@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% (105227/144131) 58.36% (64506/110525) 59.33% (21156/35656)

shah-harshit added a commit that referenced this pull request Sep 24, 2026
…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.
@shah-harshit

Copy link
Copy Markdown
Contributor Author

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 bg-overlay-surface token, which gives the same gray-800 in dark and also covers modals, drawers and menus. The two review threads here (--om-* token aliases) were already addressed before the merge. Please continue review on #33905.

auto-merge was automatically disabled September 24, 2026 11:51

Pull request was closed

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

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

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

@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.

1 participant