Skip to content

Add content-anchored resolvable comments#16

Open
mblode wants to merge 3 commits into
mainfrom
feat/content-anchored-comments
Open

Add content-anchored resolvable comments#16
mblode wants to merge 3 commits into
mainfrom
feat/content-anchored-comments

Conversation

@mblode
Copy link
Copy Markdown
Owner

@mblode mblode commented May 19, 2026

Cherry-picks Ed Bordin's two commits from PR #15 onto an upstream branch, with a quality pass on top. Adds content-anchored resolvable comments with reply threads, staleness detection, prev/next navigation, and resolved toggle.

Quality fixes: reverted custom theme-provider back to next-themes (flash-of-wrong-theme), fixed Copy & Clear silently deleting hidden resolved comments, made left-side comment anchoring read from the merge base ref, restored Safari min-height pinning, and wired comment refresh into watch events.

Risk: deletion-side anchoring falls back to working-tree content when git commands fail (e.g. detached HEAD with no merge base).

edbordin-linktree and others added 3 commits May 19, 2026 10:56
- Revert custom theme-provider → keep next-themes (pre-hydration script,
  system preference tracking, disableTransitionOnChange)
- Fix Copy & Clear data loss: export all comments, not just visible ones
- Fix deletion-side anchoring: left-side comments read from merge base ref
- Restore min-height pinning in CollapsibleFileDiff for Safari scroll stability
- Refresh comments on watch events so staleness stays current
- Invalidate comment snapshot cache alongside git cache on file changes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
diffhub-web Ready Ready Preview, Comment May 19, 2026 1:04am

Request Review

@mblode mblode changed the title feat(cli): content-anchored resolvable comments Add content-anchored resolvable comments May 19, 2026
@edbordin-linktree
Copy link
Copy Markdown

I just vibed a bunch more changes on top of this today. Code is possibly even more of a mess now but overall it was probably in a better state than the previous pass at it if you want more inspo to cherry pick from edbordin-linktree#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants