feat:[UIUX-707] remove box icon from the empty and other error state message#2253
feat:[UIUX-707] remove box icon from the empty and other error state message#2253go-jay wants to merge 2 commits into
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.
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.
|
There was a problem hiding this comment.
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-actionsis correctly updated to depend oncard.footerand the absence ofdataError.webapp/src/app/shared/constants/messages.ts (1)
134-136: LGTM! The changes to theMESSAGESobject, including the removal oftitleandimagefields fromnoPolicyFoundand 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 toviolationErrorMessageto use 'noViolationsForAsset' aligns with the PR objectives to simplify error messages.
| this.policyDataError = ''; | ||
| this.updatePoliciesTable(); | ||
| this.getDistributionBySeverity(); | ||
| this.getComplianceData(); |
There was a problem hiding this comment.
Tip
Codebase Verification
Ensure proper error handling in getComplianceData.
- The current implementation of
getComplianceDatadoes 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 thegetOverallComplianceservice 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-sizeproperty to error message styling for improved readability.Improvements