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

Optimize filter dropdowns #2393

Merged
merged 3 commits into from
Dec 11, 2024
Merged

Optimize filter dropdowns #2393

merged 3 commits into from
Dec 11, 2024

Conversation

manV
Copy link
Member

@manV manV commented Dec 11, 2024

Changes proposed in this pull request:

  • Optimize some some of the filter dropdown components so that data is only loaded once its opened.

manV added 3 commits December 10, 2024 13:22
…icators

- Added `open` and `setOpen` props to allow external control of the Combobox state.
- Improved loading state handling to display a spinner when loading and no items are present.
- Refactored conditional rendering for better clarity and performance.
…ding indicators

- Added `isOpen` and `setIsOpen` props to `SearchableContainer` for better control of the component's visibility.
- Enhanced loading state handling to differentiate between fetching and refetching states.
- Updated the rendering logic to ensure proper display of the Combobox and its content based on the new state management.
- Updated SearchableHostList to utilize new ComboboxV2 components for improved UI and functionality.
- Introduced debounced search functionality for better performance during host searches.
- Removed onClearAll handlers from various components to streamline state management and reduce redundancy.
- Enhanced loading state handling in SearchableHostList for a smoother user experience.
@manV manV requested a review from ramanan-ravi December 11, 2024 02:58
@manV manV merged commit 3a11e79 into main Dec 11, 2024
4 of 5 checks passed
@manV manV deleted the combobox-refactor-1 branch December 11, 2024 04:36
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