Show cumulative AIC usage on overview#123
Merged
Merged
Conversation
There was a problem hiding this comment.
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
includedAicCreditsprop 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
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
a931170 to
16f3574
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
refactor: add static chart legend itemsfeat: show cumulative AIC usage on overviewValidation
npm run lintnpm test -- --runnpm run build