From 962b5efc6f3980f0818bf2d55d2aaddf9c082d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Mon, 13 Apr 2026 12:14:00 +0200 Subject: [PATCH] settings: drop the section-header env-var lock badges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The per-input LockedInput already shows a 🔒 inside any field that's controlled by an env var, with a tooltip pointing at the .env file. The extra '🔒 JELLYFIN_URL' badge in the section title was duplicate signal — remove it. Drop EnvBadge entirely; section titles go back to plain text ('Jellyfin', 'Radarr (optional)', etc.). --- src/features/setup/SetupPage.tsx | 56 +++++++------------------------- 1 file changed, 12 insertions(+), 44 deletions(-) diff --git a/src/features/setup/SetupPage.tsx b/src/features/setup/SetupPage.tsx index 78daefd..378601e 100644 --- a/src/features/setup/SetupPage.tsx +++ b/src/features/setup/SetupPage.tsx @@ -32,22 +32,9 @@ function LockedInput({ locked, ...props }: { locked: boolean } & React.InputHTML ); } -// ─── Env badge ──────────────────────────────────────────────────────────────── - -function EnvBadge({ envVar, locked }: { envVar: string; locked: boolean }) { - return ( - - {locked ? "🔒" : "🔓"} {envVar} - - ); -} +// Note: the section-header EnvBadge was removed — the per-input lock icon +// (LockedInput) already signals when a value is env-controlled, the badge +// was duplicate noise. // ─── Section card ────────────────────────────────────────────────────────────── @@ -308,12 +295,7 @@ export function SetupPage() { {/* Jellyfin */} - Jellyfin {" "} - - - } + title="Jellyfin" urlKey="jellyfin_url" apiKey="jellyfin_api_key" urlPlaceholder="http://192.168.1.100:8096" @@ -325,11 +307,9 @@ export function SetupPage() { {/* Radarr */} - Radarr (optional){" "} - {" "} - - + <> + Radarr (optional) + } subtitle="Provides accurate original-language data for movies." urlKey="radarr_url" @@ -343,11 +323,9 @@ export function SetupPage() { {/* Sonarr */} - Sonarr (optional){" "} - {" "} - - + <> + Sonarr (optional) + } subtitle="Provides original-language data for TV series." urlKey="sonarr_url" @@ -360,12 +338,7 @@ export function SetupPage() { {/* Audio languages */} - Audio Languages - - - } + title="Audio Languages" subtitle="Additional audio languages to keep alongside the original language. Order determines stream priority in the output file. The original language is always kept first." > @@ -379,12 +352,7 @@ export function SetupPage() { {/* Subtitle languages */} - Subtitle Languages - - - } + title="Subtitle Languages" subtitle="Subtitle tracks in these languages are extracted to sidecar files. Order determines priority. All subtitles are removed from the container during processing." >