From ce29d036ad702223ff8d57b1fb84b7ca00a14b8e Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Sun, 21 Sep 2025 18:54:53 -0500 Subject: [PATCH 1/7] Replace complex Nostr login/signup modals with simpler Soapbox/Ditto-inspired design - Created SimpleLoginDialog and SimpleSignupDialog with clean, minimal design - Simplified step-based flow similar to Soapbox/Ditto implementation - Reduced visual complexity while maintaining all functionality - Updated LoginArea and NostrSettings to use new simple modals - Updated tests to reference new components - All tests passing --- src/components/auth/LoginArea.test.tsx | 4 +- src/components/auth/LoginArea.tsx | 8 +- src/components/auth/SimpleLoginDialog.tsx | 339 +++++++++++++++++++++ src/components/auth/SimpleSignupDialog.tsx | 315 +++++++++++++++++++ src/pages/NostrSettings.tsx | 8 +- 5 files changed, 664 insertions(+), 10 deletions(-) create mode 100644 src/components/auth/SimpleLoginDialog.tsx create mode 100644 src/components/auth/SimpleSignupDialog.tsx diff --git a/src/components/auth/LoginArea.test.tsx b/src/components/auth/LoginArea.test.tsx index 62df7a0e..91e3a537 100644 --- a/src/components/auth/LoginArea.test.tsx +++ b/src/components/auth/LoginArea.test.tsx @@ -35,12 +35,12 @@ vi.mock('@/components/RelaySelector', () => ({ ) })); -vi.mock('./LoginDialog', () => ({ +vi.mock('./SimpleLoginDialog', () => ({ default: ({ isOpen }: { isOpen: boolean; onClose: () => void }) => isOpen ?
Login Dialog
: null })); -vi.mock('./SignupDialog', () => ({ +vi.mock('./SimpleSignupDialog', () => ({ default: ({ isOpen }: { isOpen: boolean; onClose: () => void }) => isOpen ?
Signup Dialog
: null })); diff --git a/src/components/auth/LoginArea.tsx b/src/components/auth/LoginArea.tsx index 67a10ff0..b7aacb53 100644 --- a/src/components/auth/LoginArea.tsx +++ b/src/components/auth/LoginArea.tsx @@ -12,8 +12,8 @@ import { DropdownMenuTrigger, } from '@/components/ui/dropdown-menu.tsx'; import { Avatar, AvatarFallback } from '@/components/ui/avatar.tsx'; -import LoginDialog from './LoginDialog'; -import SignupDialog from './SignupDialog'; +import SimpleLoginDialog from './SimpleLoginDialog'; +import SimpleSignupDialog from './SimpleSignupDialog'; import { useLoggedInAccounts } from '@/hooks/useLoggedInAccounts'; import { AccountSwitcher } from './AccountSwitcher'; import { cn } from '@/lib/utils'; @@ -88,14 +88,14 @@ export function LoginArea({ className }: LoginAreaProps) { )} - setLoginDialogOpen(false)} onLogin={handleLogin} onSignup={() => setSignupDialogOpen(true)} /> - setSignupDialogOpen(false)} /> diff --git a/src/components/auth/SimpleLoginDialog.tsx b/src/components/auth/SimpleLoginDialog.tsx new file mode 100644 index 00000000..bd5bc00a --- /dev/null +++ b/src/components/auth/SimpleLoginDialog.tsx @@ -0,0 +1,339 @@ +import React, { useState, useEffect } from 'react'; +import { Shield, Key, Cloud, AlertTriangle } from 'lucide-react'; +import { Button } from '@/components/ui/button'; +import { Input } from '@/components/ui/input'; +import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; +import { Alert, AlertDescription } from '@/components/ui/alert'; +import { useLoginActions } from '@/hooks/useLoginActions'; +import { cn } from '@/lib/utils'; + +type Step = 'extension' | 'key-add'; + +interface SimpleLoginDialogProps { + isOpen: boolean; + onClose: () => void; + onLogin: () => void; + onSignup?: () => void; +} + +const validateNsec = (nsec: string) => { + return /^nsec1[a-zA-Z0-9]{58}$/.test(nsec); +}; + +const validateBunkerUri = (uri: string) => { + return uri.startsWith('bunker://'); +}; + +const SimpleLoginDialog: React.FC = ({ + isOpen, + onClose, + onLogin, + onSignup +}) => { + const [step, setStep] = useState('extension'); + const [isLoading, setIsLoading] = useState(false); + const [nsec, setNsec] = useState(''); + const [bunkerUri, setBunkerUri] = useState(''); + const [activeTab, setActiveTab] = useState<'nsec' | 'bunker'>('nsec'); + const [errors, setErrors] = useState<{ + nsec?: string; + bunker?: string; + extension?: string; + }>({}); + + const login = useLoginActions(); + + // Reset state when dialog opens/closes + useEffect(() => { + if (isOpen) { + setStep(window.nostr ? 'extension' : 'key-add'); + setIsLoading(false); + setNsec(''); + setBunkerUri(''); + setActiveTab('nsec'); + setErrors({}); + } + }, [isOpen]); + + const handleExtensionLogin = async () => { + setIsLoading(true); + setErrors(prev => ({ ...prev, extension: undefined })); + + try { + if (!('nostr' in window)) { + throw new Error('Nostr extension not found. Please install a NIP-07 extension.'); + } + await login.extension(); + onLogin(); + onClose(); + } catch (e: unknown) { + const error = e as Error; + setErrors(prev => ({ + ...prev, + extension: error instanceof Error ? error.message : 'Extension login failed' + })); + } finally { + setIsLoading(false); + } + }; + + const handleKeyLogin = () => { + if (!nsec.trim()) { + setErrors(prev => ({ ...prev, nsec: 'Please enter your secret key' })); + return; + } + + if (!validateNsec(nsec)) { + setErrors(prev => ({ ...prev, nsec: 'Invalid secret key format. Must be a valid nsec starting with nsec1.' })); + return; + } + + setIsLoading(true); + setErrors({}); + + setTimeout(() => { + try { + login.nsec(nsec); + onLogin(); + onClose(); + } catch { + setErrors({ nsec: "Failed to login with this key. Please check that it's correct." }); + setIsLoading(false); + } + }, 50); + }; + + const handleBunkerLogin = async () => { + if (!bunkerUri.trim()) { + setErrors(prev => ({ ...prev, bunker: 'Please enter a bunker URI' })); + return; + } + + if (!validateBunkerUri(bunkerUri)) { + setErrors(prev => ({ ...prev, bunker: 'Invalid bunker URI format. Must start with bunker://' })); + return; + } + + setIsLoading(true); + setErrors(prev => ({ ...prev, bunker: undefined })); + + try { + await login.bunker(bunkerUri); + onLogin(); + onClose(); + setBunkerUri(''); + } catch { + setErrors(prev => ({ + ...prev, + bunker: 'Failed to connect to bunker. Please check the URI.' + })); + } finally { + setIsLoading(false); + } + }; + + const handleSignupClick = () => { + onClose(); + if (onSignup) { + onSignup(); + } + }; + + if (step === 'extension') { + return ( + + + + Log in + + +
+
+

Welcome to Shakespeare

+
+ +
+ +
+ + {errors.extension && ( + + + {errors.extension} + + )} + +
+ + +
+
+
+
+
+ or +
+
+ + + +
+ New on Shakespeare? + +
+
+
+
+
+ ); + } + + return ( + + + + Import Key + + +
+
+ +
+ +
+ {/* Tab selector */} +
+ + +
+ + {activeTab === 'nsec' && ( +
+
+ { + setNsec(e.target.value); + if (errors.nsec) setErrors(prev => ({ ...prev, nsec: undefined })); + }} + placeholder="nsec1..." + className={errors.nsec ? 'border-red-500' : ''} + /> + {errors.nsec && ( +

{errors.nsec}

+ )} +
+ + +
+ )} + + {activeTab === 'bunker' && ( +
+
+ { + setBunkerUri(e.target.value); + if (errors.bunker) setErrors(prev => ({ ...prev, bunker: undefined })); + }} + placeholder="bunker://" + className={errors.bunker ? 'border-red-500' : ''} + /> + {errors.bunker && ( +

{errors.bunker}

+ )} +
+ + +
+ )} + +
+
+
+
+
+ or +
+
+ + {/* Extension indicator */} +
+

+ {window.nostr ? ( + + ) : ( + 'Browser extension not found.' + )} +

+
+
+
+
+
+ ); +}; + +export default SimpleLoginDialog; \ No newline at end of file diff --git a/src/components/auth/SimpleSignupDialog.tsx b/src/components/auth/SimpleSignupDialog.tsx new file mode 100644 index 00000000..78d48f60 --- /dev/null +++ b/src/components/auth/SimpleSignupDialog.tsx @@ -0,0 +1,315 @@ +import React, { useState, useEffect, useMemo } from 'react'; +import { Key, Download, UserPlus, Shield } from 'lucide-react'; +import { Button } from '@/components/ui/button'; +import { Input } from '@/components/ui/input'; +import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; +import { toast } from '@/hooks/useToast'; +import { useLoginActions } from '@/hooks/useLoginActions'; +import { generateSecretKey, nip19 } from 'nostr-tools'; +import { cn } from '@/lib/utils'; + +type Step = 'extension' | 'key' | 'keygen'; + +interface SimpleSignupDialogProps { + isOpen: boolean; + onClose: () => void; + onComplete?: () => void; +} + +const SimpleSignupDialog: React.FC = ({ + isOpen, + onClose, + onComplete +}) => { + const [step, setStep] = useState('key'); + const [isLoading, setIsLoading] = useState(false); + const [downloaded, setDownloaded] = useState(false); + + const login = useLoginActions(); + + // Generate key once and keep it stable + const secretKey = useMemo(() => generateSecretKey(), []); + const nsec = useMemo(() => nip19.nsecEncode(secretKey), [secretKey]); + + // Reset state when dialog opens/closes + useEffect(() => { + if (isOpen) { + setStep(window.nostr ? 'extension' : 'key'); + setIsLoading(false); + setDownloaded(false); + } + }, [isOpen]); + + const handleExtensionSignup = async () => { + setIsLoading(true); + + try { + if (!('nostr' in window)) { + throw new Error('Nostr extension not found. Please install a NIP-07 extension.'); + } + await login.extension(); + onClose(); + if (onComplete) { + setTimeout(() => { + onComplete(); + }, 600); + } + } catch (e: unknown) { + const error = e as Error; + toast({ + title: 'Extension signup failed', + description: error instanceof Error ? error.message : 'Extension signup failed', + variant: 'destructive', + }); + } finally { + setIsLoading(false); + } + }; + + const handleDownload = () => { + try { + const blob = new Blob([nsec], { type: 'text/plain; charset=utf-8' }); + const url = globalThis.URL.createObjectURL(blob); + const a = document.createElement('a'); + a.href = url; + a.download = 'secret-key.txt'; + a.style.display = 'none'; + document.body.appendChild(a); + a.click(); + globalThis.URL.revokeObjectURL(url); + document.body.removeChild(a); + setDownloaded(true); + toast({ + title: 'Secret Key Saved!', + description: 'Your key has been safely stored.', + }); + } catch { + toast({ + title: 'Download failed', + description: 'Could not download the key file. Please copy it manually.', + variant: 'destructive', + }); + } + }; + + const handleNext = async () => { + setIsLoading(true); + try { + login.nsec(nsec); + + // Mark signup completion time for fallback welcome modal + localStorage.setItem('signup_completed', Date.now().toString()); + + onClose(); + if (onComplete) { + setTimeout(() => { + onComplete(); + }, 600); + } + } catch { + toast({ + title: 'Login Failed', + description: 'Failed to login with the generated key. Please try again.', + variant: 'destructive', + }); + } finally { + setIsLoading(false); + } + }; + + const handleLoginClick = () => { + onClose(); + // This would typically open the login modal + // Since we don't have direct access to the login modal state here, + // we'll rely on the parent component to handle this + }; + + if (step === 'extension') { + return ( + + + + Sign up + + +
+
+

Welcome to Shakespeare

+
+ +
+ +
+ +
+ + +
+
+
+
+
+ or +
+
+ + + +
+ New on Shakespeare? + +
+
+
+
+
+ ); + } + + if (step === 'key') { + return ( + + + + Sign up + + +
+
+

You need a key to continue

+
+ +
+ +
+ +
+ + + +
+ +
+
+
+
+
+ or +
+
+ + {/* Extension indicator */} +
+

+ {window.nostr ? ( + + ) : ( + 'Browser extension not found.' + )} +

+
+
+
+
+ ); + } + + return ( + + + + Your new key + + +
+
+ +
+ +
+
+ + +
+ +
+

+ Back up your secret key in a secure place. If lost, your account cannot be recovered. + Never share your secret key with anyone. +

+
+ +
+ + + +
+
+
+
+
+ ); +}; + +export default SimpleSignupDialog; \ No newline at end of file diff --git a/src/pages/NostrSettings.tsx b/src/pages/NostrSettings.tsx index 26b5aaef..9996b9c5 100644 --- a/src/pages/NostrSettings.tsx +++ b/src/pages/NostrSettings.tsx @@ -6,8 +6,8 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { Skeleton } from '@/components/ui/skeleton'; import { RelaySelector } from '@/components/RelaySelector'; -import LoginDialog from '@/components/auth/LoginDialog'; -import SignupDialog from '@/components/auth/SignupDialog'; +import SimpleLoginDialog from '@/components/auth/SimpleLoginDialog'; +import SimpleSignupDialog from '@/components/auth/SimpleSignupDialog'; import { useIsMobile } from '@/hooks/useIsMobile'; import { useNavigate } from 'react-router-dom'; import { useLoggedInAccounts, type Account } from '@/hooks/useLoggedInAccounts'; @@ -207,7 +207,7 @@ export function NostrSettings() { {/* Login Dialog */} - setShowLoginDialog(false)} onLogin={handleLoginSuccess} @@ -218,7 +218,7 @@ export function NostrSettings() { /> {/* Signup Dialog */} - setShowSignupDialog(false)} onComplete={handleSignupComplete} From d5c5132662cabfd4fa2f3d6c51c1fcdb64d0bca6 Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Sun, 21 Sep 2025 19:00:39 -0500 Subject: [PATCH 2/7] Prioritize account creation and key generation as default user experience - Make signup the primary action in dropdown menu (moved above login) - Start with key generation as default signup flow instead of extension - Only show extension options when browser extension is detected - Remove complex step navigation - direct to key creation for new users - Update copy to be more welcoming for new users vs returning users - Clean up unused imports and simplify component structure - All tests passing --- src/components/auth/LoginArea.tsx | 14 +- src/components/auth/SimpleLoginDialog.tsx | 132 +++++------------- src/components/auth/SimpleSignupDialog.tsx | 154 +++++++-------------- 3 files changed, 93 insertions(+), 207 deletions(-) diff --git a/src/components/auth/LoginArea.tsx b/src/components/auth/LoginArea.tsx index b7aacb53..1bd7c128 100644 --- a/src/components/auth/LoginArea.tsx +++ b/src/components/auth/LoginArea.tsx @@ -70,13 +70,6 @@ export function LoginArea({ className }: LoginAreaProps) { {t('help')} - setLoginDialogOpen(true)} - className='flex items-center gap-2 cursor-pointer p-2 rounded-md' - > - - {t('logIn')} - setSignupDialogOpen(true)} className='flex items-center gap-2 cursor-pointer p-2 rounded-md' @@ -84,6 +77,13 @@ export function LoginArea({ className }: LoginAreaProps) { {t('signUp')} + setLoginDialogOpen(true)} + className='flex items-center gap-2 cursor-pointer p-2 rounded-md' + > + + {t('logIn')} + )} diff --git a/src/components/auth/SimpleLoginDialog.tsx b/src/components/auth/SimpleLoginDialog.tsx index bd5bc00a..9b272307 100644 --- a/src/components/auth/SimpleLoginDialog.tsx +++ b/src/components/auth/SimpleLoginDialog.tsx @@ -1,13 +1,13 @@ import React, { useState, useEffect } from 'react'; -import { Shield, Key, Cloud, AlertTriangle } from 'lucide-react'; +import { Key, Cloud } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; -import { Alert, AlertDescription } from '@/components/ui/alert'; +// Alert components removed as they're not used in the simplified design import { useLoginActions } from '@/hooks/useLoginActions'; import { cn } from '@/lib/utils'; -type Step = 'extension' | 'key-add'; +// Only using key-add step now interface SimpleLoginDialogProps { isOpen: boolean; @@ -24,13 +24,13 @@ const validateBunkerUri = (uri: string) => { return uri.startsWith('bunker://'); }; -const SimpleLoginDialog: React.FC = ({ - isOpen, - onClose, - onLogin, - onSignup +const SimpleLoginDialog: React.FC = ({ + isOpen, + onClose, + onLogin, + onSignup }) => { - const [step, setStep] = useState('extension'); + // Removed step state - we only have one step now const [isLoading, setIsLoading] = useState(false); const [nsec, setNsec] = useState(''); const [bunkerUri, setBunkerUri] = useState(''); @@ -40,13 +40,12 @@ const SimpleLoginDialog: React.FC = ({ bunker?: string; extension?: string; }>({}); - + const login = useLoginActions(); // Reset state when dialog opens/closes useEffect(() => { if (isOpen) { - setStep(window.nostr ? 'extension' : 'key-add'); setIsLoading(false); setNsec(''); setBunkerUri(''); @@ -139,82 +138,19 @@ const SimpleLoginDialog: React.FC = ({ } }; - if (step === 'extension') { - return ( - - - - Log in - - -
-
-

Welcome to Shakespeare

-
- -
- -
- - {errors.extension && ( - - - {errors.extension} - - )} - -
- - -
-
-
-
-
- or -
-
- - - -
- New on Shakespeare? - -
-
-
-
-
- ); - } - return ( - Import Key + Log in - +
+
+

Welcome back to Shakespeare

+

Sign in to your existing account

+
+
@@ -226,8 +162,8 @@ const SimpleLoginDialog: React.FC = ({ onClick={() => setActiveTab('nsec')} className={cn( "flex-1 px-3 py-2 text-sm font-medium rounded-md transition-colors", - activeTab === 'nsec' - ? "bg-background text-foreground shadow-sm" + activeTab === 'nsec' + ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground" )} > @@ -237,8 +173,8 @@ const SimpleLoginDialog: React.FC = ({ onClick={() => setActiveTab('bunker')} className={cn( "flex-1 px-3 py-2 text-sm font-medium rounded-md transition-colors", - activeTab === 'bunker' - ? "bg-background text-foreground shadow-sm" + activeTab === 'bunker' + ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground" )} > @@ -313,21 +249,29 @@ const SimpleLoginDialog: React.FC = ({
- {/* Extension indicator */} -
-

- {window.nostr ? ( - - ) : ( - 'Browser extension not found.' - )} -

+

+
+ )} + +
+ New to Shakespeare? +
diff --git a/src/components/auth/SimpleSignupDialog.tsx b/src/components/auth/SimpleSignupDialog.tsx index 78d48f60..12f792be 100644 --- a/src/components/auth/SimpleSignupDialog.tsx +++ b/src/components/auth/SimpleSignupDialog.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect, useMemo } from 'react'; -import { Key, Download, UserPlus, Shield } from 'lucide-react'; +import { Key, Download, UserPlus } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; @@ -8,7 +8,7 @@ import { useLoginActions } from '@/hooks/useLoginActions'; import { generateSecretKey, nip19 } from 'nostr-tools'; import { cn } from '@/lib/utils'; -type Step = 'extension' | 'key' | 'keygen'; +type Step = 'key' | 'keygen'; interface SimpleSignupDialogProps { isOpen: boolean; @@ -16,15 +16,15 @@ interface SimpleSignupDialogProps { onComplete?: () => void; } -const SimpleSignupDialog: React.FC = ({ - isOpen, - onClose, - onComplete +const SimpleSignupDialog: React.FC = ({ + isOpen, + onClose, + onComplete }) => { const [step, setStep] = useState('key'); const [isLoading, setIsLoading] = useState(false); const [downloaded, setDownloaded] = useState(false); - + const login = useLoginActions(); // Generate key once and keep it stable @@ -34,7 +34,8 @@ const SimpleSignupDialog: React.FC = ({ // Reset state when dialog opens/closes useEffect(() => { if (isOpen) { - setStep(window.nostr ? 'extension' : 'key'); + // Always start with key generation as the default experience + setStep('key'); setIsLoading(false); setDownloaded(false); } @@ -96,10 +97,10 @@ const SimpleSignupDialog: React.FC = ({ setIsLoading(true); try { login.nsec(nsec); - + // Mark signup completion time for fallback welcome modal localStorage.setItem('signup_completed', Date.now().toString()); - + onClose(); if (onComplete) { setTimeout(() => { @@ -124,66 +125,6 @@ const SimpleSignupDialog: React.FC = ({ // we'll rely on the parent component to handle this }; - if (step === 'extension') { - return ( - - - - Sign up - - -
-
-

Welcome to Shakespeare

-
- -
- -
- -
- - -
-
-
-
-
- or -
-
- - - -
- New on Shakespeare? - -
-
-
-
-
- ); - } - if (step === 'key') { return ( @@ -191,10 +132,11 @@ const SimpleSignupDialog: React.FC = ({ Sign up - +
-

You need a key to continue

+

Welcome to Shakespeare

+

Create your account to get started

@@ -202,49 +144,49 @@ const SimpleSignupDialog: React.FC = ({
- -
-
-
-
-
-
- or -
-
+ {/* Extension indicator - only show if extension is detected */} + {window.nostr && ( + <> +
+
+
+
+
+ or +
+
- {/* Extension indicator */} -
-

- {window.nostr ? ( - - ) : ( - 'Browser extension not found.' - )} -

-
+
+

+ +

+
+ + )}
@@ -257,7 +199,7 @@ const SimpleSignupDialog: React.FC = ({ Your new key - +
@@ -276,15 +218,15 @@ const SimpleSignupDialog: React.FC = ({

- Back up your secret key in a secure place. If lost, your account cannot be recovered. + Back up your secret key in a secure place. If lost, your account cannot be recovered. Never share your secret key with anyone.

-
); diff --git a/src/components/auth/SimpleSignupDialog.tsx b/src/components/auth/SimpleSignupDialog.tsx index 12f792be..916c6fff 100644 --- a/src/components/auth/SimpleSignupDialog.tsx +++ b/src/components/auth/SimpleSignupDialog.tsx @@ -14,12 +14,14 @@ interface SimpleSignupDialogProps { isOpen: boolean; onClose: () => void; onComplete?: () => void; + onLogin?: () => void; } const SimpleSignupDialog: React.FC = ({ isOpen, onClose, - onComplete + onComplete, + onLogin }) => { const [step, setStep] = useState('key'); const [isLoading, setIsLoading] = useState(false); @@ -120,9 +122,9 @@ const SimpleSignupDialog: React.FC = ({ const handleLoginClick = () => { onClose(); - // This would typically open the login modal - // Since we don't have direct access to the login modal state here, - // we'll rely on the parent component to handle this + if (onLogin) { + onLogin(); + } }; if (step === 'key') { diff --git a/src/pages/NostrSettings.tsx b/src/pages/NostrSettings.tsx index 9996b9c5..cf8112a9 100644 --- a/src/pages/NostrSettings.tsx +++ b/src/pages/NostrSettings.tsx @@ -222,6 +222,10 @@ export function NostrSettings() { isOpen={showSignupDialog} onClose={() => setShowSignupDialog(false)} onComplete={handleSignupComplete} + onLogin={() => { + setShowSignupDialog(false); + setShowLoginDialog(true); + }} />
); From 7d0c0b6ba24990d19291d8b5ff8997edf92aed33 Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Sun, 21 Sep 2025 19:11:22 -0500 Subject: [PATCH 4/7] Replace key icons with emoji key in circular background MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace Lucide Key icons with 🔑 emoji in both login and signup dialogs - Add circular background with primary color tint (bg-primary/10) - Maintain consistent sizing (w-20 h-20 circle, text-4xl emoji) - Remove unused Key import from both components - Creates friendlier, more approachable visual design - All tests passing --- src/components/auth/SimpleLoginDialog.tsx | 6 ++++-- src/components/auth/SimpleSignupDialog.tsx | 10 +++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/auth/SimpleLoginDialog.tsx b/src/components/auth/SimpleLoginDialog.tsx index 9b272307..73c6476e 100644 --- a/src/components/auth/SimpleLoginDialog.tsx +++ b/src/components/auth/SimpleLoginDialog.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { Key, Cloud } from 'lucide-react'; +import { Cloud } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; @@ -152,7 +152,9 @@ const SimpleLoginDialog: React.FC = ({
- +
+ 🔑 +
diff --git a/src/components/auth/SimpleSignupDialog.tsx b/src/components/auth/SimpleSignupDialog.tsx index 916c6fff..aaf31af8 100644 --- a/src/components/auth/SimpleSignupDialog.tsx +++ b/src/components/auth/SimpleSignupDialog.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect, useMemo } from 'react'; -import { Key, Download, UserPlus } from 'lucide-react'; +import { Download, UserPlus } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; @@ -142,7 +142,9 @@ const SimpleSignupDialog: React.FC = ({
- +
+ 🔑 +
@@ -204,7 +206,9 @@ const SimpleSignupDialog: React.FC = ({
- +
+ 🔑 +
From 691077d754949faa3d1a62f68a8a8600195fce1e Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Sun, 21 Sep 2025 19:13:09 -0500 Subject: [PATCH 5/7] Increase emoji key size from text-4xl to text-8xl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Make the 🔑 emoji 2x bigger as requested - Applied to all instances in both SimpleLoginDialog and SimpleSignupDialog - Creates more prominent visual focal point in the authentication flows - All tests passing --- src/components/auth/SimpleLoginDialog.tsx | 2 +- src/components/auth/SimpleSignupDialog.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/auth/SimpleLoginDialog.tsx b/src/components/auth/SimpleLoginDialog.tsx index 73c6476e..6366e0af 100644 --- a/src/components/auth/SimpleLoginDialog.tsx +++ b/src/components/auth/SimpleLoginDialog.tsx @@ -153,7 +153,7 @@ const SimpleLoginDialog: React.FC = ({
- 🔑 + 🔑
diff --git a/src/components/auth/SimpleSignupDialog.tsx b/src/components/auth/SimpleSignupDialog.tsx index aaf31af8..a3f3653f 100644 --- a/src/components/auth/SimpleSignupDialog.tsx +++ b/src/components/auth/SimpleSignupDialog.tsx @@ -143,7 +143,7 @@ const SimpleSignupDialog: React.FC = ({
- 🔑 + 🔑
@@ -207,7 +207,7 @@ const SimpleSignupDialog: React.FC = ({
- 🔑 + 🔑
From b28f7006005cff7108594a6a14dfbcc362422dfd Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Sun, 21 Sep 2025 19:14:16 -0500 Subject: [PATCH 6/7] Increase circle size to match larger emoji key - Change circle from w-20 h-20 to w-32 h-32 to better accommodate text-8xl emoji - Now the circle fills the entire container space for better visual balance - Applied consistently across all instances in both login and signup dialogs - Creates better proportional relationship between emoji and background circle - All tests passing --- src/components/auth/SimpleLoginDialog.tsx | 2 +- src/components/auth/SimpleSignupDialog.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/auth/SimpleLoginDialog.tsx b/src/components/auth/SimpleLoginDialog.tsx index 6366e0af..df368503 100644 --- a/src/components/auth/SimpleLoginDialog.tsx +++ b/src/components/auth/SimpleLoginDialog.tsx @@ -152,7 +152,7 @@ const SimpleLoginDialog: React.FC = ({
-
+
🔑
diff --git a/src/components/auth/SimpleSignupDialog.tsx b/src/components/auth/SimpleSignupDialog.tsx index a3f3653f..3a2366eb 100644 --- a/src/components/auth/SimpleSignupDialog.tsx +++ b/src/components/auth/SimpleSignupDialog.tsx @@ -142,7 +142,7 @@ const SimpleSignupDialog: React.FC = ({
-
+
🔑
@@ -206,7 +206,7 @@ const SimpleSignupDialog: React.FC = ({
-
+
🔑
From 61254d2ee3eeb6544aacb75d48557bab4625ec4e Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Sun, 21 Sep 2025 19:15:28 -0500 Subject: [PATCH 7/7] Increase circle size to w-40 h-40 for better emoji proportion - Change both container and circle from w-32 h-32 to w-40 h-40 (10rem / 160px) - Provides more generous spacing around the text-8xl emoji key - Creates better visual balance and prevents the emoji from appearing cramped - Applied consistently across all instances in both login and signup dialogs - All tests passing --- src/components/auth/SimpleLoginDialog.tsx | 4 ++-- src/components/auth/SimpleSignupDialog.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/auth/SimpleLoginDialog.tsx b/src/components/auth/SimpleLoginDialog.tsx index df368503..b43136a7 100644 --- a/src/components/auth/SimpleLoginDialog.tsx +++ b/src/components/auth/SimpleLoginDialog.tsx @@ -151,8 +151,8 @@ const SimpleLoginDialog: React.FC = ({

Sign in to your existing account

-
-
+
+
🔑
diff --git a/src/components/auth/SimpleSignupDialog.tsx b/src/components/auth/SimpleSignupDialog.tsx index 3a2366eb..57170dc5 100644 --- a/src/components/auth/SimpleSignupDialog.tsx +++ b/src/components/auth/SimpleSignupDialog.tsx @@ -141,8 +141,8 @@ const SimpleSignupDialog: React.FC = ({

Create your account to get started

-
-
+
+
🔑
@@ -205,8 +205,8 @@ const SimpleSignupDialog: React.FC = ({
-
-
+
+
🔑