Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix(bazaar) add virtualization to UserSelector dropdown #1747

Conversation

rothenbergt
Copy link
Contributor

Hey, I just made a Pull Request!

The UserSelector dropdown introduced in #1535 was experiencing performance issues with large user lists (1000+ entries) due to rendering all options at once.

Added a VirtualizedListbox component matching the pattern used by EntityPicker. This significantly improves dropdown performance by rendering only ~11 entries at a time instead of all entries.

Refactored a couple other things to better match EntityPicker's patterns.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

Signed-off-by: Tyler Rothenberg <rothenbergt@gmail.com>
@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-bazaar workspaces/bazaar/plugins/bazaar patch v0.5.1

Copy link
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvements here @rothenbergt. I'll admit it's too bad that VirtualizedListbox wasn't exported in say something like Core Components in the main Backstage repo. Might be worth looking into if you have time.

@awanlin awanlin enabled auto-merge (squash) October 23, 2024 21:12
@awanlin awanlin merged commit 8964f7d into backstage:main Oct 23, 2024
12 checks passed
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