feat: a module's sidebar is scoped to its lines - #16
Draft
bryan-uipath wants to merge 2 commits into
Draft
bryan-uipath wants to merge 2 commits into
bryan-uipath wants to merge 2 commits into
Conversation
bryan-uipath
force-pushed
the
feat/pr-focus
branch
from
September 5, 2026 20:12
8d75c4e to
7951044
Compare
bryan-uipath
force-pushed
the
feat/span-scoped-sidebar
branch
from
September 5, 2026 20:12
b807cc7 to
d6fc561
Compare
Commits come from git log -L over the module's span (/api/log?start&end, cached per span, latest diff drawn from that list) and the PR list keeps only PRs whose hunks touch it. Span end is now inclusive. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
-L failure now reports scoped:false and the list says "Recent commits · file". The commit log keys on the module's own lines (logSpan), not the widened reading window; it loads from setSelection so tour steps get a latest diff, and the source pane is no longer refetched when the log lands.
bryan-uipath
force-pushed
the
feat/pr-focus
branch
from
September 7, 2026 20:11
7951044 to
f75fd99
Compare
bryan-uipath
force-pushed
the
feat/span-scoped-sidebar
branch
from
September 7, 2026 20:11
7af563d to
2ba8c88
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.
Stacked on #15.
Selecting (or hovering) a function, class or markdown section already showed its source span; now the rest of the inspector follows:
/api/logacceptsstart/endand runsgit log -L start,end:path --no-patch(falls back to the file log when the range fails); the sidebar fetches once per span, caches it, titles the list "Commits on these lines", and takes the latest diff from that list.prsTouching(path, mod)keeps only PRs whosePr.spanshunks intersect the module; PRs without spans (older data) stay.line + loc - 1).Known gap: the LOC/CHURN/FIX/RECENT grid for a module still shows its file's numbers — the commit stream has no line info;
git log -Lcounts could replace CHURN later.🤖 Generated with Claude Code