perf: optimize gallery rendering for large libraries#304
Conversation
PR Context Summary
Suggested issue links
Use |
ApprovabilityVerdict: Needs human review Unable to check for correctness in f2e0c7b. Introduces a new VirtualizedGrid component (~200 lines) that changes rendering behavior across 4 major page grids. While this is a standard virtualization pattern for performance, the scope of changes and new component logic affecting core user-facing views warrants human verification. You can customize Macroscope's approvability policy. Learn more. |
|
I've submitted the PR for this issue. Could you please review it when you have time? Thank you! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR implements a reusable ChangesGrid Virtualization Implementation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@macroscope-app review Please review this PR against its linked issue, local-first privacy rules, and the current Find repo instructions. |
Abhash-Chakraborty
left a comment
There was a problem hiding this comment.
Looks good. I checked the virtualization integration across gallery, search, clusters, and people; it keeps thumbnail grid rendering bounded while preserving existing preview/download behavior. No code changes were needed.\n\nChecked locally:\n- pnpm exec biome check src/components/virtualized-grid.tsx src/app/gallery/page.tsx src/app/search/page.tsx src/app/clusters/page.tsx src/app/people/page.tsx\n- pnpm build
Summary
Implemented performance optimizations for gallery rendering to improve responsiveness when working with large local photo libraries. The changes reduce rendering overhead and improve scrolling performance while preserving full-resolution image viewing and download functionality.
Fixes #172
Type of change
What changed
Screenshots / recordings (for UI changes)
Attach before/after screenshots or performance comparison recordings.
How to test
Checklist
GSSoC'26 checklist
Summary by CodeRabbit
Release Notes
Performance Improvements
Documentation