/** * SkillSuggestion.tsx * * Modal com preview da skill sugerida pelo OpenClaw. * Apresenta padrão detectado, nome, descrição e preview de automação. * Usuário pode confirmar ou rejeitar. * * Fase 4: OpenClaw Sprint 2 */ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Sparkles, X, Check, Zap, BarChart2 } from "lucide-react"; import type { SkillSuggestionData } from "@/hooks/useAgentEmergence"; interface SkillSuggestionProps { suggestion: SkillSuggestionData; onConfirm: (id: string) => void; onReject: (id: string) => void; onClose: () => void; } export function SkillSuggestion({ suggestion, onConfirm, onReject, onClose }: SkillSuggestionProps) { const confidencePct = Math.round(suggestion.confidence * 100); return (
Nova skill detectada
{/* Padrão detectado */}

Padrão detectado

{suggestion.pattern.description || suggestion.pattern.action_type}

{suggestion.pattern.frequency}x detectado Confiança: {confidencePct}%
{/* Skill sugerida */}

Nome da skill

{suggestion.suggested_skill_name}

Descrição

{suggestion.suggested_description}

O que será automatizado

{suggestion.estimated_automation}
); }