HDDS-14840 User Experience Improvements on buckets tab.#9928
Open
arunsarin85 wants to merge 2 commits intoapache:masterfrom
Open
HDDS-14840 User Experience Improvements on buckets tab.#9928arunsarin85 wants to merge 2 commits intoapache:masterfrom
arunsarin85 wants to merge 2 commits intoapache:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
User Experience Improvements on buckets tab.
Please describe your PR in detail:
User Experience Improvements on buckets tab.
Implemented the following improvements on the Buckets Tab of Recon (HDDS-14840):
Added fixed: 'left' to both the Bucket (name) and Volume (volumeName) column definitions so they remain anchored to the left edge while the user scrolls horizontally through the remaining columns.
Added an optional showSearch boolean prop (default false) to the shared MultiSelect component. When enabled, a search input is rendered at the top of the dropdown menu, filtering the visible options in real time. Key implementation details:
Options are pre-filtered before being passed to react-select, so filtering works independently of react-select's own input handling.
The dropdown uses controlled menuIsOpen state to stay open while the user interacts with the search box.
A stable InputComponent override suppresses react-select's blur-driven close when focus moves to the search input.
The MenuListComponent is created with useMemo and reads mutable values via a stateRef so its component reference stays stable across re-renders, preventing react-select from unmounting and remounting the menu (which would lose focus mid-typing).
Pressing Escape while the search box is focused closes the dropdown and clears the search term.
Added an optional showSelectAll boolean prop (default false). When enabled, a checkbox row is rendered below the search box (above the option list) that:
Checks all selectable options when none/some are selected.
Unchecks all options (keeping only the mandatory fixed column, e.g. "Bucket") when all are already selected.
onMouseDown on this row prevents blur from firing on the react-select control, so the menu stays open after clicking.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14840
How was this patch tested?
Sticky Vol/Buck

Select unselect & search
