Administration workflows
Administration workflows give RomM users one web surface for maintaining the library, managing access, watching server work, and connecting client devices. The Vue application keeps forms and live operation status in client state, while the server remains the source of truth for permissions, configuration, files, and task results. This page is a child of Web application experience; see also Frontend application architecture and Library browsing experience.
Administration surface
The administration surface is a group of authenticated routes inside the shared settings area. Its navigation changes with the current user's grants and with server feature flags, so users see only the workflows that they can use.
The main route groups connect page views to shared client state and server interfaces as shown here.
flowchart LR
User[Authenticated user] --> Nav[Settings navigation]
Nav --> Library[Library tools]
Nav --> Account[Account and access]
Nav --> System[System and operations]
Library --> Scan[Scan and upload]
Library --> Config[Library and scan configuration]
Account --> Users[Users, groups, tokens, devices]
System --> Tasks[Tasks, activity, stats, logs]
Scan --> State[Pinia operation state]
Tasks --> State
Config --> API[Server API]
Users --> API
State --> API
API --> Server[Library, config, queue, and realtime services]
Settings navigation
frontend/…/SettingsSidebar.vue provides the shared settings navigator. It groups account, library, system, and tool workflows. On small screens the same choices move to the user menu, while larger screens show the navigator beside the active view. The sidebar also shows an unread notification count when one exists.
The Library group brings scanning, uploads, library management, scan settings, metadata sources, client tokens, and paired devices into one navigation model. The System group includes administration, active sessions, server statistics, and logs when their access rules allow them. Link filtering helps the user interface, but it is not a security control; the route and server still check access.
References: frontend/…/SettingsSidebar.vue• L31-169
Route access
frontend/…/router.ts defines the administration route names and the scope checks that protect them. A user without the required grant is sent to the not-found route rather than shown a partial administration page. The server repeats these checks for every request.
The important route gates are:
| Workflow | Route | Required access |
|---|---|---|
| Scan | /scan | platforms.write |
| Upload | /upload | roms.write |
| Library management | /library-management | platforms.write |
| Scan settings | /scan-settings | platforms.write |
| Client tokens | /client-api-tokens | me.write |
| Devices | /devices | devices.read |
| User administration | /administration | users.write |
| Logs | /logs | logs.read and an enabled log viewer |
Activity and server statistics are visible from the settings navigation when their related server capability is available. The exact action still goes through the API permission check.
References: frontend/…/router.ts• L280-456 frontend/…/router.ts• L546-575 frontend/…/router.ts• L619-679 frontend/…/SettingsSidebar.vue• L113-168
Library operations
Library tools turn files and server rules into catalog records. Scanning discovers and updates library data, uploading places new files in a chosen platform, and library management controls how folders and exclusions affect later scans.
Scanning workflow
The scan page presents scan choices beside a live result area. A user selects platform folders, metadata sources, hash matching options, and a scan type. Provider selection groups available metadata sources and can expose a LaunchBox local or cloud choice when that source is selected. Hash matchers can be switched on only when their prerequisites are ready; a blocked matcher explains its reason without hiding the choice. Scan type options show a short description or the reason that an option is disabled.
The scan reference explains the available modes and the metadata providers that can enrich the catalog. The available modes cover new-platform discovery, quick scans, unmatched games, metadata updates, hash work, and complete rescans. A scan cannot start without a metadata source when its type needs one, and its controls stay locked while the job runs.
The page starts the scan through the realtime socket and displays platform panels, ROM results, firmware counts, counters, and a live progress bar. Each platform panel reports ROMs found by that scan and shows a firmware badge only when the scan found new firmware. ROM rows can move from a raw filename to an identified title, show provider results or an unmatched state, and link to the ROM page. Provider match badges identify the source of a match. A firmware-only result still shows that no new ROMs were found.
The scan view keeps the configuration card and live result area together. It locks the selected inputs during a run, lets the user stop the run, and keeps the live list in its own scroll area. The display uses an indeterminate bar until totals are known and clamps counts while the server is still discovering totals.
The shared scan state is not tied to the page. frontend/…/index.ts listens for scan events at the application level, so the navigation indicator and the scan page keep the same status when the user changes routes. It also checks task status when a page opens during an existing scan.
sequenceDiagram
participant U as User
participant V as Scan view
participant S as Scan state
participant W as Socket
participant B as Server scan job
U->>V: Choose platforms and scan options
V->>S: Reset and mark scan active
V->>W: Send scan request
W->>B: Start scan
B-->>W: Platform, ROM, and stats events
W-->>S: Update shared progress and results
S-->>V: Render live panels and counters
B-->>W: Done or failed event
W-->>S: Close scan state
S-->>V: Show final result
The scan store keeps the current run separate from the last run. It resets progress before a new request, tracks discovered ROMs by platform, and records scan totals for platforms, ROMs, firmware, and files. Platform and ROM rows use stable identities, so streamed results remain correct as new items arrive.
References: frontend/…/Scan.vue• L89-232 frontend/…/Scan.vue• L388-584 frontend/…/ScanInfoDialog.vue• L31-185 frontend/…/ScanProviderSelect.vue• L10-105 frontend/…/ScanHashMatcherSwitches.vue• L9-65 frontend/…/ScanTypeSelect.vue• L1-34 frontend/…/ScanPlatform.vue• L22-115 frontend/…/ScanPlatformRow.vue• L22-147 frontend/…/scanning.ts• L6-45 frontend/…/index.ts• L43-61 frontend/…/index.ts• L168-209
Upload workflow
The upload page is a repeatable library tool rather than a one-shot dialog. It loads the supported platform list, accepts files from a drop zone or file picker, removes duplicate file names from the pending list, and keeps the selected platform for the next batch. A platform query can preselect the destination when another page links to the upload tool. Other upload actions can target an existing ROM folder, a subfolder, or a replacement file.
After the user starts an upload, the client sends each file in chunks and records progress in the shared upload store. The persistent upload panel keeps every active file visible across route changes. It shows progress for in-flight files, a completed state for successful files, and the failure reason for failed files. The user can collapse the panel and clear finished entries without clearing active work.
The server may create a missing platform record when the selected filesystem folder has no catalog record. Successful uploads trigger a quick scan after a short delay so the new files can be identified and added to the catalog. A mixed result keeps failed files visible while successful files are cleared from the upload page.
References: frontend/…/Upload.vue• L49-201 frontend/…/UploadProgressToast.vue• L18-167 frontend/…/rom.ts• L43-173 frontend/…/upload.ts• L26-74
Library configuration
Library management controls the relationship between filesystem folders and RomM platforms. It also manages scan exclusions and gives the user a view of ROM and firmware records whose files are no longer present on disk. These choices shape future scan results or remove stale records rather than changing the browsing experience directly.
The workflow has four views:
| View | Purpose |
|---|---|
| Folder mappings | Map a filesystem folder to a platform alias or platform variant. Auto-detected mappings remain read-only. |
| Excluded | Search, sort, add, or remove custom exclusions for platforms, files, extensions, and multi-part patterns. Built-in defaults remain read-only. |
| Missing games | Review ROM records with missing files and queue cleanup, with optional platform filtering. |
| Missing firmware | Review firmware records with missing files, filter them by affected platform, and queue cleanup after confirmation. |
Folder mappings list every scanner-visible folder and match configured names without depending on the folder's letter case. The heartbeat also supplies the server's platform slug mapping for filesystem folders, so auto-detected aliases can be resolved without treating a folder label as a catalog identity. A folder can use a manual alias, a platform variant, or an auto-detected platform. Manual alias and variant mappings replace one another when the type changes, while auto-detected mappings remain read-only.
The missing-games view uses the gallery list model and a windowed list so it can handle large result sets without loading every matching game at once. It loads only the total and the visible result windows that it needs; it does not request gallery side data such as letter positions or filter values because this maintenance view does not render those controls. It captures the caller's missing-file filter and platform selection, starts from a known missing-games view, and restores those choices when the user leaves. Users can sort the list and select more than one platform. Cleanup asks for typed confirmation, waits for the task to finish, and then refreshes the list. The missing-firmware view loads the missing set once, filters it in the browser, and scopes cleanup to the selected platforms. It refreshes only after the cleanup task completes.
The page reads the server's configuration and filesystem capability state. It shows alerts when the configuration file is not mounted, cannot be parsed, or is not writable. It disables mapping and exclusion edits when the configuration file is not writable, or when the current user lacks the required platform edit grant. Exclusion entries are grouped by type, while built-in values remain visible as reference data. Missing-record cleanup is a separate task because the files are already absent from disk. The tab selection stays in ?tab= so a maintenance view can be reopened after a reload.
References: frontend/…/LibraryManagement.vue• L15-69 frontend/…/ConfigFileAlerts.vue• L13-42 frontend/…/FolderMappingsSection.vue• L45-165 frontend/…/FolderMappingsSection.vue• L209-322 frontend/…/FolderMappingPlatformCell.vue• L23-108 frontend/…/FolderMappingTypeCell.vue• L27-120 frontend/…/ExcludedSection.vue• L31-246 frontend/…/MissingGamesSection.vue• L74-117 frontend/…/MissingGamesSection.vue• L274-328 frontend/…/MissingFirmwareSection.vue• L31-129 frontend/…/firmware.ts• L10-65 frontend/…/galleryRoms.ts• L603-617 frontend/…/heartbeat.ts• L41-45
Scan configuration
Scan settings define the server's default choices for metadata, artwork, regions, languages, media, and export files. The page edits these values as one scan-settings payload and saves them to the server configuration. Artwork has a general priority with optional separate priorities for covers, screenshots, and manuals. The same form controls ES-DE gamelist export and its selected thumbnail and image types, plus Pegasus export.
The form tracks the last saved value and disables editing unless the user has platforms.write and the server configuration is writable. It shows a save bar only when the form is dirty and asks for confirmation before a route change, reload, or tab close could discard edits. Settings pages show the configuration-file alert when the file is not mounted, has a parse error, or is not writable. This protects configuration changes that affect later scans rather than the current page.
References: frontend/…/ScanSettings.vue• L189-328 frontend/…/ScanSettings.vue• L348-543 frontend/…/ConfigFileAlerts.vue• L13-42 frontend/…/config.ts• L71-85
Conversion settings
Conversion settings control whether downloads are converted, how much converted data may use for cache, and which library format each platform should use. The settings page also provides a separate, task-backed action to convert the existing library when the conversion service is enabled and the saved platform formats are ready.
The form keeps platform format choices separate from the saved server configuration. It validates the cache limit, shows a load error separately from an empty configuration, and only enables the conversion task after the settings are saved. The task requires confirmation because it changes library files. The page uses the same configuration-file status alerts and write access rules as other server settings.
References: frontend/…/ConversionSettings.vue• L35-119 frontend/…/ConversionSettings.vue• L121-201 frontend/…/ConversionSettings.vue• L204-320 frontend/…/ConfigFileAlerts.vue• L13-42
Metadata source status
Metadata sources show which external services can enrich the catalog and whether each enabled source is ready. The scan reference groups providers by their role and gives each one a setup note. The scan page uses the enabled source list when the user starts a scan, while scan settings define the priority order used by the server.
This page is a status and guidance surface. It does not change provider credentials. It groups sources into catalog, specialised, and proxy roles so the view matches the scan provider choices. It loads server capability data and checks each enabled source through a heartbeat. Each source reports a missing, pending, invalid, or ready state. A build without ScreenScraper developer credentials receives a separate warning after heartbeat data loads, because a valid user account cannot complete that provider check without them.
References: frontend/…/ScanInfoDialog.vue• L97-185 frontend/…/ScanProviderSelect.vue• L29-105 frontend/…/MetadataSources.vue• L41-205 frontend/…/MetadataSources.test.ts• L49-91 frontend/…/heartbeat.ts• L104-142
Account and access administration
Account workflows manage personal identity, server users, permission groups, hidden library entities, and long-lived client credentials. The UI keeps list state in Pinia or local view state and uses dialogs for edits so table views can update without a full page reload.
User administration
The Administration page opens with a Users tab for users who can reach the route. It places Users, Groups, Tasks, and Streaming in one tabbed surface, then shows each tab only when the current user has the matching grant. The selected tab is kept in the ?tab= query so a deep link survives a reload. User management supports search, sort, enable or disable, edit, delete, create, and invite-link actions. A user cannot disable or delete the account currently in use.
Creating a user collects identity fields and an administrator choice. Non-admin users start with the server's default permission group, or can receive another group as a follow-up access update. If that follow-up fails, the user still exists and the dialog reports the access warning separately. An invite link carries a selected role and expiry so an administrator can share a time-limited registration path.
The edit flow joins profile data and access data. An administrator can change another user's administrator status, group, avatar, hidden platforms, hidden games, age limit, and unrated-game setting, as well as explicit permission overrides. An age limit is the highest allowed content rating; the unrated-game setting controls whether games without a rating are hidden. A user can inherit these values from its group or set a user-specific value. Hidden platform and game pickers work with entity IDs, so display names do not become access keys. The hidden-game picker searches the library with a delayed query and keeps selected game records available for names and covers, including IDs loaded from an earlier session. A user's own profile page changes identity details and opens a separate password dialog for a validated password update. Self role changes remain disabled because role changes belong in Administration.
The password flow asks for the current password when a signed-in user changes an existing password. It omits that field when an account has no password yet, such as an account provisioned by an identity provider, or when an administrator resets another user's password. The new password must pass length and confirmation checks before the server update, and a successful self-update refreshes the signed-in identity.
References: frontend/…/Administration.vue• L27-103 frontend/…/UsersSection.vue• L41-66 frontend/…/UsersSection.vue• L199-266 frontend/…/CreateUserDialog.vue• L31-126 frontend/…/EditUserDialog.vue• L98-345 frontend/…/ChangePasswordDialog.vue• L39-117 frontend/…/InviteLinkDialog.vue• L23-87 frontend/…/HiddenGamesPicker.vue• L17-109
Permission groups
Permission groups provide reusable access rules for non-admin users. A group has a name, description, color, default status, entity-action grants, hidden platforms or games, and optional content limits. The group editor loads the server's permission catalog so its matrix follows the current set of supported entities and actions.
Each group grant has three states: no grant, full access, or access to the user's own items. The own-only state is offered only for entities that have an owner. User overrides add a fourth model: inherit the group, force a grant, force an own-only grant, or revoke access. A group or user can also hide specific platforms or ROMs. Age limits and unrated-game settings can apply at group level, and a user can inherit or override them. Saving a group or user updates the shared group or user state after the server accepts the change. Group saves refetch the group list so changes to the default group are reflected in every access picker. The group table supports search and sorting, marks default and system groups, and prevents deletion of the default group.
References: frontend/…/PermissionGroupsSection.vue• L31-138 frontend/…/GroupFormDialog.vue• L68-216 frontend/…/PermissionsMatrix.vue• L25-105 frontend/…/OverridesMatrix.vue• L24-107 frontend/…/AgeLimitFields.vue• L9-109 frontend/…/HiddenPlatformsPicker.vue• L17-105 frontend/…/HiddenGamesPicker.vue• L17-105 frontend/…/ScopeTree.vue• L25-90 frontend/…/permissions.ts• L21-74
Permission state
The permissions store holds effective grants, administrator status, and hidden entity IDs for the signed-in user. The application hydrates it from /permissions/me and refreshes it after a permissions:changed socket event. Components use this state to shape the interface, but the backend remains authoritative and can reject an action even when a stale client still shows it.
This distinction matters during administration. A successful user or group update can change what the current user may see, and a failed permission refresh clears grants rather than leaving old access open in the browser.
References: frontend/…/permissions.ts• L1-71 frontend/…/index.ts• L23-55 frontend/…/index.ts• L67-85
Profile and interface settings
The profile page edits the current user's username, email, and avatar. It treats the saved auth user as the identity display and keeps in-progress form edits separate until the server accepts them. The password dialog validates a new password and confirmation, then refreshes the signed-in identity when the current user's password changes.
The profile also links a RomM account to RetroAchievements. One action saves a changed username and starts a full sync, or starts an incremental sync when the saved username is unchanged. The connection state follows the saved user record, so the page does not show an unsaved link as active. The sync runs as a background job: a successful ra:synced event refreshes the signed-in user, while a failed event shows an error notice.
The interface settings page controls personal language, theme, home sections and widgets, gallery display, jukebox resume, protected-game launch confirmation, virtual collection type, desktop-shell access, and developer display choices. Home widgets can be enabled and reordered, and library stats can use a compact or extended view. A widget's mode control remains separate from its main enable switch, so choosing a display mode does not enable the widget.
Gallery artwork has one general style plus optional styles for details and player views. Changing the general style resets those two page styles so they do not keep an old choice by accident. CRT mode, reduced motion, debug display, and similar display controls are device-local, while account preferences synchronize to the signed-in user's ui_settings. The optional desktop-shell control only asks the native shell to open its own settings. Changing the virtual collection type also refreshes the available virtual collections.
References: frontend/…/UserProfile.vue• L35-153 frontend/…/UserProfile.vue• L223-331 frontend/…/ChangePasswordDialog.vue• L34-117 frontend/…/RetroAchievementsSection.vue• L23-88 frontend/…/RetroAchievementsSection.test.ts• L41-56 frontend/…/UserInterface.vue• L38-145 frontend/…/UserInterface.vue• L151-223 frontend/…/UserInterface.vue• L229-600 frontend/…/SettingsToggleRow.vue• L15-83 frontend/…/useUISettings.ts• L122-224
Client tokens
Client API tokens let a user authorize a native client or another long-lived integration without sharing the web password. The token page lists the user's tokens, scopes, expiry, last use, and paired device label. It supports creation, regeneration, deletion, filtering, and sorting.
Creation separates token setup from token delivery. The user chooses a name, expiry, and scopes from the current user's available scope set, then either copies the raw token once or starts QR and code pairing. Regeneration follows the same delivery step with a newly issued raw token. The scope tree groups related permissions so the user can see the access boundary. The client does not treat a token as a general password: its scope list limits what the paired client can request.
References: frontend/…/ClientApiTokens.vue• L31-179 frontend/…/ClientApiTokens.vue• L183-275 frontend/…/CreateClientTokenDialog.vue• L44-340 frontend/…/ScopeCell.vue• L16-78 frontend/…/ScopeTree.vue• L25-90 frontend/…/client-token.ts• L29-90
Device management
The Devices page shows the native and web clients that RomM knows for the current user. It helps the user name a device, control whether save sync is enabled, and remove an old device without changing the token or account itself.
Devices are ordered by recent use, and the current browser is marked when its local device identity matches a listed device. Sync changes update the row at once and roll back if the server rejects them. Rename and delete actions require the device-write grant; without it the page remains a read-only list.
References: frontend/…/Devices.vue• L17-145 frontend/…/RenameDeviceDialog.vue• L7-93 frontend/…/device.ts• L1-80
Device and server operations
Operational pages expose work that can continue after the user leaves the page. Tasks report queued and completed work, activity reports current play sessions, statistics summarize the library, and logs provide a live view of server events.
Task monitoring
The Tasks tab groups work into watcher, scheduled, and manual tasks. It shows whether a task is enabled, its schedule when one exists, and a run action for scheduled or manual tasks that allow it. The task history feed excludes queued and running entries so it focuses on completed outcomes.
The page loads task definitions and status, then refreshes status every five seconds while mounted. A run request is disabled as soon as it is sent and stays disabled while the same task is queued or running. The client matches an active run by the task's stable key rather than its display title, then asks for fresh status after the run request succeeds. Destructive tasks require typed confirmation. The broader task state is also used by scan reconciliation when a user opens the application during an active scan.
References: frontend/…/TasksSection.vue• L24-129 frontend/…/TasksSection.vue• L234-271 frontend/…/TasksSection.test.ts• L83-241 frontend/…/tasks.ts• L6-52 frontend/…/task.ts• L5-25
Activity monitoring
Activity is a live board of users who are currently playing. It starts with a REST snapshot, then applies socket updates and clears keyed by user and device. Each card links to the related ROM and shows the game, platform, player, device type, elapsed time, and the best available screenshot or cover.
The activity view owns only its display clock. It updates elapsed labels locally every thirty seconds rather than fetching the full activity list again. The activity store keeps the current sessions so other views can query them by ROM or user.
References: frontend/…/Activity.vue• L38-143 frontend/…/Activity.vue• L187-397 frontend/…/activity.ts• L10-80 frontend/…/activity.ts• L3-45
Streaming operations
The Streaming tab gives an administrator a view of the configured streaming containers. Each row describes the container and its current session, then offers a desktop link for an idle usable container or a force-release action for a held session.
The view distinguishes disabled streaming, failed loading, empty capacity, idle containers, active sessions, and containers that are still draining. A drain state keeps the desktop action closed until the last session has fully ended. Releasing a session requires confirmation and sends an admin reason so the displaced player can see why the session ended. A successful release reloads the container list.
References: frontend/…/StreamingSection.vue• L31-129 frontend/…/StreamingSection.vue• L132-218 frontend/…/Administration.vue• L37-103 frontend/…/streaming.ts• L1-100
Server statistics
Server statistics provide an operational summary of platforms, ROMs, saves, states, screenshots, and total file size. A second, heavier request adds per-platform metadata coverage and region breakdown after the summary cards can render. If the breakdown fails, the summary remains usable.
The per-platform view shows only platforms that contain games. It supports search and sorting by name, storage size, or game count. Platform variants can share a metadata slug, so each row remains tied to its platform record and links to the correct gallery. Each row can expand a shortened region list. Metadata coverage follows the configured scan priority, so the statistics view helps an operator see both library scale and enrichment quality without opening each platform.
The page is read-only. It helps an operator see the scale and quality of the library without opening the gallery or inspecting individual records.
References: frontend/…/ServerStats.vue• L1-58 frontend/…/SummaryStatsSection.vue• L14-81 frontend/…/PlatformsStatsSection.vue• L39-199 frontend/…/PlatformsStatsSection.vue• L202-341 frontend/…/PlatformsStatsSection.vue• L51-128 frontend/…/PlatformsStatsSection.vue• L226-340 frontend/…/PlatformsStatsSection.test.ts• L142-368
Audit event log
The event log records user and system actions as a searchable timeline. It loads audit events from the server in pages and lets an operator filter by user, category, text, and inclusive calendar-day range. The filter state is kept in the URL, so a filtered view can be shared or restored after reload. Text search waits briefly after typing or runs at once when the user presses Enter.
Each event is turned into a localized sentence with an action icon, category tone, actor, target details, device, and IP address when present. Known targets link back to their library page. Unknown actions and malformed event data use a safe fallback instead of preventing the rest of the timeline from rendering. The list groups events by local day and loads older pages as the viewport reaches the end.
References: frontend/…/Logs.vue• L15-73 frontend/…/EventLog.vue• L52-201 frontend/…/EventLog.vue• L235-395 frontend/…/EventLogRow.vue• L24-115 frontend/…/EventLog.test.ts• L79-145 frontend/…/auditEvents.ts• L35-41 frontend/…/auditEvents.ts• L396-445 frontend/…/audit.ts• L7-31
Server log viewing
The server log view backfills recent backend lines and then follows new lines through the admin socket stream. It supports minimum-severity filtering, module filtering, text search, pause and resume, copy, download, clear, and jump-to-latest behavior. Paused entries wait in a separate bounded queue and join the main view when streaming resumes.
The view keeps up to 2,000 entries in memory and uses a windowed scroll area so a long stream does not push the rest of the settings document. It preserves the raw message for copy and download, while folding embedded line breaks for the fixed-height display rows. A row click copies one formatted line, while the toolbar copies all shown lines. The route is available only when the server enables the viewer and the user has logs.read; administrators can still use the event log when the backend log viewer is disabled. The Logs view chooses the event or server-log tab from the available permissions and feature flags, then keeps a log deep link in ?tab=logs.
References: frontend/…/Logs.vue• L15-73 frontend/…/LogViewer.vue• L16-69 frontend/…/LogViewer.vue• L71-381 frontend/…/LogViewer.test.ts• L51-75 frontend/…/router.ts• L670-683
Pairing workflows
Pairing connects a client to a RomM account through a short-lived code or a signed-in approval page. The flow keeps the raw credential out of normal form fields and gives the account owner a chance to review the device and requested access.
Token code pairing
The token dialog creates a short-lived pairing code for an existing client token and displays it as a QR code and a formatted code. It polls for a claim until the code expires or the client claims it. A claimed code ends the wait with a success state; an expired code can produce a new code. The QR image is cleared while a replacement code is being encoded so an old credential is not shown as current.
The standalone /pair page is the client-facing target. With no callback it shows the code and lets the user copy it. With a custom callback it exchanges the code for the raw token and returns the token to a non-HTTP application scheme. HTTP and HTTPS callbacks are rejected to avoid sending a credential to a web URL.
References: frontend/…/CreateClientTokenDialog.vue• L152-172 frontend/…/CreateClientTokenDialog.vue• L267-340 frontend/…/Pair.vue• L22-136
Device authorization
The /pair/device page handles a signed-in approval request from a native client. It loads the pending device request, shows the client identity and requested access, lets the user rename the device, selects allowed scopes and an expiry, and then approves or denies the request.
Approval creates a device-bound client token with the selected scope set. Missing, expired, or already handled codes produce distinct states, so a client can tell the difference between a bad link and a completed request.
References: frontend/…/DevicePair.vue• L23-303 frontend/…/device-auth.ts• L3-46 frontend/…/RenameDeviceDialog.vue• L7-93
Client state model
Administration state follows the kind of truth that it represents. Durable server data is fetched through API services, short-lived operation state lives in Pinia, and live changes enter through Socket.IO. Forms keep a local working copy until an explicit save succeeds.
Gallery result state
The gallery result state also supports administration views that show large filtered sets, such as missing games. It separates the displayed result from a newer result being fetched, then swaps the result as one unit so a search or filter change does not replace the visible list with a partial page.
The result is loaded as metadata plus visible windows. Metadata supplies the total and any side data that the caller needs, while visible rows drive window requests. Requests are bounded, cancel when their windows leave view, retry a transient failure a small number of times, and ignore data from an older gallery context. A whole-result action uses separate paged requests and does not fill the visible window cache.
This model lets a maintenance list stay responsive while its filters or sort order change. The missing-games view opts out of side data that it does not render, while the normal gallery can retain letter indexes, filter values, and ROM indexes for its richer controls.
References: frontend/…/galleryRoms.ts• L79-150 frontend/…/galleryRoms.ts• L399-469 frontend/…/galleryRoms.ts• L603-799 frontend/…/galleryRoms.ts• L801-945 frontend/…/galleryRoms.test.ts• L60-364 frontend/…/galleryRoms.test.ts• L432-632
Language and scroll state
Language state gives the interface a stable list of supported locales and a separate selected locale. It can match the browser's preferred languages without replacing an explicit user choice. Gallery scroll state is kept by route and restored after the first result window has a usable height, so virtualized lists do not restore too early.
These concerns stay local to the client. They affect how an administration or maintenance view opens and reads, but they do not change server permissions or the data returned by the server.
References: frontend/…/language.ts• L1-61 frontend/…/scrollRestoration.ts• L1-24
Notification channels
Notification channels define which server events reach a user and through which destination. The channel editor supports webhooks, email when the server has email enabled, and admin-only Apprise services; each channel also sets a minimum severity and an optional topic set.
An edit keeps an existing URL or secret when the corresponding field is blank, while an explicit remove action clears it. Apprise services expose their own fields and can be filled from a pasted service URL. The dialog waits for the latest URL parse before saving, so the saved channel matches the current form rather than an older asynchronous read.
References: frontend/…/NotificationChannelDialog.vue• L49-161 frontend/…/NotificationChannelDialog.vue• L244-390 frontend/…/NotificationChannelDialog.test.ts• L138-228 frontend/…/NotificationChannelDialog.test.ts• L250-384
Notification inbox
The notification inbox is the signed-in user's durable in-app event list. The app loads it once at the shell level and keeps it current through notification socket events, so the unread badge and the notification page show the same list across routes.
New notifications are inserted newest first and can also produce a toast. Notifications sent by the current browser tab are added to the inbox without a duplicate toast. Reads and dismissals apply optimistically, then restore the prior state if the server rejects the request. A fetch replays changes that arrived while the request was in flight, and a user change clears the old list and ignores a response for the previous user.
The inbox also handles multi-tab changes. Read and dismissed pushes update the local list, while a reconnect refreshes the stored list to recover events that arrived while the socket was down. The notification page marks visible unread rows as read during the visit and supports single-row or confirmed bulk dismissal.
References: frontend/…/notificationInbox.ts• L21-155 frontend/…/index.ts• L15-68 frontend/…/NotificationInbox.vue• L41-107 frontend/…/UserMenu.vue• L51-211 frontend/…/AppLayout.vue• L48-63
Notification state
Notifications give operations a short-lived result surface without taking the user away from the current workflow. The toast host accepts existing snackbar events, keeps several messages at once, maps them to a small set of tones, and moves inside fullscreen content when a game owns the screen. Upload progress uses a separate persistent panel because file work can outlive the upload route. A version banner uses the running build and a recent GitHub release to offer a dismissible update notice; its dismissal is stored locally and is shared across UI versions.
References: frontend/…/NotificationHost.vue• L21-92 frontend/…/UploadProgressToast.vue• L18-41 frontend/…/NewVersionBanner.vue• L25-79
State categories
| State kind | Examples | Update pattern |
|---|---|---|
| Server data | Users, groups, config, tokens, devices, stats | Fetch on view entry; replace or refresh after a successful mutation. |
| Operation state | Scan progress, task status, upload progress, RetroAchievements sync | Update from polling, upload callbacks, or socket events. |
| View state | Search text, selected tab, sort order, open panels | Keep in the view; selected administration tabs use ?tab= so links survive reloads. |
| Personal preference | Theme, locale, gallery and home choices | Keep in local storage and sync to the signed-in user's settings. |
| Ephemeral stream | Log lines, current activity events, and toasts | Keep bounded or replace by event key; do not treat the view as durable storage. |
The heartbeat also provides shared server capability and health state. Its connected flag treats a successful response and any response below HTTP 500 as a live backend, while network, timeout, and server errors mark it disconnected. Its loaded flag distinguishes the initial default capability values from a response received from the server. Metadata choices and settings gates must therefore use the heartbeat only after its capability data is loaded.
This model lets an operator leave a running scan or upload without losing the server operation. It also limits stale data: a page can refresh its own list after a mutation while global lifecycle handlers keep shared indicators current.
References: frontend/…/scanning.ts• L6-45 frontend/…/upload.ts• L4-74 frontend/…/activity.ts• L10-80 frontend/…/config.ts• L50-68 frontend/…/heartbeat.ts• L96-151 frontend/…/heartbeat.ts• L153-307 frontend/…/notificationInbox.ts• L57-155 frontend/…/RetroAchievementsSection.vue• L33-47 frontend/…/Devices.vue• L20-45 frontend/…/NotificationHost.vue• L30-74 frontend/…/Administration.vue• L29-112 frontend/…/ClientApiTokens.vue• L31-179 frontend/…/Logs.vue• L15-63
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the route scope list, sidebar visibility rules, and server permission checks aligned. A route can be hidden correctly but still fail if its page starts a request with a different scope.
- Keep administration tab visibility, query-param fallback, and section guards aligned. A deep link can otherwise select a tab whose requests are not allowed for the current user.
- Keep device route visibility, device read and write scopes, and the optimistic sync rollback path aligned. A device can appear editable while its update request is forbidden.
- Keep scan socket event names and
scanningstore transitions aligned. A change to completion or failure events can leave the global scan indicator active or make a new tab miss a running job. - Keep scan platform result fields aligned between socket payloads, the scanning store, and the platform panel. New firmware count and total firmware count have different meanings.
- Keep stable platform and ROM identities in rendered lists. Shared metadata slugs do not identify platform variants, and array indexes do not identify streamed ROM rows.
- Keep scan identification fields aligned with the ROM row states. A change can show a filename as identified or hide provider results while metadata is still pending.
- Keep provider selection state aligned with provider availability and LaunchBox local or cloud mode. A source can appear selected while the request uses the wrong source mode if these values drift.
- Keep hash matcher availability, blocked reasons, selected matcher keys, and scan request fields aligned. A matcher can look disabled for a clear reason but still be sent in the request if these layers differ.
- Keep scan type option values and disabled prerequisites aligned with the scan request. A label can describe a mode that the server does not receive.
- Keep upload completion and scan kickoff coupled. New files can remain outside the catalog if an upload succeeds but the follow-up quick scan no longer starts.
- Keep upload store entries and the upload toast status fields aligned. A renamed completion or failure field can hide progress or leave stale rows in the persistent panel.
- Keep configuration-file alerts and write guards tied to the mounted, parsed, and writable config state. A control that appears editable can silently fail when the server cannot write its config file.
- Keep scan setting payload fields aligned with the server config contract. Artwork overrides and export media choices can be lost if the form-to-payload mapping changes on one side only.
- Keep conversion settings payload fields aligned with the saved
convertoconfiguration. The library conversion task must use saved platform formats rather than unsaved form values. - Keep conversion validation and task gates aligned. A task must stay unavailable when the configuration has not loaded, the cache limit is invalid, or the form is dirty.
- Keep provider groups, enabled-source checks, heartbeat keys, and scan reference data aligned. A provider can show the wrong status or disappear from scan choices or setup guidance when its identity changes in one path only.
- Keep filesystem heartbeat platform slugs aligned with folder mapping resolution. A new or missing slug can make an auto-detected folder look unmapped even when the server has identified its platform.
- Keep permission-group and user edits consistent with hidden-entity updates. Group changes, user overrides, age settings, and hidden platform or ROM records are separate server contracts.
- Keep permission matrix state names aligned with the server grant and override models. Group cells use none, full, and own; user cells use inherit, grant, grant-own, and revoke, with own-only states limited to ownable entities.
- Keep age-limit
nullvalues distinct from explicit values.nullmeans inherit for a user, while group settings use an explicit group value. - Keep the hidden-platform picker tied to platform IDs rather than display names, and keep hidden-game search results tied to ROM IDs. Platform variants can share a metadata slug while remaining different selectable entities.
- Keep hidden-game search responses ordered by the latest query. A slower response for an older term must not replace results for the current term, and selected IDs must remain removable when their full records are fetched later.
- Keep new-user creation and group assignment separate in the client contract. A failed custom group update must not make the already-created user disappear from the list or appear to have failed creation.
- Keep invite-link role and expiry values aligned with the registration link contract. A link can be valid but create the wrong access level if the role mapping changes in one path only.
- Keep self-password changes and administrator password resets distinct. The current-password field is required only for an existing password on the signed-in account; a first password and another user's reset use a different request shape.
- Keep token delivery and callback validation aligned with the token exchange contract. A change in the pairing code format or callback scheme can strand native clients or expose a raw token to the wrong target.
- Keep device names, token device IDs, and device list refreshes aligned. A renamed device must remain the label shown for its paired token.
- Keep activity event keys stable. The activity stream updates existing client entries by user and device identity rather than by a display row.
- Keep streaming container states distinct from session states. A draining container is not idle and must not accept a new desktop session.
- Keep platform statistics row keys based on platform identity. Shared slugs must not duplicate rows or leave stale rows after sorting and search.
- Keep platform statistics coverage ordering tied to heartbeat provider priority. The displayed percentages must remain associated with the correct source.
- Keep audit filter names, date boundaries, search debounce behavior, and URL query synchronization aligned with the audit API. A shared link can silently load a different event set if one side changes a parameter name or end-date rule.
- Keep audit action descriptions and target route mappings aligned with the event schema. A new action should remain readable and should not create a link to a deleted or wrong target.
- Keep log row bounds and virtual-scroller assumptions aligned. Changes to row height, newline folding, or buffer limits can cause clipped messages or unbounded browser memory.
- Keep log copy formatting aligned with raw message storage. Toolbar copy and single-row copy must preserve the same timestamp, level, module, and message contract.
- Keep log-viewer feature and scope checks aligned in the route, tab list, and backend request. Administrators must retain the event log when only the backend log stream is disabled.
- Keep folder name normalization aligned between filesystem heartbeat values and configuration keys. A case-only difference must not hide an existing alias, variant, or auto-detected mapping.
- Keep alias and variant mapping changes mutually exclusive. Replacing one type must remove the old configuration before the new type is saved.
- Keep the library-management tab model and
?tab=query parameter aligned. A renamed or removed tab must fall back to a valid maintenance view instead of rendering no section. - Keep the missing-games tab's temporary gallery filter and selected-platform snapshot restoration aligned with its mount and unmount behavior. Otherwise the next gallery view can inherit a missing-only filter.
- Keep missing-firmware platform selection and cleanup payloads aligned. The list may show several selected platforms, and cleanup must remove only the intended stale records before the list is reloaded.
- Keep gallery result requests tied to the displayed result while a refresh is in progress. A new filter must not cause visible rows to fetch with mixed old and new parameters before the result swap.
- Keep gallery refresh swaps and window cancellation tied to the same result identity. A stale response or partial apply must not mark a window loaded for the new filter context.
- Keep gallery window concurrency, viewport cancellation, and bounded retry behavior aligned. Fast scrolling must not leave stale requests or permanent skeleton rows.
- Keep gallery sidecar flags aligned with what each caller renders. The missing-games view needs the total but must not replace existing filter values or letter indexes with empty skipped sidecars.
- Keep gallery query fields aligned across the API builder and windowed store. Open-ended playtime bounds must remain absent at the open end, and an ID-based result must preserve the requested ROM order.
- Keep ROM upload target fields aligned with the upload start contract. Platform uploads must not gain a ROM-folder target, while folder, subfolder, and overwrite values must reach the intended existing ROM.
- Keep empty-file upload completion separate from chunk progress. A zero-byte file has no chunk callback, so it must still reach a finished state after the server completes the upload.
- Keep locale selection and browser-language matching separate from each other. Browser preferences provide an initial match, while an explicit selected locale remains the value used by the interface.
- Keep route scroll positions valid and route-scoped. Zero is a real top-of-list position, while invalid values must not replace a saved position for another gallery route.
- Keep gallery sort keys, relevance detection, and letter-index support aligned. An unset search sort can be relevance order, while only text sorts can support letter positions.
- Keep whole-result selection separate from the sparse visible gallery cache. Select-all paging must use the active gallery result and must not replace or corrupt the visible window state.
- Keep task run matching based on the stable task key. A display title can match another task or can be absent while the server still reports a running job.
- Keep destructive task confirmation separate from ordinary task runs. A cleanup or conversion action must not become runnable from a generic click path.
- Keep the global box-art choice and the details and player choices aligned. A global change resets the per-page choices so they do not silently retain a different style.
- Keep the full-row preference switch separate from any appended control. A widget mode choice must not also flip the widget's enabled state.
- Keep account-synced interface preferences separate from device-local display controls. A setting that belongs to one device must not be written as a shared user preference.
- Keep notification channel type availability, Apprise service fields, minimum level, and topic values aligned with the notification API. Admin-only services and disabled email must not become selectable destinations.
- Keep notification URL parsing tied to the latest pasted value and the final save. An older Apprise response must not overwrite newer fields, and blank secret fields must continue to mean keep rather than clear.
- Keep notification lifetime, dismissal, and fullscreen placement separate. A toast should not be lost when a game takes fullscreen or when several notices arrive together.
- Keep notification inbox generation, socket changes, and fetch replay aligned. A refresh for an earlier user must not replace the current user's list, and changes received during a fetch must not disappear when its response arrives.
- Keep notification tab identity and toast suppression aligned. A notification sent by this tab should update the inbox without creating a duplicate toast, while a notification from another tab should reach the current user.
- Keep optimistic notification reads and dismissals tied to their rollback paths. A rejected server mutation must restore only the affected rows and unread state.
- Keep heartbeat
connectedandloadedsemantics aligned with offline and capability consumers. A 4xx response means the backend is alive, while default capability flags must not be treated as confirmed server settings before the first heartbeat response.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| No metadata source is selected for a scan | The scan action stays disabled and no useful enrichment can run | Require at least one effective source before emitting the scan request. |
| LaunchBox is selected but its local or cloud mode is not carried into the scan request | The scan can use the wrong source or fail to return the expected metadata | Keep the mode control enabled only for the selected source and submit its current value with the provider list. |
| A hash matcher is blocked but its key is still submitted | The server can reject the scan or report a result that the user could not request | Use the matcher availability and blocked reason when building the request. |
| The scan page opens after the scan-start event | The page can show an empty live area and an enabled start button | Reconcile task status with the shared scan store when an eligible user enters. |
| A scan ends while a user is on another route | Global scan status can remain stale and catalog counts can drift | Handle terminal socket events globally, then refresh platforms and virtual collections. |
| A firmware-only scan result is treated as a ROM result | The platform panel can show the wrong empty state or firmware signal | Keep new firmware count separate from the ROM list and show each result in its own surface. |
| Scan totals arrive after scanned counts | The progress bar or identified counts can exceed their known totals | Clamp display values until the server provides stable totals. |
| A platform list uses a shared slug as its row identity | Sorting or search can leave duplicate or stale platform rows on screen | Key rows by platform ID and navigate by platform ID. |
| The config file is missing, has a parse error, or is not writable | Mapping, exclusion, scan-setting, or conversion changes cannot be saved | Show the configuration alert and disable editing unless the file is mounted, parsed, and writable. |
| Conversion settings fail to load or contain an invalid cache limit | The page can show unusable controls or allow a task that does not match valid saved settings | Keep load failure separate from empty data and require a valid integer cache limit before save. |
| A conversion task starts while form edits are unsaved | The task uses older saved formats and does not match what the user sees | Disable the task until the form is clean and require explicit confirmation before it runs. |
| A configured folder name differs from the config key only by case | An existing mapping can appear empty or be saved as a duplicate | Match filesystem folders and config keys case-insensitively. |
| A filesystem platform slug is missing from heartbeat data | A folder that the server identified can appear to have no auto-detected mapping | Keep the heartbeat response shape and platform-slug lookup aligned. |
| An alias or variant is changed without removing its prior type | Two configuration forms can describe the same folder and later scans can use the wrong one | Delete the old mapping before saving the replacement type. |
| A user deep-links to a hidden Administration tab | The page can display a panel whose requests return forbidden | Recheck visible tabs and fall back to Users when the selected tab is not allowed. |
| A user tries to disable or delete the account in use | The session could become invalid during an admin action | Disable self-disable and self-delete controls. |
| A custom group assignment fails after user creation | The user exists with the server default group, not the selected group | Report the group update as a warning and keep the created user in the store. |
| A group or user save changes access but the permission refresh fails | The browser can show stale controls or retain old access hints | Treat the backend as authoritative and clear grants when hydration fails. |
| A permission matrix sends own-only for an entity without an owner | The server can reject the grant or apply a scope the UI did not explain | Offer own-only only for catalog entities marked ownable. |
| A user override omits the inherit state and sends an empty grant as a revoke | A user can lose group access instead of following the group | Represent inherit as absence of an override and reserve revoke for an explicit deny. |
A user age value is saved as a group value or an inherited null is replaced with a default | A user can see content outside the intended group rule | Keep group values explicit and send user age settings only when the user changed them. |
| An older hidden-game search response arrives after a newer query | The picker can show games for stale text and allow the wrong selection | Associate each request with a search token and apply results only for the latest token. |
| A hidden game ID has no cached game record | The selected list can lose its name or cover after reload | Fetch missing selected records on demand and use an ID fallback until the record resolves. |
| A self password change omits the current password for an account that already has one | The server rejects the update and the user receives no password change | Require the current field only for the signed-in account with an existing password. |
| A first password or administrator reset incorrectly requires a current password | An account without a password cannot set one, or an administrator cannot reset another account | Omit current_password for passwordless accounts and resets of other users. |
| An upload succeeds but the follow-up scan is not sent | Files exist on disk but are not matched into the catalog | Start a quick scan after upload completion and keep upload progress separate from scan progress. |
| A metadata provider is enabled but its heartbeat is still pending | The page can falsely report a missing or failed provider | Wait for the server heartbeat before assigning a final provider status. |
| Missing-record cleanup reloads before its task finishes | The list can still show stale ROM or firmware records | Await task completion, then refresh the affected list. |
| A cleanup request includes the wrong platform set | Records outside the user's intended scope can be removed | Build the task payload from selected platform IDs and use explicit confirmation. |
| A task run is clicked before the next status poll | The server can receive duplicate requests for the same work | Hold the task button locally from the click until the request finishes and status is refreshed. |
| Task status is matched by display title instead of stable key | An unrelated task can appear busy or a running task can be started again | Compare the server status task_key with the task name. |
| A gallery refresh applies a late response after the filter context changed | The visible list can mix records from different searches or remain stuck with wrong windows | Compare the active request identity before applying metadata or marking a window loaded. |
| Gallery windows are fetched without a concurrency limit or viewport cancellation | Fast scrolling can overload the server and waste work for rows no longer visible | Queue visible windows, cap active requests, and abort windows outside the viewport. |
| A skipped gallery sidecar is applied as an empty value | The missing-games list can lose its known filters or the normal gallery can lose its letter index | Apply sidecar data only when that caller requested it. |
| A gallery window fails once and never retries | Visible cards can remain skeletons until the user scrolls again | Schedule a bounded backoff retry and clear it when the context changes. |
| Whole-result selection uses the sparse cache or runs without a gallery context | Selection can be incomplete or can silently describe the whole library | Page through the active filtered result separately and reject off-gallery requests. |
| An open playtime bound is serialized as a value | The filter becomes closed at that end and excludes valid games | Omit each unset bound and send the stored unit only for a selected bound. |
| A ROM-folder upload omits its target or sends a platform upload as a ROM upload | A file can land in the platform root instead of its intended folder | Keep platform, ROM, subfolder, and overwrite fields distinct in the upload-start request. |
| A zero-byte upload waits for a chunk progress callback | The file can remain active even though the server completed it | Mark empty uploads complete before sending the completion request. |
| Browser language detection overwrites an explicit locale | A user's chosen interface language changes on a later detection pass | Use browser preferences only to select an initial match and keep selected state explicit. |
| A negative or non-finite scroll value is stored | A gallery can reopen at an invalid offset or lose its valid saved position | Accept finite non-negative values and keep positions keyed by full route. |
| A streaming container is draining but is shown as idle | A new desktop session can be sent to a container that still rejects claims | Treat the drain marker as its own state and disable the desktop action until it clears. |
| A streaming container list request fails and is treated as disabled | An admin can mistake an access or server error for a feature setting | Keep load failure separate from the server's enabled flag. |
| A device sync update is rejected after an optimistic toggle | The browser can show a sync state that the server did not save | Replace the row with the server response or restore the prior row on error. |
| A pairing code expires or was already handled | The client cannot claim the token | Show a distinct expired or handled state and allow a new pairing code where supported. |
| A pairing callback uses HTTP or HTTPS | A raw token could be sent to a web destination | Accept only a non-HTTP custom scheme for automatic token return. |
| A regenerated pairing code leaves the old QR image visible | A client can scan an expired or wrong credential | Clear the QR image until the new code has been encoded. |
| A notification edit sends a blank URL or secret as a replacement | A valid destination or signing secret can be erased without an explicit user action | Treat blank edit fields as keep and use a separate remove action to clear a secret. |
| An older Apprise URL parse completes after a newer paste | The channel can save fields from a stale destination | Apply only the latest parse and repeat the parse during save when needed. |
| An Apprise service or email channel is shown when its access or feature gate is false | A user can select a destination that the server cannot create | Limit service loading to admins and disable email until the server reports it enabled. |
| A long log stream grows without a bound | The log view consumes increasing browser memory | Keep the live and paused buffers capped and use a windowed list. |
| An appended interface control bubbles its click to the parent toggle row | Choosing a widget display mode also changes whether the widget is enabled | Stop interaction at the appended control and keep the parent switch as the only toggle action. |
| A RetroAchievements username changes but the client uses an incremental sync | Existing achievement data can remain tied to the old profile | Save the new username first and request a full sync when the saved username changes. |
A background ra:synced event is treated as the save response | The profile can show stale link state or hide a failed sync | Handle the socket result separately: refresh the current user on success and show an error on failure. |
| A 4xx heartbeat response is treated as a disconnected backend | The offline UI or router can block a live server during an auth or validation response | Mark the backend connected for responses below HTTP 500 and reserve disconnect state for server, network, and timeout failures. |
| Default heartbeat capability flags are treated as server-confirmed values | Settings or metadata views can hide features before the first heartbeat arrives | Use the heartbeat loaded state to distinguish defaults from received server settings. |
| A notification fetch completes after the signed-in user changes | The previous user's notifications can appear in the current user's inbox | Reset the inbox on user change and discard responses from an older generation. |
| A notification arrives while an inbox fetch is in flight | The new notification can disappear when the fetch response replaces the list | Replay pending socket changes onto the fetched result before applying it. |
| A tab toasts its own notification after it already displayed the local action | The user sees duplicate feedback for one event | Tag the originating tab and suppress only that tab's duplicate toast. |
| An optimistic notification read or dismissal is rejected | The inbox can show a false read state or hide a notification that still exists | Reapply the affected unread or notification row when the API call fails. |
| A reconnect does not refresh the notification inbox | Events received while the socket was down remain missing from the stored list | Refresh after a reconnect when the inbox had an earlier connection. |
Key files
| File | Why to read it |
|---|---|
| frontend/…/router.ts | Shows the administration route map, scope gates, setup, and authentication behavior. |
| frontend/…/SettingsSidebar.vue | Shows how the administration surface is grouped and filtered for each user. |
| frontend/…/Scan.vue | Shows the scan choices, scan reference entry point, locked run state, and live scan result surface. |
| frontend/…/ScanProviderSelect.vue | Shows grouped provider selection and the LaunchBox local or cloud choice. |
| frontend/…/ScanHashMatcherSwitches.vue | Shows matcher availability, blocked reasons, and accessible toggle behavior. |
| frontend/…/ScanTypeSelect.vue | Shows scan mode descriptions and disabled-option explanations. |
| frontend/…/scanning.ts | Shows the shared scan status, platform results, and scan counters. |
| frontend/…/ScanPlatform.vue | Shows the per-platform scan result panel and live ROM list. |
| frontend/…/ScanPlatformRow.vue | Shows how a streamed ROM moves from filename to identified or unmatched result. |
| frontend/…/ScanInfoDialog.vue | Shows scan types and metadata provider guidance. |
| frontend/…/index.ts | Shows how scan events become shared client state across routes. |
| frontend/…/Upload.vue | Shows platform selection, file staging, upload result, and scan handoff. |
| frontend/…/LibraryManagement.vue | Shows the maintenance tabs for folder mappings, exclusions, and missing records. |
| frontend/…/galleryRoms.ts | Shows the shared windowed result state used by large gallery-backed administration lists. |
| frontend/…/galleryRoms.test.ts | Shows the guarantees for bounded window loads, result swaps, sidecar handling, and whole-result selection. |
| frontend/…/rom.ts | Shows the shared ROM query and upload contracts used by library and maintenance workflows. |
| frontend/…/rom.test.ts | Shows the safeguards for upload targets, empty files, open playtime bounds, and ordered ROM IDs. |
| frontend/…/language.ts | Shows supported locale state and browser-language matching. |
| frontend/…/scrollRestoration.ts | Shows route-scoped gallery scroll persistence and validation. |
| frontend/…/heartbeat.ts | Shows server capability state, backend health, metadata source readiness, and filesystem platform slugs used by settings views. |
| frontend/…/ConversionSettings.vue | Shows configuration loading, conversion settings, validation, and the library conversion task gate. |
| frontend/…/MetadataSources.vue | Shows provider grouping, heartbeat status, and setup guidance. |
| frontend/…/Administration.vue | Shows the Users, Groups, Tasks, and Streaming administration tabs and their access gates. |
| frontend/…/UsersSection.vue | Shows user search, access display, account controls, and invite actions. |
| frontend/…/PermissionGroupsSection.vue | Shows permission-group search, sorting, default and system markers, age tags, and deletion rules. |
| frontend/…/GroupFormDialog.vue | Shows reusable grants, default-group state, age settings, and group-level hidden library entities. |
| frontend/…/PermissionsMatrix.vue | Shows the group grant states and the own-only boundary for ownable entities. |
| frontend/…/OverridesMatrix.vue | Shows how user overrides add inherit, grant, own-only, and revoke states over a group. |
| frontend/…/EditUserDialog.vue | Shows how identity, avatar, group access, age settings, overrides, and hidden entities are saved together. |
| frontend/…/ChangePasswordDialog.vue | Shows the password validation and current-password rules for self changes and first passwords. |
| frontend/…/CreateUserDialog.vue | Shows new-user identity, administrator choice, default group use, and custom group assignment. |
| frontend/…/HiddenGamesPicker.vue | Shows delayed hidden-game search, ROM-ID selection, and selected-record display state. |
| frontend/…/permissions.ts | Shows the client representation of effective grants and hidden entities. |
| frontend/…/UserInterface.vue | Shows personal home, gallery, display, gameplay, shell, virtual collection, developer, and UI version choices. |
| frontend/…/Devices.vue | Shows device ordering, sync control, rename, deletion, and read-only access. |
| frontend/…/TasksSection.vue | Shows task groups, task history, destructive confirmation, immediate run protection, and status refresh. |
| frontend/…/StreamingSection.vue | Shows container state, desktop access, draining behavior, and admin session release. |
| frontend/…/Activity.vue | Shows the live active-session board. |
| frontend/…/Logs.vue | Shows the event and backend log tabs, their access rules, and deep-link behavior. |
| frontend/…/EventLog.vue | Shows audit filters, URL state, paged loading, day grouping, and the event timeline. |
| frontend/…/EventLog.test.ts | Shows the audit search timing and URL-driven filter guarantees. |
| frontend/…/LogViewer.vue | Shows log backfill, live updates, filters, bounded state, copy and download, and stream controls. |
| frontend/…/LogViewer.test.ts | Shows the copy contract for full log output and individual rows. |
| frontend/…/NotificationChannelDialog.vue | Shows notification destination types, secret handling, topic filters, and Apprise URL setup. |
| frontend/…/notificationInbox.ts | Shows the signed-in notification list, optimistic changes, fetch race protection, and tab-aware toast handling. |
| frontend/…/index.ts | Shows shell-level inbox hydration, socket synchronization, user resets, and reconnect refresh. |
| frontend/…/NotificationInbox.vue | Shows notification display, visit-time read behavior, focus handling, and dismissal actions. |
| frontend/…/UserMenu.vue | Shows the unread badge and notification entry point shared with administration navigation. |
| frontend/…/AppLayout.vue | Shows which client workflows are installed globally, including scan and notification lifecycle state. |
| frontend/…/DevicePair.vue | Shows signed-in device approval and scoped token granting. |
| frontend/…/CreateClientTokenDialog.vue | Shows token creation, delivery, regeneration, and pairing states. |
| frontend/…/ScopeTree.vue | Shows the human-readable grouping of token scopes. |
| frontend/…/PlatformsStatsSection.vue | Shows platform statistics filtering, sorting, coverage order, region detail, and platform navigation. |
| frontend/…/SettingsToggleRow.vue | Shows the shared full-row switch behavior and the boundary for appended controls. |