From 4cde5ccae39d65f8133f7658555bb8255fe6a254 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Mon, 2 Mar 2026 23:21:35 +0000 Subject: [PATCH] feat: refine passkey login and editable dashboard grid --- components/auth/login-form.tsx | 19 +------------------ .../dashboard/dashboard-grid-editable.tsx | 4 ++-- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index 4a2ff0f..9516012 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -41,23 +41,6 @@ export function LoginForm({ className, ...props }: DivProps) { if (typeof PublicKeyCredential === "undefined") return; setPasskeySupported(true); - - if ( - typeof PublicKeyCredential.isConditionalMediationAvailable === "function" - ) { - PublicKeyCredential.isConditionalMediationAvailable() - .then((available) => { - if (available) { - // Conditional UI é opcional: habilita autofill quando disponível. - authClient.signIn.passkey({ - mediation: "conditional", - }); - } - }) - .catch(() => { - // Ignora falhas de detecção e mantém login manual por passkey. - }); - } }, []); async function handleSubmit(e: FormEvent) { @@ -237,7 +220,7 @@ export function LoginForm({ className, ...props }: DivProps) { ) : ( )} - Entrar com Passkey + Entrar com passkey )} diff --git a/components/dashboard/dashboard-grid-editable.tsx b/components/dashboard/dashboard-grid-editable.tsx index d2cb153..f3158ba 100644 --- a/components/dashboard/dashboard-grid-editable.tsx +++ b/components/dashboard/dashboard-grid-editable.tsx @@ -201,9 +201,9 @@ export function DashboardGridEditable({ {/* Toolbar */}
{!isEditing ? ( -
+
- Ação rápida + Ações rápidas