Closed Omri-Levy closed 3 weeks ago
Latest commit: ad9049eeb1405600f1484bab927709dd72a04f21
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent updates enhance the risk severity classification in the backoffice application. Specifically, the OverallRiskLevel
component now distinguishes Severity.CRITICAL
with unique styles and the function getSeverityFromRiskScore
has been modified to return Severity.CRITICAL
instead of Severity.HIGH
for higher risk scores. Additionally, the MerchantMonitoringTable
has been updated to reflect these new severity level changes visually.
Files | Change Summaries |
---|---|
OverallRiskLevel.tsx |
Added classes text-destructive and text-background for Severity.CRITICAL . |
.../utils/get-severity-from-risk-score.ts |
Changed return value from Severity.HIGH to Severity.CRITICAL for higher risk scores. |
MerchantMonitoringTable/columns.tsx |
Updated columns export to include condition for Severity.CRITICAL . |
sequenceDiagram
participant UI as User Interface
participant ORL as OverallRiskLevel Component
participant GSR as getSeverityFromRiskScore
participant MT as MerchantMonitoringTable
UI->>ORL: Display risk level
ORL->>GSR: Fetch severity from risk score
GSR-->>ORL: Return Severity.CRITICAL or others
ORL-->>UI: Render with appropriate class
UI->>MT: Update merchant monitoring table
MT->>GSR: Fetch severity for table data
GSR-->>MT: Return Severity.CRITICAL or others
MT-->>UI: Render table with proper class
Amidst the code, where changes lie, A rabbit hops, with keen eye. Severity shifts, from high to critical, New styles bloom, so analytical. Tables update, risks align, In this patch, our codes refine. 🐇✨
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?
Summary by CodeRabbit