Skip to content

Fixes 35546: Align Preferences setting icons and pages, add Default Time Format to Platform Settings - #35547

Merged
anuj-kumary merged 9 commits into
open-metadata:mainfrom
anuj-kumary:ui/settings-preferences-icons-layout
Oct 15, 2026
Merged

anuj-kumary merged 9 commits into
open-metadata:mainfrom
anuj-kumary:ui/settings-preferences-icons-layout

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

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

  • Two new core icons, DefaultTime and DefaultAppMode, generated with yarn icons:generate like every other regular icon (stroke currentColor, 20px grid). Glossary keeps the existing GlossaryTerm.
  • SettingMenuItem gets an optional iconColor. When it is set, SettingItemCard draws the plain core glyph on a 90px core Box tile tinted with tw:bg-utility-blue-50 / tw:text-utility-blue-700. Those tokens are the same #EFF8FF / #175CD3 baked into the legacy *-colored.svg tiles, and they also flip in dark mode. Cards without iconColor render exactly as before.
  • Glossary, Default App Mode and Default Time Format use this. Glossary was oversized (a bare 20px glyph scaled to 90px); Time Format was borrowing the App Mode icon; App Mode was the only orange tile.

Glossary and Default Time Format pages

  • Both now use the App Mode page layout: PageLayoutV1, then TitleBreadcrumb (Settings / Preferences / …), then PageHeader, then a Card. Default Time Format puts Save in Card.Footer.
  • The Glossary toggle sits on the right of its row, vertically centred, with "Propagate glossary tags" and the reindex note on the left.

AI-mode Settings › Platform Settings panel

  • New Default Time Format page (time-format): read-only view plus Edit form, following Table & Schema. Saving also updates the session's timeFormat in the application store.
  • Glossary uses the panel's SettingsSection + ReadOnlyRow design instead of its own card. GlossarySettings replaces its className prop with embedded.
  • FieldRow / ReadOnlyRow get an opt-in isValueCompact: 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_OPTIONS constant in the panel's shared PlatformSettings.constants.ts, typed with the generated DefaultTimeFormat enum. That also fixes the existing tsc error on patchAppConfiguration({ defaultTimeFormat: currentValue }), where a string was passed instead of a DefaultTimeFormat.

Type of change:

  • Improvement

High-level design:

  • Plain glyph plus iconColor, not more colored SVGs. The first attempt baked the tile into new icons-custom/*-colored.svg files, the same way AnnouncementColored does. That duplicates the tile geometry in every icon, uses raw hex that never follows the theme, and can't be reused at another size. With iconColor, the icons stay ordinary core icons and the card owns the tile through semantic tokens.
  • Not FeaturedIcon. Its largest size is 56px (the cards are 90px), and its colour sets carry tw:dark:bg-*-solid classes that would need overriding, so a token-tinted div is simpler.
  • isValueCompact is 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.
  • Compatibility. No API, schema or route changes. GlossarySettings' only className caller (PlatformSettingsPanel) now passes embedded. 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

  • Preferences cards with iconColor render the plain glyph on the tinted tile; cards without it render the legacy SVG.
  • Default Time Format page loads the stored format, keeps Save disabled until it changes, saves it and applies it to the session, and reports load and save failures.
  • Platform Settings › Default Time Format shows the stored value, saves from the Edit form back to the view, reports a failed save, and Cancel leaves it unchanged.
  • Glossary propagation toggles and saves on both the settings page and the Platform Settings panel.

Unit tests

  • I added unit tests for the new/changed logic.
  • Added: TimeFormatSettings.test.tsx (7), DefaultTimeFormatPage.test.tsx (4).
  • Updated: GlossarySettings.test.tsx (embedded variant), SettingsItemCard.test.tsx (iconColor tile).
  • yarn test on SettingItemCard, governance/glossary, discovery/personal-space/Profile, DefaultTimeFormatPage, GlobalSettingsClassBase, GlobalSettingsUtils: 1157 passed, 0 failed.
  • Line coverage on changed files: TimeFormatSettings.tsx 100%, TimeFormatSettingsForm.tsx 100%, GlossarySettings.tsx 100%, FieldRow.tsx 100%, SettingsSection.tsx 100%, SettingItemCard.component.tsx 100%, AppModeSettings.tsx 100%, DefaultTimeFormatPage.tsx 98%, PlatformSettingsPanel.tsx 91%.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated playwright/e2e/Features/ProfilePlatformSettings.spec.ts: new test "default time format: saves the selected format", and time-format added to the list of cards that must open.
  • yarn lint:playwright: 0 errors.

PASSED — playwright/e2e/Features/ProfilePlatformSettings.spec.ts on commit 945c30dfc63, project chromium (with setup / entity-data-setup / teardown): 25 passed, 0 failed, 0 flaky, 0 skipped in 6.4m.

cd openmetadata-ui/src/main/resources/ui
PLAYWRIGHT_TEST_BASE_URL=<local ui> npx playwright test playwright/e2e/Features/ProfilePlatformSettings.spec.ts --project=chromium

Playwright HTML report: ProfilePlatformSettings.spec.ts, 25 passed

Not run locally: the rest of make playwright_affected's selection (~35 specs such as Entity, DomainIsolation/*, Lineage*, SearchRBAC), which come from impact-map entries for the shared files GlobalSettingsClassBase.ts / GlobalSettingsUtils.tsx / FieldRow.tsx rather 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:

  1. Settings › Preferences: Glossary, Default App Mode and Default Time Format cards show their own icon on the blue tile, at the same size as the other cards.
  2. Glossary, Default Time Format and App Mode pages share the breadcrumb + page header + card layout; the Glossary toggle is right-aligned and vertically centred.
  3. AI mode › Settings › Platform Settings: Glossary, Default App Mode and Default Time Format rows use the full row width for their description, with the value or toggle on the right.

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; iconColor and isValueCompact are local, opt-in UI props.

  • I have added tests around the new logic.

🤖 Generated with Claude Code


Summary by Gitar

  • SSO test migration:
    • Moved UI-only SSOConfiguration Playwright checks into Jest in SSOConfigurationForm.test.tsx
  • SSO navigation:
    • SettingsSso replaces the SSO history entry with the configured provider, so Back returns to /settings
  • LDAP role mapping:
    • LdapRoleMappingWidget flags duplicate group DNs that differ only by case or whitespace
  • Role selection tests:
    • Added SsoRolesSelectField tests for search, adding, and removing roles

This will update automatically on new commits.

…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
@anuj-kumary anuj-kumary added the UI UI specific issues label Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@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!

@anuj-kumary anuj-kumary self-assigned this Oct 15, 2026
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 2026
@github-actions github-actions Bot removed the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 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!

@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!

@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 78%
77.94% (127642/163753) 64.6% (80726/124948) 65.84% (26995/40998)

@github-actions github-actions Bot removed the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 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!

@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 2026
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
@github-actions github-actions Bot removed the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 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!

@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!

@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 2026
@anuj-kumary
anuj-kumary enabled auto-merge October 15, 2026 15:49
@github-actions github-actions Bot removed the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 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!

@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 2026
@gitar-bot

gitar-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown
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 iconColor tile on setting cards and an opt-in isValueCompact row layout. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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

@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 15, 2026
Merged via the queue into open-metadata:main with commit e076f47 Oct 15, 2026
97 of 113 checks passed
@anuj-kumary
anuj-kumary deleted the ui/settings-preferences-icons-layout branch October 15, 2026 17:18
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 UI UI specific issues

Projects

None yet

2 participants