Skip to content

feat: persist viewed files in code review drafts#335

Merged
backnotprop merged 1 commit into
mainfrom
feat/review-enhancements
Mar 18, 2026
Merged

feat: persist viewed files in code review drafts#335
backnotprop merged 1 commit into
mainfrom
feat/review-enhancements

Conversation

@backnotprop
Copy link
Copy Markdown
Owner

Summary

Closes #332

Test plan

  • Open /plannotator-review with a multi-file diff
  • Mark several files as viewed
  • Refresh the page — banner should show "Found N viewed files from X ago"
  • Click restore — viewed state should be restored
  • Add annotations + mark files viewed, refresh — banner shows both counts
  • Verify old drafts (without viewedFiles) still restore correctly

🤖 Generated with Claude Code

Extend the draft auto-save system to include viewed file state alongside
annotations. Viewed files are saved atomically in the same draft file,
restored together via the same banner, and backward compatible with
existing drafts (optional field, defaults to empty).

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

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@backnotprop backnotprop merged commit 1df5f40 into main Mar 18, 2026
5 checks passed
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.

[FEATURE REQUEST] Persist "Viewed" files in diff review like the annnotations

1 participant