fix: improve tooltip ux with delay and better placement (#775)#776
Merged
fix: improve tooltip ux with delay and better placement (#775)#776
Conversation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request improves the tooltip user experience for filter labels and tab labels by adding hover delays and optimizing tooltip placement. The changes address issue #775, which identified that facet tooltips were appearing instantly and covering the options users were trying to interact with.
Changes:
- Added 300ms
enterDelayto tooltips on filter labels and tab labels to prevent tooltips from appearing immediately on hover - Added
placement="right"to filter label tooltips to prevent them from covering sidebar facet options - Enhanced filter constants with
annotationmetadata (label and description) for better user context - Fixed inconsistent key naming in the
DONOR_COUNTconstant from "Donor Count" to "donorCount" to match camelCase convention
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/components/common/Tabs/tabs.tsx | Added 300ms tooltip delay to tab labels |
| src/components/Filter/components/Filters/stories/constants.ts | Added annotation metadata to filter constants and fixed DONOR_COUNT key to use camelCase |
| src/components/Filter/components/FilterLabel/filterLabel.tsx | Added 300ms tooltip delay and right-side placement to filter labels |
| src/components/Filter/components/FilterLabel/filterLabel.stories.tsx | Added annotation example to Storybook story for testing |
NoopDog
approved these changes
Feb 18, 2026
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.
Closes #775.
This pull request enhances the annotation and tooltip functionality for filter labels and tab labels in the UI. It introduces annotation metadata to several filter constants and improves the user experience by adding tooltip delays and consistent placement.
Enhancements to filter and tab annotations:
annotationobjects with descriptive metadata (label and description) to filter category constants (BIOLOGICAL_SEX,GENUS_SPECIES,DONOR_COUNT,FILE_FORMAT,FILE_TYPE) to provide additional context for users. [1] [2] [3] [4] [5]FilterLabeland tab label components to pass theannotationprop toTooltip, and configured tooltips with a 300ms enter delay and consistent placement for improved usability. [1] [2]Storybook and testing improvements:
annotationobject, enabling testing and demonstration of the new annotation functionality. [1] [2]