Skip to content

feat: persist completed diff progress#422

Closed
popsiclelmlm wants to merge 1 commit into
react-native-community:masterfrom
popsiclelmlm:feat/persist-file-progress
Closed

feat: persist completed diff progress#422
popsiclelmlm wants to merge 1 commit into
react-native-community:masterfrom
popsiclelmlm:feat/persist-file-progress

Conversation

@popsiclelmlm

Copy link
Copy Markdown

Summary

Fixes #413.

This persists the files marked as viewed in localStorage so progress survives a refresh or a later return to the same upgrade range. The storage key includes the package, language, and version range, and stored entries are pruned against the current diff so stale file IDs are ignored when diff contents change.

The change is scoped to the diff viewer progress state and does not add any backend/shared state.

Test Plan

  • yarn test --testPathPattern=completed-diffs-storage.spec.ts
  • yarn lint
  • yarn typecheck

What are the steps to reproduce?

  1. Open an upgrade diff.
  2. Mark one or more files as viewed.
  3. Refresh the page or leave and return to the same package/language/version range.
  4. The same files remain in the Done section.

Checklist

  • I tested this thoroughly
  • I added the documentation in README.md (if needed)

@popsiclelmlm popsiclelmlm closed this by deleting the head repository Jun 18, 2026
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.

Persist state of changed files (with localstorage)

1 participant