RHDHBUGS-3045 Scorecard: Display correct legend for average aggregation - #3147
Conversation
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Code Review by Qodo
1.
|
Changed Packages
|
Review Summary by QodoFix average card tooltip to show breakdown in center donut instead of legend
WalkthroughsDescription• Replaced side-legend tooltips with center donut tooltip breakdown • Added per-status breakdown rows in center tooltip showing count and score • Removed status pie chart and legend from average card component • Added new translation keys for center tooltip breakdown across 7 languages • Updated e2e tests to verify center tooltip instead of legend tooltips Diagramflowchart LR
A["Average Card Component"] -->|removed| B["Status Pie Chart"]
A -->|removed| C["Legend Tooltips"]
A -->|added| D["Center Donut Tooltip"]
D -->|displays| E["Total Score"]
D -->|displays| F["Max Possible Score"]
D -->|displays| G["Per-Status Breakdown"]
G -->|shows| H["Status, Count, Score"]
File Changes1. workspaces/scorecard/packages/app-legacy/e2e-tests/scorecard.test.ts
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3147 +/- ##
==========================================
- Coverage 61.02% 61.01% -0.02%
==========================================
Files 2084 2084
Lines 64523 64522 -1
Branches 16873 16875 +2
==========================================
- Hits 39375 39365 -10
- Misses 24861 24870 +9
Partials 287 287
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Eswaraiahsapram
left a comment
There was a problem hiding this comment.
Thanks @imykhno, tested in local. Looks good to me.
However, there was a minor suggestion that needs to be addressed before this can be merged.
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
|
Eswaraiahsapram
left a comment
There was a problem hiding this comment.
Thanks @imykhno, tested locally. 🎉
/lgtm



Hey, I just made a Pull Request!
This issue originated from the homepage widget for the Average aggregation type card. The card features a chart with its own threshold color configuration, while the metric provider colors are also displayed in the legend. This can confuse users, as these colors may differ. The card was changed to the following:
Fix for the:
✔️ Checklist