Skip to content

fix(ui): apply semantic dark-theme data display colors - #33294

Merged
shah-harshit merged 8 commits into
mainfrom
6570-dark-theme-data-display
Sep 15, 2026
Merged

shah-harshit merged 8 commits into
mainfrom
6570-dark-theme-data-display

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Closes open-metadata/openmetadata-collate#6570
Gate contract: open-metadata/openmetadata-collate#6564
Token foundation: #33249
Color prototypes: #33150 and open-metadata/openmetadata-collate#6491

This migrates shared data-display primitives to the approved semantic dark-theme roles:

  • Cards and table-card shells use bg-surface, border-subtle, and semantic elevation roles.
  • Modern neutral badges use the shared surface and subtle-border roles; badge addons no longer use a raw gray palette utility.
  • Card pagination replaces its fixed gray-blue border and raw RGBA shadow with shared border, surface, and shadow roles.
  • Existing table row, selection, hover, text, and skeleton treatments remain unchanged because they already use theme-aware semantic utilities.
  • Component specs and the Card footer story now match the shared component contract.
  • Focused regression tests cover Card variants, modern Badge variants, TableCard, and PaginationCardWithControls.

Expanded scope — global token-foundation follow-up (bundled per request; owned by open-metadata/openmetadata-collate#6565, not data-display). Runtime Storybook review found the merged foundation (#33249) shipped values that did not match the AI dark-mode recording (source of truth). Corrected here:

  • Dark palette re-tinted flat-neutral -> blue-tinted to match the recording: page #141414->#0c0e12, canvas #191919->#13161b, surface #222222->#22262f, raised/control-border #2e2e2e->#373a41; text secondary/tertiary/primary to #cecfd2/#94979c/#f7f7f7.
  • Border roles corrected: border-primary Gray 500->Gray 700, border-hover Gray 400->Gray 600 (were two steps too light vs the Gate 0 contract).
  • Dark alpha + shadow tokens made build-time resolved (--alpha(theme(...)), theme(--shadow-*)) so status backgrounds, border-subtle, and semantic shadows can no longer resolve to transparent/none in the prefixed theme scope.
  • Utility-color dark layer bridged: mirrored all 137 dark --color-utility-* remaps into --tw-color-utility-* and added --tw-outline-color-subtle, so colored Badges/Cards and tw:outline-subtle actually flip in dark.
  • Light mode is unchanged (all edits scoped to .dark-mode). Gate 0 MSSQL Lineage query #6564 and Metadata to ES pipeline minor changes #6565 descriptions updated to the corrected values. A theme-contract guard now fails CI if any dark utility-color remap is left unmirrored.

If reviewers prefer, the token-foundation edits can be split into a dedicated PR stacked on #33249; kept here per request.

Type of change:

  • Improvement
  • Documentation

High-level design:

Shared data-display components select roles rather than light/dark values. bg-surface, border-subtle, and shadow-card resolve through the root theme contract, so theme switching requires no component-level dark selectors. Status badge palettes continue to use the existing utility status tokens because those tokens already define theme-aware categorical treatments.

Component APIs, layout, selection, sorting, pagination behavior, and status meanings are unchanged. The migration contains no --ai-* tokens, raw theme colors, page-local palettes, or explicit dark-mode selectors.

Tests:

Use cases covered

  • Default, elevated, and outlined cards use the shared surface role.
  • Card and TableCard dividers use the subtle-border role.
  • Modern neutral badges use theme-aware surface, border, and addon roles.
  • Card pagination uses shared surface, border, and elevation roles.
  • Existing table selection and accessibility behavior remains covered.

Unit tests

  • Added focused core-component tests.
  • Full core-components suite: 138 tests passed across 16 files.

Backend integration tests

  • Not applicable; no backend API changes.

Ingestion integration tests

  • Not applicable; no ingestion changes.

Playwright (UI) tests

  • Not applicable; shared style-role changes are covered by component tests and existing Storybook stories.

Static verification

  • Core-components TypeScript check passed.
  • Core-components production build passed, including declaration generation.
  • Focused ESLint and Prettier checks passed.
  • Theme-contract checks passed; one existing token-reference completeness failure for --om-letter-spacing-wide remains on origin/main and is addressed by fix(ui): apply semantic dark-theme component colors #33255.
  • git diff --check passed.

UI screen recording / screenshots:

Not attached. Existing Card, Badge, Table, and Pagination Storybook stories exercise these shared primitives; this change replaces color sources without changing component layout or interaction behavior.

Checklist:

  • I have read the CONTRIBUTING document.
  • The PR references the implementation ticket, Gate Zero contract, merged token foundation, and color prototypes.
  • No raw theme-sensitive colors or explicit dark overrides were added.
  • Existing component APIs and interaction behavior are unchanged.
  • JSON Schema migrations are not applicable.
  • I have added unit tests for the changed shared-component contracts.

@shah-harshit shah-harshit added the UI UI specific issues label Sep 15, 2026
@shah-harshit shah-harshit added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Sep 15, 2026
@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 15, 2026
@shah-harshit shah-harshit self-assigned this Sep 15, 2026
@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 6fb33be22daef0865dd106de43ea50296e834770 in Playwright run 34945582578, attempt 1.

✅ 4498 passed · ❌ 0 failed · 🟡 9 flaky · ⏭️ 1 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) 57m 11s

⏱️ Max setup 5m 21s · max shard execution 25m 0s · max shard-job elapsed before upload 28m 17s · reporting 26s

🌐 219.17 requests/attempt · 2.24 app boots/UI scenario · 46.13% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 46.13% (convergence target: at most 15%).
  • Browser traffic was 219.17 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.24 per UI scenario (10651 boots / 4764 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 130 0 0 0 0 0
🟡 Shard chromium-01 159 0 1 0 0 0
🟡 Shard chromium-02 151 0 1 0 0 0
✅ Shard chromium-03 176 0 0 0 0 0
✅ Shard chromium-04 169 0 0 0 0 0
✅ Shard chromium-05 185 0 0 0 0 0
🟡 Shard chromium-06 165 0 1 0 0 0
✅ Shard chromium-07 265 0 0 0 0 0
🟡 Shard chromium-08 171 0 1 0 0 0
🟡 Shard chromium-09 163 0 1 0 0 0
✅ Shard chromium-10 191 0 0 0 0 0
✅ Shard chromium-11 164 0 0 0 0 0
🟡 Shard chromium-12 147 0 1 0 0 0
✅ Shard chromium-13 200 0 0 0 0 0
✅ Shard chromium-14 192 0 0 0 0 0
✅ Shard chromium-15 202 0 0 1 0 0
✅ Shard chromium-16 175 0 0 0 0 0
✅ Shard chromium-17 195 0 0 0 0 0
✅ Shard chromium-18 213 0 0 0 0 0
✅ Shard chromium-19 160 0 0 0 0 0
🟡 Shard chromium-20 184 0 1 0 0 0
🟡 Shard chromium-21 167 0 1 0 0 0
✅ Shard chromium-22 147 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 80 0 0 0 0 0
✅ Shard import-export-02 70 0 0 0 0 0
✅ Shard ingestion-01 46 0 0 0 0 0
🟡 Shard ingestion-02 47 0 1 0 0 0
✅ Shard reindex-01 28 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 9 flaky test(s) (passed on retry)
  • Pages/UserDetails.spec.ts › Admin user can edit teams from the user profile (shard chromium-01, 1 retry)
  • Flow/ObservabilityAlerts.spec.ts › Pipeline Alert (shard chromium-02, 1 retry)
  • Pages/Lineage/DataAssetLineage.spec.ts › verify create lineage for entity - Mlmodel (shard chromium-06, 1 retry)
  • Features/AIMode/CustomPropertiesPanel.spec.ts › edits a custom property display name and description (shard chromium-08, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify LineageSearchSelect in lineage mode (shard chromium-09, 1 retry)
  • Flow/MetricListSearch.spec.ts › typing in the search box filters the metric list server-side (shard chromium-12, 1 retry)
  • Features/DomainFilterQueryFilter.spec.ts › Domain assets tab should NOT show assets from other domains (shard chromium-20, 1 retry)
  • Pages/Lineage/DataAssetLineage.spec.ts › verify create lineage for entity - Worksheet (shard chromium-21, 1 retry)
  • Features/IncidentManager.spec.ts › Complete Incident lifecycle with table owner (shard ingestion-02, 1 retry)

📦 Download artifacts

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

The merged token foundation (#33249) shipped a flat neutral dark ramp
(#141414/#222222/#2e2e2e), but the approved AI dark-mode design (Collate
prototype recording + palette guideline) uses a blue-tinted neutral ramp.
Re-tint the .dark-mode gray steps to the approved values so every dark
surface, text, and border role that aliases them follows automatically:

  page   #141414 -> #0c0e12    surface #222222 -> #22262f
  canvas #191919 -> #13161b    raised  #2e2e2e -> #373a41

Also corrects two border roles that shipped two steps too light versus the
Gate 0 contract: border-primary gray-500 -> gray-700, border-hover
gray-400 -> gray-600.

Light mode is untouched (changes are scoped to .dark-mode). Contract test
assertions and the color spec are updated; generated token files regenerated.

Refs open-metadata/openmetadata-collate#6565 open-metadata/openmetadata-collate#6564

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
shah-harshit and others added 2 commits September 15, 2026 12:17
Card, TableCard and Badge draw their subtle edge with `tw:outline-subtle`
(replacing outline-secondary/outline-primary), but the outline-color
namespace never defined a `subtle` role. Tailwind emitted no color, so the
outline fell back to `currentColor` (the text color) instead of the subtle
border. Add `--outline-color-subtle` to both the @theme and .dark-mode
blocks, aliasing `--color-border-subtle` exactly like `--border-color-subtle`.

Add a theme-contract assertion for the token in both themes; the existing
component tests only asserted the class string was present, which passed
despite the broken styling.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
karanh37
karanh37 previously approved these changes Sep 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 72%
72.83% (102385/140580) 57.57% (62025/107729) 58.81% (20330/34567)

@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