Fixes #27434: Add missing fontSize to SelectContext in Combobox and Autocomplete#27435
Conversation
|
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! |
There was a problem hiding this comment.
Pull request overview
Fixes a TypeScript build break in openmetadata-ui-core-components by ensuring all SelectContext.Provider usages provide the newly-required fontSize property (introduced in #27379).
Changes:
- Add
fontSize: 'md'to theSelectContext.Providervalue incombobox.tsx. - Add
fontSize: 'md'to the memoizedselectContextValueused byautocomplete.tsx.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| openmetadata-ui-core-components/src/main/resources/ui/src/components/base/select/combobox.tsx | Updates SelectContext.Provider value to include required fontSize (default 'md'). |
| openmetadata-ui-core-components/src/main/resources/ui/src/components/base/autocomplete/autocomplete.tsx | Updates selectContextValue to include required fontSize (default 'md') to satisfy SelectContext typing. |
|
This is a 2-line fix for the TypeScript build error on main introduced by #27379. Could a maintainer add the safe to test label? This is blocking CI on all open PRs. |
7224014 to
486ee21
Compare
|
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! |
|
🚨 CI blocker — tiny 2-file fix ready for review/merge Hey @PubChimps @harshach — opened a focused PR to unblock CI on PR: <https://github.com/open-metadata/OpenMetadata/pull/27435|#27435 — Fixes #27434: Add missing Why this is urgent: The fix (6 lines, 2 files): Validation: Review status: Could a maintainer please add the Thanks! 🙏 |
|
Thank you @RajdeepKushwaha5 |
🟡 Playwright Results — all passed (28 flaky)✅ 3659 passed · ❌ 0 failed · 🟡 28 flaky · ⏭️ 89 skipped
🟡 28 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…Autocomplete Unblocks CI on this PR. main is currently failing tsc --noEmit with TS2741 because open-metadata#27379 made fontSize a required field on SelectContext but only updated select.tsx. combobox.tsx and autocomplete.tsx also provide that context and were missed, cascading into all py-tests and Playwright failures on every open PR. Mirrors the fix in PR open-metadata#27435.
…Autocomplete Unblocks CI on this PR. main is currently failing tsc --noEmit with TS2741 because open-metadata#27379 made fontSize a required field on SelectContext but only updated select.tsx. combobox.tsx and autocomplete.tsx also provide that context and were missed, cascading into all py-tests and Playwright failures on every open PR. Mirrors the fix in PR open-metadata#27435.
…mplete PR open-metadata#27379 added fontSize as a required property to SelectContext but only updated select.tsx. This adds the missing fontSize property to combobox.tsx and autocomplete.tsx to fix the TypeScript build error (TS2741) that is currently blocking CI on all open PRs.
fa54f51 to
98ae3bb
Compare
Code Review ✅ ApprovedAdds missing fontSize to SelectContext within Combobox and Autocomplete components to ensure consistent typography. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
ping @chirag-madlani |
Describe your changes:
Fixes #27434
PR #27379 added
fontSizeas a required property toSelectContextinselect.tsx, but the two other components that also provide this context —combobox.tsxandautocomplete.tsx— were not updated. This causes aTS2741TypeScript build error onmain, blocking CI for all open PRs.This PR adds the missing
fontSize: 'md'(the same default used inselect.tsx) to both providers:combobox.tsx:SelectContext.Provider value={{ fontSize: 'md', size }}autocomplete.tsx:selectContextValuenow includesfontSize: 'md' as constHow I tested: Ran
npx tsc --noEmitinopenmetadata-ui-core-components/src/main/resources/ui— build passes with zero errors after this change.cc @anuj-kumary
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>