Skip to content

Show cumulative AIC usage on overview#123

Merged
asizikov merged 2 commits into
mainfrom
asizikov/cumulative-aic-chart
May 21, 2026
Merged

Show cumulative AIC usage on overview#123
asizikov merged 2 commits into
mainfrom
asizikov/cumulative-aic-chart

Conversation

@asizikov
Copy link
Copy Markdown
Member

@asizikov asizikov commented May 21, 2026

Summary

Replace the Overview daily requests vs AI Credits chart with a cumulative AIC gross cost chart that shows when included credits are consumed and when additional spend begins.

Commit Change
refactor: add static chart legend items Adds reusable non-interactive static legend items to the shared line chart and uses them for the existing cost-management simulated additional usage legend.
feat: show cumulative AIC usage on overview Adds a cumulative AIC gross cost chart, included-credit threshold, additional-spend legend, and scope-aware included-credit copy for organization and individual reports.

Validation

  • npm run lint
  • npm test -- --run
  • npm run build

Copilot AI review requested due to automatic review settings May 21, 2026 20:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Overview dashboard to focus on usage-based billing by replacing the daily PRU vs AIC quantity chart with a cumulative AIC gross cost chart that visualizes included-credit consumption and when additional spend begins, plus scope-aware included-credit explanatory copy.

Changes:

  • Adds a cumulative AIC gross cost chart with an included-credits threshold line and segment coloring to indicate when usage exceeds the included value.
  • Introduces an includedAicCredits prop to drive included-credit threshold/value display on the Overview.
  • Updates the included-credits informational callout to be scope-aware (individual vs organization).
Show a summary per file
File Description
src/views/OverviewView.tsx Replaces the old daily requests vs AIC chart with a cumulative AIC gross cost visualization and adds included-credits threshold + scope-aware explanatory copy.
src/App.tsx Passes calculated included AIC credits into OverviewView via a new prop.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread src/views/OverviewView.tsx Outdated
Comment thread src/views/OverviewView.tsx Outdated
asizikov and others added 2 commits May 21, 2026 22:40
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@asizikov asizikov force-pushed the asizikov/cumulative-aic-chart branch from a931170 to 16f3574 Compare May 21, 2026 20:42
@asizikov asizikov merged commit 9b67b1a into main May 21, 2026
9 checks passed
@asizikov asizikov deleted the asizikov/cumulative-aic-chart branch May 21, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants