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

+18 -18
View File
@@ -38,27 +38,27 @@ export function ReasoningChain({ steps, searchQueries = [], className }: Reasoni
}
if (isCompleted) {
return <CheckCircle2 className="w-3.5 h-3.5 text-muted-foreground/60" />;
return <CheckCircle2 className="w-4 h-4 text-muted-foreground" />;
}
if (isRunning) {
return <Loader2 className="w-3.5 h-3.5 text-muted-foreground/60 animate-spin" />;
return <Loader2 className="w-4 h-4 text-primary animate-spin" />;
}
// Ícone baseado no tipo de step
switch (step.stepType) {
case 'preprocessing':
return <Brain className="w-3.5 h-3.5 text-muted-foreground/60" />;
return <Brain className="w-4 h-4 text-muted-foreground" />;
case 'web-research':
return <Search className="w-3.5 h-3.5 text-muted-foreground/60" />;
return <Search className="w-4 h-4 text-muted-foreground" />;
case 'sources-found':
return <Globe className="w-3.5 h-3.5 text-muted-foreground/60" />;
return <Globe className="w-4 h-4 text-muted-foreground" />;
case 'processing':
return <Brain className="w-3.5 h-3.5 text-muted-foreground/60" />;
return <Brain className="w-4 h-4 text-muted-foreground" />;
case 'response-generation':
return <Loader2 className="w-3.5 h-3.5 text-muted-foreground/60 animate-spin" />;
return <Loader2 className="w-4 h-4 text-primary animate-spin" />;
default:
return <Search className="w-3.5 h-3.5 text-muted-foreground/60" />;
return <Search className="w-4 h-4 text-muted-foreground" />;
}
};
@@ -66,12 +66,12 @@ export function ReasoningChain({ steps, searchQueries = [], className }: Reasoni
<div className={cn("mb-6 space-y-3", className)}>
{/* Header: "Working..." com spinner sutil */}
<div className="flex items-center gap-2 text-sm text-muted-foreground">
<Circle className="w-2 h-2 fill-current animate-pulse" />
<Circle className="w-2 h-2 fill-current text-primary animate-pulse" />
<span>Working...</span>
</div>
{/* Lista vertical de steps - texto simples */}
<div className="space-y-1.5 pl-6">
<div className="space-y-1 pl-6">
{steps.map((step, index) => {
const isRunning = step.status === 'running';
const isCompleted = step.status === 'completed';
@@ -83,17 +83,17 @@ export function ReasoningChain({ steps, searchQueries = [], className }: Reasoni
className={cn(
"reasoning-step flex items-center gap-2 text-sm",
isError
? "text-destructive/80"
? "text-destructive"
: isCompleted
? "text-muted-foreground/60"
: "text-muted-foreground/80"
? "text-muted-foreground"
: "text-foreground"
)}
style={{ animationDelay: `${index * 100}ms` }}
style={{ animationDelay: `${index * 50}ms` }}
>
{getStepIcon(step)}
<span>{step.label}</span>
{step.details && (
<span className="text-xs text-muted-foreground/50 ml-1">
<span className="text-xs text-muted-foreground ml-1">
{step.details}
</span>
)}
@@ -105,11 +105,11 @@ export function ReasoningChain({ steps, searchQueries = [], className }: Reasoni
{/* Pills de busca - cápsulas sutis */}
{searchQueries.length > 0 && (
<div className="flex flex-wrap gap-2 pl-6">
<span className="text-xs text-muted-foreground/60">Searching:</span>
<span className="text-xs text-muted-foreground">Searching:</span>
{searchQueries.map((query, index) => (
<span
key={index}
className="text-xs font-mono px-2 py-1 bg-white/5 dark:bg-white/5 border border-white/10 dark:border-white/10 rounded-full text-muted-foreground/70"
className="text-xs font-mono px-2 py-1 bg-surface border rounded-sm text-muted-foreground"
>
{query}
</span>
@@ -121,7 +121,7 @@ export function ReasoningChain({ steps, searchQueries = [], className }: Reasoni
{allSources.length > 0 && (
<div className="pl-6">
<div className="flex items-center gap-2 mb-2">
<span className="text-xs text-muted-foreground/60">
<span className="text-xs text-muted-foreground">
Reviewing sources - {allSources.length}
</span>
</div>