Paginate user blog entry indexes #17
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MyVideoGameList/myvideogamelist.com#17
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?
User blog index pages need pagination so visitors can browse a user blog history without loading every entry at once.
The blog feature has since been rebuilt. This issue tracks the completed public user blog index pagination behavior.
Scope
/blog/{username}.Acceptance Criteria
/blog/{username}renders a public paginated list of that active user public published blog entries.Test Coverage Required
/blog/{username}rendering, newest-first ordering, pagination, page links, and empty state.vendor/bin/pint --dirtybefore closing the issue.Progress Checklist
blog_entry_published/blog/{username}route and controller/actionI am going to push this back until I get enough blog entries put together to warrant pagination.
Add Pagination to /blog and /myblogto Add Pagination to /blogAdd Pagination to /blogto Paginate user blog entry indexesConfirmed this was completed by the recent blog rebuild. Evidence from the current checkout:
routes/web.phpdefines the publicblog.indexroute for/blog/{username}.BlogEntryController@indexloads active public users, paginates entries at 10 per page, orders bypublished_at/created_atnewest-first, counts comments, and filters non-owner viewers to published public entries only.pages/blog/index.blade.phprenders the entry list, timestamps, comment count, empty state, dark-mode styling, and pagination links.tests/Feature/BlogTest.phpcovers visibility filtering, unavailable users, safe rendering, pagination/newest-first behavior, and empty state.Verification run:
php artisan test --compact tests/Feature/BlogTest.php --filter="blog index"passed with 2 tests / 39 assertions. The fullBlogTest.phpcurrently has one adjacent brittle profile-stats assertion against changed stat markup, but the #17 pagination/index coverage is passing.