Skip to content

fix: tidy dashboard and cost intelligence pills for scope consistency#316

Merged
BYK merged 1 commit into
mainfrom
ui/tidy-dashboard-pills
May 14, 2026
Merged

fix: tidy dashboard and cost intelligence pills for scope consistency#316
BYK merged 1 commit into
mainfrom
ui/tidy-dashboard-pills

Conversation

@BYK
Copy link
Copy Markdown
Owner

@BYK BYK commented May 14, 2026

Summary

  • Dashboard: trim top-level pills from 8 → 4 (Projects, Knowledge, Sessions, conditional Net Savings). Removes low-value operational stats (Messages, Distillations, DB Size) and scope-mismatched Session Spend. Renames "Est. Saved" → "Net Savings" and makes it lifetime-scoped (live + historical) to match the Sessions pill.
  • Cost Intelligence: make all pills lifetime-scoped. Merges "Live Sessions" + "Historical Sessions" → single "Sessions" count. Replaces "Live Spend" (gateway-uptime only) → "Total Spend" (live + historical persisted conversation + worker cost). Avoided Compactions and Net Savings/Overhead were already lifetime-scoped — unchanged.
  • Dead code: removes unused formatBytes function (last call site was the removed DB Size pill).

Fixes temporal mismatch where "Live Spend" (gateway-uptime) sat next to "Net Savings" (lifetime aggregate).

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).
@BYK BYK force-pushed the ui/tidy-dashboard-pills branch from 61538ff to 80c4d10 Compare May 14, 2026 17:59
@BYK BYK merged commit cf5c1c3 into main May 14, 2026
7 checks passed
@BYK BYK deleted the ui/tidy-dashboard-pills branch May 14, 2026 18:02
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.
@craft-deployer craft-deployer Bot mentioned this pull request May 14, 2026
6 tasks
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.

1 participant