From 16d245677092db61c86258204c3af6a8f64337d7 Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Sun, 10 May 2026 13:33:10 +0200 Subject: [PATCH] feat: trim-VOD dialog i18n + Twitch API help link + log file shortcut Three small UX wins. 1. Trim-VOD dialog: every inner label was hardcoded German in index.html (Start:, Ende:, Startzeit (HH:MM:SS):, Dauer:, Start Part-Nummer..., Leer lassen = Teil 1, Dateinamen-Format:, Zur Queue hinzufuegen). EN-mode users had a German dialog. Each element now has an id + setText wiring + DE/EN locale strings. 2. Settings -> Twitch API card now opens with a help line + link to dev.twitch.tv/console/apps. Uses window.api.openExternal so the link opens in the user's default browser instead of the Electron renderer (which has nodeIntegration off / no native navigation). Fixes the "no idea how to set this up" first-run friction. 3. Settings -> Live Debug Log gets an "Open log file" button next to Refresh. Uses a new ipcMain handle (open-debug-log-file -> shell.showItemInFolder on DEBUG_LOG_FILE) so users no longer have to navigate manually to ProgramData. As a small defensive bundle: - get-debug-log: lines parameter capped at [1, 5000] so a misbehaving renderer (or future feature) cannot ask main to slice millions of lines. - export-runtime-metrics: now uses writeFileAtomicSync (the fsync+rename helper from cycle 1) instead of plain writeFileSync so a power loss mid-export cannot leave a half-written metrics file at the user-chosen path. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.html | 23 ++++++++++++++--------- src/main.ts | 16 ++++++++++++++-- src/preload.ts | 1 + src/renderer-globals.d.ts | 1 + src/renderer-locale-de.ts | 12 ++++++++++++ src/renderer-locale-en.ts | 12 ++++++++++++ src/renderer-settings.ts | 8 ++++++++ src/renderer-texts.ts | 12 ++++++++++++ src/renderer.ts | 4 ++++ 9 files changed, 78 insertions(+), 11 deletions(-) diff --git a/src/index.html b/src/index.html index 1b16ef6..b3f398b 100644 --- a/src/index.html +++ b/src/index.html @@ -53,12 +53,12 @@
- +
- + @@ -67,12 +67,12 @@
- +
- + @@ -81,22 +81,22 @@
- Dauer: + Dauer: 00:01:00
- + -
Leer lassen = Teil 1
+
Leer lassen = Teil 1
- +
@@ -429,6 +429,10 @@

Twitch API

+

+ Du brauchst eine Client-ID und ein Client-Secret von Twitch. + dev.twitch.tv/console/apps +

@@ -541,6 +545,7 @@

Live Debug-Log

+