From 1a7f0291b2e20c1f96f06a5827d86d8e28d4a308 Mon Sep 17 00:00:00 2001 From: Haileyesus <118998054+blackmammoth@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:45:14 +0300 Subject: [PATCH] style(auth): modernize login, setup, and onboarding screens --- src/components/auth/view/AuthErrorAlert.tsx | 7 ++- src/components/auth/view/AuthInputField.tsx | 58 ++++++++++++++----- .../auth/view/AuthLoadingScreen.tsx | 26 ++++----- src/components/auth/view/AuthScreenLayout.tsx | 34 ++++++----- src/components/auth/view/LoginForm.tsx | 14 ++++- src/components/auth/view/SetupForm.tsx | 27 +++++++-- src/components/onboarding/view/Onboarding.tsx | 24 +++++--- .../subcomponents/AgentConnectionCard.tsx | 18 +++--- .../subcomponents/AgentConnectionsStep.tsx | 14 ++--- .../subcomponents/GitConfigurationStep.tsx | 16 ++--- .../subcomponents/OnboardingStepProgress.tsx | 16 ++--- 11 files changed, 163 insertions(+), 91 deletions(-) diff --git a/src/components/auth/view/AuthErrorAlert.tsx b/src/components/auth/view/AuthErrorAlert.tsx index 96a6be41..0325759f 100644 --- a/src/components/auth/view/AuthErrorAlert.tsx +++ b/src/components/auth/view/AuthErrorAlert.tsx @@ -1,3 +1,5 @@ +import { AlertCircle } from 'lucide-react'; + type AuthErrorAlertProps = { errorMessage: string; }; @@ -8,8 +10,9 @@ export default function AuthErrorAlert({ errorMessage }: AuthErrorAlertProps) { } return ( -
-

{errorMessage}

+
+ +

{errorMessage}

); } diff --git a/src/components/auth/view/AuthInputField.tsx b/src/components/auth/view/AuthInputField.tsx index b382a059..a6fa64be 100644 --- a/src/components/auth/view/AuthInputField.tsx +++ b/src/components/auth/view/AuthInputField.tsx @@ -1,3 +1,7 @@ +import { useState } from 'react'; +import type { ComponentType } from 'react'; +import { Eye, EyeOff } from 'lucide-react'; + type AuthInputFieldProps = { id: string; label: string; @@ -8,13 +12,14 @@ type AuthInputFieldProps = { type?: 'text' | 'password' | 'email'; name?: string; autoComplete?: string; + icon?: ComponentType<{ className?: string }>; }; /** * A labelled input field for authentication forms. * Renders a `