-
Notifications
You must be signed in to change notification settings - Fork 43
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
✨ Add Tag Categories to Tag filters #1535
Conversation
On the following tables, the Tag filter has been enhanced to group the Tag select by Tag Category: - Applications - Issues / All Issues - Dependencies Tables that use Tag filters now send a map of group name (category) to an array of `FilterSelectOptionProps` (tags). The filter render component `MultiselectFilterControl` has been updated to allow for grouped and ungrouped arrays of `FilterSelectOptionProps` objects. Existing item filtering and filter values are still operating as a `string` or `string[]`. The net effect means that if a tag of the same name exists in more than one category, and one of them is selected, then all of them will be selected. Additional change details: - Type `OptionPropsWithKey` renamed `FilterSelectOptionProps` for more consistent type/component naming - Added some jsdoc to `FilterToolbar` Signed-off-by: Scott J Dickerson <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1535 +/- ##
==========================================
- Coverage 40.65% 40.52% -0.14%
==========================================
Files 145 145
Lines 4607 4622 +15
Branches 1077 1084 +7
==========================================
Hits 1873 1873
- Misses 2720 2735 +15
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
… table Signed-off-by: Scott J Dickerson <[email protected]>
Refactored to use a single list and have the items display "Category / Tag". |
Follow the UX of the tag fields on data forms. - Tags are shown with their category name but without grouping - Toolbar chips are shown with the category in a tooltip and the tag name as the visible chip - Filtering will be considered on a TagCategory + Tag basis. Tags with the same name in multiple categories are distinct. Signed-off-by: Scott J Dickerson <[email protected]>
Signed-off-by: Scott J Dickerson <[email protected]>
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!
Resolves: https://issues.redhat.com/browse/MTA-1534
Summary
On the following tables, the Tag filter has been enhanced to show the Tag with Tag Category:
Tables that use Tag filters now use a set of options in the format "Tag Category Name / Tag Name". The filter render component
MultiselectFilterControl
has been updated to have special handling of selected values where the selection chips display the Tag Name and the Tag Category Name is displayed as a tooltip.Existing item filtering and filter values are still operating as a
string
orstring[]
, but use a string that can uniquely identify each tag. The net effect means that if a tag of the same name exists in more than one category, they are unique. Selecting one of those Tags will only select the tag in that specific category.Additional change details:
OptionPropsWithKey
renamedFilterSelectOptionProps
for more consistent type/component namingFilterToolbar
Screenshots
Tag chips displayed for selected tags:
Tag filter select: