feat(vscode): compare arbitrary revision graphs - #85
Merged
Conversation
Contributor
Author
|
Updated the revision action layout in
Validation: |
Contributor
Author
|
CI asset drift is fixed in Validation:
The remaining matrix jobs are still in progress. |
forhappy
marked this pull request as ready for review
July 30, 2026 16:21
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
Why
The comparison backend already accepted arbitrary revision IDs, but the history UI exposed only parent buttons. That made non-adjacent comparisons impossible even when both graphs were available. Missing graphs also forced users out of the comparison flow.
This change exposes the backend capability directly and keeps graph materialization, comparison, and recovery in one workflow.
User impact
Users can select any loaded commit as a baseline, load older commits through the existing timeline pagination, build either missing graph on demand, and inspect source, graph, and semantic changes between arbitrary revisions.
Screenshots
Light theme
Dark theme
Validation
npm test -w @compass/viewer— 110 tests passednpm test -w crabbuild-compass-vscode— 100 tests passednpm test -w @compass/viewer-tests -- history.spec.ts— 14 tests passednpm test -w @compass/viewer-tests -- theme.spec.ts— 16 tests passednpm run typecheck -w @compass/viewernpm run typecheck -w crabbuild-compass-vscodegraphify update .git diff --check