diff --git a/src/App.tsx b/src/App.tsx index b3944f7d..45c68be2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -38,7 +38,7 @@ const queryClient = new QueryClient({ }); const defaultConfig: AppConfig = { - theme: "light", + theme: "system", relayUrl: "wss://relay.primal.net", deployServer: "shakespeare.wtf", }; diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index f58455e0..cc9552ed 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -18,7 +18,6 @@ interface AppLayoutProps { export function AppLayout({ children, selectedProject = null, - title = "Shakespeare", showSidebar = true, headerContent }: AppLayoutProps) { @@ -85,9 +84,6 @@ export function AppLayout({ )} -

- {title} -

{headerContent} diff --git a/src/components/CreditsDialog.tsx b/src/components/CreditsDialog.tsx index 64dd1f30..4b33517c 100644 --- a/src/components/CreditsDialog.tsx +++ b/src/components/CreditsDialog.tsx @@ -399,7 +399,7 @@ export function CreditsDialog({ open, onOpenChange, provider }: CreditsDialogPro return ( - + e.preventDefault()} className="max-w-lg w-full max-h-[75vh] overflow-hidden flex flex-col sm:max-w-lg sm:max-h-[75vh] max-sm:w-full max-sm:h-full max-sm:max-w-none max-sm:max-h-none max-sm:m-0 max-sm:rounded-none"> {lightningInvoice ? ( diff --git a/src/components/OnboardingDialog.test.tsx b/src/components/OnboardingDialog.test.tsx index cbf028e4..79bd7d2c 100644 --- a/src/components/OnboardingDialog.test.tsx +++ b/src/components/OnboardingDialog.test.tsx @@ -42,7 +42,7 @@ describe('OnboardingDialog', () => { ); - expect(screen.getAllByText('Welcome to Shakespeare!')).toHaveLength(2); // Title and heading + expect(screen.getByText('Welcome to Shakespeare!')).toBeInTheDocument(); // Only in dialog title now expect(screen.getByText(/Your AI-powered development assistant/)).toBeInTheDocument(); expect(screen.getByRole('button', { name: /Get Started/i })).toBeInTheDocument(); }); diff --git a/src/components/OnboardingDialog.tsx b/src/components/OnboardingDialog.tsx index 4fa385a1..a38f07a8 100644 --- a/src/components/OnboardingDialog.tsx +++ b/src/components/OnboardingDialog.tsx @@ -8,7 +8,6 @@ import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Skeleton } from '@/components/ui/skeleton'; -import { ScrollArea } from '@/components/ui/scroll-area'; import { useAISettings } from '@/hooks/useAISettings'; import { useCurrentUser } from '@/hooks/useCurrentUser'; import { useLoginActions } from '@/hooks/useLoginActions'; @@ -119,8 +118,8 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps) return ( <> - - + + {step === 'model-selection' && ( )} + {step === 'conclusion' && ( + + )} - {step === 'welcome' && 'Welcome to Shakespeare!'} {step === 'model-selection' && 'Choose Your AI Model'} - {step === 'conclusion' && "You're All Set!"} -
+
{step === 'welcome' && (
-
🎭
+
+ Shakespeare +

Welcome to Shakespeare! @@ -191,15 +204,8 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps) )} {step === 'model-selection' && ( -
-
-

- Choose an AI model to power your development experience. - Different models offer various capabilities and pricing. -

-
- - +
+
{isLoadingModels ? ( <> @@ -232,6 +238,7 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps) shakespeareModels.map((model) => { const isSelected = selectedModel === model.fullId; const isFree = model.pricing?.prompt.equals(0) && model.pricing?.completion.equals(0); + const isPremium = !isFree; return (
- - {model.description || model.name || model.id} + + { model.name || model.description || model.id} {model.description && (

- {model.name || model.id} + {model.description || model.id}

)}
@@ -259,6 +266,11 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps) Free )} + {isPremium && ( + + Premium + + )} {isSelected && (
@@ -268,12 +280,12 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps)
-
+
{model.pricing && ( - <> - Input: {formatPrice(model.pricing.prompt)} - Output: {formatPrice(model.pricing.completion)} - +
+
Input: {formatPrice(model.pricing.prompt)}
+
Output: {formatPrice(model.pricing.completion)}
+
)} {model.contextLength && ( Context: {model.contextLength.toLocaleString()} tokens @@ -285,9 +297,9 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps) }) )}
- +
-
+
-
-

- "Create a farming equipment marketplace for local farmers to buy and sell tractors, tools, and supplies..." -

-