Show token allocation and cost per million in Overview - #2855
Show token allocation and cost per million in Overview#2855Chipagosfinest wants to merge 66 commits into
Conversation
…end-converged # Conflicts: # README.md
|
@Yuxin-Qiao @clawsweeper ready for maintainer review / re-review.
This remains stacked behind #2759; the review order and focused product commits are called out at the top of the PR. |
|
@clawsweeper re-review Exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@Yuxin-Qiao @steipete could you also take a look at this focused follow-up after #2759? Exact head |
|
The stacked token-allocation PR is refreshed at exact head
Merge order remains #2759 first, then #2855. @Yuxin-Qiao @steipete — ready for maintainer review. No merge action was taken. |
|
Thanks for the detailed updates and for looping me in. Just to clarify, I’m not a maintainer of CodexBar and don’t have authority to approve or merge these PRs, so I may not be the right person to make the product-scope decision. I’ll leave that to the repository maintainers. Apologies for any confusion, and thank you for the thorough work. |
|
Closing this cumulative stacked PR in favor of the focused Overview foundation in #3023. Token allocation is intentionally deferred until that smaller slice lands, then it can be rebuilt from current main as an independent follow-up without inheriting the 79-file stack. The branch remains preserved. |
Review order
This is a stacked follow-up to #2759.
ff3374eand its lint-only follow-upeb12b5e.UI proof: baseline to allocation
Every value below is synthetic. The after images visibly say
SYNTHETIC DATA · PRODUCTION COMPONENTSand render the production Overview summary/provider-row components at the real 310-point menu width.Before: multi-provider Overview from #2759
After: complete allocation
Exact 3/3 reporting, a provider-colored known-token strip, token shares, and approximate same-row cost per 1M tokens.
After: partial data and a long roster
Six tracked providers remain visible. The summary becomes approximate, the missing rate stays unavailable, and the compact legend uses
+3overflow without hiding the provider rows.After: native currencies and a tiny positive rate
EUR and USD remain separate. A positive sub-cent normalized rate renders as
<$0.01 / 1M, while its nonzero total spend remains visible as$0.04.Existing share flow from #2759
This follow-up does not change local share/export. The base PR continues to own that experience.
Wide Settings proof · Narrow Settings proof · Allocation screenshot provenance and regeneration
What this changes
The Overview spend card now explains how known tokens are allocated instead of showing only a single total.
Product contract
<$0.01(or the currency's minimum visible unit), never$0.00.Verification
Exact head:
36cf2cdfb8088092a0eb792a3d6304521ceccbc0lint-macospassed: 22 locale catalogs / 1,392 English keys plus formatting checks.1483edaand the current “Overview rows” preference copy.The renderer is opt-in and skips unless
CODEXBAR_OVERVIEW_ALLOCATION_PROOF_DIRis set. Local Swift tests cannot reach the CodexBar target on this CLT-only Mac because the dependency toolchain cannot loadPreviewsMacros; hosted macOS execution above is the runtime evidence.