From 9028f919fbbc2850bbc41f9b490d916a1d0fc6fa Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 8 Aug 2026 21:58:17 +0200 Subject: [PATCH] docs(ui): note the PWA limitation of the data-keyed context-menu gate EPG previews are populated only where supportsEpg (Electron), so the programme-details menu item cannot appear in the PWA today; the data-presence gate is future-proofing, not PWA support (Codex review). Co-Authored-By: Claude Fable 5 --- .../stalker-live-stream-layout.component.ts | 7 ++++++- .../portal-channels-list/portal-channels-list.component.ts | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libs/portal/stalker/feature/src/lib/stalker-live-stream-layout/stalker-live-stream-layout.component.ts b/libs/portal/stalker/feature/src/lib/stalker-live-stream-layout/stalker-live-stream-layout.component.ts index 5b5188294..db7e0938f 100644 --- a/libs/portal/stalker/feature/src/lib/stalker-live-stream-layout/stalker-live-stream-layout.component.ts +++ b/libs/portal/stalker/feature/src/lib/stalker-live-stream-layout/stalker-live-stream-layout.component.ts @@ -873,7 +873,12 @@ export class StalkerLiveStreamLayoutComponent implements OnDestroy { ); } - /** Whether right-click has anything to offer for this row. */ + /** + * Whether right-click has anything to offer for this row. Keys on data + * presence rather than runtime capability — but note EPG previews are + * currently populated only where `supportsEpg` (Electron), so in the PWA + * this stays false until portal EPG previews exist there. + */ hasChannelContextMenu(item: StalkerItvChannel): boolean { return ( this.supportsEpgMapping || diff --git a/libs/portal/xtream/feature/src/lib/portal-channels-list/portal-channels-list.component.ts b/libs/portal/xtream/feature/src/lib/portal-channels-list/portal-channels-list.component.ts index 69caa0063..14ae6f99b 100644 --- a/libs/portal/xtream/feature/src/lib/portal-channels-list/portal-channels-list.component.ts +++ b/libs/portal/xtream/feature/src/lib/portal-channels-list/portal-channels-list.component.ts @@ -512,7 +512,12 @@ export class PortalChannelsListComponent implements AfterViewInit, OnDestroy { return this.epgPrograms.get(channel.xtream_id) ?? null; } - /** Whether right-click has anything to offer for this row. */ + /** + * Whether right-click has anything to offer for this row. Keys on data + * presence rather than runtime capability — but note EPG previews are + * currently populated only where `supportsEpg` (Electron), so in the PWA + * this stays false until portal EPG previews exist there. + */ hasChannelContextMenu(item: XtreamChannelListItem): boolean { return this.supportsEpgMapping || this.epgPrograms.has(item.xtream_id); }