docs(perfile): design — resolved-item outcomes & per-item activity (#43)#68
Draft
jordanrburger wants to merge 2 commits into
Draft
docs(perfile): design — resolved-item outcomes & per-item activity (#43)#68jordanrburger wants to merge 2 commits into
jordanrburger wants to merge 2 commits into
Conversation
App-side, git-derived per-item activity timeline in a detail pane (mirrors Control Center's .side/.full panel); per-commit expandable diffs; reverse commit→run linkage. Resolved+active items. No scout-plugin changes (v1). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7 tasks: GitService per-file history + single-commit diff, CommitRunLinker (reverse commit→run), ItemActivityEntry builder, PerFileItemActivityModel, detail/diff views, selectable cards + side/full pane, cross-tab open-run. Tasks 1-4 TDD (14 new tests); 5-7 build-verified views/wiring. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Design spec for review — #43 resolved-item outcomes
This PR is a design spec only — no code. Opening it for review of the approach before implementation.
Adds
docs/superpowers/specs/2026-06-28-perfile-resolved-outcomes-design.md: a per-item, git-derived activity timeline for the Wishlist/Research tabs, shown in a Control-Center-style detail pane.What it proposes
.side/.fullpanel — no navigation-model surgery) that lists the commits touching an item's file, newest first.SessionLogService.commits(for:)'s time-window + subject-prefix heuristic) or "you" for in-app/manual changes, and expands in place to that commit's diff.Decisions captured (from brainstorming)
New/changed pieces (preview of the plan)
GitService.commits(touching:)—git log --follow -- <relPath>CommitRunLinker— reverse commit→run mapping, colocated withSessionLogServiceItemActivityEntry,PerFileItemActivityModel,PerFileItemDetailView,CommitDiffViewPerFileListView/PerFileItemCardViewselection + side panel;AppState.requestOpenRun(_:)cross-tab hookHonest limit
The commit→run link is the same heuristic the app already trusts, run in reverse — it can mis-attribute or miss. That's acceptable because the diff is always shown regardless of the run link, so evidence is never hidden.
Process
Built via the brainstorming skill (context exploration → 4 scoping decisions → design → spec self-review). Implementation plan (writing-plans) follows once the spec is approved.
Relates to #43. Pairs with #42 ("Do now") and #50 (implemented-proposal detail).
🤖 Generated with Claude Code