Skip to main content

Week 7 — Reuse Compare & File Diff View

Meeting

Date: July 7, 2026
Attendees:

Absentees:

Summary

  1. Presented the initial design and working of the Reuse compare feature.
  2. Discussed what should be displayed in the Reuse compare view and the file diff view.
  3. Discussed the algorithm used for counting differences — LCS (Longest Common Subsequence) — and how we can optimize it for larger files.
  4. Kaushl suggested placing a size cap on files when generating diffs and counts to avoid performance bottlenecks.
  5. Discussed using an on-demand processing approach to reduce load during page rendering — only compute diffs when the user opens the diff view rather than pre-computing for all files.

Progress

  • Reuse compare feature: Implemented the Reuse compare view, accessible from Browser → View list → Reuse compare. This provides a side-by-side overview of how files in the new upload compare against the reused upload.

  • File states: Each file falls into one of four states:

    • Identical — no changes between source and target
    • Modified — content changed but license type remains the same
    • Added — new file present in the target that wasn't in the source
    • Deleted — file present in the source but missing in the target
  • File diff view: Created a new diff view with color-coded highlighting for each file state:

    • Green — Added lines
    • Red — Deleted lines
    • Yellow — Modified lines
  • Initial demo: A video walkthrough of the initial design and working is available here.