Dashboard and remote control
IPTVnator uses one workspace shell to connect source choice, content search, playback, settings, and downloads. Its dashboard gives users fast paths back to live and on-demand content, while the desktop remote control lets a trusted local device operate the active live playback. For the detailed flow, see Dashboard and remote control flow.
Application shell
Workspace frame
The workspace frame is the persistent surface around each main workflow. It keeps navigation and common actions available while the routed page changes in the center. On desktop it places the source rail beside the header, context panel, and content area. On small screens the same areas become compact bars and a drawer.
The frame has four user-facing regions:
| Region | Purpose |
|---|---|
| Left rail | Opens the dashboard, sources, global collections, provider sections, server status, and settings. |
| Top header | Switches sources, searches the current area, starts common actions, and exposes downloads when supported. |
| Context panel | Shows filters or provider and settings navigation when the current route needs a second level of navigation. |
| Main area and playback footer | Displays the selected workflow and keeps an external playback session available while the user moves through the workspace. |
The shell also provides entry points for adding sources, refreshing a source, opening commands, and viewing keyboard help. Header actions follow the current route and runtime. For example, source actions are hidden on global Settings so users do not mistake them for settings state. When the header has too little room, lower-priority actions move into a More actions menu. Back, source switching, search, and downloads stay available.
On small screens the rail becomes a horizontal bar and the context panel becomes a modal drawer. The drawer traps focus, consumes Escape, hides the content behind it from assistive technology, and restores focus to its toggle or to the routed content when the toggle is gone. Live category controls can also fold so playback has more room. A category popover closes on navigation, selection, or a change that makes its trigger unavailable.
The shell keeps external playback linked to its source. Users can close or dismiss an active session or return to its matching route. Desktop-only actions use runtime capabilities, while parental-lock state limits protected actions.
References: libs/…/workspace-shell.component.html• L1-153 libs/…/workspace-shell-header.component.ts• L74-227 libs/…/workspace-shell-header-overflow.ts• L1-102 libs/…/workspace-shell.component.spec.ts• L1-220
Workspace navigation
The /workspace route is the application home for the main product flows. Startup preferences choose the first view. The dashboard is the normal entry, while sources is the fallback when the dashboard is disabled or no dashboard view can be restored. Global rail links stay separate from provider links.
The shell keeps provider context with the current route when possible. On global pages it falls back to the selected source. This lets a dashboard card open a provider detail page without changing the source shown in the header.
Search changes meaning with the current view:
| View | Search goal |
|---|---|
| Provider view | Search the active provider and category. |
| Dashboard with an active Xtream source | Open search for that source. |
| Desktop dashboard without an active Xtream source | Launch global search across searchable sources. |
| Settings | Filter settings and reveal the best matching row. |
| Browser dashboard without a supported global search | Hide the search control instead of showing a control that cannot act. |
Typed search is kept separate from the applied route search. This allows a user to continue typing while navigation is in flight. Category scope changes preserve the pending term and keep URL, provider state, and collection state aligned.
The command palette uses the same route, source, and runtime context as navigation. It shows recent commands with no query, groups matching actions by purpose, and shows searchable Settings actions only when a query is present. Results that need a missing runtime capability are omitted. A result opens the right section and falls back to a visible parent row when the exact row is not available.
The context panel follows the active workflow. Provider panels support category choice, category search and sort, protected categories, and a return to the active content view. Live category changes keep the active channel playing. VOD and series changes move to a new content list and close an open detail view. Settings sections use workspace routes and replace one settings history entry instead of adding a new entry for each section. The Sources view manages source type, health, sorting, and safe cleanup without interrupting active or busy sources.
References: apps/…/app.routes.ts• L9-74 libs/…/workspace-shell-route-state.service.ts• L46-187 libs/…/workspace-shell-dashboard-search.ts• L25-83 libs/…/workspace-shell-search.service.ts• L44-175 libs/…/workspace-command-palette.component.ts• L69-185 libs/…/workspace-shell-command-builders.ts• L45-58 libs/…/workspace-live-categories-popover.service.ts• L21-37
Dashboard experience
Dashboard role
The dashboard is a landing page for returning to useful content quickly. It uses a rotating hero and a fixed set of horizontal content rails rather than a user-built grid. A rail appears only when it has useful content, so the page follows the available sources and activity.
The hero can feature unfinished on-demand content, a live channel, a favorite, or recently added content. It links the main action to the right user goal: resume, open details, or watch live. Artwork, provider details, playback progress, and live programme data enrich the slide without changing the underlying content route. Missing artwork uses a visual fallback.
The hero adapts to wide and narrow layouts. Its controls support pause, direct slide choice, keyboard navigation, and reduced-motion preferences. The page can show a stable loading surface while history, favorites, playback positions, or live programme data settle. It does not wait for an optional metadata rail before showing the core dashboard.
When no source exists, the dashboard shows a welcome state that leads to source creation. Once sources exist, each data group can become useful on its own. A failed optional input leaves its rail empty instead of hiding the rest of the page.
References: libs/…/workspace-dashboard-rails.component.html• L1-17 libs/…/workspace-dashboard-rails.component.html• L206-325 libs/…/dashboard-hero-slides.presenter.ts• L64-111 libs/…/dashboard-hero-slides.presenter.ts• L125-193 libs/…/dashboard-hero.component.scss• L21-87 libs/…/dashboard-hero.component.scss• L689-829
Dashboard content
The dashboard combines source inventory, recent activity, favorites, saved playback positions, and provider data into user-facing paths. Each card keeps its source and collection context, so selecting it returns the user to the correct place.
| Surface | User goal |
|---|---|
| Continue-watching hero | Resume the latest unfinished movie or series. |
| Continue Watching rail | Review recent on-demand activity and choose details, resume, mark watched, or remove from history. |
| Live favorites and recent live TV | Start a live channel from saved or recent activity. |
| Favorite movies and series | Reopen saved on-demand content without mixing it with live channels. |
| Recently Used Sources | Return to sources based on recent use. |
| Recently Added on Xtream | Discover new on-demand content on supported desktop sources. |
| Trending and recommendations | Find popular or related playable titles when metadata features are enabled. |
Continue Watching uses saved positions for movies and series. Series progress belongs to both its source and parent series, so a reused episode number cannot select another show's progress. A card opens details by default. Resume remains an explicit action unless the hero is presenting the fast resume path.
Recent activity follows the active history source. In self-hosted mode, synchronized activity drives the same dashboard data used for removal. Favorites combine Xtream, Stalker, and M3U sources. M3U contributions can appear one source at a time, so a slow source does not hold back the other favorite cards. Provider-specific identities remain part of the card identity when a provider reuses an item ID across content types.
Cards link into existing workspace collections or provider views. The dashboard is therefore a launch surface, not a second content manager. Source cards can also refresh or remove a source, show source or account information, and show subscription warnings only when the source gives reliable expiry facts. Failed history changes give the user visible feedback instead of silently leaving the card unchanged.
References: libs/…/workspace-dashboard-rails.component.ts• L145-267 libs/…/workspace-dashboard-rails.component.ts• L316-465 libs/…/dashboard-data.service.ts• L187-299 libs/…/dashboard-data.service.ts• L405-581 libs/…/dashboard-data.service.ts• L758-851 libs/…/dashboard-data.service.ts• L902-1053 libs/…/dashboard-recommendations.service.ts• L63-109 libs/…/dashboard-trending.service.ts• L18-69
Metadata rails
Metadata rails turn optional external title data into playable dashboard cards. Trending content comes from a current popular list. Recommendations start from a small set of recent movies or series and keep only titles that match an imported catalog.
Both rails require the desktop metadata capability and user opt-in. They wait until the dashboard's own favorites and playback-position data settle, which keeps metadata matching from delaying the main page. The rails use the active language and imported source set as part of their view. A new or removed source can therefore change which cards are playable.
Recommendation matching uses localized and original title forms. It keeps different releases separate when their years differ, removes titles already watched or favorited, and hides the rail when too few confident playable matches remain. A failed or empty metadata request is retryable and does not erase valid cards that are still useful offline. Parental-lock changes re-filter visible cards.
The hero uses the same title resolution as recommendations for optional backdrop, rating, genre, year, and summary data. These extras load after the first useful dashboard paint and do not prevent a card from opening when metadata is absent.
This diagram shows how optional metadata becomes a playable dashboard surface without becoming a dependency of the core dashboard.
flowchart LR
A[Core dashboard data] --> B[Recent and favorite content]
B --> C{Metadata enabled?}
C -->|No| D[Core rails and hero]
C -->|Yes| E[Trending or recent-title lookup]
E --> F[Catalog title matching]
F --> G[Playable metadata cards]
E --> H[Hero artwork and detail extras]
H --> D
G --> D
References: libs/…/dashboard-tmdb-rails.ts• L27-81 libs/…/dashboard-recommendations.service.ts• L63-237 libs/…/dashboard-recommendations.util.ts• L144-181 libs/…/dashboard-recommendations.util.ts• L255-289 libs/…/dashboard-trending.service.ts• L18-99 libs/…/dashboard-hero-tmdb.service.ts• L35-160
Live programme enrichment
Live programme enrichment adds the current programme to live cards without making guide data a requirement for channel playback. M3U cards use source-scoped XMLTV data. Xtream and Stalker cards use provider programme data when available and can fall back to a title-based guide match.
The dashboard requests programme data for useful live cards and hero candidates. The lookup is shared by source and channel, so the same answer can serve favorites and recent rows. Results use the active guide time offset and refresh when a programme ends or guide settings change. A missing answer removes only programme details; the channel remains usable.
References: libs/…/dashboard-live-epg.presenter.ts• L71-92 libs/…/dashboard-live-epg.presenter.ts• L123-155 libs/…/dashboard-portal-live-epg.presenter.ts• L24-34 libs/…/dashboard-portal-live-epg.service.ts• L45-157 libs/…/dashboard-portal-live-epg.service.ts• L196-269
Dashboard scope
Rail visibility is a user preference, not a custom layout. Users can hide a rail from dashboard settings, while empty rails stay hidden without placeholder text. The fixed order keeps the page easy to learn across users and sessions.
Core recent, favorite, and source views work in the browser application. Xtream recently added content and metadata rails depend on desktop data services. Live programme details remain best-effort enrichment. Unknown or unreachable source status does not create an expired badge.
The dashboard refreshes recent activity and favorites when the user returns. It reloads provider-specific recent additions when the Xtream source set changes and reloads playback positions when the recent on-demand set changes. Changes from detail, playback, or synchronized history can therefore appear without a full application reload. Dashboard settings and search expose these choices through the same shell contracts.
For the full dashboard composition and data flow, see Dashboard and remote control flow.
References: libs/…/workspace-dashboard-rails.component.ts• L139-150 libs/…/workspace-dashboard-rails.component.ts• L316-375 libs/…/dashboard-data.service.ts• L415-481 libs/…/dashboard-data.service.ts• L520-638 libs/…/settings-search-entries.ts• L170-220
Remote control
Remote access model
Remote control is a desktop-only companion surface for the running IPTVnator application. The user enables it in Settings, chooses a local HTTP port, and opens one of the displayed local network URLs on a phone or other device. A QR code can carry the same URL.
The companion page sends control requests to the desktop process. The desktop process forwards them to the active player in the main window. The main window returns a small playback status snapshot, and the companion page reads that status at intervals.
The shell's settings search exposes the enable, port, and URL rows only when the desktop remote-control capability exists. This gives remote control the same capability-aware entry path as other desktop-only settings.
This diagram shows how a remote action reaches active playback and how status returns to the remote device.
sequenceDiagram
participant R as Remote web page
participant E as Desktop app service
participant P as Active playback view
R->>E: Channel or volume request
E->>P: Forward control command
P-->>E: Playback status snapshot
R->>E: Status request
E-->>R: Current channel and programme state
For the detailed request, status, and provider flow, see Dashboard and remote control flow.
References: apps/…/http-server.ts• L56-75 apps/…/http-server.ts• L109-165 apps/…/remote-control.events.ts• L29-115 apps/…/settings-remote-control-section.component.html• L16-136 libs/…/settings-search-entries.ts• L196-220
Remote control actions
The remote surface is shaped like a simple TV remote for use away from the main screen. It refreshes status when it opens, after each action, and at a regular interval while it stays open.
| Control | Result |
|---|---|
| Channel up or down | Moves through the active live-channel list. |
| Number pad and select | Selects a channel by its position in the active list. |
| Volume up, down, or mute | Changes volume when the active playback surface supports it. |
| Status display | Shows the active source, channel, channel number, and current programme when known. |
The remote uses the list exposed by the active playback view. Number selection is therefore a position in that view, not a global channel number or guide mapping. This keeps remote actions aligned with the source or collection shown in the main application.
References: libs/…/remote-control.component.ts• L14-155 libs/…/remote-control.service.ts• L26-79 libs/…/remote-channel-navigation.ts• L1-80
Playback status
M3U, Xtream, Stalker, and shared favorite or recent views can publish the active live channel to the remote. Leaving a live surface clears the status so the remote does not show a channel that is no longer playing.
Channel changes use the active view's own playback path. Volume support is capability-based. The remote enables volume controls only when the effective live player can accept them. The remote polls every two seconds and refreshes after an action. It does not need a persistent connection, so a missed update affects display freshness rather than the command path.
References: docs/…/remote-control.md• L110-147 libs/…/remote-control.component.ts• L25-37 libs/…/remote-control.component.ts• L123-155
Remote control boundary
Remote control is intended for a trusted local network. The current remote API has no user authentication or transport encryption, so enabling it makes the displayed local URLs a control surface for the desktop session.
The setting controls both availability and the desktop server port. A port change restarts the service, and Settings shows the new URLs so users do not need to infer the address.
References: docs/…/remote-control.md• L294-305 docs/…/remote-control.md• L323-335 apps/…/remote-control.events.ts• L72-77 apps/…/http-server.ts• L152-166
Change checklist
When these files or sections are changed, remember to consider these:
- When workspace routes or startup behavior change, update global links, provider fallback context, Settings Back behavior, dashboard card destinations, and command visibility together.
- When search or category scope changes, keep the URL query, pending input, applied provider state, collection state, and browser-history behavior aligned.
- When header actions change, keep the overflow order, minimum menu size, resize behavior, hysteresis, and focus recovery aligned.
- When a dashboard rail changes its source or content type, keep its empty-state rule, desktop availability rule, metadata gate, and deep-link target aligned.
- When dashboard activity or identity changes, keep synchronized-history behavior, source ownership, parent-series identity, resume state, detail navigation, and mark-watched actions aligned.
- When recommendation matching changes, keep title aliases, release-year checks, watched or favorited exclusions, catalog matches, language, source-set changes, and parental-lock visibility aligned.
- When Continue Watching changes, keep playback-position loading, series continuation, hero resume action, card detail navigation, mark-watched action, and history actions aligned.
- When per-source favorite loading changes, keep incremental loading, stable identity, cache invalidation after refresh or favorite changes, and the aggregate favorite rail aligned.
- When live programme enrichment changes, keep source-specific guide selection, source and channel identity, hero requests, time-offset handling, programme expiry refresh, and the no-answer state aligned.
- When shell drawer or live category behavior changes, keep focus trapping, focus restoration, Escape handling, inert boundaries, popover close rules, search guards, and native playback hiding aligned.
- When Settings rows change, update section definitions, searchable entries, runtime requirements, row anchors, fallback targets, command palette results, and page navigation together.
- When shell commands or shortcuts change, keep route context, runtime checks, drawer guards, platform labels, and shortcut help aligned.
- When remote commands or status fields change, update the remote page, desktop HTTP handlers, preload bridge, and every live playback integration as one contract.
- When a live playback view is added or removed, check both command-list scope and the reset status sent when that view stops being active.
- When remote volume capability changes, keep
supportsVolumealigned with the effective player rather than only the configured player. - When remote-control settings change, preserve the link between enabled state, port restart behavior, capability filtering, and URLs shown in Settings.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| No sources are available | The dashboard has no content context and must not show empty rails. | Render the welcome state and route its action to source creation. |
| A dashboard card points to the wrong provider route | The user opens content in the wrong source or loses the intended playback target. | Use the shared dashboard navigation rules for the card link and state. |
| An unavailable saved item is promoted to the hero | The user sees a resume or discovery action that cannot open the item. | Keep unavailable items in collection management and exclude them from hero candidates. |
| Series and episode IDs collide across saved positions | Continue Watching can show another series' progress or resume the wrong episode. | Match by source and parent-series identity before using an episode fallback. |
| A provider reuses an ID across favorite types | One favorite can replace another in the dashboard. | Keep content type in the favorite identity. |
| A recent on-demand card resumes by default | A click can start playback before the user reviews the item. | Keep card navigation detail-only and expose resume as an explicit action. |
| Metadata matching returns too few playable titles | A discovery rail shows weak or unusable cards. | Require confident catalog matches and hide the rail below its useful threshold. |
| Metadata services are unavailable | Optional cards or hero extras disappear or become stale. | Retry failed loads and keep core dashboard cards independent of metadata. |
| A guide or provider cannot answer a live programme request | A card loses programme text or progress but the channel remains usable. | Treat programme data as enrichment and keep channel availability separate. |
| Dashboard history uses a different source from the active history service | Recent items stay stale or removal affects only local data. | Read and remove activity through the active source and refresh on its change event. |
| A category list accepts navigation while it is loading | The user enters a route against incomplete data. | Keep category actions disabled until the selected provider content is ready. |
| A live category change clears the active item | Playback stops even though the user only changed the filter. | Preserve the selected live item for live category changes. |
| Category scope clearing drops pending search text | The input, provider state, and URL disagree. | Carry the current input into the destination query. |
| A settings search entry names a row the form does not render | Search navigates to an empty or unusable target. | Apply the same capability filter to the search index and the settings form. |
| The context drawer closes without restoring focus | Keyboard users lose their place. | Restore focus to the toggle or to routed content when the toggle is gone. |
| Escape reaches playback while the context drawer is open | One keypress can close the drawer and act on hidden playback. | Consume Escape at the shell boundary. |
| A folded rail stays in the focus order | Keyboard and screen-reader users reach hidden controls. | Mark the folded rail inert except while it is the open phone drawer. |
| Header actions move while one has focus | Focus can fall to the document body when the action is recreated. | Move focus to the overflow trigger or the remaining action after layout change. |
| A source is removed while active or busy | Playback, import, refresh, or cleanup loses its active data. | Protect active and busy sources from removal and cleanup. |
| The command palette opens before optional capabilities are known | Commands appear that the runtime cannot run. | Resolve capability checks before opening and omit failed commands. |
| The remote server is disabled or its port is unreachable | The phone cannot load the remote page or send commands. | Enable the setting, use a valid port, and use a URL from Settings. |
| A live view leaves without clearing remote status | The remote shows a stale channel after playback stops or changes to on-demand content. | Publish the shared non-live reset snapshot when the view ends. |
| A command uses a different list from the rendered live view | Number selection or channel stepping targets the wrong channel. | Reuse the active view's visible channel list and shared navigation rules. |
| Volume is unavailable in the effective player | Volume commands appear to work without changing playback. | Report supportsVolume: false and disable those controls. |
| An untrusted device reaches the local HTTP server | The device can control playback because the API has no auth or TLS. | Treat the feature as trusted-LAN only and disable it when that boundary is unsafe. |
Key files
| File | Why to read it |
|---|---|
| libs/…/workspace-shell.component.html | Shows the persistent frame, routed content area, context drawer boundary, and external playback footer. |
| libs/…/workspace-shell.facade.ts | Shows how route state, runtime capabilities, commands, search, playback, and shell actions meet. |
| libs/…/workspace-shell-route-state.service.ts | Shows how startup, route context, global links, provider links, and context-panel variants are selected. |
| libs/…/workspace-shell-search.service.ts | Shows how search changes by route, source type, runtime, and settings state. |
| libs/…/workspace-shell-dashboard-search.ts | Shows the dashboard handoff to provider search or desktop global search. |
| libs/…/workspace-shell-header.component.ts | Shows route-aware header controls, responsive overflow, focus recovery, and search actions. |
| libs/…/workspace-shell-header-overflow.ts | Shows which actions can move into More actions and how the shell avoids resize flicker. |
| libs/…/workspace-command-palette.component.ts | Shows recent commands, grouped search results, Settings search, and keyboard selection. |
| libs/…/workspace-shell-command-builders.ts | Shows how route and runtime context become visible shell commands. |
| libs/…/workspace-live-categories-popover.service.ts | Shows the live category popover boundary and its close and focus rules. |
| libs/…/settings-search-entries.ts | Shows searchable dashboard and remote-control settings and their runtime-aware fallback links. |
| libs/…/workspace-dashboard-rails.component.ts | Shows how dashboard cards connect activity, progress, source actions, enrichment, and user actions. |
| libs/…/dashboard-hero-slides.presenter.ts | Shows how hero sources become resume, detail, or live actions. |
| libs/…/dashboard-hero.component.scss | Shows the hero's responsive artwork, controls, fallback, and motion behavior. |
| libs/…/dashboard-data.service.ts | Shows how activity, favorites, playback positions, sources, provider data, and synchronized history become dashboard inputs. |
| libs/…/dashboard-recommendations.service.ts | Shows how optional recommendations use recent titles, exclusions, catalog matches, and retry rules. |
| libs/…/dashboard-recommendations.util.ts | Shows title and year matching rules that make recommendation cards playable. |
| libs/…/dashboard-trending.service.ts | Shows how trending data becomes source-aware dashboard cards. |
| libs/…/dashboard-tmdb-rails.ts | Shows when optional metadata rails may load without delaying core dashboard data. |
| libs/…/dashboard-hero-tmdb.service.ts | Shows how the hero receives shared, localized metadata extras. |
| libs/…/dashboard-portal-live-epg.service.ts | Shows how provider programme data is shared and kept fresh for live cards. |
| libs/…/dashboard-live-epg.presenter.ts | Shows how source guides and provider programme data enrich live cards. |
| apps/…/http-server.ts | Shows the desktop boundary that serves the remote page and applies remote-server settings. |
| apps/…/remote-control.events.ts | Shows the control and status contract between the remote device and the desktop app. |
| libs/…/remote-control.component.ts | Shows the remote user's controls, status view, and polling behavior. |
| libs/…/remote-channel-navigation.ts | Shows the shared channel-selection rules used by provider and collection playback views. |