Improve Where Was I worktree context and Git history#2342
Open
jamesmontemagno wants to merge 10 commits into
Open
Improve Where Was I worktree context and Git history#2342jamesmontemagno wants to merge 10 commits into
jamesmontemagno wants to merge 10 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2d224e01-e53f-46f8-beb2-0b8b64c5ee89
Contributor
|
🔴 Contributor Reputation Check: HIGH risk
Maintainers: please review this contributor before merging. |
Contributor
There was a problem hiding this comment.
Pull request overview
Enhances the Where Was I canvas with richer Git worktree context and diff previews.
Changes:
- Adds Git history, divergence, and worktree-change collection.
- Adds interactive diff previews and expanded resume context.
- Adds integration tests and releases version 1.1.0.
Show a summary per file
| File | Description |
|---|---|
extensions/where-was-i/package.json |
Updates package version. |
extensions/where-was-i/git-context.test.mjs |
Tests Git context and diff collection. |
extensions/where-was-i/git-context.mjs |
Implements Git context and file diffs. |
extensions/where-was-i/extension.mjs |
Adds graph, diff drawer, and resume behavior. |
extensions/where-was-i/.github/plugin/plugin.json |
Updates extension metadata version. |
.github/plugin/marketplace.json |
Publishes the updated marketplace version. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 5
- Review effort level: Medium
Comment on lines
+51
to
+55
| const rawPath = line.slice(3); | ||
| const renameMarker = rawPath.lastIndexOf(" -> "); | ||
| return { | ||
| code, | ||
| path: renameMarker >= 0 ? rawPath.slice(renameMarker + 4) : rawPath, |
|
|
||
| async function renderUntrackedFile(root, path) { | ||
| const { absolutePath, relativePath } = assertRepositoryPath(root, path); | ||
| const fileStat = await stat(absolutePath); |
Comment on lines
+138
to
+140
| const [branch, head] = await Promise.all([ | ||
| runGit(worktreeRoot, ["branch", "--show-current"]), | ||
| runGit(worktreeRoot, ["rev-parse", "--short", "HEAD"]), |
Comment on lines
+601
to
+602
| <div id="diff-overlay" class="diff-overlay"> | ||
| <section class="diff-panel" aria-label="File changes"> |
Comment on lines
+1003
to
+1005
| } catch (error) { | ||
| res.writeHead(500, { "Content-Type": "application/json" }); | ||
| res.end(JSON.stringify({ error: error.message || "Unable to send the resume prompt." })); |
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.
Summary
Validation
node --test extensions/where-was-i/git-context.test.mjsnpm run buildnpm run plugin:validate -- --plugin where-was-i