Repository navigation
feat(web): blame progress, partial keep, permalinks and git-exact alignment; repo shell before the SDK; hosting doc - #151
Merged
Conversation
docs/dev/hosting.md: what forge.dashhq.org serves today (the wasm uncached at the edge, hashed chunks revalidated every 10 min) and the Cloudflare cache and transform rules that make /_next/static immutable and edge-cached (L-54). docs/design/last-change-index-v2.md: per-path version lists so blame and History need no walk, proposed after the history index v1 lands. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ow mobile column FG-4 part 1. The version lookup goes through pathVersions(), one function a push-time index can answer later (docs/design/last-change-index-v2.md). Progress counts commits examined while the history is searched (L-23), and a cancelled run keeps its table: compared versions exact, the rest on the oldest reached, with Run again. Line numbers select #L ranges, y pins the commit and Copy permalink links it (L-33). On a phone the commit column is an age gutter (L-34). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
While the Platform SDK downloads (minutes on a slow link) or the repo resolves, the repo scaffold shows the owner, name and tabs from the address, with nothing claimed from Platform. nr-1 asserts it on Slow 3G. Also a live helper that dumps a file's versions for offline blame checks. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Blame compared versions with our Myers diff plus git's compaction; where a file repeats lines, xdiff's record cleanup and middle-snake split pair different copies, so 2 of 429 lines of dashstrings.cpp went to other commits than git blame gives. lineMap now runs a port of git v2.52.0 xdiff (xdl_trim_ends, xdl_cleanup_records, xdl_split with its heuristics) after git blame's common-tail trim, then the existing compaction. Checked against git: 600 random pairs with repeated lines, 8 large pairs through the heuristics, the 2000-case blame property test, and the 33 real dashstrings.cpp versions. The diff views keep their diff. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…cle test; blame copies a full permalink Code-simplifier findings: the git-oracle test checks the exported gitChangeMarks lineMap uses, not a copy; one builder for blame's full and partial results; pathVersions keeps one read-ahead walker across its strides; blame's Copy permalink is a full URL, as the file view's. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…link out of the tab order, xdiff heuristic work counted; hosting rules scoped The repo shell header also shows while a private repo's membership and keys are checked. The blame age link (for phones) is out of the tab order and labelled. The shell shortens only identity ids. xdiff counts the heuristic and fallback scans against its work bound. pathVersions and the v2 doc say Blame uses it and History follows. hosting.md: a 4xx status TTL and a status-200 condition on the immutable header, Compression Rules with an Auto fallback and a zstd-capable check, and an nginx block that repeats COOP/COEP inside the location (add_header replaces inherited ones) without replacing the MIME map. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedNext included review available in 53 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 (21)
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 |
…not match The shell header renders the repo's tabs (/repo/issues, /repo…) while the page resolves, so a bare href*=/repo/issue or /repo prefix matched a tab and rb-1a counted before any read went out. Match issue links (/repo/issue/?…number=) and a tag's commit or release link instead. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 29, 2026
…-line owner, tab fades) After rebasing on the repo shell header (#151): while the SDK loads, owner/name is the page's h1 and truncates on a phone, the owner label comes from the shared ownerLabel, and the tabs use the shared TabStrip. The rail's mirror provenance uses the byline Time element. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 29, 2026
…-line owner, tab fades) After rebasing on the repo shell header (#151): while the SDK loads, owner/name is the page's h1 and truncates on a phone, the owner label comes from the shared ownerLabel, and the tabs use the shared TabStrip. The rail's mirror provenance uses the byline Time element. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 29, 2026
…-line owner, tab fades) After rebasing on the repo shell header (#151): while the SDK loads, owner/name is the page's h1 and truncates on a phone, the owner label comes from the shared ownerLabel, and the tabs use the shared TabStrip. The rail's mirror provenance uses the byline Time element. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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
These changes follow up the S-1 PR (#142), from the dashpay/dash QA sweep. Items: FG-4 (blame and history), L-54 (nothing on screen until the SDK loads), L-70 (blame misattribution), and two docs for the owner.
FG-4: blame
pathVersions). Blame finds a file's versions throughpathVersions(reader, tip, path)(lib/view/path-history.ts). Today it walks first-parent history. The seam is where a push-time index can answer later without touching the view (seedocs/design/last-change-index-v2.md).#Lranges, with shift-click to extend (the sameuseLineSelectionas the file view).ypins the URL to the commit.…/blame/<oid>/<path>#Lx-LyURL.smup.L-70: blame agrees with
git blameon dashstrings.cppQT_TRANSLATE_NOOP("dash-core", ""), our Myers diff paired different copies than git's xdiff does. That gave 2 of 429 lines to the wrong commits.lib/view/xdiff.tsports git v2.52.0's xdiff:xdl_trim_ends,xdl_cleanup_records(the rule that decided these pairings), andxdl_splitwith its heuristics and cost fallback.lineMapuses it after git blame'strim_common_tail, then the existing compaction. The diff views keep their diff.src/qt/dashstrings.cpp, which now give no differing lines (blame-l70.test.ts, run with the dumped versions).L-54: the repo is named before the SDK arrives
Docs
docs/dev/hosting.md: what the owner configures on Cloudflare for forge.dashhq.org.cf-cache-status: DYNAMIC(not edge-cached), and/_next/staticismax-age=600./_next/static/edge-cached for a year, with a 4xx status TTL.immutableon 200s.docs/design/last-change-index-v2.md. A proposal for the history-index agent, to take up after its v1 lands: per-path version lists (K=32 plus blob oids), so blame and History need no walk.Dash numbers (cold, moutai, fresh context)
src/clientversion.h: progresssrc/clientversion.h: donesrc/qt/dashstrings.cppvs gitThe blame walk's request count is unchanged by this PR: finding versions still means walking first-parent history. The proposed v2 index is what removes the walk.
Tests
code-browsing-parityhb-2b: line select, shift-extend, an absolute permalink,y, and the gutter at 390 px under 96 px.network-resiliencenr-1: the repo name and tabs are visible while the SDK downloads.Review
add_headerinheritance);pathVersionskeeps one walker;Ledger: L-23, L-33, L-34, L-54, L-70 (dash-forge-qa/evidence/dash-ux/LEDGER.md). Evidence:
dash-forge-qa/evidence/impl/perf-blame-history-shell/.🤖 Generated with Claude Code