fix: tidy dashboard and cost intelligence pills for scope consistency#316
Merged
Conversation
Dashboard: trim 8 pills to 4 (Projects, Knowledge, Sessions, Net Savings). Remove low-value operational stats (Messages, Distillations, DB Size) and scope-mismatched Session Spend. Rename Est. Saved → Net Savings and make it lifetime-scoped (live + historical) to match the Sessions pill. Cost Intelligence: make all pills lifetime-scoped. Merge Live Sessions + Historical Sessions → Sessions. Replace Live Spend → Total Spend (live + historical persisted). Avoided Compactions and Net Savings were already lifetime-scoped. Remove dead formatBytes function (no remaining call sites in ui.ts).
61538ff to
80c4d10
Compare
BYK
added a commit
that referenced
this pull request
May 14, 2026
## Summary - **Live/total pill format**: stat pills on both Dashboard and Cost Intelligence now show `live/total` values (e.g. `3/951`), where the live number is large and bold, and the `/total` is smaller and muted. This gives at-a-glance "what's happening now" context without losing the lifetime perspective. - **Dashboard**: Sessions (`3/951`) and Net Savings (`$0.30/$12.50`) use the new format. - **Cost Intelligence**: Sessions, Spend, Avoided Compactions, and Net Savings/Overhead all use the new format. - **Per Session table**: adds a Project column with links to the project page, and makes session IDs link to their session detail page — matching the historical table's format. Builds on #316.
6 tasks
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
formatBytesfunction (last call site was the removed DB Size pill).Fixes temporal mismatch where "Live Spend" (gateway-uptime) sat next to "Net Savings" (lifetime aggregate).