Repository navigation
Fixes #35852: Search Settings layout and an accessible edit control - #35853
Conversation
Search Settings mixed fixed LESS colours (@white, @blue-3, @team-avatar-bg, @border-color-4/5, @primary-50) with theme-aware text, so dark mode left white ranking cards with near-white text and low-contrast value chips. - Ranking cards and field cards: bg-primary surface, border-secondary border - Ranking stage description: text-tertiary - Global setting values, field weight chips, entity count pill: utility-brand-50 fill with utility-brand-700 text (badge pattern) - Drop the legacy text-primary class from the weight chip; its !important colour overrode the chip styling - Delete the unused field value boost button rules (buttons are core Buttons with tokenized hover)
…bles Per ADR:2026-10-16-less-colours-read-tailwind-bridge-vars, edited LESS colours use the --tw-background-color-*, --tw-text-color-* and --tw-border-color-* families. The ranking cards take the surface role so they sit above the page in dark mode instead of matching it.
- CollapseHeader pads its trailing edge (tw:pe-6) so the Add buttons sit inset like the header trigger - Ranking Details: drop the padding .configuration-container and p-box doubled on top of AccordionPanel; Fields spans the full row; chips get a tooltip with the full field name - GlobalSettingItem fills its card without its own border/background, the value block no longer forces a 150px minimum, and the value margin is md - The edit pencil is a core ButtonUtility named "Edit <setting>" instead of a clickable svg; the input placeholder uses label.value
❌ 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 |
|
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! |
…hips inside the card - GlobalSettingItem: the input takes focus when editing opens, and focus returns to the edit button when the editor closes (save or cancel), so keyboard users are not dropped to <body> - Ranking field chips: wrap them in a core Tooltip with a max-w-full trigger; Badge's own tooltip wrapper is max-content, which let long names (usageSummary.*.percentileRank) overflow the Signals card by up to 32px
|
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! |
jsx-a11y/no-autofocus forbids autoFocus; the editor input now takes focus from the same effect that hands focus back to the edit button on close.
|
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! |
…ing editor A slow save closes the editor after the user may have moved on to another setting; restoring focus unconditionally pulled it back. Focus now returns to the edit button only when it is still inside this editor or was dropped to <body> (the input disables while saving).
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Changing numeric-setting edit controls and focus transitions could disrupt keyboard editing if focus is lost during save or cancel. Search Settings layout fixes: "+ Add" buttons are inset from the panel edge, ranking field chips truncate within their cards, numeric setting cards show a single border, and the edit control is now a named, keyboard-accessible button that moves focus into the value input. Resolved a focus-restore issue after save, where focus could be pulled away from where the user had moved it. No open issues found. ✅ 1 closed✅ Edge Case: Focus restore after save can pull focus away from where the user moved it
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 |
|
| Count | Rule |
|---|---|
| 3 | react-hooks/exhaustive-deps |
| 2 | openmetadata-imports/no-lower-layer-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/SearchSettings/EntitySeachSettings/EntitySearchSettings.tsx:56:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/SearchSettings/EntitySeachSettings/EntitySearchSettings.tsx:166:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'entityType'. Either include it or remove the dependency array. |
| 🟡 | src/components/SearchSettings/EntitySeachSettings/EntitySearchSettings.tsx:622:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchSearchConfig'. Either include it or remove the dependency array. |
| 🟡 | src/components/SearchSettings/EntitySeachSettings/EntitySearchSettings.tsx:634:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchCustomProperties'. Either include it or remove the dependency array. |
| 🟡 | src/components/SearchSettings/GlobalSettingsItem/GlobalSettingsItem.tsx:22:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|



Describe your changes:
Fixes #35852
Search Settings layout fixes from the 2.0 → main UI bug bash, measured in AI mode at 1440px (light and dark):
CollapseHeaderrow getstw:pe-6, matching theAccordionHeadertrigger'spx-6.configuration-container/p-boxdoubled on top of the coreAccordionPanel; Fields spans the full row; chips are wrapped in a coreTooltipwithtriggerClassName="tw:max-w-full"(Badge's own tooltip wrapper ismax-content), so long names truncate inside the card and the tooltip shows the full nameusageSummary.*.percentileRankoverflowed by 26–32px before)GlobalSettingItemno longer draws its own border/radius/background inside.global-setting-card(flex: 1; min-width: 0); dropped the 150px.value-containerminimum; value marginxlg→md<svg onClick>(no role, name or keyboard access); placeholder hardcoded"value"ButtonUtilitywithtooltip={t('label.edit-entity', { entity: label })}(its accessible name), keeping the samedata-testid. Focus moves to the value input when editing opens and back to the edit button when it closes; placeholder →t('label.value')Blast radius:
CollapseHeader,EntitySearchSettingsandGlobalSettingItemeach have a single consumer, all in Search Settings.data-testid.Type of change:
High-level design:
N/A — targeted layout fixes.
Tests:
Use cases covered
Unit tests
GlobalSettingsItem.test.tsx: the edit control is a button named vialabel.edit-entity. Pressing Enter on it moves focus into the value input, and Cancel returns focus to the button.tscerrors in the touched sources: 1, the same as the base. Design audit: no new warnings. Checkstyle: 0 errors.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
SearchSettings.spec.ts(--project=Basic --workers=1, against this branch's UI on a localmainstack) passes 11/11, including the two tests that open the editor throughglobal-setting-edit-icon-*, which is now a button.Manual testing performed
main, AI mode, light and dark.scrollWidthvsclientWidth), card borders, label line counts, the pencil's role and name, and its distance to the card edge.UI screen recording:
Not applicable — layout fixes. Before/after screenshots are below.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues remain.Summary
This PR improves Search Settings spacing, theme colors, and keyboard access.
All three previous findings are addressed. No new actionable issues were found. Review covered the full PR because the previous and current commits have different merge bases with the target commit. Tests and live visual checks were not run; UI dependencies are absent.
Reviews (4) · Last reviewed commit: "Merge branch 'main' into fix/search-sett..." · Reviewed by Greptile