From 0cdee1382e4be931c2875901bd60f685f91d35f2 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Wed, 15 Apr 2026 22:51:54 +0200 Subject: [PATCH] refactor: improve MFA section visual hierarchy in SecurityTab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Redesigns the MFA method cards and supporting sections for better visual hierarchy and professional styling: Method cards (organizer): - Vertical layout with large icon (VAvatar 44px) at top - Description text explaining each method - Status chip with check icon when configured - VCardActions with primary chip/button + "Opnieuw instellen" - Primary method card highlighted with 2px primary border - Proper h-100 for equal height side-by-side Backup codes: - Separate outlined VCard with key icon, progress bar, refresh button - Cleaner spacing and visual grouping Disable MFA: - Replaced heavy danger-zone card with subtle text button (tabler-shield-off icon, error color) — less visual weight for a rarely-used destructive action Portal: - Per-method rows with VAvatar icons and stacked status chips - Matching text-button style for disable action Co-Authored-By: Claude Opus 4.6 (1M context) --- .../account-settings/SecurityTab.vue | 331 +++++++++--------- apps/portal/src/pages/profiel.vue | 103 +++--- 2 files changed, 230 insertions(+), 204 deletions(-) diff --git a/apps/app/src/components/account-settings/SecurityTab.vue b/apps/app/src/components/account-settings/SecurityTab.vue index 8a680de0..30981b49 100644 --- a/apps/app/src/components/account-settings/SecurityTab.vue +++ b/apps/app/src/components/account-settings/SecurityTab.vue @@ -268,7 +268,7 @@ function copyRegeneratedCodes() { - + -
+ -
-
- Authenticator app -
- - {{ totpConfigured ? 'Geconfigureerd' : 'Niet ingesteld' }} - -
-
- -

- Gebruik Google Authenticator, Authy of een andere app. -

- - - Opnieuw instellen - - - Instellen - +
@@ -362,139 +360,139 @@ function copyRegeneratedCodes() { > -
+ -
-
- E-mailcode -
- - {{ emailConfigured ? 'Geconfigureerd' : 'Niet ingesteld' }} - -
-
- -

- Ontvang een code per e-mail bij elke login. -

- - - Opnieuw instellen - - - Instellen - +
- - -
- - - - - -
-
- Tweestapsverificatie uitschakelen -
-

- Dit vermindert de beveiliging van je account. -

-
- + - Uitschakelen - + +
+
+
+ + Backup codes +
+ + {{ backupCodesRemaining }} van 10 resterend + +
+ + Nieuwe codes + +
+ +
+
+ + +
+ + Tweestapsverificatie uitschakelen + +
@@ -682,3 +680,10 @@ function copyRegeneratedCodes() { --v-card-list-gap: 8px; } + + diff --git a/apps/portal/src/pages/profiel.vue b/apps/portal/src/pages/profiel.vue index 6a6f9288..0c73d63c 100644 --- a/apps/portal/src/pages/profiel.vue +++ b/apps/portal/src/pages/profiel.vue @@ -676,29 +676,39 @@ function viewEvent(eventId: string) {
-
- - Authenticator app - - {{ totpConfigured ? 'Actief' : 'Niet ingesteld' }} - - + - Primair - + + +
+ Authenticator app +
+ + {{ totpConfigured ? 'Actief' : 'Niet ingesteld' }} + + + Primair + +
+
-
- - E-mailcode - - Actief - - + - Primair - + + +
+ E-mailcode +
+ + Actief + + + Primair + +
+