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.
This commit is contained in:
Sucukdeluxe
2026-08-15 02:17:24 +02:00
parent d91e2a4ab9
commit 586ebea201
4 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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<string, string>(pairs);
@@ -142,7 +142,7 @@ function renderAccountIdentityCell({
}): ReactElement {
const copyable = value.trim() !== "" && value !== "—";
return (
<span className={className} role="cell" title={copyable ? `${value}\nKlicken zum Kopieren` : value}>
<span className={className} role="cell" title={copyable ? "Klicken zum Kopieren" : value}>
{copyable ? (
<button
aria-label={`${label} kopieren`}