Normalize alternate-title formatting across public game surfaces #351
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#351
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?
Alternate-title display needs to use a consistent, readable label/value format across public game surfaces.
The Notion report says alternate-title formatting is off when looking at games: the display looks like the raw game edit input, with a pipe-style separator and no clear colon/label presentation. The same formatting issue is also visible on a game profile page.
The Laravel checkout had multiple alternate-title rendering paths.
resources/views/components/site/game-card.blade.phpsplitalt_titleson commas/semicolons and rendered anALTERNATIVE TITLE(S):label before the joined values, while game profile metadata was built inApp\Support\GameInformationPresenterand rendered throughresources/views/pages/games/partials/information-card.blade.phpas a definition-list row. This has been normalized so users see polished alternate-title text instead of raw pipe separators or inconsistent label punctuation.Related but separate: #45 covers apostrophes/backslashes in alternate titles. This issue is for label/separator/layout formatting.
Source: https://app.notion.com/p/3742f7baaae480a7873cda1f4b89c7eb
Scope
games.alt_titlesvalues separated by pipe characters.games.alt_titlesare preserved as title punctuation, not treated as display separators.alt_titlespersistence remain unchanged.Acceptance Criteria
Alternative Title: FooorAlternative Titles: Foo, Bar.Test Coverage Required
php artisan test --compact.vendor/bin/pint --dirty --format agentbefore closing the issue if PHP files are changed.Progress Checklist
games.alt_titlesstorage existsImplemented and pushed in
b6906bfondev.Notes for future readers:
App\Support\GameAlternateTitlesformatter.|). Commas and semicolons are preserved as normal title punctuation.Alternative Title: FooorAlternative Titles: Foo, Bar.Verification:
vendor/bin/pint --format agent app/Support/GameAlternateTitles.php app/Support/GameInformationPresenter.php tests/Feature/NewlyAddedGamesPageTest.php tests/Feature/PlatformIndexTest.php tests/Feature/GameProfileTest.php tests/Feature/GameSearchTest.phpphp artisan test --compact tests/Feature/NewlyAddedGamesPageTest.php tests/Feature/PlatformIndexTest.php tests/Feature/GameProfileTest.php tests/Feature/GameSearchTest.php