Repository navigation
Fixes open-metadata/openmetadata-collate#8792: Dark-mode logo and monogram support in Platform Settings > Theme - #38435
Conversation
Add optional customLogoDarkUrlPath and customMonogramDarkUrlPath to the logo configuration. BrandImage uses the dark variant only when the dark theme is active and one is set, falling back to the light URL, then the brand default; pre-auth pages read the theme the boot script applied. The AI shell sidebar now shows an admin-set custom logo (it showed only the build's mark), so the dark variant is visible after sign-in. Rebuild the Theme view and edit form to the design: light/dark previews with captions, an add/remove dark mode version field, live invalid-URL and image-load errors that block saving, a checking state, and a best-effort "hard to see in dark mode" warning.
- Only logo URLs edited in this session block Save, so a saved logo that no longer loads cannot hold up an unrelated theme change. - The classic Appearance page keeps the dark-mode URLs when it saves. - The AI sidebar resolves the custom logo for the active theme and keeps the build's sidebar mark when nothing applies. - Update the Platform Settings Playwright theme flow for the new copy, the image check and the dark-logo round trip.
❌ 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 |
Save no longer waits on the CORS image request used for the hard-to-see-in-dark-mode warning; the warning arrives separately.
Replace the Moon01 glyph with the Moon SVG from the design.
…r prop Add ADR:2026-11-23-dark-logo-variants-fall-back-to-the-light-url for the fallback, merge-on-write and Save-blocking rules. Colour logo field messages and captions through Typography's color prop.
…round The sidebar wordmark (built-in or custom) fills the 32px header row instead of 24px. The app-install connector line now stops either side of the tick, so the tick needs no background to mask it.
The header row and wordmark grow from 32px to 40px, matching the 40px BrandImage in the classic left sidebar.
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findingsAdding optional dark-theme logo settings changes configuration and brand rendering across UI surfaces; incorrect theme selection could display an unsuitable logo. Adds optional dark-mode logo and monogram URLs in Platform Settings > Theme, with theme-aware rendering across the AI sidebar, signed-out pages, and app-install screens. The new contract and fallback rule are now documented in a decision record, and Typography text colour now uses the color prop. No open issues remain. ✅ 2 closed✅ Quality: New dark-logo schema contract and fallback rule are not recorded
✅ Quality: Typography text colour set via className instead of the color prop
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
* fix(ui): align entity header badges with title actions (#38436) The badges box was pinned to the top of the header row while the title actions were centred against the 40px service logo, leaving the DQ alert icon and status badge ~4px higher than the copy/learning icons. Render badges in the same h-8 actions row instead. (cherry picked from commit 7ccb672) * Fixes #36069: Keep Browse Estate tree expanded to the remaining path after removing a browse chip (#38470) * fix(ui): keep Browse Estate tree expanded to the remaining browse path after removing a chip Removing a browse chip rebuilds the explore tree from its static roots and re-keys every lazily loaded level, so the previous expansion was lost and the tree collapsed to the service-type level. The tree now expands the loaded ancestors of the active browsePath level by level, which also makes browse deep links and reloads open at the browsed node. Fixes #36069 * fix(ui): expand the category root holding the browse path on reload Category roots carry no filterField, so a browse path outside the default-expanded Databases root (e.g. a dashboard service) never had its root opened on reload or deep link. Under a browse path each root's totalCount is scoped to that path, so expand the roots with matches. * fix(ui): expand category roots only once their counts match the browse path Selecting a tree node changes browsePath before the root counts refresh, so the stale unfiltered totals opened every populated category. Track the browsePath the root counts were refreshed for and ignore root counts until they match the current path. (cherry picked from commit 6aeece9) * Fixes open-metadata/openmetadata-collate#8792: Dark-mode logo and monogram support in Platform Settings > Theme (#38435) * feat(ui): dark-mode logo and monogram in Platform Settings > Theme Add optional customLogoDarkUrlPath and customMonogramDarkUrlPath to the logo configuration. BrandImage uses the dark variant only when the dark theme is active and one is set, falling back to the light URL, then the brand default; pre-auth pages read the theme the boot script applied. The AI shell sidebar now shows an admin-set custom logo (it showed only the build's mark), so the dark variant is visible after sign-in. Rebuild the Theme view and edit form to the design: light/dark previews with captions, an add/remove dark mode version field, live invalid-URL and image-load errors that block saving, a checking state, and a best-effort "hard to see in dark mode" warning. * fix(ui): address self-review of dark-mode logos - Only logo URLs edited in this session block Save, so a saved logo that no longer loads cannot hold up an unrelated theme change. - The classic Appearance page keeps the dark-mode URLs when it saves. - The AI sidebar resolves the custom logo for the active theme and keeps the build's sidebar mark when nothing applies. - Update the Platform Settings Playwright theme flow for the new copy, the image check and the dark-logo round trip. * fix(ui): mark a logo URL loaded before the optional contrast check Save no longer waits on the CORS image request used for the hard-to-see-in-dark-mode warning; the warning arrives separately. * chore(ui): use the design's Moon icon for the dark-mode preview captions Replace the Moon01 glyph with the Moon SVG from the design. * docs: record the dark-mode logo variant contract; use Typography color prop Add ADR:2026-11-23-dark-logo-variants-fall-back-to-the-light-url for the fallback, merge-on-write and Save-blocking rules. Colour logo field messages and captions through Typography's color prop. * style(ui): organize imports in LogoUrlField * fix(ui): enlarge the AI sidebar logo; drop the app-install tick background The sidebar wordmark (built-in or custom) fills the 32px header row instead of 24px. The app-install connector line now stops either side of the tick, so the tick needs no background to mask it. * fix(ui): show the AI sidebar logo at the classic sidebar's 40px The header row and wordmark grow from 32px to 40px, matching the 40px BrandImage in the classic left sidebar. (cherry picked from commit 8b18e8f)
Describe your changes:
Fixes open-metadata/openmetadata-collate#8792
Admins could set one logo and monogram URL, so a dark-ink logo disappeared on dark surfaces. This PR adds optional dark-mode logo and monogram URLs in Platform Settings → Theme (new settings modal) and renders the right variant everywhere the brand logo appears, based on the user's active theme.
logoConfiguration.jsongains optionalcustomLogoDarkUrlPathandcustomMonogramDarkUrlPath. No migration: both fields are optional and absent means "use the light URL".BrandImage): uses the dark URL only when the dark theme is active and a dark URL is set; otherwise the light URL, then the brand default. Classic mode is light-only, so it never changes there.ThemeProviderbut are dark when the#theme-restoreboot script applieddark-mode;useResolvedTheme()reads that root class (same asLoginClassBase), so these pages show the dark logo in dark mode.SidebarBrand) previously ignored custom logos and always showed the build's mark. It now shows the admin's custom logo/monogram when one applies to the active theme (still the build's sidebar mark otherwise). This is the only signed-in surface with a dark theme, so without it the dark variant would never be visible after sign-in.customLogoConfigfirst, so it no longer wipes the dark URLs set in the new modal (its Reset still clears everything).CustomLogoConfiguration.mdso it serves these docs (no other Collate change needed).Type of change:
High-level design:
LogoConfiguration; TS types regenerated (logoConfiguration.ts,uiThemePreference.ts). Java POJOs are generated at build.useResolvedTheme()(theme-provider.tsx) returns the provider's theme, or the rootdark-modeclass when no provider is mounted.BrandImagepicks(isDark && darkUrl) || lightUrl || default. All existingBrandImagecall sites (both sidebars, sign-in, register, forgot/reset password, both app-install screens) get theme-awareness with no call-site changes.components/discovery/personal-space/Profile/tabs/platform-settings/):ThemeSettings.utils.ts:LOGO_URL_FIELDSdescribes each field and its optionaldarkvariant; form ↔ config mapping includes the dark keys, so Save and Reset handle them.isHardToSeeOnDark()is a pure contrast function.useImageCheck.ts: debounced (400 ms) per-URL statusidle | invalid | loading | loaded | errorplus the contrast check.LogoUrlField.tsx: one field group (captions, input, previews, message, dark variant). The form is passed explicitly because coreHookFormprovides its own react-hook-form context.LogoPreview.tsx: light/dark tile. The dark tile scopesdark-modeso tokens resolve to the dark palette whatever the active theme; an empty URL previews the brand default.themeprop on everyBrandImagecall site (more churn, easy to miss one); blocking Save only on submit-time validation (the design asks for live feedback).Tests:
Use cases covered
Unit tests
BrandImage.test.tsx: dark/light selection and all fallbacks (19 tests).theme-provider.test.tsx:useResolvedThemewith no provider (root class) and with a provider.SidebarBrand.test.tsx: build mark when nothing is set, custom logo/monogram when set, dark-only logo used only in dark.AppearanceConfigSettingsPage.test.tsx: classic save keeps the dark URLs.ThemeSettings.test.tsx: dark previews, add/save/remove, liveinvalid/errormessages blocking Save for an edited URL, a saved failing URL not blocking Save, hard-to-see warning.ThemeSettings.utils.test.ts: round-trip incl. dark keys, Reset payload, http(s)-only URLs,isHardToSeeOnDark.useImageCheck.test.ts: idle/invalid/loading/loaded/error.npx jest src/components/discovery/personal-space/Profile src/components/platform/ai-shell src/components/common/BrandImage src/context/UntitledUIThemeProvider src/components/Sidebar src/components/MyData/LeftSidebar src/pages/LoginPage src/pages/ForgotPassword src/pages/ResetPassword src/pages/SignUp src/pages/AppInstall src/components/Settings/Applications→ 222 suites, 1,934 tests passed (before the review-fix commit); after it, the touched suites re-ran:platform-settings,AppearanceConfigSettingsPage,ai-shell/Sidebar,UntitledUIThemeProvider→ all passed (264 + 6 + Sidebar/theme suites).tsc --noEmit(only the existing unrelated error inOMSelectWidget.tsx), ESLint + Prettier on changed files clean,tw-auditno errors,yarn i18nproduces no changes.Backend integration tests
make java_affected ARGS="--scope focused"selected no tests.SystemResourceIT/ConfigResourceIT(which round-trip the theme preference) were not run locally; they run in the merge queue.PUT /api/v1/system/settingswith both dark fields → 200,GET /api/v1/system/settings/customUiThemePreferencereturns them.Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/ProfilePlatformSettings.spec.ts→ "theme: saves colours and logo, and Reset clears them": new invalid-URL copy with Save disabled, image URLs routed to a real SVG, and the add dark logo → save → Reset round trip.yarn lint:playwrightpasses (0 errors).CustomThemeConfig.spec.ts(classic page) is unaffected by UI changes.Manual testing performed
mvn -DskipTests install -pl openmetadata-service -am), ran migrations andOpenMetadataApplicationagainst a fresh MySQL database and a separate ES index prefix; UI viavitedev server.logo.svg(orange mark, dark text),logo-dark.svg(white text),mark.svg(dark ink),mark-dark.svg(orange),favicon.svg,broken.pdf; plus a slow endpoint for the checking state.UI screenshots:
Recording not attached (screenshots agreed instead).
Signed out (sign-in, register, forgot / reset password)
Dark-mode signed-out pages now show the dark monogram (previously they used the dark-ink light one).
Signed in — AI mode sidebar (custom logo, light vs dark variant)
Settings → Platform Settings → Theme
App install (BrandImage monogram)
Classic mode (light-only; stored dark preference ignored — no regression)
No custom logos (fallback to built-in brand marks)
Not captured: the favicon (browser tab chrome isn't visible in headless screenshots); it has no dark variant and its behaviour is unchanged.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.Reviewed
4c0bd75(two passes). Pass 1 found two 🔴, both fixed in4c0bd75: the Playwright theme test broken by the image check / Save blocking, and the classic page save dropping the dark URLs. Pass 2: no 🔴. Answered 🟡: (1)http:is accepted while the copy says https — kept to match the design copy without rejecting existinghttplogo URLs; (2) no IT asserts the two new keys round-trip — they are plain optional schema fields, verified manually against a server built from this branch (PUT → GET returns both).customLogoConfig, session-edited URLs block Save).🤖 Generated with Claude Code


Confidence Score: 5/5
The latest changes appear safe to merge.Summary
Adds optional dark-mode logos and monograms, theme-aware rendering, and live image checks in Theme settings. The latest changes raise the expanded sidebar logo and header to 40px.
Reviews (12) · Last reviewed commit: "fix(ui): show the AI sidebar logo at the..." · Reviewed by Greptile