RHIDP-16658: Consume backend-provided color for scalar aggregation KPI cards - #4582
Conversation
…gregation response Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Unexpected ChangesetsThe following changeset(s) reference packages that have not been changed in this PR:
Note that only changes that affect the published package require changesets, for example changes to tests and storybook stories do not require changesets. Changed Packages
|
PR Summary by QodoReturn backend-calculated colors for scalar aggregation KPI cards
AI Description
Diagram
High-Level Assessment
Files changed (15)
|
|
🤖 Finished Review · ✅ Success · Started 12:55 PM UTC · Completed 1:03 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Cost: $1.33 |
|
Code Review by Qodo
1. Optional colors now fail requests
|
Review — commentPR: #4582 — RHIDP-16658: Consume backend-provided color for scalar aggregation KPI cards SummaryThis PR adds backend-computed
The refactor is faithful — Findings1. Cross-package deep import from frontend test into backend
|



Hey, I just made a Pull Request!
In this PR, we added the
result.aggregationChartDisplayColorattribute to the scalar aggregation response. The color will be calculated on the backend, which now returns only the correct value.Dropping
result.thresholdswas not implemented in this PR, as we decided that the UI may still need threshold information for certain chartsThis PR is for:
✔️ Checklist