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
This commit is contained in:
Mary Kate Fain committed 2025-09-21 18:54:53 -05:00
1 parent d3e257f759
commit ce29d036ad
5 files changed
+664 -10

No files matched your search

+4 -4
View File
@@ -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() {
</div>
{/* Login Dialog */}
<LoginDialog
<SimpleLoginDialog
isOpen={showLoginDialog}
onClose={() => setShowLoginDialog(false)}
onLogin={handleLoginSuccess}
@@ -218,7 +218,7 @@ export function NostrSettings() {
/>
{/* Signup Dialog */}
<SignupDialog
<SimpleSignupDialog
isOpen={showSignupDialog}
onClose={() => setShowSignupDialog(false)}
onComplete={handleSignupComplete}