Repository navigation
fix(ui): align AI dark-mode brand + status-chip + filter-border tokens with palette guideline (#6491) - #33751
Conversation
Port the AI-mode palette values into core dark tokens so OSS matches the video / Collate #6491 without a scoped layer: - Brand foreground + text (fg-brand-*, text-brand-primary/secondary) -> blue-300 link tone (was brand-500 / gray). Fixes saturated active-tab text + underline and other brand-blue accents. - Status-chip utility-error/warning: 50/100 -> 500 @16% tint, 200 -> 500 @35% border, 500/700 -> 400-step text (was solid error-950/warning-950 dark-on-dark fills). Fixes the AttentionBadgeChip 'Owner Missing' / 'Certification Expired' brown/muddy look -> subtle tint chip. Light mode unchanged.
The bordered filter trigger's active-selection border used tw:after:outline-brand, which stays brand-blue in dark (border-brand = brand-400). Add tw:dark:after:outline-brand_alt so the dark border resolves to the neutral control tone (gray-700) while light stays brand (unchanged).
✅ Playwright Results — workflow succeededValidated commit ✅ 545 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 51m 0s ⏱️ Max setup 4m 28s · max shard execution 18m 0s · max shard-job elapsed before upload 21m 17s · reporting 3s 🌐 205.77 requests/attempt · 1.82 app boots/UI scenario · 35.93% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
The dark-mode override pinned the pie-chart / status-card / custom-chart backgrounds to --om-color-bg-primary (gray-950 = the page color), so the cards had no elevation and blended into the page. Use --om-color-bg-surface (gray-800) — the dark surface the override was meant to give them.
- TestSuiteListPanel: tw:bg-primary -> tw:bg-surface (page->surface). - TestCaseConfigurationCard: tw:bg-bg-primary (invalid class -> no bg, page showed through) -> tw:bg-surface.
|
| Count | Rule |
|---|---|
| 1 | openmetadata-imports/no-lower-layer-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/DataQuality/TestSuite/TestSuiteList/TestSuiteListPanel.component.tsx:18: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. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed- Header card + chart card (.test-case-result-tab-graph) -> bg-surface (were page/gray-950, blended into the page). - Param / SQL / code-editor boxes + result tooltip -> --om-color-bg-surface; tooltip text @black -> --om-color-text-primary. - Last-run banner: Aborted/Failed used raw bg-yellow-50 / bg-error-50 (static light) -> bg-utility-warning-50 / bg-utility-error-50 so they flip to the dark 16% tint (config card was already fixed to bg-surface).
…eme tokens The entity color palette was tokenized in #32917 so themes could remap hues, but getEntityPalettePresentationColor emitted bare `var(--color-entity-palette-*)` with no fallback. Consumers of ui-core-components that don't ship these custom properties (e.g. the Collate build) resolve the var to nothing, so the tag and glossary color/icon picker swatches paint transparent — blank. Bake each token's hex value in as a var() fallback (`var(--color-entity-palette-blue, #1470EF)`) so the color always renders while a theme can still override the property. Fixes blank swatches with no downstream consumer change. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…queue conflict #32069 (CodeMirror v6) renames .CodeMirror/.CodeMirror-gutters -> .cm-editor/ .cm-gutters in this file, overlapping this PR's surface-bg edits and causing a merge-queue conflict. Revert this file to main so the two PRs no longer touch the same lines. The test-case-tab param/SQL/code/graph surface backgrounds will re-land in a follow-up on the new .cm-* selectors once #32069 merges.
…2069 merged) #32069 (CodeMirror v6) is now in main, so re-apply the dark surface backgrounds this PR dropped to dodge the queue conflict — now on the renamed selectors: graph card, parameter-container, sql-expression-container, and the .cm-editor code area -> bg-surface; tooltip -> bg-surface + text-primary (was @black).
…tokens # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/DataQuality/IncidentManager/TestCaseResultTab/test-case-result-tab.style.less
Code Review ✅ Approved🟡 Medium risk · Dark-mode tokens and Data Quality surfaces change behavior across several UI components Aligns dark-mode brand text, status-chip colors, and filter-select active borders with the design palette guideline. Brand foregrounds now use blue-300, status chips use 16% tints with 400-step text, and filter selections use neutral gray-700 borders in dark mode; light mode remains unchanged. No issues found. OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Summary
Follow-up to the merged AI dark-mode work (#33714). Ports the remaining Collate #6491 dark values into OSS core-components so AI-mode (and all dark surfaces) match the design recording. Light mode unchanged throughout.
--ai-link).text-brand-primary/secondaryandfg-brand-*(incl._alt, the tab underline) were saturatedbrand-500/ gray in dark. Now the light blue-300 link tone. Fixes over-saturated active tab text + underline and other brand-blue accents.utility-error/warning50·100 →500 @16%, 200 →500 @35%border, 500/700 → 400-step text (were soliderror-950/warning-950dark-on-dark fills). Fixes the muddy AttentionBadgeChip ("Owner Missing" / "Certification Expired") → subtle tint chip.filter-select.tsxactive-selection border usedafter:outline-brand(stays brand-blue in dark). Addeddark:after:outline-brand_alt→ neutral gray-700 in dark; light stays brand.All three reach Collate automatically via the core-components submodule.
Values (dark) — matched to Collate #6491
ai-mode-theme.csstext-brand-primary/secondary,fg-brand-*utility-error/warning-50/100utility-error/warning-200utility-error/warning-500/700brand_alt)Testing
ai-mode-theme.css@ PR-head and mapped to the exact core tokens the components consume (Tabs, Badge, FilterSelect).--tw-*mirrors verified to chain the new dark values.The PR appears safe to merge; no actionable correctness, security, or repository-rule violations remain.
Summary
This PR aligns shared UI colors and affected Data Quality surfaces with the dark-mode palette while preserving light-mode values.
Reviews (10) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..."