diff --git a/components/settings/components/settings-skeleton.tsx b/components/settings/components/settings-skeleton.tsx index 55c002bc..222ed1ae 100644 --- a/components/settings/components/settings-skeleton.tsx +++ b/components/settings/components/settings-skeleton.tsx @@ -8,7 +8,7 @@ export function SettingsSkeleton() { System - Models + Tools Users Map diff --git a/components/settings/components/settings.tsx b/components/settings/components/settings.tsx index 9b1aada1..a45dce56 100644 --- a/components/settings/components/settings.tsx +++ b/components/settings/components/settings.tsx @@ -14,7 +14,7 @@ import { cn } from '@/lib/utils' import { Button } from '@/components/ui/button' import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card' import { SystemPromptForm } from './system-prompt-form' -import { ModelSelectionForm } from './model-selection-form' +import { ToolSelectionForm } from './tool-selection-form' import { UserManagementForm } from './user-management-form'; import { Form } from "@/components/ui/form" import { useSettingsStore, MapProvider } from "@/lib/store/settings"; @@ -37,7 +37,7 @@ const settingsFormSchema = z.object({ message: "System prompt cannot exceed 2000 characters.", }), selectedModel: z.string().refine(value => value.trim() !== '', { - message: "Please select a model.", + message: "Please select a tool.", }), users: z.array( z.object({ @@ -57,7 +57,7 @@ export type SettingsFormValues = z.infer const defaultValues: Partial = { systemPrompt: "You are a planetary copilot, an AI assistant designed to help users with information about planets, space exploration, and astronomy. Provide accurate, educational, and engaging responses about our solar system and beyond.", - selectedModel: "Gemini 3.1 Pro", + selectedModel: "QCX-Terra", users: [], domain: "", } @@ -70,7 +70,7 @@ export function Settings({ initialTab = "system-prompt" }: SettingsProps) { const { toast } = useToast() const router = useRouter() const [isSaving, setIsSaving] = useState(false) - const [currentTab, setCurrentTab] = useState(initialTab); + const [currentTab, setCurrentTab] = useState(initialTab === "model" ? "tool" : initialTab); const { mapProvider, setMapProvider } = useSettingsStore(); const { user, loading: authLoading } = useCurrentUser(); const { theme, setTheme } = useTheme() @@ -81,7 +81,7 @@ export function Settings({ initialTab = "system-prompt" }: SettingsProps) { }, []) useEffect(() => { - setCurrentTab(initialTab); + setCurrentTab(initialTab === "model" ? "tool" : initialTab); }, [initialTab]); const userId = user?.id; @@ -212,7 +212,7 @@ export function Settings({ initialTab = "system-prompt" }: SettingsProps) { System - Models + Tools Users Map @@ -236,14 +236,14 @@ export function Settings({ initialTab = "system-prompt" }: SettingsProps) { - + - Models - Choose the AI model that powers your planetary copilot + Tools + Choose the tool that powers your planetary copilot - + diff --git a/components/settings/components/model-selection-form.tsx b/components/settings/components/tool-selection-form.tsx similarity index 57% rename from components/settings/components/model-selection-form.tsx rename to components/settings/components/tool-selection-form.tsx index bc6164ba..1eaabc6f 100644 --- a/components/settings/components/model-selection-form.tsx +++ b/components/settings/components/tool-selection-form.tsx @@ -19,13 +19,13 @@ import { import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; import { Card, CardContent } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; -import { Sparkles, Zap, Rocket, Cpu, Earth } from "lucide-react"; +import { Earth, Orbit } from "lucide-react"; -interface ModelSelectionFormProps { +interface ToolSelectionFormProps { form: UseFormReturn; } -const models = [ +const tools = [ { id: "QCX-Terra", name: "QCX-Terra", @@ -35,54 +35,38 @@ const models = [ badgeVariant: "default" as const, }, { - id: "Grok 4.2", - name: "Grok 4.2", - description: "The latest from xAI, pushing the boundaries of reasoning and problem-solving.", - icon: Rocket, - badge: "New", + id: "SkyFi", + name: "SkyFi", + description: "On-demand satellite imagery and Earth intelligence analytics.", + icon: Orbit, + badge: "Satellite", badgeVariant: "secondary" as const, }, - { - id: "Gemini 3.1 Pro", - name: "Gemini 3.1 Pro", - description: "Google's latest reasoning model, excelling at multimodal understanding and complex agentic tasks.", - icon: Sparkles, - badge: "Advanced", - badgeVariant: "outline" as const, - }, - { - id: "GPT-5.1", - name: "GPT-5.1", - description: "The cutting-edge of language models, offering unparalleled performance in creative and analytical tasks.", - icon: Zap, - badge: "Expert", - badgeVariant: "outline" as const, - }, ]; -export function ModelSelectionForm({ form }: ModelSelectionFormProps) { +export function ToolSelectionForm({ form }: ToolSelectionFormProps) { return ( ( -
- AI Model -
- Quick Select: +
+ Planetary Tool +
+ Quick Select: