Repository navigation
fix(web): peel annotated tags and resolve short ids wherever a ref resolves (FG-1) - #150
Merged
Merged
Conversation
|
Warning Review limit reachedNext included review available in 21 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (30)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…solves
Annotated tags (every dash release tag) failed on code, blob, commits, history, blame and zip with '<oid> is not a commit': a ref's tip is the tag object and nothing peeled it (L-01). Views now resolve their tip through resolveTip: a short id through the locator (L-32), then any nested tags, cached for the session as {oid, type}. Tags of trees and blobs get their own views. The tags list shows each tag's commit (L-02), commit-page file links keep the commit (L-28), a directory path in /repo/blob opens the tree (L-63), and errors no retry can fix show no Try again. Storage outages still show the storage card.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
force-pushed
the
fix/fg1-ref-resolution
branch
from
September 29, 2026 16:38
c7b92ab to
dd6f33d
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.
Summary
Fix group FG-1 from the dash showcase QA ledger: ref resolution. Annotated tags are now peeled everywhere a ref resolves, short commit ids work in
?ref=, and errors that can never succeed no longer offer "Try again".<oid> is not a commit, because a ref's tip is the tag object and nothing peeled it. Now:peel/peelToCommit(lib/view/tree-nav.ts) follows annotated tags to what they name, including nested tags (tag → tag → commit), bounded at 16. A tag's target is only asked its type when it is too large to be a tag.resolveTip(lib/view/tip.ts) resolves a view's starting object (a short id, then any tags) and caches{oid, type}for the session. That's safe because objects are hash-checked: an id always names the same bytes. Nothing a tag says about itself is cached, since in a private repo that's decrypted content. A tag view costs one extra object read the first time and none after, and warm views paint at once. The tip commit is primed into the history memo, so branch views pay no extra cold read.ResolvedTipgate (components/repo/resolved-tip.tsx) runs before the tree, blob, commits/history, blame and home views. The zip and the commit page peel too.?ref=resolve through the locator's prefix index.ref=<commit>)./repo/blobredirects to/repo/tree(a replace, so Back skips it). Errors no retry can fix show no "Try again" in any browse state: a wrong object type, a malformed object, an ambiguous or non-commit id. Missing objects and "Commit not found" keep it. A pack whose storage stopped answering still shows the storage-unreachable card.Coordination:
repo-home-content.tsxchanges by one wrapper only (RootBody receives the peeled commit), so the perf work's reads are untouched. The last-change column keys by the peeled commit.Ledger: L-01, L-02, L-28, L-32, L-63 (
dash-forge-qa/evidence/dash-ux/LEDGER.md, FG-1).Tests
lib/view/tag-peel.test.ts(29 tests):verify: falsecosting one read;{oid, type}stored;components/repo/resolved-tip.test.tsx: a tag of a blob reaches a file view but not a history view; a pack outage shows the storage card; "Commit not found" offers Try again and an ambiguous id does not.components/repo/ref-list-content.test.tsx: a chip shows the peeled commit and follows a force-moved tag (fails without the key); the tip shows as-is when no index will be ready; the branches list starts no browse index.lib/view/refs.test.ts: a short hex param is now pinned (L-32 changes this on purpose); other unknown names stay unresolved.e2e/tag-refs.spec.ts: read-only, on moutai against the dash mirror.Live verification
Build c7b92ab (this PR's head), served on a private port, with the port's owner and the served sha checked before the run.
tag-refs.spec.tsran on moutai: 6 passed.?ref=1deab35186f9clists commits (L-32);blob?path=srclands on the tree (L-63).Before/after screenshots of 8 pages are in the QA workspace. Before is master at a050f8c (
79b6c521 is not a commit / Try again); after is this build (v23.1.8's tree at 728f505).🤖 Generated with Claude Code