-
Notifications
You must be signed in to change notification settings - Fork 447
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
[Manager] Add button in event log to display only alerts (errors) #5313
Conversation
This adds a wxButton to the window to allow the user to filter the event log by alerts.
New bools added to be used to determine if filtering by alert/errors is active and if the filtering has changed.
Consolidates code used multiple times in OnErrorFilter and OnMessagesFilter.
New function created to filter errors (alerts) when alert filter button is used.
Additions or modifications to either maintain functionality of the existing function and/or to include functionality for filtering by alerts.
Prevents the filter alerts button from being cut off when the window is reduced in width.
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.
Thank you for the PR. It looks great.
Please fix the names and also remove trailing workspaces (see the failed CI check).
Nice! |
I'm fine with "Show only alerts", but I'm concerned "show all" may imply that all filtering is being reset. All it does is reset the filter for message priority. This allows the user to filter by a project, and then toggle a filter for alerts if they want. |
I think it would be clear - the user clicks "show only alerts" |
@davidpanderson, fixed the button text as requested. Additionally, I had adjust the minimum width for the window to account for the old button text; I have not reverted it since it is no longer needed. |
Fixes #4258
Description of the Change
Button added to the event log window to filter out alerts (aka errors). Button toggles to display only alerts and to all message types. Functionality was also added to the "show all messages" button as well. For example, if messages are filtered by a project and then the alert button is clicked, then only alerts for that specific project are displayed.
Screen shots:
New button added:
When alerts are filtered:
When alerts and a project are filtered:
Alternate Designs
None considered.
Release Notes
Add button in event log to display only alerts.