Optimize review page for fast loading and large PRs#51
Merged
Conversation
…croll persistence - Split SSR to only load PR metadata + file summaries, deferring patch payloads to client - Add paginated infinite query for patch files (50 per page) with scroll-based loading - Lazy-render diff viewers via shared IntersectionObserver — only mount PatchDiff when near viewport - Fall back from word diff to line diff for large patches (>400 changes or >24K chars) - Disable automatic refetch for page/files queries on the review route - Defer review comments loading until after mount - Update URL hash on scroll via replaceState for scroll persistence on reload - Fix deep-link navigation to files not yet loaded (fetches pages until target is found) - Fix scroll jank caused by hash handler re-firing on every file load - Polish: textarea bg-background, binary file card inset to match patch header
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
diffkit | 1eb6c6e | Commit Preview URL Branch Preview URL |
Apr 10 2026, 04:11 AM |
stylessh
added a commit
that referenced
this pull request
Apr 18, 2026
…croll persistence (#51) - Split SSR to only load PR metadata + file summaries, deferring patch payloads to client - Add paginated infinite query for patch files (50 per page) with scroll-based loading - Lazy-render diff viewers via shared IntersectionObserver — only mount PatchDiff when near viewport - Fall back from word diff to line diff for large patches (>400 changes or >24K chars) - Disable automatic refetch for page/files queries on the review route - Defer review comments loading until after mount - Update URL hash on scroll via replaceState for scroll persistence on reload - Fix deep-link navigation to files not yet loaded (fetches pages until target is found) - Fix scroll jank caused by hash handler re-firing on every file load - Polish: textarea bg-background, binary file card inset to match patch header
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.
Summary
replaceStatefor scroll persistence on reload, with deep-link support for files not yet loaded (auto-fetches pages until target is found)bg-background, binary file card inset matches patch header spacingTest plan