-
Notifications
You must be signed in to change notification settings - Fork 33
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
RHCLOUD-32197 Support Case Widget updates #598
base: master
Are you sure you want to change the base?
Conversation
const severityMenuItems = ( | ||
<SelectList> | ||
<SelectOption | ||
hasCheckbox | ||
key={severityTypes.low} | ||
value={severityTypes.low} | ||
isSelected={filters.severity.includes(severityTypes.low)} | ||
> | ||
{severityTypes.low} | ||
</SelectOption> | ||
<SelectOption | ||
hasCheckbox | ||
key={severityTypes.normal} | ||
value={severityTypes.normal} | ||
isSelected={filters.severity.includes(severityTypes.normal)} | ||
> | ||
{severityTypes.normal} | ||
</SelectOption> | ||
<SelectOption | ||
hasCheckbox | ||
key={severityTypes.high} | ||
value={severityTypes.high} | ||
isSelected={filters.severity.includes(severityTypes.high)} | ||
> | ||
{severityTypes.high} | ||
</SelectOption> | ||
<SelectOption | ||
hasCheckbox | ||
key={severityTypes.urgent} | ||
value={severityTypes.urgent} | ||
isSelected={filters.severity.includes(severityTypes.urgent)} | ||
> | ||
{severityTypes.urgent} | ||
</SelectOption> | ||
</SelectList> | ||
); |
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.
This could be definitely deduplicated - generated just from array of severity variants
setIsStatusExpanded(!isStatusExpanded); | ||
}; | ||
|
||
const statusMenuItems = ( |
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.
this could be deduplicated as well
</SelectList> | ||
); | ||
|
||
const toggleGroupItems = ( |
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.
this could be auto-generated as well
Description
Add filtering and sorting to support case widget table.
RHCLOUD-32197
Screenshots
Before:
After:
Checklist ☑️
PR only fixes one issue or story
Change reviewed for extraneous code
UI best practices adhered to
Commits squashed and meaningfully named
All PR checks pass locally (build, lint, test, E2E)