Conversation
❌ Lint Check Failed — ESLint + Prettier (core-components)The following files have style issues that need to be fixed: Fix locally (fast — changed files only): cd openmetadata-ui-core-components/src/main/resources/ui
yarn ui-checkstyle:changedOr to fix all files: |
🟡 Playwright Results — all passed (16 flaky)✅ 3400 passed · ❌ 0 failed · 🟡 16 flaky · ⏭️ 216 skipped
🟡 16 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 |
| inputValue={filterText} | ||
| items={visibleItems} | ||
| menuTrigger="focus" | ||
| menuTrigger="input" |
There was a problem hiding this comment.
⚠️ Bug: menuTrigger change from "focus" to "input" is a behavioral regression
Changing menuTrigger from "focus" to "input" (line 452) means the dropdown no longer opens when the user clicks/tabs into the autocomplete — it now only opens when the user starts typing. This is a UX regression for all existing Autocomplete consumers (12+ story usages, plus production code), not just the new single-select mode.
The added ArrowDown handler partially compensates by letting users manually open the dropdown, but this is far less discoverable than the previous focus-to-open behavior.
If the intent was to prevent the dropdown from reopening in single-select mode after a selection is made, consider conditioning this on the multiple prop instead of changing it globally.
Suggested fix:
menuTrigger={isAtMax ? 'manual' : 'focus'}
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
| )}> | ||
| <AriaInput | ||
| className="tw:w-full tw:flex-[1_0_0] tw:appearance-none tw:bg-transparent tw:text-md tw:text-ellipsis tw:text-primary tw:caret-alpha-black/90 tw:outline-none tw:placeholder:text-placeholder tw:focus:outline-hidden tw:disabled:cursor-not-allowed tw:disabled:text-disabled tw:disabled:placeholder:text-disabled" | ||
| className="tw:w-full tw:flex-[1_0_0] tw:appearance-none tw:bg-transparent tw:text-sm tw:text-ellipsis tw:text-primary tw:caret-alpha-black/90 tw:outline-none tw:placeholder:text-placeholder tw:focus:outline-hidden tw:disabled:cursor-not-allowed tw:disabled:text-disabled tw:disabled:placeholder:text-disabled" |
There was a problem hiding this comment.
💡 Bug: Input text size changed from text-md to text-sm for all instances
Line 257 changes the input class from tw:text-md to tw:text-sm, which reduces the font size of the autocomplete input for all consumers — not just the new single-select or invalid-state functionality. This appears to be an unintentional side-effect unrelated to the PR's purpose (invalid state support). If intentional, it should be called out in the PR description as a visual change.
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>