feat: soft theme, partial diff hydration, and base branch switcher - #29
Merged
Conversation
Adds a loadDiffFiles loader to the diff viewer so hunk expansion can
reach the entire file instead of dead-ending at the patch context.
- GET /api/blob serves repo blobs by (abbreviated) object id, or
working-tree files by validated repo-relative path (worktree=1)
- GET /api/pull/{org}/{repo}/{number}/file proxies one side of a PR
file from GitHub via gh, fork-aware at the base/head sha
- both cap contents at 5 MB and reject binary (NUL byte) content
- the web loader picks blob oid vs worktree vs PR proxy per source
and hydrates both sides in parallel; failures leave the diff partial
Pure renames carry no index line, so the local-store hydration path threw 'missing prevObjectId' whenever a rename-pure file was expanded. Read the unchanged content from the worktree instead, and reject an all-zeros prevObjectId up front rather than 404ing on the blob fetch.
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
/api/branches)cargo runinpnpm devso embedded UI stays current