Commit Graph

51 Commits

Author SHA1 Message Date
Georges-Antoine Assi
f1f39c4561 feat(v2): place the anniversaries widget next to random pick
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-13 10:14:28 -04:00
Spinnich
868a5c03e7 feat(home): add a game anniversary widget
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>
2026-09-08 17:31:27 +00:00
Sam Dornan
550ee34f01 feat(v2): surface recommendations on game details and home
"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>
2026-08-07 20:12:45 -05:00
Georges-Antoine Assi
38784e5fa4 cleanup 2026-07-25 09:49:35 -04:00
Georges-Antoine Assi
8ac5654ed8 Remove the inherit option from per-page boxart styles
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>
2026-07-25 09:42:29 -04:00
Georges-Antoine Assi
8cbb635f19 Merge branch 'master' into feat/per-page-boxart-styles 2026-07-25 09:27:52 -04:00
Georges-Antoine Assi
7d844c735d add miximage v2 support gamelist 2026-07-25 09:13:39 -04:00
Georges-Antoine Assi
0e05f94894 Render miximage_v2 cover style in v1
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>
2026-07-25 09:06:50 -04:00
Georges-Antoine Assi
77c73eaa88 Allow different boxart styles for details and play pages
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>
2026-07-25 09:05:02 -04:00
Georges-Antoine Assi
b720781f87 more cleanup 2026-07-21 16:15:02 -04:00
Georges-Antoine Assi
7ce5a4719c Merge remote-tracking branch 'origin/master' into feat/v2-launch-status-and-confirm
# Conflicts:
#	frontend/src/composables/useUISettings.ts
#	frontend/src/v2/views/Settings/UserInterface.vue
2026-07-21 09:57:15 -04:00
Georges-Antoine Assi
e9a518458e feat(v2): auto-mark games now-playing on launch + confirm launching shelved games
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>
2026-07-21 07:55:03 -04:00
Georges-Antoine Assi
774ccaded8 cleanup 2026-07-21 07:49:37 -04:00
Georges-Antoine Assi
ed01f5885e feat(v2): show smart and virtual collections on the home screen
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>
2026-07-20 22:14:15 -04:00
zurdi
542b1a2327 feat: add Home widgets for library stats and random pick
- 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.
2026-05-27 14:04:45 +00:00
zurdi
17ea8da23d Merge remote-tracking branch 'origin/master' into chore/frontend-v2 2026-05-25 07:56:38 +00:00
zurdi
4b17341cba feat: Add Setup Wizard for initial configuration
- 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.
2026-05-23 02:12:29 +02:00
Julien Loir
eb842bd952 Fix: UI settings not woking after switching pages back and forth 2026-04-29 15:08:30 +02:00
zurdi
5b3287451d feat: add v2 settings views for administration, client API tokens, library management, metadata sources, server stats, user interface, and user profile
- 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.
2026-04-23 23:00:14 +00:00
zurdi
cc2556da7b Refactor code structure for improved readability and maintainability 2026-04-22 09:57:42 +00:00
Spinnich
4cc0c868b7 Fix linting and formatting issues from trunk CI 2026-04-14 20:27:45 -04:00
Spinnich
2ecefa3d3f Fix race condition in collection and favorite rom membership updates
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>
2026-04-14 15:08:53 -04:00
Jamie Bond
1e6f0d6000 Add property for path_video and refactor places which use similar logic to access video paths 2026-03-10 20:32:54 +01:00
copilot-swe-agent[bot]
7f88923dee Add video-normalized support for ScreenScraper scan.media config
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-08 20:30:16 +00:00
Georges-Antoine Assi
76bdfb4891 changes from self review 2026-03-07 09:36:45 -05:00
Georges-Antoine Assi
f4d9961460 really go all out with typing stuff 2026-02-18 17:41:50 -05:00
zurdi
acf6452cad fix: trunk 2025-12-17 00:00:58 +00:00
zurdi
3f9e55f0bb refactor: improve type safety in UI settings and theme components 2025-12-16 23:54:32 +00:00
zurdi
ec4d157905 Add user UI settings management and update related components
- 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.
2025-12-16 23:16:36 +00:00
Georges-Antoine Assi
80e40788c5 misc improvements from dan 2025-10-31 22:59:30 -04:00
Georges-Antoine Assi
4a6854e374 self code cleanup 2025-10-30 20:50:47 -04:00
Georges-Antoine Assi
e2c055f7e5 add logo and marquee paths 2025-10-30 15:33:35 -04:00
Georges-Antoine Assi
7f02b16904 simplify elevation and centralize video playing 2025-10-30 14:18:19 -04:00
Georges-Antoine Assi
3e9a3df75b changes from bot review 2025-10-28 16:14:06 -04:00
Georges-Antoine Assi
374645e136 Improve scan page performance on large lists 2025-10-28 15:56:03 -04:00
Georges-Antoine Assi
2f5df3cd24 changes from bot review 2025-10-25 19:34:00 -04:00
Georges-Antoine Assi
bfe709ee9e change console logs to errors 2025-10-25 19:23:15 -04:00
Georges-Antoine Assi
1bab9637ba refine the animation 2025-10-25 19:20:35 -04:00
Georges-Antoine Assi
5995f2ae45 changes from self code review 2025-10-25 18:12:14 -04:00
Georges-Antoine Assi
08c58014d7 move all animation into useGameAnimation 2025-10-25 18:06:08 -04:00
Georges-Antoine Assi
66d985fa02 changes from bot review 2025-10-25 12:22:50 -04:00
Georges-Antoine Assi
1c84f84948 globally rename favourite to favorite 2025-10-18 14:26:20 -04:00
Georges-Antoine Assi
341332d98e mark favorites collection explicit 2025-10-18 13:42:03 -04:00
Georges-Antoine Assi
f06e02df20 Use modern useTemplateRef hook 2025-09-03 14:04:29 -04:00
Georges-Antoine Assi
dfd6bd2bc9 Run formatter on all vue imports 2025-09-03 10:18:08 -04:00
Michael Manganiello
c02e9fdb88 misc: Apply import sorting 2025-09-02 00:22:51 -03:00
Georges-Antoine Assi
940a4e766c first cleanup batch 2025-08-25 12:49:42 -04:00
Georges-Antoine Assi
9ce11d528b run trunk fmt 2025-08-25 10:13:57 -04:00
Spencer Kuzara
6ffee8886d sync favorites collection between romm ui and console ui using new composable 2025-08-24 15:39:31 +09:00
Georges-Antoine Assi
423924cf24 nit from review 2025-08-13 10:45:52 -04:00