Skip to content

fix(FilterPicker): loading items search#1126

Merged
tenphi merged 3 commits intomainfrom
feat-filter-picker-loading
Apr 17, 2026
Merged

fix(FilterPicker): loading items search#1126
tenphi merged 3 commits intomainfrom
feat-filter-picker-loading

Conversation

@tenphi
Copy link
Copy Markdown
Member

@tenphi tenphi commented Apr 16, 2026

Note

Medium Risk
Medium risk because it changes FilterListBox filtering and virtual-focus behavior (especially with allowsCustomValue + filter={false}), which can affect keyboard navigation and item visibility across multiple consumer flows.

Overview
Simplifies isLoadingItems UX for FilterPicker/FilterListBox: removes the in-popover loading disclaimer and loadingItemsLabel, and instead shows a subtle spinner in the search input suffix; FilterPicker no longer shows a trigger loading icon for isLoadingItems.

Refines server-side search behavior (filter={false}): while isLoadingItems is true, non-matching stale items are temporarily hidden using contains, and locally-injected selected custom values now always respect the search term even when parent filtering is disabled.

Improves custom-value virtual focus: updates focus targeting so when no matches exist (including during in-flight fetches) focus moves/stays on the new custom-value option, and when matches arrive it prefers the first real item. Also unifies emptyLabel so a provided value overrides both the “No items” and “No results found” defaults.

Reviewed by Cursor Bugbot for commit 8439303. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Apr 17, 2026 9:59am

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 16, 2026

⚠️ No Changeset found

Latest commit: 8439303

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Minor

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2026

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2026

🏋️ Size limit report

Name Size Passed?
All 367.71 KB (+0.01% 🔺) Yes 🎉
Tree shaking (just a Button) 110.46 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2026

📦 NPM canary release

Deployed canary version 0.0.0-canary-7298754.

@tenphi tenphi merged commit 6ed3d57 into main Apr 17, 2026
16 checks passed
@tenphi tenphi deleted the feat-filter-picker-loading branch April 17, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant