perf(frontend): add stable pagination and snapshot behavior to transfer history - #297
Open
woahwhattheheck wants to merge 4 commits into
Open
woahwhattheheck wants to merge 4 commits into
woahwhattheheck wants to merge 4 commits into
Conversation
Replace offset paging with a filter-scoped snapshot so concurrent inserts cannot duplicate or omit rows mid-scroll. Cursors carry a stable (createdAt, id) tie-breaker; filter changes mint a new snapshot; expired cursors recover by rebuilding from the live list. Closes RemitFlow#278
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #278
Summary
Transfer history paging now uses a filter-scoped snapshot with cursor tie-breakers so new transfers arriving mid-scroll cannot duplicate or omit rows. Filter changes reset the snapshot; expired cursors recover cleanly.
What changed
transferSnapshotbuilds a frozen membership list sorted bycreatedAtdesc withidas the stable tie-breaker, encodes scoped cursors, and recovers when a cursor is expired or out of scope.Transferspages against the snapshot instead of a live offset slice. Concurrent inserts stay off the current pages until filters reset or the snapshot TTL elapses.Tradeoffs
Compatibility
Test evidence
Coverage includes concurrent-insert stability, cursor expiry recovery, filter-reset, and a 50-row fixture without gaps.
Out of scope
Ready for review