From fab263ae4c46ef04947c91d3027d902918c130ef Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Sun, 10 May 2026 21:50:13 +0200 Subject: [PATCH] feat: live recording meta + events viewer modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two finishing touches on the live-recording stack. 1. Live recording meta line. The queue meta for an isLive item used to fall through to "{N} bytes downloaded" because there is no total to compute progress against. Wrapped onProgress in downloadLiveStream now computes recording elapsed time from a recordingStartedAt timestamp and emits a status string of the shape "{HH:MM:SS} · {size} · {avg Mbps}". Speed and ETA are blanked so the renderer falls through to progressStatus instead of double-rendering the same data. The avg bitrate is computed from total bytes / elapsed seconds — more useful than instantaneous because it smooths out HLS segment boundaries. Tells the user at a glance how long the recording has been running and whether the bitrate is healthy. 2. Events viewer modal. Companion to the chat viewer from 4.6.8. Queue items with a sibling .events.jsonl get a new "View events" button next to "View chat". Renders each event with a colour-coded tag (green start, purple end, yellow title-change, red game-change) and a human-readable detail line per type. Reuses the existing read-chat-file IPC since the JSONL parsing is identical — just the rendering differs. Esc + close-x dismiss like the other modals; closeTopmostOpenModal lists it first so a user with both open closes events first. DE + EN locale strings for the new button + every event-type detail line. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.html | 10 ++++ src/main.ts | 23 +++++++- src/renderer-locale-de.ts | 7 +++ src/renderer-locale-en.ts | 7 +++ src/renderer-queue.ts | 7 +++ src/renderer.ts | 112 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 165 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 9bced6e..ba2fcb6 100644 --- a/src/index.html +++ b/src/index.html @@ -136,6 +136,16 @@ + + +