style(ui): system-wide UX/UI polish pass — design-system conformance + copy cleanup (#835)
* style(ui): system-wide UX/UI polish pass — design-system conformance + copy cleanup Multi-agent scan of all 404 UI files against the locked design system, then 141 verified surgical fixes across 109 files (net -32 lines): - Remove forbidden elevation/motion: shadow-* and rounded-xl on cards, active:scale bounce, hover:shadow on list items, transition-all -> transition-colors. - Drop font-medium from single-weight Hedvig display headings/numerals. - Replace raw rainbow Tailwind status colors with Badge variants / brand tokens / neutral surfaces (achromatic chrome, semantic colors stay data-only). - Route raw dates through formatDate(), hand-rolled currency through formatCurrency(), add tabular-nums to financial figures; text-gray-* -> text-foreground tokens. - Swap hand-rolled skeletons for the Skeleton primitive; off-scale spacing -> token scale. - Fix copy: mislabeled "Leverantörsfakturor" -> "Utgifter" on bank-import outflow total, collapse no-op identical-branch ternaries, broken Swedish diacritics (mojibake), correct mismatch-password toast, correct supplier currency-field label. - Remove PII-leaking debug console.log on register, stray console.logs. Verified: tsc clean on all changed files, eslint clean, production build passes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(auth): sanitize residual error logs in register flow Follow-up to PR review (compliance swarm V16 / GDPR Art.5(1)(f)): the remaining console.error calls in the register flow passed raw error objects, which Supabase may populate with PII (email) in nested fields. Log only sanitized message strings instead. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
a8072f6423
commit
b800dcd403
@@ -604,6 +604,7 @@
|
||||
"weak_title": "Password too weak",
|
||||
"weak_description": "Password must be at least 8 characters and include uppercase, lowercase, digits, and a special character.",
|
||||
"mismatch_title": "Passwords don't match",
|
||||
"mismatch_description": "Make sure you entered the same password in both fields.",
|
||||
"save_failed_title": "Could not save password",
|
||||
"save_failed_description": "Please try again."
|
||||
},
|
||||
@@ -739,6 +740,7 @@
|
||||
"default_payment_terms_label": "Payment terms (days)",
|
||||
"default_account_label": "Default account",
|
||||
"default_account_placeholder": "e.g. 5410",
|
||||
"default_currency_label": "Default currency",
|
||||
"notes_label": "Notes",
|
||||
"notes_placeholder": "Internal notes about the supplier...",
|
||||
"submit_save": "Save supplier",
|
||||
|
||||
@@ -604,6 +604,7 @@
|
||||
"weak_title": "Lösenordet är för svagt",
|
||||
"weak_description": "Lösenordet måste vara minst 8 tecken och innehålla versaler, gemener, siffror och specialtecken.",
|
||||
"mismatch_title": "Lösenorden matchar inte",
|
||||
"mismatch_description": "Kontrollera att du skrev samma lösenord i båda fälten.",
|
||||
"save_failed_title": "Kunde inte spara lösenordet",
|
||||
"save_failed_description": "Försök igen."
|
||||
},
|
||||
@@ -739,6 +740,7 @@
|
||||
"default_payment_terms_label": "Betalningsvillkor (dagar)",
|
||||
"default_account_label": "Standardkonto",
|
||||
"default_account_placeholder": "T.ex. 5410",
|
||||
"default_currency_label": "Standardvaluta",
|
||||
"notes_label": "Anteckningar",
|
||||
"notes_placeholder": "Interna anteckningar om leverantören...",
|
||||
"submit_save": "Spara leverantör",
|
||||
|
||||
Reference in New Issue
Block a user