Repository navigation
Fixes 35546: Align Preferences setting icons and pages, add Default Time Format to Platform Settings - #35547
Conversation
…tform settings - Add DefaultTime and DefaultAppMode core icons; settings cards draw plain core glyphs on a tinted tile via SettingMenuItem.iconColor - Glossary and Default Time Format pages follow the App Mode page layout (breadcrumb, page header, card) - Platform settings panel gains a Default Time Format page; Glossary uses the panel's section/row design - FieldRow/ReadOnlyRow isValueCompact lets short-value rows use the full width
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Provider field rendering, role mapping and SAML metadata parsing only assert UI state, so they move to the SettingsSso, SSOConfigurationForm, SsoRolesSelectField and LdapRoleMappingWidget Jest suites. Playwright keeps the Okta SAML metadata upload flow that hits backend validation. - orphaned sso helpers, constants and invalid SAML fixture removed - impact-map.generated.json regenerated; sso.ts suppression dropped
…st' into ui/settings-preferences-icons-layout
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved🟡 Medium risk · Adding Platform Settings time-format editing persists a default and updates the session, so a mistaken selection could change how timestamps appear throughout the UI. Aligns Preferences setting icons and pages and adds a Default Time Format page to Platform Settings, using a new 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 |
|
e076f47



Describe your changes:
Fixes #35546
I aligned the Glossary, Default Time Format and Default App Mode settings with the rest of Settings, because their icons, page layouts and Platform Settings entries were inconsistent (details in the issue).
Settings › Preferences cards
DefaultTimeandDefaultAppMode, generated withyarn icons:generatelike every other regular icon (strokecurrentColor, 20px grid). Glossary keeps the existingGlossaryTerm.SettingMenuItemgets an optionaliconColor. When it is set,SettingItemCarddraws the plain core glyph on a 90px coreBoxtile tinted withtw:bg-utility-blue-50/tw:text-utility-blue-700. Those tokens are the same#EFF8FF/#175CD3baked into the legacy*-colored.svgtiles, and they also flip in dark mode. Cards withouticonColorrender exactly as before.Glossary and Default Time Format pages
PageLayoutV1, thenTitleBreadcrumb(Settings / Preferences / …), thenPageHeader, then aCard. Default Time Format puts Save inCard.Footer.AI-mode Settings › Platform Settings panel
time-format): read-only view plus Edit form, following Table & Schema. Saving also updates the session'stimeFormatin the application store.SettingsSection+ReadOnlyRowdesign instead of its own card.GlossarySettingsreplaces itsclassNameprop withembedded.FieldRow/ReadOnlyRowget an opt-inisValueCompact: the title and description take the free width and the value column sizes to its content. It is used by Default App Mode, Default Time Format and Glossary, whose value is one word or a toggle; every other row is unchanged.The time-format options now live in one
TIME_FORMAT_OPTIONSconstant in the panel's sharedPlatformSettings.constants.ts, typed with the generatedDefaultTimeFormatenum. That also fixes the existingtscerror onpatchAppConfiguration({ defaultTimeFormat: currentValue }), where astringwas passed instead of aDefaultTimeFormat.Type of change:
High-level design:
iconColor, not more colored SVGs. The first attempt baked the tile into newicons-custom/*-colored.svgfiles, the same wayAnnouncementColoreddoes. That duplicates the tile geometry in every icon, uses raw hex that never follows the theme, and can't be reused at another size. WithiconColor, the icons stay ordinary core icons and the card owns the tile through semantic tokens.FeaturedIcon. Its largest size is 56px (the cards are 90px), and its colour sets carrytw:dark:bg-*-solidclasses that would need overriding, so a token-tinteddivis simpler.isValueCompactis opt-in.FieldRow's 320px text cap is right for rows whose value is long text (email, URLs, lists), so the default layout is unchanged.GlossarySettings' onlyclassNamecaller (PlatformSettingsPanel) now passesembedded. Existing test IDs (glossary-settings,default-time-format-page,time-format-radio-group,save-time-format-settings) and the Glossary switch's accessible name are unchanged.Tests:
Use cases covered
iconColorrender the plain glyph on the tinted tile; cards without it render the legacy SVG.Unit tests
TimeFormatSettings.test.tsx(7),DefaultTimeFormatPage.test.tsx(4).GlossarySettings.test.tsx(embedded variant),SettingsItemCard.test.tsx(iconColortile).yarn testonSettingItemCard,governance/glossary,discovery/personal-space/Profile,DefaultTimeFormatPage,GlobalSettingsClassBase,GlobalSettingsUtils: 1157 passed, 0 failed.TimeFormatSettings.tsx100%,TimeFormatSettingsForm.tsx100%,GlossarySettings.tsx100%,FieldRow.tsx100%,SettingsSection.tsx100%,SettingItemCard.component.tsx100%,AppModeSettings.tsx100%,DefaultTimeFormatPage.tsx98%,PlatformSettingsPanel.tsx91%.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/ProfilePlatformSettings.spec.ts: new test "default time format: saves the selected format", andtime-formatadded to the list of cards that must open.yarn lint:playwright: 0 errors.PASSED —
playwright/e2e/Features/ProfilePlatformSettings.spec.tson commit945c30dfc63, projectchromium(withsetup/entity-data-setup/ teardown): 25 passed, 0 failed, 0 flaky, 0 skipped in 6.4m.Not run locally: the rest of
make playwright_affected's selection (~35 specs such asEntity,DomainIsolation/*,Lineage*,SearchRBAC), which come from impact-map entries for the shared filesGlobalSettingsClassBase.ts/GlobalSettingsUtils.tsx/FieldRow.tsxrather than from these settings pages. The merge queue runs the full suite.Manual testing performed
Reviewed in a local dev server (
vite, proxying a local server on:8585) while iterating:The save flows (Time Format panel edit, Glossary toggle) are covered by the Playwright and Jest runs above rather than by hand.
UI screen recording:
Not applicable — this is a styling/layout alignment of existing settings, plus a Platform Settings entry for an existing setting. Playwright results are above.
Checklist:
I have read the CONTRIBUTING document.
My PR title is
Fixes <issue-number>: <short explanation>My PR is linked to a GitHub issue via
Fixes #<issue-number>above.I have commented on my code, particularly in hard-to-understand areas.
For JSON Schema changes: I updated the migration scripts or explained why it is not needed. — N/A, no schema changes.
For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).
I have added tests (unit / integration / Playwright as applicable) and listed them above.
Decision check: no durable cross-component decision;
iconColorandisValueCompactare local, opt-in UI props.I have added tests around the new logic.
🤖 Generated with Claude Code
Summary by Gitar
SSOConfigurationPlaywright checks into Jest inSSOConfigurationForm.test.tsxSettingsSsoreplaces the SSO history entry with the configured provider, so Back returns to/settingsLdapRoleMappingWidgetflags duplicate group DNs that differ only by case or whitespaceSsoRolesSelectFieldtests for search, adding, and removing rolesThis will update automatically on new commits.