-
Notifications
You must be signed in to change notification settings - Fork 53
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:[UIUX-707] remove box icon from the empty and other error state message #2253
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThe recent updates to the web application involve refining error messages, enhancing compliance data handling, and improving UI elements. Notable changes include updating error message text and formatting, adding a new method to fetch compliance data, and modifying the rendering logic of certain UI components. These changes aim to improve user experience and data clarity. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- webapp/src/app/shared/error-message/error-message.component.css (1 hunks)
- webapp/src/app/shared/error-message/error-message.component.html (1 hunks)
Files skipped from review due to trivial changes (1)
- webapp/src/app/shared/error-message/error-message.component.html
Additional comments not posted (1)
webapp/src/app/shared/error-message/error-message.component.css (1)
52-52
: LGTM! Ensure the new font size is consistent across different devices and screen sizes.
Quality Gate passedIssues Measures |
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- webapp/src/app/pacman-features/modules/assets/asset-details/asset-details.component.ts (1 hunks)
- webapp/src/app/pacman-features/modules/compliance/card/card.component.html (1 hunks)
- webapp/src/app/pacman-features/modules/compliance/compliance-dashboard/compliance-dashboard.component.ts (1 hunks)
- webapp/src/app/shared/constants/messages.ts (2 hunks)
Additional context used
Biome
webapp/src/app/pacman-features/modules/compliance/compliance-dashboard/compliance-dashboard.component.ts
[error] 510-510: Avoid the delete operator which can impact performance. (lint/performance/noDelete)
Unsafe fix: Use an undefined assignment instead.
Additional comments not posted (3)
webapp/src/app/pacman-features/modules/compliance/card/card.component.html (1)
42-42
: LGTM! The conditional rendering logic format-card-actions
is correctly updated to depend oncard.footer
and the absence ofdataError
.webapp/src/app/shared/constants/messages.ts (1)
134-136
: LGTM! The changes to theMESSAGES
object, including the removal oftitle
andimage
fields fromnoPolicyFound
and the addition ofnoViolationsForAsset
, align with the PR objectives to simplify error messages.webapp/src/app/pacman-features/modules/assets/asset-details/asset-details.component.ts (1)
682-682
: LGTM! The update toviolationErrorMessage
to use 'noViolationsForAsset' aligns with the PR objectives to simplify error messages.
@@ -804,6 +804,7 @@ export class ComplianceDashboardComponent implements OnInit, OnDestroy { | |||
this.policyDataError = ''; | |||
this.updatePoliciesTable(); | |||
this.getDistributionBySeverity(); | |||
this.getComplianceData(); |
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.
Tip
Codebase Verification
Ensure proper error handling in getComplianceData
.
- The current implementation of
getComplianceData
does not include comprehensive error handling. While it checks for an error in the response and throws it, there is no catch block or subscription error handling to manage potential errors from thegetOverallCompliance
service call.
Category:
Analysis chain
Ensure proper error handling in getComplianceData
.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify that error handling is implemented in `getComplianceData`.
# Test: Search for error handling in the method. Expect: Error handling code.
rg --type typescript $'getComplianceData' webapp/src/app/pacman-features/modules/compliance/compliance-dashboard/compliance-dashboard.component.ts
Length of output: 180
Script:
#!/bin/bash
# Description: Verify that error handling is implemented in `getComplianceData`.
# Test: Search for error handling in the method. Expect: Error handling code.
rg --type ts 'getComplianceData' webapp/src/app/pacman-features/modules/compliance/compliance-dashboard/compliance-dashboard.component.ts
Length of output: 205
Script:
#!/bin/bash
# Description: Extract the full implementation of the `getComplianceData` method to verify error handling.
# Test: Use ast-grep to extract the method implementation.
ast-grep --lang typescript --pattern $'class ComplianceDashboardComponent {
$$$
private getComplianceData() {
$$$
}
$$$
}' webapp/src/app/pacman-features/modules/compliance/compliance-dashboard/compliance-dashboard.component.ts
Length of output: 242
Script:
#!/bin/bash
# Description: Extract the full implementation of the `getComplianceData` method to verify error handling.
# Test: Use rg with context lines to extract the method implementation.
rg 'private getComplianceData' -A 20 -B 2 webapp/src/app/pacman-features/modules/compliance/compliance-dashboard/compliance-dashboard.component.ts
Length of output: 1024
Description
https://paladincloud.atlassian.net/browse/UIUX-707
Solution:
Extra:
Type of change
Does this change include any breaking change? If Yes, please elaborate.
No
How Has This Been Tested?
Checklist:
Other information:
Summary by CodeRabbit
New Features
Bug Fixes
Style
font-size
property to error message styling for improved readability.Improvements