From 06000c4e2ad224e09b1f6fa3e35f328396d60bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LAGACHE?= Date: Fri, 19 Jun 2026 14:03:49 +0200 Subject: [PATCH] style(onboarding): improve empty auth state UI with lucide icon and better layout --- src/features/onboarding/steps/step-login.tsx | 23 +++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/features/onboarding/steps/step-login.tsx b/src/features/onboarding/steps/step-login.tsx index 8c7b9163..5b69ac51 100644 --- a/src/features/onboarding/steps/step-login.tsx +++ b/src/features/onboarding/steps/step-login.tsx @@ -6,7 +6,7 @@ import { useOnboarding } from "@onboardjs/react"; import { useMutation } from "@tanstack/react-query"; import { z } from "zod"; import { toast } from "sonner"; -import { Globe, Mail, KeyRound } from "lucide-react"; +import { Globe, Mail, KeyRound, ShieldAlert } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { PasswordInput } from "@/components/ui/password-input"; @@ -83,16 +83,23 @@ export const StepLogin = () => { // No auth methods configured if (!hasAnyAuthMethod) { return ( -
+
+
+ +
-

No authentication configured

-

- Enable at least one authentication method in your environment variables to continue. +

Configuration needed

+

+ Please enable an authentication method in your environment variables to continue.

-
- Set AUTH_EMAIL_PASSWORD_ENABLED=true,{" "} - AUTH_PASSKEY_ENABLED=true, or configure an SSO provider. +
+

Set at least one of these:

+
    +
  • AUTH_EMAIL_PASSWORD_ENABLED=true
  • +
  • AUTH_PASSKEY_ENABLED=true
  • +
  • • Or configure an SSO provider
  • +
);