style(ui): família visual de IA local
This commit is contained in:
1 parent
f0b7db8c12
commit
07b0eaadca
62 files changed
+918
-853
No files matched your search
@@ -33,9 +33,9 @@ export function PostProcessingPanel({ steps, className }: PostProcessingPanelPro
|
||||
const getStepIcon = (step: ProcessStep) => {
|
||||
switch (step.status) {
|
||||
case 'completed':
|
||||
return <CheckCircle2 className="w-4 h-4 text-green-600 dark:text-green-400" />;
|
||||
return <CheckCircle2 className="w-4 h-4 text-success" />;
|
||||
case 'error':
|
||||
return <XCircle className="w-4 h-4 text-red-600 dark:text-red-400" />;
|
||||
return <XCircle className="w-4 h-4 text-destructive" />;
|
||||
case 'running':
|
||||
return <Loader2 className="w-4 h-4 text-primary animate-spin" />;
|
||||
default:
|
||||
@@ -50,19 +50,20 @@ export function PostProcessingPanel({ steps, className }: PostProcessingPanelPro
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={cn("border-t border-muted bg-muted/20", className)}>
|
||||
<div className={cn("border-t bg-surface", className)}>
|
||||
<button
|
||||
onClick={() => setIsExpanded(!isExpanded)}
|
||||
className="w-full px-6 py-3 flex items-center justify-between hover:bg-muted/40 transition-colors"
|
||||
className="w-full px-6 py-3 flex items-center justify-between hover:bg-hover transition-colors duration-150"
|
||||
aria-expanded={isExpanded}
|
||||
>
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center gap-1.5">
|
||||
<div className="flex items-center gap-2">
|
||||
{hasErrors ? (
|
||||
<AlertCircle className="w-4 h-4 text-red-600 dark:text-red-400" />
|
||||
<AlertCircle className="w-4 h-4 text-destructive" />
|
||||
) : isRunning ? (
|
||||
<Loader2 className="w-4 h-4 text-primary animate-spin" />
|
||||
) : (
|
||||
<CheckCircle2 className="w-4 h-4 text-green-600 dark:text-green-400" />
|
||||
<CheckCircle2 className="w-4 h-4 text-success" />
|
||||
)}
|
||||
<span className="text-sm font-medium">
|
||||
Processo de Pensamento
|
||||
@@ -85,11 +86,11 @@ export function PostProcessingPanel({ steps, className }: PostProcessingPanelPro
|
||||
<div
|
||||
key={step.id}
|
||||
className={cn(
|
||||
"p-3 rounded-lg border transition-all",
|
||||
step.status === 'completed' && "bg-green-500/5 border-green-500/20",
|
||||
step.status === 'error' && "bg-red-500/5 border-red-500/20",
|
||||
step.status === 'running' && "bg-primary/5 border-primary/20",
|
||||
step.status === 'pending' && "bg-muted/50 border-muted"
|
||||
"p-3 rounded-lg border",
|
||||
step.status === 'completed' && "bg-background",
|
||||
step.status === 'error' && "bg-destructive/10 border-destructive/30",
|
||||
step.status === 'running' && "bg-accent-soft border-transparent",
|
||||
step.status === 'pending' && "bg-background"
|
||||
)}
|
||||
>
|
||||
<div className="flex items-start justify-between gap-3">
|
||||
@@ -110,7 +111,7 @@ export function PostProcessingPanel({ steps, className }: PostProcessingPanelPro
|
||||
</p>
|
||||
)}
|
||||
{step.error && (
|
||||
<p className="text-xs text-red-600 dark:text-red-400 mt-1">
|
||||
<p className="text-xs text-destructive mt-1">
|
||||
{step.error}
|
||||
</p>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user