fix(dashboard): prevent filter dropdown button from disappearing during layout recalculations#38193
Open
fix(dashboard): prevent filter dropdown button from disappearing during layout recalculations#38193
Conversation
…ng layout recalculations Add `alwaysShowDropdownButton` prop to DropdownContainer to keep the dropdown button visible even when no items are overflowing. This prevents the button from flickering/disappearing when the filter bar recalculates layout, which caused a confusing UX where users would lose access to overflowed filters momentarily. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Code Review Agent Run #6c1742Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
3 tasks
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.
SUMMARY
When the dashboard filter bar recalculates its layout (e.g., on resize or filter changes), the dropdown "More" button can momentarily disappear and reappear. This happens because the
DropdownContainerhides the button whenpopoverContentis empty — which occurs briefly during re-renders before overflow detection runs.This PR adds an
alwaysShowDropdownButtonprop toDropdownContainerthat keeps the button visible even when no items are currently overflowing. TheFilterControlscomponent passes this prop when there are filter items, preventing the flickering behavior.Changes:
alwaysShowDropdownButtonprop toDropdownContainerPropstypeDropdownContainerrender logic to show the button when the new prop is setalwaysShowDropdownButton={items.length > 0}inFilterControlsBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: The dropdown button briefly disappears during layout recalculations, causing a jarring flicker.
After: The dropdown button remains stable and visible at all times when filters are present.
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
🤖 Generated with Claude Code