-
Notifications
You must be signed in to change notification settings - Fork 14k
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
chore: Adds a tooltip to pre-filter in native filters modal #23481
chore: Adds a tooltip to pre-filter in native filters modal #23481
Conversation
Codecov Report
@@ Coverage Diff @@
## master #23481 +/- ##
==========================================
- Coverage 67.65% 67.64% -0.01%
==========================================
Files 1909 1914 +5
Lines 73743 73926 +183
Branches 7987 8020 +33
==========================================
+ Hits 49888 50010 +122
- Misses 21814 21873 +59
- Partials 2041 2043 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -85,6 +85,7 @@ export const nativeFilterTooltips = { | |||
multipleSelect: 'Allow selecting multiple values', | |||
defaultValue: | |||
'Default value must be set when "Filter value is required" is checked', | |||
preFilter: `Limits the number of selectable values in a filter. This is useful when you want to display a subset of the column's values either for performance reasons or business rules. Some examples include limiting the number of people displayed to a particular business unit or showing only people registered in the last 90 days.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michael-s-molina if it's ok with you I might tweak the copy of the this tooltip, i.e., make it more concise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem @john-bodley. Just suggest an improved copy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @john-bodley , I think this could be less verbose. Could something like this work?
Add filters clauses to control the filter's source query. This is useful when you want to improve the query's performance by only scanning a subset of the underlying data or limit the available values displayed in the filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michael-s-molina and @villebro I think this is more accurate:
Add filter clauses to control the filter's source query, though only in the context of the autocomplete i.e., these conditions do not impact how the filter is applied to the dashboard. This is useful when you want to improve the query's performance by only scanning a subset of the underlying data or limit the available values displayed in the filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@john-bodley @villebro I updated the text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the iterations
SUMMARY
Adds a tooltip to pre-filter in native filters modal to better contextualize its use for the users.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Check that pre-filter exhibits a tooltip.
ADDITIONAL INFORMATION