Skip to content

fix(ui): align AI dark-mode brand + status-chip + filter-border tokens with palette guideline (#6491) - #33751

Merged
shah-harshit merged 12 commits into
mainfrom
ai-dark-brand-status-tokens
Sep 22, 2026
Merged

shah-harshit merged 12 commits into
mainfrom
ai-dark-brand-status-tokens

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

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.

  • Brand text/foreground → blue-300 (--ai-link). text-brand-primary/secondary and fg-brand-* (incl. _alt, the tab underline) were saturated brand-500 / gray in dark. Now the light blue-300 link tone. Fixes over-saturated active tab text + underline and other brand-blue accents.
  • Status chips → 16% tint + 400 text. utility-error/warning 50·100 → 500 @16%, 200 → 500 @35% border, 500/700 → 400-step text (were solid error-950/warning-950 dark-on-dark fills). Fixes the muddy AttentionBadgeChip ("Owner Missing" / "Certification Expired") → subtle tint chip.
  • Filter-select active border neutral in dark. filter-select.tsx active-selection border used after:outline-brand (stays brand-blue in dark). Added dark: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.css

Token Was Now
text-brand-primary/secondary, fg-brand-* brand-500 / gray-300 blue-300 (hover blue-200)
utility-error/warning-50/100 error-950 / warning-950 500 @ 16%
utility-error/warning-200 800 500 @ 35%
utility-error/warning-500/700 500 / 300 400
filter active border (dark) brand-400 gray-700 (brand_alt)

Testing

  • Values read from Collate 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.
  • Build/Storybook not run in this worktree (no node_modules) — verify in CI Storybook side-by-side.

RetriggerConfidence Score: 5/5

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.

  • Maps dark brand text and foreground accents to the lighter brand link ramp.
  • Converts dark status colors to translucent semantic tints, borders, and readable foreground steps.
  • Uses the neutral dark active-filter outline and semantic surface tokens.
  • Adds concrete fallbacks to entity-palette custom properties for consumers that do not define those properties.

Reviews (10) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..."

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).
@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 22, 2026
@shah-harshit shah-harshit self-assigned this Sep 22, 2026
@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 72%
72.47% (103655/143028) 57.59% (63128/109616) 58.64% (20663/35237)

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 39dc3314364125a7eb3c472dc306513edfe69e58 in Playwright run 35710194666, attempt 1.

✅ 545 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Common shard skew was 35.93% (convergence target: at most 15%).
  • Browser traffic was 205.77 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 1.82 per UI scenario (1057 boots / 580 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 148 0 0 0 0 0
✅ Shard chromium-02 155 0 0 0 0 0
✅ Shard chromium-03 168 0 0 0 0 0
✅ Shard import-export-01 26 0 0 0 0 0
✅ Shard ingestion-01 33 0 0 0 0 0
✅ Shard reindex-01 15 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

utility-success 50/100 -> 500 @16% tint, 200 -> 500 @35% border, 500/700 ->
400-step text (were solid success-950 dark-on-dark fills) — matches the
error/warning treatment so green status badges (Metadata tag, approve check)
read as a subtle tint chip in dark. Light unchanged.
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.
@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), 1 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), 1 warning(s) across 1 changed file(s).

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
@gitar-bot

gitar-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown
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.

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.

2 participants