Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nilbuild/diffity
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: CanalsAI/diffity
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 31 files changed
  • 2 contributors

Commits on Jun 26, 2026

  1. feat: make storage directory configurable via DIFFITY_HOME (#1)

    Diffity stored all state under a hardcoded ~/.diffity. Add a
    getDiffityHome() resolver that honors a DIFFITY_HOME environment
    variable (falling back to ~/.diffity) and route the registry,
    per-repo database/session paths, and prune through it.
    
    This lets the home be pointed at a durable location (e.g. a mounted
    volume) so review comments, tours, and sessions persist across
    ephemeral environments.
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jun 26, 2026
    Configuration menu
    Copy the full SHA
    6d1f6ee View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2026

  1. feat: persist viewed file state across reloads (#2)

    Viewed state was in-memory only, so it reset every time the diff was
    reopened. Persist it server-side keyed by the comparison ref and a
    content hash, so a file stays viewed across reloads and only resets when
    its content actually changes — matching GitHub.
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jun 30, 2026
    Configuration menu
    Copy the full SHA
    30d82e1 View commit details
    Browse the repository at this point in the history
  2. feat: search changes across virtualized diff content (#3)

    The browser's native find only sees rendered DOM, so it misses lines
    that the diff virtualizer hasn't mounted. This searches the parsed diff
    model and scrolls matches into view, with Cmd/Ctrl+F focusing the box
    (press again to fall through to native find).
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jun 30, 2026
    Configuration menu
    Copy the full SHA
    dd824d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2026

  1. feat: add auto-collapse toggle to options menu (#4)

    Files auto-collapse on load (generated paths, lock files, large or
    deleted files) with no way to turn it off. Add a persisted setting so
    users can disable auto-collapse entirely and have everything expanded.
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jul 1, 2026
    Configuration menu
    Copy the full SHA
    aff9c6f View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2026

  1. fix: keep scroll position when marking a large file viewed (#5)

    Marking a file viewed collapses it, and the virtualizer compensated for
    the removed height by subtracting the file's entire height from the
    scroll offset, yanking the view toward the top for large files. Pin the
    collapsed file's header to the top of the viewport instead so the
    reviewer stays oriented.
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jul 6, 2026
    Configuration menu
    Copy the full SHA
    6f9dcb9 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2026

  1. feat: expand search input to fit long queries (#6)

    The search input was fixed-width, so longer queries scrolled out of
    view. It now grows to fit the query (clamped between the original width
    and a max) using a hidden mirror element to measure the text.
    
    [open
    devspace](https://devspaces.int.canals.ai/workspaces/lucid-buffalo-pwzo)
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jul 8, 2026
    Configuration menu
    Copy the full SHA
    003cc76 View commit details
    Browse the repository at this point in the history
  2. fix: order diff content to match the file tree (#7)

    ## Summary
    
    The diff content on the right rendered files in raw git order, while the
    sidebar file tree on the left sorted them (directories first, then
    alphabetical, with single-child directories collapsed). The two
    orderings didn't line up, so scrolling the diff didn't track the tree.
    
    This reorders the diff files once, at the source, to match the tree:
    
    - `sortFilesByTree` (in `file-tree.ts`) builds the same sorted tree the
    sidebar uses and flattens it back to a `DiffFile[]`, preserving the
    original file objects.
    - `DiffPage` runs the diff from `useDiff` through `sortFilesByTree`
    before anything consumes it.
    
    Because every right-hand consumer keys off the single `diff.files` array
    — the virtualizer, search match indices, file navigation, and
    first-open-thread lookup — reordering at the source keeps them all
    consistent while making the rendered order match the tree exactly. The
    sidebar re-sorts internally, so it is unaffected.
    
    Added tests covering the ordering (directories first / alphabetical,
    including nested subtrees) and that the original file objects are
    preserved.
    
    [open
    devspace](https://devspaces.int.canals.ai/workspaces/funny-flamingo-33t5)
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jul 8, 2026
    Configuration menu
    Copy the full SHA
    05c33b3 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2026

  1. fix: keep viewed files collapsed when commenting elsewhere (#8)

    Adding a comment to one file re-expanded other files that had comments —
    including files marked viewed, which yanked the viewport onto them — and
    viewed files with pre-existing comments opened on load instead of
    staying collapsed. The comment-surfacing effect now only expands a file
    when it *newly* enters the commented set, and skips viewed files on the
    initial load so an existing comment can't reopen them, while still
    letting a comment that arrives later (e.g. from an AI review) surface
    its file.
    
    [open
    devspace](https://devspaces.int.canals.ai/workspaces/eager-cheetah-4jcr)
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jul 17, 2026
    Configuration menu
    Copy the full SHA
    a0bb519 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2026

  1. feat: mark all files in a folder as viewed (#9)

    Adds a way to mark every file under a folder as viewed (or unviewed) in
    one action, so reviewers don't have to check off each file individually.
    It's reachable both by right-clicking a folder row and via a
    hover-revealed menu button; the options shown adapt to how much of the
    folder is already viewed, and the action cascades through nested
    subfolders.
    
    [open
    devspace](https://devspaces.int.canals.ai/workspaces/happy-jaguar-jai4)
    
    Co-authored-by: [email protected] <[email protected]>
    zsalzbank and zsalzbank authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    6ec3cb0 View commit details
    Browse the repository at this point in the history
Loading