Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Oct 27, 2025

Note

Fixes FilterListBox filtering by delegating empty-state handling to ListBox via a new emptyLabel prop, showing “No results found” vs “No items” appropriately.

  • Fields:
    • FilterListBox (src/components/fields/FilterListBox/FilterListBox.tsx):
      • Removes custom hasResults/showEmptyMessage logic and always renders ListBox.
      • Passes computed emptyLabel based on searchValue ("No results found" when searching, else "No items").
      • Continues to apply internal filterFn and forwards stateRef for accurate filtered collection.
    • ListBox (src/components/fields/ListBox/ListBox.tsx):
      • Adds emptyLabel prop and renders an empty-state row when collection.size === 0.
      • Updates prop types/docs and integrates empty state into the scroll container, preserving virtualization/sections rendering.
  • Changeset:
    • Patch release for @cube-dev/ui-kit noting the FilterListBox filtering fix.

Written by Cursor Bugbot for commit ac15702. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Oct 27, 2025

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

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Oct 27, 2025 4:15pm
cube-ui-kit-cursor Ready Ready Preview Comment Oct 27, 2025 4:15pm

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2025

🦋 Changeset detected

Latest commit: ac15702

The changes in this PR will be included in the next version bump.

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

Not sure what this means? Click here to learn what changesets are.

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-8ac2e3b.

cursor[bot]

This comment was marked as outdated.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

🏋️ Size limit report

Name Size Passed?
All 298.65 KB (-0.02% 🔽👏) Yes 🎉
Tree shaking (just a Button) 32.06 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 19.38 KB (0% 🟰) Yes 🎉

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

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.

2 participants