feat(settings): Akzentfarbe zusätzlich als Hex-Code eingebbar
- normalizeHexColor() (apps/web/src/lib/color.ts) normalisiert Hex-Eingaben (fuehrendes # optional, 3-stellige Kurzform, Gross-/Kleinschreibung, Leerraum) - Kontoformular: Hex-Textfeld neben dem Farbwaehler, beide bidirektional synchron, ersetzt den reinen Anzeige-Span - Ungueltiger Text: aria-invalid + roter Rand + Fehlertext, "Farbe speichern" gesperrt; Zuruecksetzen setzt beides auf #ffed00 - i18n: settings.account.accentColorHex/accentColorHexInvalid in de.json und en.json - Unit-Tests: color.test.ts (9 Faelle), account-settings-form.test.tsx (7 Faelle) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -149,6 +149,8 @@
|
||||
"accentColorSave": "Save color",
|
||||
"accentColorSuccess": "Accent color saved successfully.",
|
||||
"accentColorError": "Failed to save color.",
|
||||
"accentColorHex": "Hex code",
|
||||
"accentColorHexInvalid": "Invalid color value. Please enter six hexadecimal characters, e.g. #ffed00.",
|
||||
"deleteAvatarCta": "Delete picture",
|
||||
"deleteAvatarSuccess": "Profile picture deleted successfully.",
|
||||
"deleteAvatarError": "Failed to delete picture."
|
||||
|
||||
Reference in New Issue
Block a user