Add Sort Controls to Game List Entries #784

Open
opened 2026-06-30 05:52:50 -05:00 by Veilor · 1 comment
Member

Game list pages should let users sort entries the way the old site did, so members can quickly compare a list by name, rating, date added, priority, ownership type, or platform.

The current list view renders status sections from GameListSections and orders each section by game-list name, then id. The table already displays the fields users want to sort by, but the headers are static and load-more URLs do not carry any sort state.

Scope

  • User-owned and public game list pages.
  • Status tab sections and load-more behavior generated by GameListSections.
  • Desktop table sorting for Name, Rating, Date Added, Priority, Ownership Type, and Platform.
  • Mobile list/card behavior for the same sorted results.
  • Existing status tabs, owner actions, and list entry edit/delete routes.

Acceptance Criteria

  • Users can choose a sort field for visible game-list entries.
  • Supported sort fields include name, rating, date added, priority, ownership type, and platform.
  • Sorting works within the selected status tab and the All view sections.
  • Sort state is preserved when loading more rows.
  • Sort links or controls are accessible and clearly indicate the active sort direction.
  • Public profile list views and the signed-in owner list view use the same sorting behavior.
  • Existing status filtering, replaying sections, and owner-only edit/delete actions continue to work.

Test Coverage Required

  • Extend GameListPageTest to cover sorting by at least name, rating, date added, priority, ownership type, and platform.
  • Cover sort state in generated load-more URLs and load-more responses.
  • Cover sorting on both the owner list route and public user list route.
  • Preserve existing coverage for status tabs, preloaded panels, missing platform fallback, and owner actions.
  • Run focused game-list page tests before closing the issue.
  • Run vendor/bin/pint --dirty --format agent before implementation closeout if PHP files change.

Progress Checklist

  • Define allowed sort fields and directions for game lists
  • Add sorting to GameListSections queries
  • Add accessible sort controls to the desktop table and mobile-friendly behavior
  • Preserve sort state across status tabs and load-more requests
  • Add focused sorting and load-more regression coverage
  • Run focused GameListPageTest coverage
  • Run vendor/bin/pint --dirty --format agent if PHP files changed
  • Move the issue out of Codex review once verification is complete
Game list pages should let users sort entries the way the old site did, so members can quickly compare a list by name, rating, date added, priority, ownership type, or platform. The current list view renders status sections from `GameListSections` and orders each section by game-list name, then id. The table already displays the fields users want to sort by, but the headers are static and load-more URLs do not carry any sort state. ## Scope - User-owned and public game list pages. - Status tab sections and load-more behavior generated by `GameListSections`. - Desktop table sorting for Name, Rating, Date Added, Priority, Ownership Type, and Platform. - Mobile list/card behavior for the same sorted results. - Existing status tabs, owner actions, and list entry edit/delete routes. ## Acceptance Criteria - Users can choose a sort field for visible game-list entries. - Supported sort fields include name, rating, date added, priority, ownership type, and platform. - Sorting works within the selected status tab and the All view sections. - Sort state is preserved when loading more rows. - Sort links or controls are accessible and clearly indicate the active sort direction. - Public profile list views and the signed-in owner list view use the same sorting behavior. - Existing status filtering, replaying sections, and owner-only edit/delete actions continue to work. ## Test Coverage Required - Extend `GameListPageTest` to cover sorting by at least name, rating, date added, priority, ownership type, and platform. - Cover sort state in generated load-more URLs and load-more responses. - Cover sorting on both the owner list route and public user list route. - Preserve existing coverage for status tabs, preloaded panels, missing platform fallback, and owner actions. - Run focused game-list page tests before closing the issue. - Run `vendor/bin/pint --dirty --format agent` before implementation closeout if PHP files change. ## Progress Checklist - [ ] Define allowed sort fields and directions for game lists - [ ] Add sorting to `GameListSections` queries - [ ] Add accessible sort controls to the desktop table and mobile-friendly behavior - [ ] Preserve sort state across status tabs and load-more requests - [ ] Add focused sorting and load-more regression coverage - [ ] Run focused `GameListPageTest` coverage - [ ] Run `vendor/bin/pint --dirty --format agent` if PHP files changed - [ ] Move the issue out of Codex review once verification is complete
Codex changed title from Allow users to sort the entries on the list to Add Sort Controls to Game List Entries 2026-07-01 16:38:51 -05:00
Owner
https://features.myvideogamelist.com/posts/68/numbered-video-games-list
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MyVideoGameList/myvideogamelist.com#784
No description provided.