From 586ebea201824a89bfcbd1794f383aa13996cc17 Mon Sep 17 00:00:00 2001 From: Sucukdeluxe Date: Sat, 15 Aug 2026 02:17:24 +0200 Subject: [PATCH] fix(accounts): simplify identity copy tooltips Show only the copy action in populated username and email cell tooltips instead of repeating values already visible in the table. Preserve explicit accessible button labels and add German and English regression coverage. --- src/renderer/i18n.ts | 2 +- src/renderer/views/settings/AccountWorkspace.tsx | 2 +- tests/i18n.test.ts | 1 + tests/settings-view.test.tsx | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/i18n.ts b/src/renderer/i18n.ts index 678d219..0f7bd76 100644 --- a/src/renderer/i18n.ts +++ b/src/renderer/i18n.ts @@ -184,7 +184,7 @@ const pairs = [ ["· API-Quota konnte nicht geladen werden", "· API quota could not be loaded"], ["Name kopiert", "Name copied"], ["Link kopiert", "Link copied"], ["Download-Ziel", "Download destination"], ["Support-Logs:", "Support logs:"], ["Session-Logs", "Session logs"], ["Paket-Logs", "Package logs"], ["Support-Bundle:", "Support bundle:"], ["Warnungen:", "Warnings:"], ["Web-Login", "Web login"], ["API-Token", "API token"], ["erfolgreich", "successful"], ["Unbekannt", "Unknown"], ["Abgebrochen", "Cancelled"], ["Passwort", "Password"], - ["Sicherung", "Backup"], ["Session-Log", "Session log"], ["Remote-Support", "Remote support"], ["Kopieren", "Copy"], ["Verbindungscode", "Connection code"], ["deaktiviert", "disabled"] + ["Sicherung", "Backup"], ["Session-Log", "Session log"], ["Remote-Support", "Remote support"], ["Kopieren", "Copy"], ["Klicken zum Kopieren", "Click to copy"], ["Verbindungscode", "Connection code"], ["deaktiviert", "disabled"] ] as const; const deToEn = new Map(pairs); diff --git a/src/renderer/views/settings/AccountWorkspace.tsx b/src/renderer/views/settings/AccountWorkspace.tsx index 728b405..fb9e028 100644 --- a/src/renderer/views/settings/AccountWorkspace.tsx +++ b/src/renderer/views/settings/AccountWorkspace.tsx @@ -142,7 +142,7 @@ function renderAccountIdentityCell({ }): ReactElement { const copyable = value.trim() !== "" && value !== "—"; return ( - + {copyable ? (