Repository navigation
chore(ui): verify theme propagation and add audit warnings - #33254
Merged
Merged
Conversation
shah-harshit
requested review from
ShaileshParmar11,
chirag-madlani and
karanh37
as code owners
September 13, 2026 08:50
shah-harshit
requested review from
a team,
akash-jain-10,
harshach and
tutte
as code owners
September 13, 2026 12:14
Contributor
shah-harshit
dismissed stale reviews from pellejador and karanh37
via
September 15, 2026 13:08
ead06cc
Code Review ✅ ApprovedAdds theme propagation tests and audit warnings for design token migrations. ThemeProvider tests verify root theme governance and customer brand variable persistence across theme changes, while new scanner checks classify 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 |
|
chirag-madlani
approved these changes
Sep 18, 2026
pellejador
approved these changes
Sep 18, 2026
akash-jain-10
approved these changes
Sep 18, 2026
14 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Describe your changes:
Part of open-metadata/openmetadata-collate#6566
Closes open-metadata/openmetadata-collate#6567
Gate contract: open-metadata/openmetadata-collate#6564
Token foundation: #33249
This PR combines two small shared-theme foundation slices:
ThemeProvidergoverns application and portal content.tw:dark:*overrides and unsupported--ai-*theme tokens as review warnings.The reference to #6566 is intentionally non-closing because that ticket also owns the separate Collate pre-paint restoration change. Existing audit errors remain errors; only the new migration rules are warning-level and non-blocking.
Type of change:
High-level design:
The ThemeProvider tests exercise the existing provider through its public context and observable DOM/root-style effects. Portal content is rendered through
createPortalintodocument.body, while the active theme remains owned bydocument.documentElement.The token scanners reuse their existing finding and severity model. They classify
tw:dark:*and--ai-*occurrences as warnings so migration debt is visible without blocking incremental AI-mode work. Existing hardcoded-value error classifications and exit behavior are unchanged.There are no production runtime, token-value, component, domain, generated-file, API, or submodule changes.
Tests:
Use cases covered
document.bodydo not receive copied theme classes.--ai-*tokens produce warnings, not errors.Unit tests
yarn test src/context/UntitledUIThemeProvider/theme-provider.test.tsx --runInBand— 15 tests passed.node scripts/design-tokens/scanner.test.js— 28 checks passed.node --test scripts/design-tokens/tw-scanner.test.js— 3 tests passed.node scripts/tw-audit.js scripts/design-tokens/tw-scanner.test.js— 0 errors and 4 expected warnings; exit 0.Backend and ingestion integration tests
Playwright tests
Local verification
git diff --checkpassed.UI screen recording / screenshots:
Not applicable. This PR adds regression coverage, audit warnings, and contributor guidance without changing rendered UI.
Checklist: