Skip to content

fix(ui): dark mode for DQ & Observability component surfaces (#6459) - #33586

Merged
shah-harshit merged 12 commits into
mainfrom
6459-dq-observability-dark-batch
Sep 20, 2026
Merged

shah-harshit merged 12 commits into
mainfrom
6459-dq-observability-dark-batch

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Refs open-metadata/openmetadata-collate#6459
Gate contract: open-metadata/openmetadata-collate#6564
Depends on #33597 (global legacy-var bridge + app background).

DQ/Observability component-level dark-mode fixes — swaps non-adapting Tailwind color classes to semantic ones on the .tsx surfaces (bg-white→tw:bg-primary, bg-gray-50→tw:bg-secondary, text-gray-500→tw:text-tertiary, border-gray-300→tw:border-secondary, bg-gray-blue-25→bg-secondary_subtle, bg-blue-50→bg-utility-blue-50).

The .less-surface theming for these pages is delivered globally by the legacy-var bridge in #33597 (kept separate per review) — hence the dependency. Light mode unchanged.

Type of change:

  • Improvement

Checklist:

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding correctness, security, or repository-rule violations.

Summary

Updates Data Quality and Observability surfaces to use theme-aware semantic color tokens.

  • Replaces fixed light-theme backgrounds, text colors, and borders with semantic Tailwind utilities.
  • Updates dashboard styling assertions for the new semantic surface token.
  • Adds a dark-mode-only border override for Data Quality page containers.

Reviews (8) · Last reviewed commit: "Merge branch 'main' into 6459-dq-observa..."

Combined dark-mode pass over the remaining Data Quality & Observability
AI-mode routes (workstream open-metadata/openmetadata-collate#6459). Swaps
compile-time fixed-hex LESS palette vars and raw Tailwind palette classes
for adaptive semantic / auto-inverting utility tokens; light-mode values
are preserved (exact for status colors) and only the resolved dark values
change.

Covers:
- #6533 Add/Edit Test Case: TestCaseFormV1.less, add-test-suite-pipeline
  (@grey-*/@Blue-22 surfaces), AddTestCaseList bg-white -> tw:bg-primary.
- #6531 Incident Manager: dimensionality heatmap legend + tooltip, failed
  sample-data diff rows, incident/result tab surfaces (@grey-*/status hex
  -> semantic + utility-{success,error,warning}).
- #6532 Table DQ + Profiler: ProfilerLatestValue, TestSummaryGraph,
  no-profiler-banner, table-profiler (neutral greys -> semantic roles).
- #6538 Pipeline Observability: data-observability-tab border.
- #6530 Alerts: AlertAiNotificationSection bg-white + text-gray-500.

Status hexes map to exact-match auto-inverting utility tokens
(@red-22=error-500, @warning-400=warning-400, @Green-9=success-50,
@Blue-22=blue-light-50, @alert-error-icon-bg-1=error-100). Neutral greys
map to --color-bg/border/text semantic roles.

Deferred (categorical, tracked for the token foundation): the 5-level
incident severity ramp and the heatmap data-viz white-fade gradients in
incident-manager.style.less / DimensionalityHeatmap.less need shared dark
palette values rather than per-page overrides.

Verify-only (no offenders found; AI routes already on semantic tokens):
#6540 Test Suites list, #6535 Test Case details/versions, #6537 Test
Library, #6536 Suite details/ingestion.

Refs open-metadata/openmetadata-collate#6533 open-metadata/openmetadata-collate#6531 open-metadata/openmetadata-collate#6532 open-metadata/openmetadata-collate#6538 open-metadata/openmetadata-collate#6530 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 86a77e4fe56f06683a4ecd06045f4fad4f272218 in Playwright run 35431107372, attempt 1.

✅ 4513 passed · ❌ 0 failed · 🟡 3 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) 36m 5s

⏱️ Max setup 4m 31s · max shard execution 19m 42s · max shard-job elapsed before upload 22m 49s · reporting 16s

🌐 222.82 requests/attempt · 2.23 app boots/UI scenario · 40.61% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 40.61% (convergence target: at most 15%).
  • Browser traffic was 222.82 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.23 per UI scenario (10695 boots / 4797 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 66 0 0 0 0 0
✅ Shard advanced-search-02 64 0 0 0 0 0
✅ Shard chromium-01 157 0 0 0 0 0
✅ Shard chromium-02 142 0 0 1 0 0
✅ Shard chromium-03 191 0 0 0 0 0
✅ Shard chromium-04 141 0 0 0 0 0
✅ Shard chromium-05 143 0 0 0 0 0
🟡 Shard chromium-06 149 0 1 0 0 0
✅ Shard chromium-07 115 0 0 0 0 0
✅ Shard chromium-08 204 0 0 0 0 0
✅ Shard chromium-09 178 0 0 0 0 0
✅ Shard chromium-10 155 0 0 0 0 0
✅ Shard chromium-11 144 0 0 0 0 0
✅ Shard chromium-12 146 0 0 0 0 0
✅ Shard chromium-13 147 0 0 0 0 0
✅ Shard chromium-14 152 0 0 0 0 0
✅ Shard chromium-15 166 0 0 0 0 0
✅ Shard chromium-16 152 0 0 0 0 0
✅ Shard chromium-17 160 0 0 0 0 0
✅ Shard chromium-18 201 0 0 0 0 0
✅ Shard chromium-19 133 0 0 0 0 0
✅ Shard chromium-20 153 0 0 0 0 0
✅ Shard chromium-21 181 0 0 0 0 0
🟡 Shard chromium-22 169 0 1 0 0 0
✅ Shard chromium-23 146 0 0 0 0 0
🟡 Shard chromium-24 162 0 1 0 0 0
✅ Shard chromium-25 152 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 68 0 0 0 0 0
✅ Shard import-export-02 82 0 0 0 0 0
✅ Shard ingestion-01 52 0 0 0 0 0
✅ Shard ingestion-02 46 0 0 0 0 0
✅ Shard reindex-01 40 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 3 flaky test(s) (passed on retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify LineageSearchSelect in lineage mode (shard chromium-06, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard chromium-22, 1 retry)
  • Features/UserProfileOnlineStatus.spec.ts › Should show "Active recently" for users active within last hour (shard chromium-24, 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

shah-harshit and others added 3 commits September 18, 2026 21:22
The AI-mode Data Quality summary shells already use adaptive semantic
tokens, but the shared widgets they embed (chart backgrounds, status
cards, statistic widgets, test-case status chart) baked compile-time
fixed-hex LESS palette vars (@grey-26/@grey-9/@grey-2/@grey-50, @Blue-13,
@GREEN-*, @RED-*, @yellow-10, @alert-*) that cannot follow the theme, so
those surfaces stayed light in dark mode.

Swap the fixed palette vars for adaptive tokens:
- neutral surfaces/borders -> semantic --color-bg-secondary_subtle /
  --color-bg-secondary / --color-border-secondary
- status colors -> --tw-color-utility-{error,success,warning,blue}-*,
  which auto-invert in dark (mirrors the merged StatusCardWidget
  precedent). Every status mapping is an exact light-value match, so
  light mode does not regress.
- AI dashboard section tint tw:bg-gray-blue-25 (fixed light) ->
  tw:bg-utility-gray-blue-50 (auto-inverting).

Already-adaptive utility-gray vars are left as-is. Categorical chart/
status data colors are intentionally unchanged.

Refs open-metadata/openmetadata-collate#6539 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Address review on the DQ summary dark-mode PR:

- The coverage/all-tests chart icon mapped @blue-500 (#0ba5ec, cyan) to
  utility-blue-500 (#2e90fa), a perceptible cyan->blue hue shift in light
  mode. #0ba5ec is exactly the blue-light-500 ramp, so switch the icon fg
  to utility-blue-light-500 and its background (@Blue-13 #e0f2fe) to
  utility-blue-light-100 (#e0f2fe) — both now exact light-value matches.
- DataQualityDashboard.test.tsx still asserted the removed bg-gray-blue-25
  classes; update both expectations to bg-utility-gray-blue-50 so the
  focused test matches the component. Suite passes (8/8).

Refs open-metadata/openmetadata-collate#6539 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The dimension-count chip in the AI-mode Test Cases list used the raw
palette class tw:bg-blue-50, which does not invert in dark mode, so its
light-blue background stayed fixed while tw:text-primary flipped to a
light foreground — light-on-light, unreadable in dark.

Swap to tw:bg-utility-blue-50, which auto-inverts (light blue tint in
light, dark blue in dark) per colors.md §2.7, keeping text-primary
readable in both themes. Light mode is unchanged.

The rest of the Test Cases list (table header, filters, table shell) was
already on adaptive semantic tokens.

Refs open-metadata/openmetadata-collate#6534 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@shah-harshit shah-harshit changed the title fix(ui): theme DQ authoring, incidents, profiler & alerts for dark mode fix(ui): dark mode for Data Quality & Observability AI routes (#6459) Sep 18, 2026
Address greptile P2: bg-utility-gray-blue-50 resolved to #f8f9fc in light,
shifting the section-card surface from the original bg-gray-blue-25
(#fcfcfd). Use tw:bg-secondary_subtle instead — light #fdfdfd (effectively
unchanged) and a proper dark surface, matching the LESS card surfaces in
this PR. Focused test updated; suite passes 8/8.

Refs open-metadata/openmetadata-collate#6539 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@shah-harshit

Copy link
Copy Markdown
Contributor Author

Addressed the P2 light-drift comments (2d6dfd4):

  • Dashboard section cards: switched bg-utility-gray-blue-50 → tw:bg-secondary_subtle. Light resolves to #fdfdfd vs the original #fcfcfd (Δ1, imperceptible) and it now carries a proper dark surface, consistent with the LESS card surfaces in this PR. Test updated, suite 8/8.
  • Success green swaps: keeping utility-success-700/-100. The light deltas are sub-perceptual — #027a48→#067647 is rgb(2,122,72)→(6,118,71), and #d1fadf→#dcfae6 ≈ Δ6 — there is no exact-light token for #027a48, and only the success-* utility adapts to dark (the old fixed @green-* vars stayed light-on-dark). Semantic correctness + dark adaptation outweighs an invisible light shift here.

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

Replace the per-file dark-mode token swaps with a single global bridge so
the fixed-hex legacy LESS palette vars adapt to dark mode everywhere they
are used, with zero light-mode drift and no per-component edits.

- variables.less: the 27 fixed-hex vars this workstream touched
  (@grey-1/2/5/7/9/15/25/26/50, @green-9/10/12/100/500, @red-9/10/22,
  @yellow-10, @blue-13/22/500, @warning-100/400, @alert-*) become
  `@x: var(--legacy-x, #originalHex)`. Light resolves to the exact
  original hex (no drift — fixes the greptile light-shift comments); dark
  picks up the override.
- app.less: one `.dark-mode` block maps each `--legacy-*` to the semantic
  / auto-inverting utility token (neutrals -> --color-bg/border/text
  roles, status -> utility-{success,error,warning,blue-light}-*).
- Revert the individual DQ/Profiler/IncidentManager/Alerts LESS files back
  to origin/main — they now adapt automatically through the bridge.

Verified: variables.less and a consumer (.less) compile via lessc, emitting
`var(--legacy-*, #hex)`; no legacy var is used in a LESS color function or
operation (checked app-wide), so the var() substitution is safe. @black
left literal (mostly non-DQ, app-wide). Categorical severity/heatmap ramps
still deferred to the token foundation.

Raw Tailwind palette classes in TSX (bg-white, bg-gray-50, text-gray-500,
border-gray-300, bg-gray-blue-25) keep their per-file semantic swaps — they
are not LESS vars and have no global bridge.

Refs open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@shah-harshit shah-harshit changed the title fix(ui): dark mode for Data Quality & Observability AI routes (#6459) fix(ui): dark mode for DQ & Observability via global legacy-var bridge (#6459) Sep 18, 2026
@shah-harshit

Copy link
Copy Markdown
Contributor Author

Reworked into a global legacy-var bridge (06c0246) and reverted the per-file LESS swaps:

  • variables.less: 27 fixed-hex vars → var(--legacy-x, #origHex) (light byte-exact).
  • app.less .dark-mode: maps --legacy-* → semantic/utility tokens for dark.
  • Reverted all per-component DQ/Profiler/IncidentManager/Alerts .less edits — they adapt through the bridge now.

This also fully resolves the earlier P2 light-drift comments: light mode is the exact original hex via the var() fallback, so there is no shift for the success greens or the dashboard cards. TSX raw palette classes keep their per-file semantic swaps (no global hook for Tailwind palette classes).

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

The variables.less/app.less global bridge and the dark app-background fix now
live in #33597 (core/global scope). This DQ PR keeps only its component (.tsx)
changes and depends on #33597 for the .less-surface dark theming.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@shah-harshit shah-harshit changed the title fix(ui): dark mode for DQ & Observability via global legacy-var bridge (#6459) fix(ui): dark mode for DQ & Observability component surfaces (#6459) Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@shah-harshit

Copy link
Copy Markdown
Contributor Author

Both P2 light-drift comments are resolved after splitting the token bridge into #33597:

This PR now carries only the DQ consumer changes (TSX raw-class → semantic swaps); the global variables.less/app.less bridge lives in #33597.

@shah-harshit shah-harshit self-assigned this Sep 18, 2026
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 780 → 780
- 0 added, 0 removed, 12 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/constant/config.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/permission.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/access-control/PoliciesClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/access-control/RolesClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/base.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/glossary/Glossary.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/glossary/GlossaryTerm.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/user/UserClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/admin.ts
  … and 2 more

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@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), 11 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), 11 warning(s) across 5 changed file(s).

Count Rule
7 react-hooks/exhaustive-deps
4 openmetadata-imports/no-lower-layer-page-imports
All findings
Location Rule Message
🟡 src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:296:34 react-hooks/exhaustive-deps React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead.
🟡 src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:329:35 react-hooks/exhaustive-deps React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead.
🟡 src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:638:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchTestCases'. Either include it or remove the dependency array.
🟡 src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:663:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'fetchColumnOptions'. Either exclude it or remove the dependency array.
🟡 src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:760:6 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 'items'. Either exclude it or remove the dependency array.
🟡 src/components/DataQuality/IncidentManager/FailedTestCaseSampleData/FailedTestCaseSampleData.component.tsx:34: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.
🟡 src/components/DataQuality/IncidentManager/FailedTestCaseSampleData/FailedTestCaseSampleData.component.tsx:236:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchFailedTestCaseSampleData'. Either include it or remove the dependency array.
🟡 src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx:48: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.
🟡 src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx:481:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'collectInlineIncidentStatuses' and 'fetchTestCasePermissions'. Either include them or remove the dependency arra
🟡 src/components/Database/Profiler/TestSummary/TestSummaryGraph.tsx:58: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.
🟡 src/components/observability/Alerts/AlertAiNotificationSection.component.tsx:29: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

@gitar-bot

gitar-bot Bot commented Sep 19, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk

Replaces fixed background, text, and border colors with semantic design tokens across DQ and Observability component surfaces to enable dark-mode support while preserving light-mode appearance. 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.

3 participants