feat: view published Git repositories as repositories - #11
Merged
Conversation
Port Qortium Home's bounded read-only Git reader (qdnGitRepository + qdnGitClient + the install-time isomorphic-git inflation/delta hardening) into Explore. A resource whose published files form a bare or worktree Git layout now renders as a repository: current branch, latest commit, and the file tree at that commit, with in-app blob previews through the shared content preview. Detection failures fall back to the plain file view. Co-Authored-By: Claude Fable 5 <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.
What
Ports Qortium Home's bounded, read-only Git repository reader into Explore — the first half of moving the Git viewer out of Home (part (a): file tree + blob reader; part (b), branch switching + commit history UI, comes next on top of this).
src/qdnGitRepository.ts+src/qdnGitClient.tsported from Home unchanged in substance: virtual read-only FS over the published file list, layout detection (bare + worktree), path/ref/size/count bounds, 100 MiB cache ceiling, lazy isomorphic-git chunk.scripts/patch-isomorphic-git.mjscarried across in the same PR and wired aspostinstall— bounded streaming inflate + delta target-size cap, version-allowlisted (1.38.9 / 1.40.0).GitRepositoryViewer: when a resource's published files form a Git layout, the detail view shows current branch, latest commit, and the file tree at that commit; clicking a file previews its blob through the sharedContentPreview(classification by filename). Any reader error falls back to the plain published-file view with a note.ContentViewerrefactored to exposeContentPreview(render-only) so git blobs and fetched resources share one render path.GET_QDN_RESOURCE_METADATAfiles +FETCH_QDN_RESOURCEpath; no new Home bridge action).Verification
tsc --noEmit+ production build clean; isomorphic-git lands in a separate lazy chunk (~167 kB) that only loads when a Git repo is opened.GIT_REPOSITORY/QortiumHomeTest/home-git-demo— shows Branch main, latest commit line, and the correct tree (branch-onlyFEATURE.mdabsent on main).No publish from this branch; QDN republish follows merge per the usual flow.
🤖 Generated with Claude Code