style(ui): família visual de IA local

This commit is contained in:
evandro committed 2026-11-16 00:42:44 -03:00
1 parent f0b7db8c12
commit 07b0eaadca
62 files changed
+918 -853

No files matched your search

+7 -7
View File
@@ -4,7 +4,7 @@ import { Input } from "@/components/ui/input";
import { Progress } from "@/components/ui/progress";
import { Label } from "@/components/ui/label";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Download, Loader2, X, Upload, Globe, AlertCircle, File } from "lucide-react";
import { Download, Loader2, X, Upload, Globe, AlertCircle, File, Info } from "lucide-react";
import { useState, useEffect, useRef } from "react";
import { invoke } from "@tauri-apps/api/core";
import { listen } from "@tauri-apps/api/event";
@@ -368,7 +368,7 @@ export function ModelDownloadDialog({ open, onOpenChange, onSuccess }: ModelDown
<p className="text-sm text-destructive">{error}</p>
)}
{isInstalled && !isDownloading && (
<p className="text-sm text-green-600 dark:text-green-400">
<p className="text-sm text-success">
✓ Este modelo já está instalado
</p>
)}
@@ -397,7 +397,7 @@ export function ModelDownloadDialog({ open, onOpenChange, onSuccess }: ModelDown
)}
{isInstalled && !isDownloading && (
<div className="bg-muted/50 p-3 rounded-md text-sm">
<div className="bg-surface border p-3 rounded-md text-sm">
<p className="text-muted-foreground">
O modelo está instalado e pronto para uso.
</p>
@@ -423,7 +423,7 @@ export function ModelDownloadDialog({ open, onOpenChange, onSuccess }: ModelDown
<div className="space-y-4">
{isInstallingLocal ? (
<div className="border rounded-xl p-6 bg-muted/30 space-y-4">
<div className="border rounded-lg p-6 bg-surface space-y-4">
<div className="flex items-center gap-3">
<Loader2 className="w-5 h-5 animate-spin text-primary" />
<div className="flex-1">
@@ -445,7 +445,7 @@ export function ModelDownloadDialog({ open, onOpenChange, onSuccess }: ModelDown
</div>
) : (
<>
<div className="border-2 border-dashed rounded-xl p-8 text-center bg-muted/30">
<div className="border-2 border-dashed rounded-lg p-8 text-center bg-surface">
<Upload className="w-12 h-12 mx-auto mb-4 text-muted-foreground" />
<p className="text-sm text-muted-foreground mb-4">
Selecione um arquivo GGUF para instalar localmente
@@ -475,8 +475,8 @@ export function ModelDownloadDialog({ open, onOpenChange, onSuccess }: ModelDown
)}
</div>
<div className="bg-muted/30 border border-border/50 rounded-lg p-3 text-xs text-muted-foreground">
<p className="font-medium mb-1">ℹ️ Modelos instalados localmente</p>
<div className="bg-surface border rounded-md p-3 text-xs text-muted-foreground">
<p className="flex items-center gap-1 font-medium text-foreground mb-1"><Info className="w-3 h-3" aria-hidden="true" />Modelos instalados localmente</p>
<p>Funcionam sem conexão à internet. O arquivo será copiado para o diretório do Ollama.</p>
</div>
</div>