Library browsing experience
RomM gives a person one path from a game library to a playable game. The path starts with a dashboard, platform, collection, or global search. It then narrows results with filters, opens a game detail view, and ends with a download or a player session. The web application overview, frontend application architecture, and administration workflows pages describe the wider web app and the library-changing flows.
Library entry points
Home dashboard
The home dashboard is the first view of a populated library. It puts recent and in-progress games beside platform and collection entry points. A person can resume a game or start with the structure of the library.
An empty library uses a different path. It explains that no games are available and points to upload or folder scan actions. Regular, smart, and virtual collections appear as separate groups so their different roles are clear.
References: frontend/…/Home.vue• L64-126 frontend/…/Home.vue• L189-281 frontend/…/Home.vue• L283-475
Gallery views
The gallery is the shared game-list surface for search results, platforms, and collections. It shows cover cards by default and can switch to a list when file and catalog facts are more useful than artwork. A list header exposes sortable game fields. A cross-platform view includes the platform field. A single-platform view does not need it.
The gallery shell keeps the header, toolbar, and result area in one scroll experience. It uses a sparse visible-window store for grid and list views, so scrolling loads groups of visible games instead of one request per card. A metadata bootstrap supplies the result size, letter positions, filter values, and ordered game ids before the visible windows fill. The store limits concurrent windows, retries transient failures, and cancels work that leaves the viewport. It keeps known results visible during refresh, reports empty and not-found states, restores a known route's scroll position, and clears stale work when the gallery context ends. A new result also closes an expanded compact list panel so its facts cannot belong to the wrong game.
The list header keeps selection and ordering available in both screen sizes. Desktop uses sortable column headers. Phones and tablets use a compact sort menu because rows no longer show the full column set. The same header also provides tri-state selection for the current filtered result, so a partial selection can become a full selection or be cleared without opening another control surface. frontend/…/GalleryShell.vue• L932-973 frontend/…/GalleryShell.vue• L1093-1135
The toolbar combines search, filters, grouping, layout, sort, and index-specific segment controls. Grid views expose sort axis and direction there, while list views delegate ordering to column headers. Search relevance can remain unsorted, and index views can omit gallery sort axes. On small screens the controls move into a compact menu. Search autofocus also avoids capturing gamepad navigation. frontend/…/GalleryToolbar.vue• L66-107 frontend/…/GalleryToolbar.vue• L154-161 frontend/…/GalleryToolbar.vue• L270-274
Grouped results provide letter navigation. Desktop shows a vertical alphabet strip. Small screens use a jump menu. Both surfaces follow the active sort direction and support numeric and other non-letter groups. The active letters reflect the sections in view, not only the last letter selected. A back-to-top action uses the gallery's own scroll area and returns focus to the top controls for keyboard and gamepad users.
The main browsing path connects a starting scope to a game and then to access actions:
flowchart LR
A[Home dashboard] --> B[Platform or collection]
A --> C[Global search]
B --> D[Gallery results]
C --> D
D --> E[Game card or list row]
E --> F[Game details]
E --> G[Play or download]
References: frontend/…/GalleryShell.vue• L406-450 frontend/…/GalleryShell.vue• L524-683 frontend/…/GalleryShell.vue• L817-899 frontend/…/GalleryShell.vue• L1003-1295 frontend/…/GalleryShell.test.ts• L30-58 frontend/…/GalleryShell.test.ts• L61-141 frontend/…/galleryRoms.ts• L618-827 frontend/…/galleryRoms.ts• L893-973 frontend/…/galleryRoms.test.ts• L38-165 frontend/…/galleryRoms.test.ts• L378-690 frontend/…/AlphaStrip.vue• L24-123 frontend/…/AlphaJumpMenu.vue• L38-67 frontend/…/BackToTopButton.vue• L38-92 frontend/…/GalleryToolbar.vue• L277-517 frontend/…/GalleryToolbar.test.ts• L64-228
Platform index
The platform index is the library entry point for browsing by game system. It supports search, grid or list reading, sorting, and groups such as family, category, generation, and playability. Playability can include browser players and configured streaming.
Platforms with no games are hidden in the normal view. A URL-backed option can reveal them when a person needs to manage an empty or old platform record. Selecting a platform keeps its identity as the user moves into the platform gallery.
References: frontend/…/PlatformsIndex.vue• L49-119 frontend/…/PlatformsIndex.vue• L207-301 frontend/…/PlatformsIndex.vue• L481-593 frontend/…/PlatformListHeader.vue• L18-91 frontend/…/PlatformListRow.vue• L29-214 frontend/…/PlatformTile.vue• L42-112
Collection index
The collection index brings regular, smart, and virtual collections into one browsing surface. Search, layout, sorting, and URL-backed kind and visibility filters help a person find a collection before entering its game gallery.
Regular collections are managed groups. Smart collections use saved rules. Virtual collections are generated groups and do not use owner-set visibility. A setting controls whether virtual collections appear. Cards and rows show the collection kind and game count so the same entry point works for all three types.
References: frontend/…/CollectionsIndex.vue• L48-176 frontend/…/CollectionsIndex.vue• L178-329 frontend/…/CollectionsIndex.vue• L500-689 frontend/…/CollectionListHeader.vue• L18-101 frontend/…/CollectionListRow.vue• L27-165 frontend/…/CollectionTile.vue• L19-124
Platform and collection contexts
A platform page fixes the gallery scope to one game system. Its shared hero panel keeps the platform identity visible with its count, size, play options, metadata links, and available actions. On small screens the cover and details stack into a centered header. Platform, firmware, memory-card, and settings content uses the same header above its tab body. frontend/…/InfoPanel.vue• L18-59 frontend/…/InfoPanel.vue• L124-163 frontend/…/PlatformHead.vue• L89-239 frontend/…/Platform.vue• L438-528
Related tabs can expose the library, firmware, memory cards when the stream setup supports them, and settings. Platform actions include random play, download, upload, physical-game entry, and scanning when the user has the required rights. The library tab uses the shared gallery shell. Other tabs use a plain tab shell so their header scrolls with the page and their content can fill the desktop view without inheriting gallery scrolling behavior. frontend/…/GalleryTabShell.vue• L14-45
The firmware surface keeps platform files in the platform context. A person with write access can add files by drop or file pick, review them before upload, download selected files, and remove one or more files. The list exposes verification hashes, missing-file state, and a clear marker for Switch key files that RomM does not use. frontend/…/FirmwareTab.vue• L43-71 frontend/…/FirmwareTab.vue• L97-187 frontend/…/FirmwareTab.vue• L272-455
A collection page fixes the gallery scope to one named group. Its shared hero panel shows the collection cover, kind, description, game count, and the actions that apply to the group. On small screens the cover and details stack into the same centered header pattern as the platform page. Regular collections are curated. Smart collections use saved criteria. Virtual collections are generated and do not expose editable collection fields. frontend/…/InfoPanel.vue• L18-59 frontend/…/InfoPanel.vue• L124-163 frontend/…/CollectionHead.vue• L53-115 frontend/…/Collection.vue• L387-447
Owners with the required rights can use settings for collection details. Regular collections can also manage artwork. Smart collections show their saved criteria as a read-only summary. The library keeps the collection header with the scrolling gallery. Other collection tabs use the same plain tab shell as platform tabs, with the header above the tab content. frontend/…/GalleryTabShell.vue• L14-45
These contexts keep scope when a person filters, starts random play, downloads, or returns to the result set. Platform scans, firmware actions, memory-card actions, collection edits, and destructive actions remain permission-aware and stay tied to their platform or collection.
Platform folder setup
The setup wizard connects filesystem folders to the platform catalog before a person starts browsing. It shows the detected folder structure and keeps identified and unidentified folders visible. A person can select supported platforms that are not already present. The summary states which new folders the wizard will create under the chosen structure.
Folder identity follows the resolved platform while each filesystem folder keeps its own row and game count. This preserves alias folders as separate visible sources and prevents an unknown folder from disappearing from the setup result.
References: frontend/…/SetupStepPlatforms.vue• L59-100 frontend/…/SetupStepPlatforms.vue• L154-215 frontend/…/SetupStepPlatforms.vue• L302-651 frontend/…/SetupStepPlatforms.test.ts• L58-100
Folder mappings
Folder mappings keep filesystem names connected to the platform identity used by library browsing and scanning. A mapping can be a folder alias or a platform variant. An automatic match comes from the detected folder data and remains read-only. Unknown folders remain visible until a person maps them.
Administrators can search and sort the mapping list. Users with platform write access can create, replace, change, or remove manual mappings. Alias and variant choices are mutually exclusive for one folder, so changing the type replaces the earlier mapping rather than leaving two platform identities active.
References: frontend/…/FolderMappingsSection.vue• L63-155 frontend/…/FolderMappingsSection.vue• L206-319 frontend/…/FolderMappingsSection.vue• L322-442 frontend/…/FolderMappingsSection.test.ts• L112-183
Library scan flow
The scan surface turns folder and platform identity into an updated library. A person chooses platforms, metadata sources, hash matchers, and a scan type. Scan types that need metadata cannot start without a source. While a scan runs, the selected plan stays visible but locked and the live area reports platform, game, firmware, and file progress.
The live result grows by platform and can be expanded as games arrive. The view keeps its own log scroll, follows new results until the person reads older entries, and offers an abort action. This makes scanning an observable transition between filesystem content and browseable library records.
References: frontend/…/Scan.vue• L59-147 frontend/…/Scan.vue• L191-237 frontend/…/Scan.vue• L412-577
References: frontend/…/Platform.vue• L74-115 frontend/…/Platform.vue• L281-315 frontend/…/Platform.vue• L337-435 frontend/…/Platform.vue• L438-528 frontend/…/PlatformHead.vue• L89-239 frontend/…/ScanPlatformDialog.vue• L78-205 frontend/…/SettingsTab.vue• L87-148 frontend/…/FirmwareTab.vue• L97-187 frontend/…/FirmwareTab.vue• L272-455 frontend/…/FirmwareTab.test.ts• L89-171 frontend/…/Collection.vue• L70-123 frontend/…/Collection.vue• L273-384 frontend/…/Collection.vue• L387-447 frontend/…/CollectionHead.vue• L53-115 frontend/…/CollectionSettingsTab.vue• L238-361
Search and filters
Global search starts without a platform or collection scope. The search view clears the prior gallery context, marks the view as a search, and loads result metadata before the shared shell renders the result window. This allows search to use its own relevance order and the user's grouping preference. Search input is debounced so a request does not run for every key press.
The filter drawer adds precise library queries to the same gallery. It supports three-state property filters for ownership and play data, optional platform selection for mixed scopes, and multi-value filters for catalog and user data. Each multi-value group can match any, all, or none of its values. A game-length range uses the main-story estimate. The drawer also supports filters for saves, states, soundtrack, metadata providers, and playing status.
Game details provide direct pivots into the same search flow. Player-count and age-rating badges keep the stored filter value in their links, while rating badges use provider labels or a text fallback when artwork is not available. This lets a person move from a game fact to the matching library set without rebuilding the query. frontend/…/PlayerCountBadge.vue• L26-55 frontend/…/AgeRatingBadges.vue• L75-151
Filter changes apply at once and remain in the URL. There is no separate Apply action. The active query can be reset or saved as a smart collection, so a filtered result can be revisited, shared, or turned into a saved rule. Single-platform galleries hide the platform filter because the platform scope is already fixed. An empty search or filtered result explains whether no game matches the current query or filters.
References: frontend/…/Search.vue• L1-37 frontend/…/GalleryShell.vue• L151-305 frontend/…/GalleryShell.vue• L406-450 frontend/…/GalleryShell.vue• L624-735 frontend/…/galleryRoms.ts• L500-565 frontend/…/galleryRoms.ts• L829-874 frontend/…/galleryRoms.test.ts• L424-487 frontend/…/galleryRoms.test.ts• L702-778 frontend/…/FilterDrawer.vue• L49-60 frontend/…/FilterDrawer.vue• L161-261 frontend/…/FilterDrawer.vue• L308-503 frontend/…/FilterDrawer.vue• L515-675 frontend/…/GalleryToolbar.vue• L285-321 frontend/…/PlayerCountBadge.vue• L41-55 frontend/…/AgeRatingBadges.vue• L124-151
Game access
Game cards and list rows
Game cards and list rows bridge a result set to one game. An interactive card opens details and exposes play, stream, download, collection, favorite, status, and selection actions. Static or decorative card forms can show the same artwork without taking over navigation in previews or embedded row surfaces.
A normal card click or list-row click opens game details. The platform icon returns to the platform gallery. Hover, focus, touch, keyboard, and gamepad input expose the same main actions. Selection input is handled before navigation, so choosing a game does not also open its details. Cards can show rating, status, sibling-version, region, and language signals without hiding the main game identity. List rows show catalog facts on large screens and use a compact summary with an expandable fact panel on small screens.
The card stories use the same selectable card surface as the gallery. They cover default, focused, hero, and multi-card grid states so the main entry point stays understandable across focus and layout modes. frontend/…/GameCard.stories.ts• L20-73
Selection is a separate interaction from navigation. A person can use the card checkbox, list checkbox, modifier keys, keyboard, or touch long press to select games. The card and row use the active gallery position, so range selection remains tied to the current result order.
References: frontend/…/GameCard.vue• L66-199 frontend/…/GameCard.vue• L233-354 frontend/…/GameCard.vue• L360-526 frontend/…/GameCard.stories.ts• L20-73 frontend/…/CardFlags.vue• L14-47 frontend/…/GameListRow.vue• L118-185 frontend/…/GameListRow.vue• L298-407 frontend/…/GameListRow.vue• L510-706 frontend/…/GameListHeader.vue• L64-167
Game details
Game details turns one result into the main information and access page. It keeps the cover, title, platform, trust signals, catalog facts, version choices, related games, and primary actions together. Platform, region, language, and tag links can take a person back to matching library results.
The page can preserve the gallery that opened it. When that context is trusted, previous and next controls move through the same ordered result set without returning to the gallery. Related local games open local details. Related games that are not owned keep an external metadata path.
The detail tabs organize information and access by user goal:
| Area | User goal |
|---|---|
| Overview | Read the summary, facts, collections, play-time data, related games, similar local games, pinned media, and source credits. |
| Files | Inspect files and hashes, select files, download them, copy links, and use permitted upload or delete actions. |
| Patcher | Combine a game file with a patch and download or store the result when allowed. |
| Media | Read manuals and walkthroughs, view images and video, pin media to Overview, and play soundtracks. |
| Notes | Read and manage personal notes. Read public community notes. |
| Achievements | View achievement progress and filter earned or locked items by achievement type. |
| Save data | Browse personal and community saves and states, then upload, download, or manage supported assets. Save uploads can target autosave, an existing slot, a new named slot, or no slot, and can carry an emulator core. State uploads remain unslotted and can also carry a core. |
| Metadata | Inspect hashes, verification results, provider links, ratings, and external download links. |
The Overview area separates related expansions, DLC, remakes, remasters, and ports from similar-game recommendations. Recommendations can use local RomM matches or IGDB matches, and a user setting can hide that recommendation group without hiding the other related-game groups. Related cards mark games already in the local library and open either the local detail page or the external IGDB page. frontend/…/OverviewTab.vue• L73-168 frontend/…/RelatedGameCard.vue• L39-49 frontend/…/RelatedGameCard.vue• L179-213
The Overview area also presents player count and age ratings as links back to filtered search. It shows the rating artwork when the source provides it and keeps a readable shield label when an image cannot load. frontend/…/OverviewTab.vue• L243-261 frontend/…/AgeRatingBadges.vue• L124-151 frontend/…/PlayerCountBadge.vue• L41-55
Pinned screenshots, artwork, and clips can appear in Overview after a person selects them from Media. Images open in a lightbox. Clips load only when played and stop when another clip starts or the media surface closes.
The selected detail tab and its subtab stay in the URL. This supports direct links to a specific file, media, note, save, or metadata view. A tab that is not available for the current game falls back to Overview, while the route can open that tab again when the next game supports it. frontend/…/GameDetails.vue• L115-130 frontend/…/GameDetails.vue• L318-350
On desktop, the cover, header, and tab navigation stay in place while the active detail panel scrolls. On small screens, the cover and detail content form one document flow so the full page can scroll. frontend/…/GameDetails.vue• L361-415 frontend/…/GameDetails.vue• L425-544
Achievements appear only when the game has a matching achievement set. The page shows earned progress and total points, then lets a person narrow the list by achievement type or earned state. The earned count comes from the signed-in person's progress. frontend/…/GameDetails.vue• L252-271 frontend/…/GameDetails.vue• L321-342 frontend/…/AchievementsTab.vue• L33-69 frontend/…/AchievementsTab.vue• L102-217
Save data separates a person's items from public community items. Saves and states use separate URL-addressable subtabs with counts and upload entry points. The upload dialog starts save uploads in autosave but lets the person choose an existing slot, name a new slot, or keep the files outside a slot. State uploads do not use slots. Both upload types can carry an optional emulator core.
References: frontend/…/GameHeader.vue• L43-194 frontend/…/PrevNextNav.vue• L1-116 frontend/…/FileRow.vue• L29-257 frontend/…/MediaTab.vue• L48-295 frontend/…/SaveDataTab.vue• L66-169 frontend/…/SaveDataTab.vue• L573-828 frontend/…/UploadAssetDialog.vue• L24-119 frontend/…/UploadAssetDialog.vue• L122-190 frontend/…/UploadAssetDialog.test.ts• L133-253 frontend/…/AchievementsTab.vue• L33-69 frontend/…/AchievementsTab.vue• L144-217 frontend/…/AgeRatingBadges.vue• L75-151 frontend/…/MetadataTab.vue• L27-161 frontend/…/OverviewTab.vue• L215-437 frontend/…/PlayerCountBadge.vue• L26-55 frontend/…/RelatedGameCard.vue• L39-49 frontend/…/RelatedGameCard.vue• L179-213 frontend/…/GameDetails.vue• L243-358 frontend/…/GameDetails.test.ts• L137-213 frontend/…/GameDetails.test.ts• L216-266
Downloads and bulk actions
Downloads match the user's scope. A game action downloads one game. The Files tab downloads one file or a selected set. Platform and collection headers can request an archive for the current scope. Gallery selection can download one selected game or bundle several selected games into one archive.
The selection bar keeps bulk actions separate from browsing controls. It supports select-all for the filtered result, downloads, favorites, play-status changes, collection membership, metadata refresh, and permitted deletion. A collection picker shows whether each selected game belongs to none, some, or all of a collection. It can also create a collection during the same action. The bar remains outside the gallery scroller, so search, filters, sorting, and layout controls stay available during selection. frontend/…/SelectionBar.vue• L1-37 frontend/…/SelectionBar.vue• L387-589
Bulk status changes use an optimistic update and can report partial success when some per-game updates fail. Metadata refresh and deletion pass the full selection to their dialogs. The interface hides actions that the current user cannot use, but the server remains the final authority. Firmware upload, download, and deletion use the same permission-aware pattern in the platform context.
References: frontend/…/SelectionBar.vue• L103-120 frontend/…/SelectionBar.vue• L148-184 frontend/…/SelectionBar.vue• L186-276 frontend/…/SelectionBar.vue• L300-321 frontend/…/galleryRoms.ts• L829-874 frontend/…/CollectionPickerRow.vue• L14-79 frontend/…/NewCollectionRow.vue• L18-152 frontend/…/rom.ts• L586-631 frontend/…/FirmwareTab.vue• L127-187 frontend/…/FirmwareTab.vue• L277-429
Player-facing flows
Playback entry
Play is available from a card and from game details when a supported path exists. RomM prefers a configured stream for the platform. Without one, it can use a browser emulator or a special player for DOS, PICO-8, or Flash games. When the desktop shell offers a native emulator, the browser-emulator launch page shows that route first and keeps the in-browser route as a separate choice. A platform that only the shell can run shows only the native launch. A protected user status can require confirmation before launch.
The player is a separate user state from the gallery. It prepares the selected path, runs the session, and returns to game details or the prior gallery when the person exits.
flowchart TD
A[Play action] --> B{Stream configured?}
B -- Yes --> C[Stream launch]
B -- No --> D{Local player supported?}
D -- Browser emulator --> E[Browser setup]
D -- DOS --> F[DOS setup]
D -- PICO-8 --> G[PICO-8 setup]
D -- Flash --> H[Flash setup]
C --> I{Own or join session}
E --> J[Running game]
F --> J
G --> J
H --> J
I --> J
J --> K[Return to game or gallery]
References: frontend/…/index.ts• L49-92 frontend/…/index.ts• L223-281 frontend/…/router.ts• L223-278 frontend/…/EmulatorJS.vue• L887-967 frontend/…/EmulatorJS.vue• L426-521 frontend/…/EmulatorJS.test.ts• L299-495 frontend/…/Pico8.vue• L38-57 frontend/…/Ruffle.vue• L54-109
Browser emulation
The browser emulator gives the person a setup screen before the game fills the player stage. It presents the game identity, available play paths, save and state choices, and runtime options such as the file, core, firmware, fullscreen mode, bezel, and cache. When a native route is available, the setup panel states which choices carry to that route and which remain browser-only. A launch in progress disables both play paths and can be cancelled through the native route.
The selected resume asset, firmware, save slot, and snapshot can survive a browser-isolation reload when the selected core needs that environment. The page resolves those choices again against the assets still offered by the server, so removed saves, states, or firmware do not become invalid launch inputs.
After launch, the player records activity and keeps input under the game. Browser play keeps save data current during the session and flushes pending work when the person leaves. Leaving the player ends the session, releases input, and returns focus to the prior play control or game view. Some cores need an isolated document so the browser can provide the required memory support.
References: frontend/…/EmulatorJS.vue• L181-214 frontend/…/EmulatorJS.vue• L464-521 frontend/…/EmulatorJS.vue• L524-549 frontend/…/EmulatorJS.vue• L662-769 frontend/…/EmulatorJS.vue• L887-1247 frontend/…/launchIntent.ts• L8-87 frontend/…/emulatorJSRuntime.ts• L11-33 frontend/…/emulatorJSRuntime.ts• L117-193 frontend/…/EmulatorJS.test.ts• L498-650 frontend/…/launchIntent.test.ts• L69-149
DOS and PICO-8 playback
The DOS player starts a DOS runtime inside the shared player shape. It loads the runtime while the game data loads, uses the bundle file for folder-based games, and requires an isolated browser document for the threaded runtime. A failed runtime or save preparation reports an error before play starts. Per-user and per-game save sync moves changes between the browser player and RomM, including migration of older browser-held changes.
The player saves before exit and keeps the session open when that save is not confirmed. A person can discard the recent changes only after confirmation. Isolated documents return through a full document navigation so the normal application can render again. frontend/…/JsDos.vue• L106-193 frontend/…/JsDos.vue• L204-270
The PICO-8 player loads a cart into a focused canvas. It supports keyboard, pointer, and on-screen controls plus fullscreen. Exit and error paths stop the runtime, clear input, and end the play session together.
References: frontend/…/JsDos.vue• L46-193 frontend/…/JsDos.vue• L204-270 frontend/…/JsDos.test.ts• L196-287 frontend/…/JsDos.test.ts• L290-491 frontend/…/JsDos.test.ts• L529-623 frontend/…/Pico8.vue• L91-192 frontend/…/Pico8.vue• L200-411
Streamed emulation
The streaming player shows output from a native emulator through a full-screen web view. Before play starts, it refreshes stream capability data and waits for compatible resume choices. The screen can offer native or importable states, save archives, memory cards, and multi-disc options when the emulator supports them. It selects a safe default without sending an unconfirmed choice to the session.
A person can start a session or join one that another person shares. An owned session is tied to its container and claim time. This identity protects launch, status, save, heartbeat, and release actions from delayed messages for an older session. Launch can remain in a waiting state while the stream becomes ready, with status checks recovering a missed readiness event. Owners receive save, load, save-and-exit, and release controls. Joiners can play or watch without owner-only controls.
The running view provides volume, fullscreen, and supported disc or state controls. Navigation and controller exit input pass through one confirmation dialog so a session is not ended by accident. The player releases or saves the session during exit, navigation, unload, and remote termination. A clear notice explains when another action ended the session and returns the person to the game view.
References: frontend/…/Stream.vue• L335-585 frontend/…/Stream.vue• L638-875 frontend/…/Stream.vue• L948-1113 frontend/…/Stream.vue• L1128-1261 frontend/…/Stream.vue• L1296-1468 frontend/…/Stream.vue• L1471-2008 frontend/…/Stream.test.ts• L332-620 frontend/…/Stream.test.ts• L697-866 frontend/…/Stream.test.ts• L868-1191 frontend/…/Stream.test.ts• L1247-1534 frontend/…/Stream.test.ts• L1536-1573
Streaming desktop view
The streaming desktop view gives an administrator a no-game view of a configured stream container. It uses the same claim as a game session, so desktop work and game play cannot occupy one container at the same time.
The view keeps the claim alive while open and releases it on route change or tab close. A failed release stays visible as an error instead of showing a container as free while it is still occupied.
References: frontend/…/Desktop.vue• L33-215
Shared browsing behavior
View state and navigation
Gallery and index pages share grid and list reading modes. Sorting, grouping, and responsive controls keep the same meaning across desktop and small screens. URL state carries search, filters, sort order, view mode, tabs, and detail subtabs when a deep link is useful. Broader display preferences persist for the user.
The gallery store keeps the active scope and the request that produced the displayed result separate from the live filters. A refresh can therefore keep the old cards usable until the new first page is ready, while a context change cancels old work and permits the new result to load. The same visible-window contract serves grid and list layouts. Scroll positions are stored by full route path and reapplied after the first window gives the virtual list a real height. A position of zero remains a valid saved location.
The interface can present supported locales by their own display names. Browser language preferences choose the closest available locale, with English (USA) as the fallback. frontend/…/language.ts• L1-59
The gallery shell owns its scroll area, virtual result window, letter navigation, selection boundary, and keyboard or gamepad movement. Small-screen list rows add their details without changing the gallery scope.
References: frontend/…/GalleryShell.vue• L625-683 frontend/…/GalleryShell.vue• L817-899 frontend/…/GalleryShell.vue• L1003-1295 frontend/…/GalleryShell.test.ts• L30-141 frontend/…/GalleryToolbar.vue• L277-517 frontend/…/GalleryToolbar.test.ts• L89-228 frontend/…/galleryRoms.ts• L370-484 frontend/…/galleryRoms.ts• L893-939 frontend/…/galleryRoms.test.ts• L489-690 frontend/…/scrollRestoration.ts• L1-23 frontend/…/GameListHeader.vue• L29-97 frontend/…/GameListRow.vue• L369-507 frontend/…/index.ts• L1-41
Selection workflow
Multi-select starts from a game card or list row. Direct toggles, modifier-key range selection, touch long press, the list-header checkbox, and Ctrl/Cmd+A can build a selection. The selection belongs to the active gallery context. A path change clears it so actions cannot reach games from an old result set.
Filtering and sorting within the same gallery keep the selection available. The selection bar stays outside the result scroller so a person can keep changing the selection while search and view controls remain available. Select-all applies to the current filtered result, and status changes report when only part of a batch succeeds.
References: frontend/…/GameCard.vue• L270-354 frontend/…/GameListRow.vue• L130-154 frontend/…/GalleryShell.vue• L831-899 frontend/…/GameListHeader.vue• L69-84 frontend/…/SelectionBar.vue• L103-120 frontend/…/SelectionBar.vue• L228-275
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the gallery query state, URL state, result metadata, and visible-window requests aligned. A changed search or filter must invalidate old windows before new cards appear.
- Keep grid and list loading on the same visible-window contract. A change to the shell must not make one layout fetch stale or unbounded data.
- Keep the metadata bootstrap sidecars aligned with the surfaces that render them. A skipped letter index, filter-value list, or id index must not replace populated state with an empty response.
- Keep window concurrency, viewport cancellation, bounded retry, and context identity aligned. A window from an old gallery must not apply or retry after a scope change.
- Keep refresh commits atomic. The displayed result, total, ordered ids, metadata, and loaded-window set must change as one result.
- Keep list columns, sort keys, header geometry, row geometry, skeleton geometry, and compact sort options aligned. The platform column must be present only for cross-platform views.
- Keep compact list detail height aligned with the virtual row height. An expanded fact panel must not overlap the next row or leave stale space after it closes.
- Keep the search view's scope reset and search-context flag aligned with grouping and relevance order.
- Keep card navigation, platform navigation, selection position, and game-detail provenance aligned. A consumed selection click must not open game details.
- Keep card flags and status or sibling badges readable without blocking the card action layer. Informational overlays must not capture navigation input.
- Keep whole-result selection tied to the active filtered result. A context change must clear the old selection before bulk actions can run.
- Keep letter positions, sort direction, available groups, visible-letter state, and jump-menu behavior aligned with both alphabetic and non-alphabetic groups.
- Keep the toolbar and list header responsive paths equivalent. A control available on desktop must remain reachable on small screens unless the surface intentionally removes it.
- Keep toolbar sort-axis and direction behavior aligned with grid mode, list-header sorting, and relevance order. Do not let a list toolbar offer a second sort control.
- Keep filter property states, multi-value logic, game-length units, URL values, and smart-collection rules aligned. The platform filter must remain hidden when the gallery already fixes one platform.
- Keep platform, regular collection, smart collection, and virtual collection scope identifiers aligned across gallery loading, random play, and bulk download.
- Keep platform and collection hero content, action placement, tab navigation, and the shell-owned divider aligned across desktop and small screens. The shared hero must not add a second separator.
- Keep library tabs on the gallery shell and non-library platform or collection tabs on the tab shell. Their scroll and desktop fill behavior are different contracts.
- Keep setup folder identity, detected-folder rows, selectable new platforms, and the structure summary aligned. Do not hide unidentified folders or offer a platform that already resolves to a detected folder.
- Keep folder mapping type changes mutually exclusive and preserve the read-only boundary for automatic matches. Refresh the config and filesystem view after a successful manual change.
- Keep scan platform selection, metadata-source requirements, hash options, scan type, live counters, and abort behavior aligned. The running plan must remain visible while controls are locked.
- Keep platform tab availability aligned with the live stream configuration. A memory-card deep link must fall back when its platform no longer supports cards.
- Keep firmware selection, upload state, platform counts, live platform state, and permission checks aligned after upload or delete. Keep missing-file and key-file status distinct from verified firmware.
- Keep detail tab and subtab query names scoped to their owning detail surface.
- Keep save and state subtabs, counts, owner/community split, and upload entry points aligned after a game refresh.
- Keep save upload slot choices separate from core choices. A selected core must not silently change the chosen save slot, and state uploads must remain unslotted.
- Keep Overview recommendation settings aligned with both local and external similar-game sources. Keep ports and other related-game groups visible independently.
- Keep player-count and age-rating links aligned with the exact stored filter values. A display label must not replace the value used by search.
- Keep pinned-media keys, pin state, reset behavior, and media-shelf cleanup aligned when media is removed or a detail view closes.
- Keep related-game metadata lookup aligned with the owned marker and the local-versus-external navigation target.
- Keep detail hash order, verification matches, provider links, and platform-specific file hints aligned across the header, file, and metadata surfaces.
- Keep achievement availability, earned counts, type filters, status filters, and
?tab=fallback aligned when the current ROM changes. - Keep native and browser launch buttons, their carried controls, launch progress, cancellation, and platform support checks aligned. A control shown in the shared setup panel must have clear ownership on each route.
- Keep launch-intent values limited to server-resolvable asset ids plus the slot and snapshot choices. A reload must restore only assets that remain available.
- Keep browser save polling, forced exit flushes, screenshot capture, and save-list refresh aligned with the native shell's sync outcomes.
- Keep DOS runtime loading single-flight and retryable. A failed source check must not leave a later player mount unable to load its runtime.
- Keep DOS isolation checks, save migration, final-save confirmation, and full-document return aligned. The player must not boot without the required browser context or lose pending changes on exit.
- Keep stream resume choices gated by fresh broker capabilities and compatible emulator or core support. Do not enable Play or send a choice that the player could not see.
- Keep player launch choices aligned with the runtime that receives them. Session claims must remain matched to both the container and claim time.
- Keep owner and joiner stream controls separate. Keep the exit guard and release or save behavior active on every player exit path.
- Keep selection-bar actions outside the gallery scroller. Keep bulk status updates, metadata refresh, deletion, download hiding, and permission gates aligned with the selected ROM set.
- Keep permission checks paired with the related action. Hiding a control does not replace server authorization.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Search, filter, or sort changes without gallery invalidation | Old cards remain under the new query or the count does not match the cards | Invalidate result windows and reload initial metadata when query state changes. |
| Grid and list use different visible-window fetch rules | One layout shows stale skeletons or sends one request per row | Keep both layouts on the store's shared visible-window sync path. |
| A skipped gallery sidecar is applied as an empty value | The letter strip or filter drawer loses data already loaded by the bootstrap | Apply metadata only when the request asked for that sidecar. |
| A window response applies after a context switch | Cards from an old search appear in the new gallery or a partial window is marked complete | Match the response to its current request identity before applying or marking it loaded. |
| A failed visible window has no retry | Visible cards remain skeletons until another viewport change happens | Retry a failed window with a bounded backoff and clear retries on context change. |
| A list column changes in the header but not the row or skeleton | Labels, values, and loading rows no longer line up | Share the column definition and grid geometry across all list surfaces. |
| The platform column appears in a single-platform list | The list spends space on a fact that is already fixed by the page scope | Use the same platform-column choice in the shell, header, row, and skeleton. |
| A compact detail panel changes without a matching virtual-row height | Rows overlap or scroll position jumps when facts open | Treat the expanded panel height as part of the list layout contract. |
| A search view keeps the prior platform or collection scope | Global search returns a narrowed or grouped result set | Reset the gallery scope and mark the active view as search before fetching metadata. |
| A selection click is allowed to reach the card or row link | A bulk selection also opens game details | Consume selection input before normal card navigation. |
| A gallery switch keeps the previous selection | A bulk action can target games from the old context | Clear selection on path changes and when the gallery shell unmounts. |
| A letter map is stale after grouping, sort, or window changes | A letter jump lands at the wrong result | Rebuild letter positions and visible highlights from the active ordered result. |
| A toolbar offers sort direction for relevance or competes with list-header sorting | The user sees a control that has no effect or two conflicting sort paths | Hide direction for unsorted relevance and keep sort axes out of list mode. |
| A filter uses a changed display unit or loses its logic operator in the URL | A shared or saved query returns a different set of games | Keep filter state, URL serialization, and backend units aligned. |
| A player-count or age-rating badge links with its display text instead of the stored value | A pivoted search returns no games or the wrong games | Preserve the source filter value in the route query. |
| A platform or collection hero adds its own divider | The gallery has a doubled separator or inconsistent header boundary | Let the shared gallery shell own the separator and keep the hero focused on inner content. |
| A non-library tab inherits gallery scrolling or a gallery tab uses plain document flow | The header and content scroll in the wrong container or desktop content does not fill the view | Use GalleryShell for the library and GalleryTabShell for other platform or collection tabs. |
| Setup treats an alias folder as the canonical folder itself | A detected folder is duplicated or a supported platform is offered again | Resolve the platform identity but keep one detected row per filesystem folder. |
| Setup hides an unidentified folder | A person cannot account for content that the scan may still see | Show unknown folders with their folder name and game count. |
| Folder casing differs between filesystem data and stored mapping lookup | A valid alias or variant appears unmapped | Use the same normalized folder lookup for display and config updates. |
| An automatic folder match is offered as editable or manual alias and variant mappings coexist | A person can create a conflicting platform identity for one folder | Keep automatic rows read-only and replace the active mapping when its type changes. |
| A scan requiring metadata starts with no source | The scan cannot identify content through its required metadata path | Disable start until at least one effective metadata source is selected. |
| Scan totals lag scanned counts and are shown without clamping | Progress goes past 100% or counters appear to move backward | Clamp identified counts and use the larger known total for progress. |
| A platform tab is shown after its stream capability is removed | A deep link opens an unusable memory-card surface | Recheck the live platform and container capability before keeping the tab. |
| Firmware upload or delete updates only the list and not the platform state | Counts and later platform actions use stale firmware data | Synchronize the platform record and the active platform context after a successful mutation. |
| A Switch key file is treated as usable firmware | A person expects RomM or an emulator to read a file that the system only stores | Mark key files as stored but unused by RomM. |
| A save upload changes its slot when a core is chosen | The save is filed in a different place than the person selected | Treat slot and core as separate choices, and keep state uploads unslotted. |
| The Overview recommendation setting hides the whole related block | Ports or expansions disappear with similar-game recommendations | Gate only the recommendation source and calculate other related groups separately. |
| A missing rating image removes the age rating link | A person loses the search pivot when provider artwork is unavailable | Fall back to a semantic text badge that keeps the raw rating value. |
| A removed or replaced media clip keeps its source attached | A hidden clip continues a download or holds media resources | Release the clip when it leaves the shelf, when another clip plays, and on unmount. |
| A related IGDB lookup is treated as a local game without a confirmed ID | A click sends the person to a broken local detail route | Keep the external IGDB fallback until the local lookup succeeds. |
| An achievement tab remains active after the next ROM has no achievement set | The route shows an empty or invalid detail surface | Recompute tab availability and use Overview when the active ROM lacks the tab. |
| A detail hash or verification rule changes in one surface only | The header and metadata tab give different trust signals | Use the shared hash order and verification source for each detail surface. |
| The native and browser routes show the same control but only one route receives it | A launch ignores a choice made in the setup panel | State which controls carry to the native route and pass only supported choices to that route. |
| An isolated reload stores full asset objects or trusts an asset that was removed | The player resumes with stale data or sends an invalid launch request | Store ids and resolve them again from the current server-backed options. |
| The browser player leaves before save bytes are flushed | Recent progress is missing from the library | Poll during play and force a final flush on every exit path. |
| A DOS launch skips isolation or a failed runtime load stays cached | The emulator does not boot or later launches cannot retry | Require the isolated context and clear the failed single-flight load. |
| A DOS final save fails and exit proceeds without confirmation | Recent browser changes can be lost | Keep the player open and require an explicit discard choice. |
| The stream enables Play before fresh capability or state-pick data arrives | Play offers a save or state that the broker cannot restore | Wait for fresh stream configuration and filter choices by import and core support. |
| A stream event matches only the platform | A delayed event can affect a newer session in the same container | Match events and requests to the container and claim time. |
| A player exits without releasing its stream claim | The container stays occupied for later users | Release or save-and-exit during route, unload, and failure paths. |
| A joiner receives owner-only controls | A user can try to save or release another person's session | Track claim ownership and gate owner actions from it. |
| A bulk status update treats every request as successful | Failed user-state changes remain shown as applied | Revert failed ROMs and report partial success after the bounded batch completes. |
| A selection bar action is placed in the gallery scroller | Bulk controls disappear while results scroll or cover search and sort controls | Keep the selection bar as a fixed surface outside the gallery scroller. |
| A destructive action is shown without a write grant | The UI offers an action that fails or exposes an unsafe path | Gate the control and keep server-side permission checks. |
Key files
| File | Why to read it |
|---|---|
| frontend/…/GalleryShell.vue | Defines the current shared gallery flow for search, platform, and collection results. It owns result windows, toolbar state, list and grid presentation, scroll behavior, letter navigation, and selection scope. |
| frontend/…/GalleryShell.test.ts | Shows the gallery contract during refreshes: known results remain usable and a replaced result closes stale compact list detail. |
| frontend/…/galleryRoms.ts | Defines the sparse gallery result model, metadata bootstrap, visible-window loading, refresh swap, retry, cancellation, and whole-result selection fetch. |
| frontend/…/galleryRoms.test.ts | Shows the contracts for window batching, sidecar loading, refresh races, select-all paging, length units, and relevance order. |
| frontend/…/scrollRestoration.ts | Defines route-scoped scroll positions used after gallery rows acquire their virtual height. |
| frontend/…/language.ts | Defines supported locale labels, browser-language matching, and the English fallback used by the UI. |
| frontend/…/GalleryTabShell.vue | Defines the plain-flow shell for non-library platform and collection tabs. It keeps their header and panel behavior separate from the gallery's internal scroller. |
| frontend/…/Search.vue | Shows how global search clears the prior scope and starts the shared gallery with relevance order. |
| frontend/…/GalleryToolbar.vue | Shows the shared search, filter, grouping, layout, sort, and responsive toolbar contract. |
| frontend/…/GalleryToolbar.vue | Shows the current responsive toolbar path, including grid and list sort ownership, relevance order, filter count, index segment filters, and input-modality behavior. |
| frontend/…/InfoPanel.vue | Defines the shared platform and collection hero surface. It keeps cover, title, tags, stats, provider links, actions, responsive layout, and the shell-owned separator contract together. |
| frontend/…/FirmwareTab.vue | Shows the platform-scoped firmware browse, upload, download, delete, verification, and selection flow. |
| frontend/…/FilterDrawer.vue | Shows the user-facing filter model and smart-collection handoff. |
| frontend/…/FilterDrawer.vue | Shows the current property, platform, catalog, user-state, provider, status, and game-length filters. |
| frontend/…/AlphaStrip.vue | Shows desktop letter navigation, active viewport groups, sort direction, and non-letter buckets. |
| frontend/…/AlphaJumpMenu.vue | Shows the compact letter-navigation path for phones and tablets. |
| frontend/…/GameListHeader.vue | Shows responsive list sorting and whole-result selection. |
| frontend/…/GameListRow.vue | Shows the list entry point, compact facts panel, selection behavior, and catalog facts. |
| frontend/…/GameCard.vue | Shows the cover-first game entry point, play and download actions, platform return, selection, static preview modes, and navigation to details. |
| frontend/…/GameCard.stories.ts | Shows the selectable card surface across default, focus, hero, and grid states. |
| frontend/…/CardFlags.vue | Shows the player-facing region and language signals placed on gallery cards. |
| frontend/…/SelectionBar.vue | Shows the fixed gallery-wide bulk action surface for select-all, downloads, favorites, statuses, collections, metadata refresh, and deletion. |
| frontend/…/Platform.vue | Connects platform scope, tabs, scoped actions, firmware, memory cards, scanning, and platform settings. |
| frontend/…/PlatformHead.vue | Shows platform identity, metadata links, play and download actions, and permission-aware platform actions. |
| frontend/…/ScanPlatformDialog.vue | Shows the platform-scoped scan choices and launch flow. |
| frontend/…/SettingsTab.vue | Shows platform details, editable fields, and the destructive action boundary. |
| frontend/…/Collection.vue | Connects regular, smart, and virtual collection scope to its gallery, tabs, random play, download, and actions. |
| frontend/…/CollectionHead.vue | Shows collection identity, kind, count, random play, download, and tab navigation. |
| frontend/…/CollectionSettingsTab.vue | Shows collection details, regular-collection artwork, smart criteria, visibility, and deletion. |
| frontend/…/SetupStepPlatforms.vue | Shows how setup presents detected and unidentified folders and lets a person choose new platform folders under the library structure. |
| frontend/…/FolderMappingsSection.vue | Shows how filesystem folders resolve to platform aliases, variants, automatic matches, or unmapped rows. |
| frontend/…/Scan.vue | Shows scan setup, metadata requirements, live progress, platform results, and abort behavior. |
| frontend/…/GameHeader.vue | Shows game identity, version choices, search links, and primary access actions. |
| frontend/…/OverviewTab.vue | Shows the game summary, quick facts, pinned media, related-game groups, recommendation source choice, collections, and metadata credits. |
| frontend/…/AchievementsTab.vue | Shows achievement progress and the earned, locked, and type filters. |
| frontend/…/AgeRatingBadges.vue | Shows age-rating artwork, text fallback, and the rating-to-search pivot. |
| frontend/…/PlayerCountBadge.vue | Shows the player-count badge and its exact-value search pivot. |
| frontend/…/MetadataTab.vue | Shows file facts, ordered hashes, verification signals, provider links, and external download links. |
| frontend/…/GameDetails.vue | Orchestrates the detail layout, URL tab state, dynamic achievement availability, related-game sources, and game-to-game navigation. |
| frontend/…/GameDetails.test.ts | Shows the detail contract for achievement-tab availability, route fallback, earned counts, and save-data counts. |
| frontend/…/FileRow.vue | Shows file facts, selection, download, copy-link, and permitted file actions. |
| frontend/…/MediaTab.vue | Shows manuals, walkthroughs, screenshots, artwork, video, and soundtrack access. |
| frontend/…/MediaShelf.vue | Shows the shared image and video surface used for pinned game media. |
| frontend/…/RelatedGameCard.vue | Shows the local-library lookup, owned marker, and local-detail or external-IGDB destination for related games. |
| frontend/…/SaveDataTab.vue | Shows the save and state browsing, community sharing, upload, download, and owner actions within game details. |
| frontend/…/UploadAssetDialog.vue | Shows the save-slot, emulator-core, and file choices for save and state uploads. |
| frontend/…/index.ts | Centralizes the choice of play path, download behavior, user actions, and permissions. |
| frontend/…/EmulatorJS.vue | Shows native and browser play choices, resume selection, setup ownership, launch progress, browser launch, and session exit. |
| frontend/…/EmulatorJS.test.ts | Shows the player contract for native/browser routes, carried controls, cancellation, save refresh, snapshots, and cleanup. |
| frontend/…/launchIntent.ts | Defines the safe handoff of resume, firmware, slot, and snapshot choices across an isolated browser launch. |
| frontend/…/emulatorJSRuntime.ts | Defines browser-player save sync, screenshot fallback, runtime compatibility, and teardown behavior. |
| frontend/…/JsDos.vue | Shows DOS runtime preparation, isolated launch, per-user save sync, final-save protection, and return navigation. |
| frontend/…/JsDos.test.ts | Shows the DOS player contracts for runtime source selection, isolation, save migration, save flush, and exit behavior. |
| frontend/…/jsDosRuntime.ts | Defines the single-flight DOS runtime load and its retry and source fallback behavior. |
| frontend/…/Stream.vue | Shows fresh stream capability checks, compatible resume choices, session claims, joining, running controls, exit protection, and release behavior. |
| frontend/…/Stream.test.ts | Shows the streamed player contracts for resume picks, discs, joins, claim identity, launch recovery, state controls, and cleanup. |
| frontend/…/Desktop.vue | Shows the administrator stream-container claim and release flow. |
| frontend/…/router.ts | Maps the browsing, game-detail, and player routes that connect these surfaces. |