Repository navigation
web(#2929): de-conflict the rest bucket color from the unattributed parent - #2959
Conversation
The chart legend's 'rest' swatch shared the parent group's purple (#8250df == det.cause_unattrib), so 其余 was indistinguishable from 未归因回补 itself. Point CAUSE_COLOR.rest and the two standalone legend swatches at #9aa1a8 — the same light gray the economics card chips already use (#2934/e76b35f9), keeping card<->chart consistent.
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.3349-pr.2959.f16f1beThis exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr2959.tgz
npm install -g packageInstall instructions are refreshed on each push. |
[bot] 🏷 Reviewed the branch ( Finding: } else {
parts.push(legendItem("background:#8250df", t("det.cause_ttl"))); // ← still purple
}That branch renders when the ledger predates #1606 (no Verified on the branch:
CI (at time of writing): all static/guard gates green (static-gates ×4 OS, lane/kernel/pi-subagents guards, lock-sync, config-surface-guard, docs-surface checks, build-artifact); test jobs re-running on the new head. 结构化八问:
判定:代码已对齐 issue 声明的全部三个渲染点,等 CI 全绿即可合并(合并由你操作:https://github.com/ranxianglei/billion-context/pull/2959)。 |
[bot] 🏷 CI closed out — fully green, merge-ready. Follow-up to my review above: Main CI (run on build-artifact job — failed once, self-healed:
八问(收工版):
判定:可合并。合并由你操作:#2959 |
Top-of-page surfaces (overview table, hit row) speak in % while the economics card only gave absolutes — inconsistent for a card whose job is 'where did this go'. Now: - each tile value gets its share of TOTAL INPUT — same denominator as the cache-hit % above (new content 1.3%, post-fold rebuild 0.5%, unattributed repay 1.5%); - the unattributed tile's chips get their share of that tile's parent total instead (41% provider-side / 32% rest / 15% rewind / 11% seam), since 'what eats the 2.6M' is the split users actually compare; - zero values render no percentage; abortCorrelated stays a bare count marker (it carries no token charge). Pure numeric formatting — no i18n keys, no ledger changes.
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.352-master.e462620 # this exact build
npm install -g billion-context@master # always the newest merged build
|
Follow-up to #2934 (merged d738886).
In the trajectory legend's bordered ⊇ group, the rest sub-item swatch was painted
#8250df— the same purple as the parent 'unattributed repay' marker — so 'other' read as 'unattributed' rather than as its own dust bucket. Card chips had already moved to light gray (e76b35f); the chart-side copies were missed.This points all three chart-side rest renderers at
#9aa1a8:CAUSE_COLOR.rest(band fill + spine stroke at client.ts:870/874)No logic, no i18n, no other buckets touched. DOM probe on the real 2500-sample session confirms: unattributed = rgb(130,80,223) purple, other = rgb(154,161,168) gray.