Feat(UI): Reintroduce paged gallery view as option#8772
Feat(UI): Reintroduce paged gallery view as option#8772lstein merged 9 commits intoinvoke-ai:mainfrom
Conversation
|
Can we find a way to make "Locate in Gallery" work with this? I think that was one of the reasons for switching over to the infinite scroll in the first place. |
It is working in both modes. Old style was using server side pagination, new one is on client side. |
lstein
left a comment
There was a problem hiding this comment.
Works well. I only have a little nit. I was on page 1 and opened the "Jump" dialog. I wanted to jump to page 6, but the dialog wouldn't let me backspace over the "1" and I kept typing 16 inadvertently. I was only able to jump to page 6 by selecting the 1 and deleting it.
f44aa95 to
110d1c8
Compare
Changed to auto-select input text so it is ready for user input. |
* Switched to use v5.x gallery pagination design. * Improved pagination UX and gallery grid calculation * Minor bug fix * Formatting... * Fixed Jump to page input behavior and "Locate in gallery" logic. * Changed Jump input field to select text on click for better UX.
Merged upstream features: - Gradient tools (invoke-ai#8774) - Paged gallery view (invoke-ai#8772) - Encoder CPU toggle (invoke-ai#8777) - Various bug fixes Removed downstream pagination implementation in favor of upstream: - Deleted PaginatedGrid.tsx - Deleted GalleryModeCombobox.tsx - Deleted PageSizeCombobox.tsx - Removed galleryMode, paginationPageSize, currentPage from gallery state - Updated GallerySettingsPopover to use upstream's UsePagedGalleryViewCheckbox Kept downstream features: - LoRA category system - Folder hierarchy (recursiveFolderView) - Layout mode Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
This PR reinroduces gallery pagination layout, that was removed in v6.x

User can choose either infinite scroll or paged layout in the "Gallery Setting" popover.

Related Issues / Discussions
Few occasions where users on Discord were asking if it is possible to switch back to paged gallery view.
QA Instructions
Merge Plan
uiSlice.ts + uiTypes.ts bump state version; if main has new UI state migrations, merging the versioning logic might be needed.
Other than that, PR should not introduce any problem when merging.
Checklist
What's Newcopy (if doing a release after this PR)