Repository navigation
Fixes 6035: Make ontology graph rendering theme-aware - #32439
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
✅ Playwright Results — workflow succeededValidated commit ✅ 606 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) 33m 53s ⏱️ Max setup 4m 32s · max shard execution 15m 14s · max shard-job elapsed before upload 18m 46s · reporting 5s 🌐 228.32 requests/attempt · 2.60 app boots/UI scenario · 13.24% 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 |
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
…heme-rendering # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/OntologyExplorer/hooks/useGraphData.ts # openmetadata-ui/src/main/resources/ui/src/components/OntologyExplorer/hooks/useOntologyGraph.ts # openmetadata-ui/src/main/resources/ui/src/components/OntologyExplorer/utils/graphStyles.ts
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
|



Describe your changes:
Part of open-metadata/openmetadata-collate#6035
This makes Ontology Explorer's G6 canvas respond to light/dark theme changes without a page reload. Graph nodes, combos, edges, labels, badges, borders, halos, and shadows now use semantic color tokens resolved at the canvas boundary with concrete fallbacks.
The theme provider also applies the root theme before canvas consumers render, including the initial stored/system theme, so resolved colors cannot lag one render behind the selected theme.
The graph projection and runtime update helpers were decomposed to remove all changed-file ESLint warnings while preserving the existing layout and incremental-update behavior.
Screen.Recording.2026-09-02.at.6.25.28.PM.mov
Type of change:
High-level design:
useTheme()so changing the theme rebuilds the resolved G6 data.No migration or backward-compatibility concerns.
Tests:
Use cases covered
Unit tests
useGraphData.test.ts,graphStyles.test.ts, andtheme-provider.test.tsx.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording / screenshots:
Not included in this stacked implementation slice. End-to-end visual review will cover the complete dark-mode stack.
Checklist:
Fixes <issue-number>: <short explanation>.Improvement