Let list entries use a game's alternate titles as display names #353
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
javascript
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#353
Loading…
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?
Users need to be able to choose a game's alternate title as the display name for their own list entry when adding or editing that entry.
The Notion report says: "I noticed that alternative titles for games do not work. When adding a game alternative titles should be used to choose which name to display on the list." This is distinct from alternate-title display formatting (#351) and apostrophe escaping (#45): this issue is about the add/edit list-entry workflow using a game's alternate titles as selectable list-entry names.
In the current Laravel checkout,
games.alt_titlesexists and is displayed in the shared Game Information card on the add/edit list pages.GameListController::attributesForPersistence()can persist a submittednamevalue, falling back to the canonical game name when no custom name is supplied. However,resources/views/pages/game-lists/partials/form.blade.phpdoes not expose a name/alternate-title selector, and the current edit-layout regression test explicitly asserts that nonamefield is shown. As a result, users cannot choose an alternate title for the list row through the UI even though the backend model can store one.Important UI constraint: only show the display-name selector when the game has one or more usable alternate titles. If the game has no alternate titles after trimming/filtering, do not show the selector/input at all; fall back silently to the canonical game name.
Related but separate:
Source: https://app.notion.com/p/3742f7baaae48095988cd344ed0e1559
Scope
/list/add/{gameId}./list/edit/{gameList}.GameListController::store()andGameListController::update()persistence of the selectedname.games.alt_titlesinto selectable display-name options.game_lists.name.Acceptance Criteria
alt_titlesvalue only contains blank segments do not show the display-name selector/input.game_lists.name.Test Coverage Required
game_lists.name.game_lists.name.php artisan test --compact.vendor/bin/pint --dirty --format agentbefore closing the issue if PHP files are changed.Progress Checklist
games.alt_titlesstorage existsgame_lists.namestores the list-entry display nameGameListControllercan persist a submittednamevaluenameselector/inputImplemented and pushed in
66ab19b(Allow alternate titles for list entry names).Notes:
App\Support\GameAlternateTitles, including trimming, blank filtering, and de-duplication.Display Nameselector aboveStatuson the shared game-list add/edit form, using the existing customel-selectform pattern.alt_titlescontinue to omit thenameinput and fall back to the canonical/current list-entry name.game_lists.name.Verification:
/opt/homebrew/bin/php vendor/bin/pint --dirty --format agent/opt/homebrew/bin/php artisan test --compact tests/Feature/GameListPageTest.php-> 41 passed, 426 assertionsOne implementation note: the display-name selector follows the app's existing custom
el-selectpattern for list-entry form controls.