Shows games released on today's date in an earlier year, one at a time,
with arrows to page through the rest. Sits in the Home widget rail beside
Random pick and Library stats, with its own Settings toggle (default on)
and an entry in the drag-reorder list.
New endpoint GET /api/roms/anniversaries, ROMS_READ, whole-library,
returning up to 24 SimpleRomSchema oldest release first. Clients send
their own local month and day so "today" matches the calendar in front of
the user rather than the server's UTC clock.
The day-of-year match is a union of one-day ranges over
generated_first_release_date rather than MONTH()/DAY() on the value.
Ranges are sargable, so idx_roms_generated_first_release_date serves both
the match and the sort as one covering range scan: 195 rows examined and
~2 ms against 63,334 rows and ~70 ms for the function predicate on a
100k-row table. Emitting no SQL date function also means no dialect
branching and no migration.
1 January returns empty. Several providers park year-only metadata there
(ScreenScraper parses a bare year with %Y, CSDb publishes nothing else,
IGDB reports year precision as 1 January), so nothing in the stored data
tells a real 1 January release apart from an unknown day. Leap-day
releases roll onto 28 February in non-leap years.
Visibility follows /random: filter on hidden platforms and roms, then
re-check each hydrated row with perms.can_see_rom.
Closes#3440
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
"Similar games" now reads the recommendations index instead of
`igdb_metadata.similar_games`, so every entry is a game the server actually
holds. That also drops the per-card `by-metadata-provider` lookup the IGDB
stubs needed: the endpoint returns real ROMs, so the cards are ordinary
interactive GameCards rather than synthetic ones.
Adds a "Recommended for you" row to Home, each card captioned with why it
was suggested, behind a `showRecommendations` UI setting. An unbuilt index
or a library too small to relate anything is a normal state, so both
surfaces stay hidden rather than surfacing an error.
Structural IGDB relations (expansions, DLC, remakes, remasters) are
untouched -- those are facts about a game, not recommendations.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Per-page styles now always hold a concrete style; changing the
gallery-wide style resets both to match. Legacy stored "inherit"
values display and resolve as the gallery style. The advanced
disclosure starts collapsed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The boxartStyle setting is shared across UI versions, so a value picked
in v2 reaches v1 galleries. Teach v1 to render it (square ratio, ss-only
art resolution, hover video) without adding it to the v1 selector.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Adds two ui_settings keys (boxartStyleDetails, boxartStylePlayer)
defaulting to "inherit", resolved in useCoverArt via a per-surface
context. The v2 UI settings Gallery section gains an advanced
disclosure with two override selects.
Closes#3943
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Launching a game now advances its per-user status: it is marked "now
playing" and an empty or "finished" status rewinds to "incomplete", while
statuses the user set on purpose (completed 100% / retired / never playing)
are left untouched. This is applied at the authoritative launch write of all
three v2 players (EmulatorJS, Ruffle, Stream); Ruffle and Stream previously
persisted nothing on launch, so they now also refresh last_played.
Launching a game marked Retired or Never Playing now asks for confirmation
first, so an accidental Play does not silently reactivate a game the user
deliberately shelved. Gated by a new per-user preference
(confirmProtectedLaunch, on by default) exposed as a Gameplay toggle in
Settings > User Interface.
Adds the shared applyLaunchStatus helper and 5 i18n keys across all 18
locales.
Part of #3721.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Port the v1 home behaviour to the v2 home: smart and virtual
(autogenerated) collections can now be surfaced as their own rows,
each toggled independently from the regular collections row.
- Add `showSmartCollections` UI setting; wire the existing
`showVirtualCollections` / `virtualCollectionType` settings into v2.
- Fetch smart/virtual collections on the home view only when their
toggle is on, so the expensive virtual "all" fetch is skipped when
disabled.
- Render Smart and Virtual CardRows reusing the CollectionTile pattern.
- Move the smart/virtual visibility toggles into the "Home sections"
settings group; the "Virtual collections" section keeps only the
collection-type selector.
- Add `settings.show-smart-collections` (+ desc) to all 18 locales.
Closes#3720
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Implement LibraryStatsWidget to display an overview of library statistics with compact and extended modes.
- Implement RandomPickWidget to randomly select a ROM from the library and display it on the Home dashboard.
- Create WidgetBar to manage the display of Home widgets based on user settings.
- Add WidgetCard as a shared component for widget display.
- Introduce WidgetReorderList for users to customize the order of Home widgets.
- Update UserInterface settings to include toggles for new Home widgets and their configurations.
- Enhance SettingsToggleRow to support inline controls for widget settings.
- Add SettingsSubsection for better organization of Home settings.
- Update Home view to conditionally render the widget bar based on user preferences.
- Introduced SetupStepper component for visual step indication.
- Created Setup view to orchestrate the three-step setup process: library info loading, admin user creation, and metadata review.
- Updated AuthLayout to center content for better UX.
- Added new route for the setup view in the router configuration.
- Enhanced error handling and user feedback during the setup process.
- Implemented Administration view with UsersTable, TokensTable, and Tasks components.
- Created ClientApiTokens view with ClientTokensTable component.
- Developed LibraryManagement view with tabs for FolderMappings, Excluded, and MissingGames.
- Added MetadataSources view displaying API key and connection status for various metadata providers.
- Introduced ServerStats view for displaying library-wide totals and per-platform breakdowns.
- Established UserInterface view for toggling between v1 and v2 UI versions, theme selection, and language settings.
- Rewrote UserProfile view for managing account details, avatar, and linked services, integrating RetroAchievements component.
Replace full rom_ids list replacement with atomic POST/DELETE endpoints
that add or remove individual ROMs from a collection. This prevents
concurrent rapid clicks from overwriting each other (last-write-wins).
Also fix missing session.flush() in add_rom_user() and add collection
endpoint tests.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Introduced `ui_settings` column in the users table via Alembic migration.
- Updated UserForm and UserSchema models to include `ui_settings`.
- Enhanced user update endpoint to handle `ui_settings`.
- Created a new composable `useUISettings` for managing UI settings with local storage.
- Refactored UI components to utilize the new `useUISettings` for theme and language settings.