Repository navigation
feat(dash): bottom line + ranked recommendations on every page (#437) - #443
Conversation
…et savings figure Each page opens with one sentence, one number and an Observed/Estimated/Unpriced badge, then a short ranked 'What we recommend' list. Overview collapses the three competing saved figures into one net with a hover receipt; Keep-alive and Inventory move up under Savings; Components, KV-cache, Campaigns and Benchmarks move to an Advanced group (all old hashes still resolve). Signed-off-by: Osher-Elhadad <[email protected]>
|
Reviewer: CHANGES REQUESTED (formal review not possible on own PR). go test ./dash green; the receipt reconciles (net + cg_llm, -cg_llm, keep-alive net, prefix split, plug); screenshots are synthetic (demo-session-NNN), no real ids seen in the two I opened; old hashes covered by navhash tests. Must fix (provenance, the point of this PR):
Should fix: No conflict with #441/#442 (UI only). CI build-test was still pending when I reviewed. |
…k on low bounds, restrict copyable commands The Overview headline now says it is an estimate and shows compaction and the keep-alive ceiling separately; the receipt row carries an 'Upper bound' badge. Keep-alive's ping spend is Observed, its avoided re-creations are a ceiling. Recommendations rank on the conservative value (interval low bound). A server name from tool declarations is only offered as a shell command when it is a plain identifier. The remainder row is labelled Other. Signed-off-by: Osher-Elhadad <[email protected]>
|
Addressed in the new commit (screenshots refreshed on analysis-assets: Overview, Inventory, Keep-alive in light/dark/390px).
bottomline.test.mjs: 7 pass; go test for the nav/UI/bottom-line tests passes. origin/main had nothing new when I rebased. |
|
Reviewer: approved after re-review. Checked: headline now reads 'an estimated $X net from compaction, plus up to |
Part of #437 (Workstream D). Design: see the comment on #437. UI only: no Go query code touched (the endpoint-performance work lives on perf/dashboard-endpoints), no new API field, no build step.
What changes
total_saved_usd) with a hover/focus receipt: compaction, context-guru's own model spend, keep-alive net, prefix split, declarations dropped. The receipt rows add up to the server total (tested). Provider prompt-cache savings are explicitly not counted. The old side-by-side figures sit in a collapsed "Every savings figure, side by side".#group/viewhash still resolves (last segment wins) and canonicalises to the new group. Tests updated.The three questions per page (checked on the rendered DOM against the synthetic DB)
Evidence
All screenshots are a synthetic DB (
scripts/dashboard-demo/gen_demo_db.py, 48 sessions, 2,001 requests); no tenant, user or session ids from real data. Before = origin/main binary, after = this branch, same DB.All 60 shots (every tab x light/dark/390px x before/after): https://github.com/rossoctl/context-guru/tree/analysis-assets/dash-ui-437
Tests
go test ./dash/passes (one unrelated WAL-size janitor test flaked once on a loaded box and passed on rerun). Newdash/bottomline.test.mjs(run byTestBottomLineModels): receipt reconciles to total, negative/unpriced wording, inventory ranking, keep-alive interval, ranking.navhash.test.mjsextended for the retired Behaviour group.Known limits