feat: add cost insights summary cards, move finops reports tab to cost insights view and do minor UX improvements - #752
Conversation
|
Warning Review limit reached
Next review available in: 6 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughCost Insights now uses project-scoped Insights and Cost Analysis tabs, overview summary cards, nested routing, shared gradient headers, pluralized breadcrumbs, enhanced chart tooltips, and forecast explanations. ChangesCost Insights experience
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant CostInsightsPage
participant CostInsightsInsightsTab
participant CostAnalysisPage
participant CostInsightsSummaryCard
User->>CostInsightsPage: Open Cost Insights route
CostInsightsPage->>CostInsightsInsightsTab: Render Insights tab
User->>CostInsightsPage: Select Cost Analysis tab
CostInsightsPage->>CostAnalysisPage: Lazy-load project-scoped analysis
CostInsightsSummaryCard->>CostInsightsPage: Follow scoped Cost Insights deep link
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.changeset/cost-insights-tabs-and-chart-ux.md:
- Around line 7-31: Add a changeset bullet documenting the new component- and
project-level Cost Insights overview summary cards, describing their
user-visible availability alongside the existing table and graph views. Keep the
release note focused on this shipped behavior without altering the other
entries.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: d6585be0-6c1f-4420-9984-43bd35ae5e3a
📒 Files selected for processing (24)
.changeset/cost-insights-tabs-and-chart-ux.mdpackages/portal-app/src/components/catalog/EntityPage.tsxpackages/portal-app/src/createPortalApp.tsxplugins/openchoreo-observability/src/alpha.test.tsxplugins/openchoreo-observability/src/alpha.tsxplugins/openchoreo-observability/src/components/CostInsights/CostInsightsBreadcrumb.test.tsxplugins/openchoreo-observability/src/components/CostInsights/CostInsightsBreadcrumb.tsxplugins/openchoreo-observability/src/components/CostInsights/CostInsightsGraph.test.tsxplugins/openchoreo-observability/src/components/CostInsights/CostInsightsGraph.tsxplugins/openchoreo-observability/src/components/CostInsights/CostInsightsPage.test.tsxplugins/openchoreo-observability/src/components/CostInsights/CostInsightsPage.tsxplugins/openchoreo-observability/src/components/CostInsights/CostInsightsSummaryCard.tsxplugins/openchoreo-observability/src/components/CostInsights/CostLineChart.test.tsxplugins/openchoreo-observability/src/components/CostInsights/CostLineChart.tsxplugins/openchoreo-observability/src/components/CostInsights/CostSummaryCards.tsxplugins/openchoreo-observability/src/components/CostInsights/ForecastDivergenceChart.tsxplugins/openchoreo-observability/src/components/Incidents/ObservabilityProjectIncidentsPage.tsxplugins/openchoreo-observability/src/index.tsplugins/openchoreo-observability/src/plugin.tsplugins/openchoreo-react/src/components/OpenChoreoEntityLayout/CompactEntityHeader.tsxplugins/openchoreo-react/src/components/OpenChoreoEntityLayout/GradientPageHeader.test.tsxplugins/openchoreo-react/src/components/OpenChoreoEntityLayout/GradientPageHeader.tsxplugins/openchoreo-react/src/components/OpenChoreoEntityLayout/index.tsplugins/openchoreo-react/src/index.ts
💤 Files with no reviewable changes (1)
- plugins/openchoreo-observability/src/alpha.test.tsx
8827a33 to
bf1b7ee
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…t insights view and do minor UX improvements Signed-off-by: Nilushan Costa <nilushan@wso2.com>
bf1b7ee to
4ea8dd9
Compare
Purpose
Implement the cost insights view in the backstage portal openchoreo#4381
Goals
Add cost insights summaries in the catalog and improve UX of cost insights graphs
Approach
Screenshots
Cost insights summary card at component level
Cost insights summary card at project level
Item highlights and total in the bar graph tooltip
Cost insights view with multiple tabs
Spend forecast tooltip

Summary by CodeRabbit
New Features
Bug Fixes