From 7fe9c581b00ec4f94472e5a05aab568d63648e25 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 27 Apr 2026 22:45:31 +0200 Subject: [PATCH] fix: remove MFA card from tenant settings, constrain card widths MFA enrollment now happens during sign-in. Tenant settings page reduced to: Tenant Details + Auth Policy side-by-side (max 520px each), Passkeys full-width below. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/pages/tenant/SettingsPage.tsx | 149 +++++++++++++-------------- 1 file changed, 73 insertions(+), 76 deletions(-) diff --git a/ui/src/pages/tenant/SettingsPage.tsx b/ui/src/pages/tenant/SettingsPage.tsx index 2290ed0..dfdb102 100644 --- a/ui/src/pages/tenant/SettingsPage.tsx +++ b/ui/src/pages/tenant/SettingsPage.tsx @@ -15,7 +15,6 @@ import { useResetServerAdminPassword, useTenantAuthSettings, useUpdateTenantAuthSettings, } from '../../api/tenant-hooks'; -import { MfaSection } from '../../components/account/MfaSection'; import { PasskeySection } from '../../components/account/PasskeySection'; import { useScopes } from '../../auth/useScopes'; import styles from '../../styles/platform.module.css'; @@ -140,85 +139,83 @@ export function SettingsPage() {

Settings

- {/* Card 1: Tenant Details */} - -
-
- Name - {data.name} -
-
- Slug - {data.slug} -
-
- Status - -
-
- Server Endpoint - {data.serverEndpoint ?? '—'} -
-
- Created - {new Date(data.createdAt).toLocaleDateString()} -
-
- -
-

- Reset the built-in admin password for your server dashboard (local login at /login?local). -

-
{ - e.preventDefault(); - if (serverAdminPw.length < 8) { - toast({ title: 'Password must be at least 8 characters', variant: 'error' }); - return; - } - try { - await resetServerAdmin.mutateAsync(serverAdminPw); - toast({ title: 'Server admin password reset successfully', variant: 'success' }); - setServerAdminPw(''); - } catch (err) { - toast({ title: 'Failed to reset server admin password', description: errorMessage(err), variant: 'error' }); - } - }} - style={{ display: 'flex', gap: 8, alignItems: 'flex-end' }} - > -
- - setServerAdminPw(e.target.value)} - placeholder="Enter new admin password" - required - minLength={8} - /> - +
+ {/* Card 1: Tenant Details */} +
+ +
+
+ Name + {data.name}
- - -
-
+
+ Slug + {data.slug} +
+
+ Status + +
+
+ Server Endpoint + {data.serverEndpoint ?? '—'} +
+
+ Created + {new Date(data.createdAt).toLocaleDateString()} +
+
- {/* Card 2: Multi-Factor Authentication (MFA + Passkeys combined) */} - - -
-

- Passkeys -

- +
+

+ Reset the built-in admin password for your server dashboard (local login at /login?local). +

+
{ + e.preventDefault(); + if (serverAdminPw.length < 8) { + toast({ title: 'Password must be at least 8 characters', variant: 'error' }); + return; + } + try { + await resetServerAdmin.mutateAsync(serverAdminPw); + toast({ title: 'Server admin password reset successfully', variant: 'success' }); + setServerAdminPw(''); + } catch (err) { + toast({ title: 'Failed to reset server admin password', description: errorMessage(err), variant: 'error' }); + } + }} + style={{ display: 'flex', gap: 8, alignItems: 'flex-end' }} + > +
+ + setServerAdminPw(e.target.value)} + placeholder="Enter new admin password" + required + minLength={8} + /> + +
+ +
+
+
-
- {/* Card 3: Authentication Policy (org-wide settings) */} - + {/* Card 2: Authentication Policy (org-wide settings) */} +
+ +
+
+ + {/* Card 3: Passkeys (full width) */} +
); }