Skip to content

feat(models): show line diffs in cube version history - #45

Merged
akshaykumar2505 merged 1 commit into
masterfrom
feat/models-version-line-diffs
Sep 14, 2026
Merged

akshaykumar2505 merged 1 commit into
masterfrom
feat/models-version-line-diffs

Conversation

@akshaykumar2505

Copy link
Copy Markdown
Member

Summary

  • Models Versions list now shows which files and lines changed versus the previous snapshot, plus a picker to compare any two versions.
  • Restore opens a preview of the line diff versus the current models before creating the new version; the live row is tagged Current and is not restorable.
  • Restored snapshots keep the full checksum, use a shared color when hashes match, and show a Restored from timestamp under the checksum.

Test plan

  • Open Models, then Versions, and confirm Created at shows author, exact time, and relative time.
  • Expand a revision and confirm only changed files open with added/removed lines highlighted.
  • Use Compare From/To with two non-adjacent versions and confirm the line diff.
  • Click Restore on an older version, confirm the preview vs current, then confirm restore creates a new top version tagged Current.
  • Confirm the matching older checksum turns the same blue and shows Restored from the source timestamp under the new checksum.
  • Confirm Restore is hidden on Current and on rows that already match the live checksum.

Made with Cursor

Versions list now compares snapshots, previews restore against the current models, and marks restored checksums so you can see what actually changed.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant