feat(panel): add insights overview to the outcomes tab - #150
Merged
Conversation
StuBehan
force-pushed
the
feat/insights-tab
branch
from
August 10, 2026 10:59
ebc4f86 to
f087167
Compare
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.
What
Adds an Insights overview and folds it in with the existing per-ticket view as one Outcomes tab (
⌘4), so usage and outcomes live together. No new capture: it reads the same handoff ledger plus the per-branch outcome/PR state the ticket view already computes, so the two agree by construction.The Outcomes tab (two panes)
Lands on the Overview (the aggregate);
→carousels into the Tickets list,←back (mirrors the Usage tab's pane carousel). Settings stays at⌘5.Overview (a scroll page:
↑↓scroll,⌘↑↓jump,Wcycles the window):STACKNUDGE_TICKET_URL) or its PR.Tickets: the existing per-ticket rollup, unchanged, now reached with
→/←.Design notes
Insights.summarize(...)is pure (no I/O) and unit-tested; it rolls up over the ledger plus the outcome/PR maps.OutcomeWatcher.effective(local:pr:)so both panes share one "did it ship?" definition (a squash-merged branch reads shipped in each).ModelName.short(used by Sessions and Insights) and added a smallFlowLayoutso the model pills wrap instead of compressing.contextTokens, the same effort proxy the ticket view shows); per-model dollar cost and reclaimed-time are planned follow-ups.Testing
InsightsTests: bucket math, shipped-share, the staleness cutoff, PR-supersedes-local, top-tickets ranking and dominant-status precedence, per-agent shipped share, window boundary, and empty/nil cases.scripts/typecheck-tests.shis green; assertions were verified locally via an in-module harness (swift testneeds Xcode, so CI runs the real suite).