Load wishlist entries 25 at a time with Load More #368
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MyVideoGameList/myvideogamelist.com#368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Update the Wish List page so it initially loads only the newest 25 eligible wishlist entries, then lets the user load 25 more at a time.
Current behavior
WishlistController::show()loads every eligible wishlist entry for the selected user withget(). The page currently orders bysort_orderandid.Desired behavior
wishlists.created_atnewest first, with a stable secondary order./listsbehavior./wishlistview working.Implementation notes
The
/listspage already has a progressive Load More pattern inGameListControllerandresources/js/app.js. Reuse that approach where practical instead of introducing a separate pagination style.Acceptance criteria
/wishlist/{username?}initially renders at most 25 eligible wishlist entries.wishlists.created_atfirst.Implemented in
aa009fdondev.Notes:
WishlistController::show()now cursor-paginates eligible wishlist rows 25 at a time, ordered bywishlists.created_atdescending withwishlists.idas the stable secondary order.next_urlisnull./wishlistview both continue to use the existing route.tests/Feature/WishlistTest.php.Verification:
php artisan test --compact tests/Feature/WishlistTest.phppassed: 27 tests, 166 assertions.vendor/bin/pint --dirty --format agentpassed.npm run buildpassed.