-
Notifications
You must be signed in to change notification settings - Fork 496
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
feat(frontend): critical alerts UI #4653
base: main
Are you sure you want to change the base?
Conversation
Deploying windmill with Cloudflare Pages
|
…ut through a plug icon (#4652) * Add flow prop picker # Conflicts: # frontend/src/lib/components/propertyPicker/PropPicker.svelte * fix unwanted copy * cleaning * Fix unset context * move button and always display input * fix unwanted proppicker display * update * update * clean all * clean all --------- Co-authored-by: Ruben Fiszel <[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.
👍 Looks good to me! Reviewed everything up to 0d33835 in 2 minutes and 25 seconds
More details
- Looked at
7294
lines of code in19
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. backend/windmill-api/src/settings.rs:522
- Draft comment:
Consider adding a condition to the SQL query inacknowledge_all_critical_alerts
to ensure only critical alerts are acknowledged, if there are different types of alerts in the system. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment is speculative, as it assumes there might be different types of alerts without evidence. The current code does not show any indication of different alert types being handled differently. The comment does not provide strong evidence of an issue.
The comment could be valid if there are indeed different types of alerts in the system, but without evidence, it remains speculative. The code does not show any filtering by alert type, which might be intentional.
Without evidence of different alert types, the comment remains speculative. The code as it stands does not indicate a need for such a condition.
The comment is speculative and lacks strong evidence of an issue. It should be deleted.
2. frontend/src/lib/components/sidebar/CriticalAlertButton.svelte:7
- Draft comment:
Typo:numUnaknowledgedCriticalAlerts
should benumUnacknowledgedCriticalAlerts
. This typo is present in multiple files. - Reason this comment was not posted:
Confidence changes required:50%
Infrontend/src/lib/components/sidebar/CriticalAlertButton.svelte
, the variablenumUnaknowledgedCriticalAlerts
is misspelled. It should benumUnacknowledgedCriticalAlerts
. This typo is consistent across multiple files and should be corrected for consistency and clarity.
3. frontend/src/lib/components/sidebar/CriticalAlertModal.svelte:14
- Draft comment:
Typo:numUnaknowledgedCriticalAlerts
should benumUnacknowledgedCriticalAlerts
. This typo is present in multiple files. - Reason this comment was not posted:
Confidence changes required:50%
Infrontend/src/lib/components/sidebar/CriticalAlertModal.svelte
, the functionupdateHasUnaknowledgedCriticalAlerts
has a typo in the variable namenumUnaknowledgedCriticalAlerts
. It should benumUnacknowledgedCriticalAlerts
. This typo is consistent across multiple files and should be corrected for consistency and clarity.
4. frontend/src/lib/components/sidebar/CriticalAlertModal.svelte:121
- Draft comment:
Typo:numUnaknowledgedCriticalAlerts
should benumUnacknowledgedCriticalAlerts
. This typo is present in multiple files. - Reason this comment was not posted:
Confidence changes required:50%
Infrontend/src/lib/components/sidebar/CriticalAlertModal.svelte
, the functionupdateHasUnaknowledgedCriticalAlerts
has a typo in the variable namenumUnaknowledgedCriticalAlerts
. It should benumUnacknowledgedCriticalAlerts
. This typo is consistent across multiple files and should be corrected for consistency and clarity.
5. frontend/src/routes/(root)/(logged)/+layout.svelte:282
- Draft comment:
Typo:numUnaknowledgedCriticalAlerts
should benumUnacknowledgedCriticalAlerts
. This typo is present in multiple files. - Reason this comment was not posted:
Confidence changes required:50%
Infrontend/src/routes/(root)/(logged)/+layout.svelte
, the variablenumUnaknowledgedCriticalAlerts
is misspelled. It should benumUnacknowledgedCriticalAlerts
. This typo is consistent across multiple files and should be corrected for consistency and clarity.
Workflow ID: wflow_f3MlcxIp7d3czdNS
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on f11d2f4 in 57 seconds
More details
- Looked at
35
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. frontend/src/lib/components/propertyPicker/PropPicker.svelte:128
- Draft comment:
Remove commented-out code to keep the codebase clean and maintainable. - Reason this comment was not posted:
Confidence changes required:50%
The code contains commented-out sections that are not needed. These should be removed to keep the code clean and maintainable.
2. frontend/src/lib/components/propertyPicker/PropPicker.svelte:44
- Draft comment:
Remove unnecessary whitespace for better readability and maintainability. - Reason this comment was not posted:
Confidence changes required:20%
The code contains unnecessary whitespace that should be removed for better readability and maintainability.
3. frontend/src/lib/components/flows/content/FlowLoop.svelte:133
- Draft comment:
Remove unnecessary backticks for better readability and maintainability. - Reason this comment was not posted:
Confidence changes required:20%
The code contains unnecessary backticks that should be removed for better readability and maintainability.
Workflow ID: wflow_vKCXz0aojHE24vLw
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
NOTES:
|
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.
👍 Looks good to me! Incremental review on 003ec71 in 1 minute and 43 seconds
More details
- Looked at
86
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. backend/windmill-api/src/settings.rs:520
- Draft comment:
Consider checking if the alert ID exists before updating and return an appropriate error if it does not exist. - Reason this comment was not posted:
Comment was on unchanged code.
2. backend/windmill-api/src/settings.rs:540
- Draft comment:
Consider checking if any alerts were updated and return a message indicating if there were no unacknowledged alerts. - Reason this comment was not posted:
Comment was on unchanged code.
3. frontend/src/lib/components/sidebar/CriticalAlertModal.svelte:71
- Draft comment:
Consider adding error handling for theacknowledgeAllCriticalAlerts
service call to handle potential failures. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_tzAHdNKqA4dxvcas
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on a933af2 in 55 seconds
More details
- Looked at
156
lines of code in6
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. backend/windmill-common/src/utils.rs:289
- Draft comment:
Ensure error handling forcheck_mute_status
is robust. Consider logging or handling the error ifunwrap_or(false)
is not the desired fallback behavior. - Reason this comment was not posted:
Confidence changes required:50%
The functioncheck_mute_status
is used to determine if alerts should be muted. It fetches a boolean value from the database, which is then used to set theacknowledged
field when inserting alerts. This logic seems correct and aligns with the PR description.
Workflow ID: wflow_GIqTM7SfKz8kGLms
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Add critical alerts UI with backend support for managing alerts in
settings.rs
and frontend components for display and interaction.get_critical_alerts
,acknowledge_critical_alert
, andacknowledge_all_critical_alerts
functions insettings.rs
for managing critical alerts.global_service
router insettings.rs
to include new routes for critical alerts.acknowledged
column toalerts
table with migration scripts.CriticalAlertButton.svelte
andCriticalAlertModal.svelte
for displaying and managing critical alerts in the UI.SuperadminSettings.svelte
andinstanceSettings.ts
to include settings for critical alerts.+layout.svelte
to integrate critical alerts UI components and logic.This description was created by for a933af2. It will automatically update as commits are pushed.