diff --git a/src/components/automations/email-action-config.tsx b/src/components/automations/email-action-config.tsx index 124f45a..c76d0a8 100644 --- a/src/components/automations/email-action-config.tsx +++ b/src/components/automations/email-action-config.tsx @@ -46,24 +46,24 @@ type EmailActionConfigProps = { agents: Agent[] } -// Variaveis disponiveis para interpolacao +// Variáveis disponíveis para interpolação const EMAIL_VARIABLES = [ - { key: "ticket.reference", label: "Referencia", description: "Numero do chamado (ex: #1234)" }, - { key: "ticket.subject", label: "Assunto", description: "Titulo do chamado" }, + { key: "ticket.reference", label: "Referência", description: "Número do chamado (ex: #1234)" }, + { key: "ticket.subject", label: "Assunto", description: "Título do chamado" }, { key: "ticket.status", label: "Status", description: "Status atual do chamado" }, - { key: "ticket.priority", label: "Prioridade", description: "Nivel de prioridade" }, + { key: "ticket.priority", label: "Prioridade", description: "Nível de prioridade" }, { key: "company.name", label: "Empresa", description: "Nome da empresa do solicitante" }, { key: "requester.name", label: "Solicitante", description: "Nome de quem abriu o chamado" }, - { key: "assignee.name", label: "Responsavel", description: "Nome do agente responsavel" }, + { key: "assignee.name", label: "Responsável", description: "Nome do agente responsável" }, ] as const type EmailVariable = (typeof EMAIL_VARIABLES)[number] const CLEAR_SELECT_VALUE = "__clear__" -// Estilos do badge de variavel (cyan para consistencia com o projeto) +// Estilos do badge de variável (fundo preto com texto branco) const VARIABLE_BADGE_CLASSES = - "inline-flex items-center gap-1 rounded-md bg-cyan-50/60 border border-cyan-200/60 px-1.5 py-0.5 text-xs font-mono text-cyan-700 whitespace-nowrap" + "inline-flex items-center gap-1 rounded-md bg-neutral-900 border border-neutral-700 px-1.5 py-0.5 text-xs font-mono text-white whitespace-nowrap" // Extensao TipTap para variaveis de e-mail const EmailVariableMentionExtension = Mention.extend({ @@ -280,7 +280,7 @@ function EmailVariableList({ items, command, onRegister }: EmailVariableListProp type="button" className={cn( "flex w-full flex-col gap-0.5 rounded-md px-3 py-2 text-left transition", - index === selectedIndex ? "bg-cyan-50/60" : "hover:bg-slate-50" + index === selectedIndex ? "bg-neutral-100" : "hover:bg-slate-50" )} onMouseEnter={() => setSelectedIndex(index)} onMouseDown={(e) => { @@ -288,7 +288,7 @@ function EmailVariableList({ items, command, onRegister }: EmailVariableListProp selectItem(index) }} > - {`{{${item.key}}}`} + {`{{${item.key}}}`} {item.description} ))} @@ -440,11 +440,11 @@ export function EmailActionConfig({ action, onChange, onRemove, agents }: EmailA return (
- {/* Header com tipo e botao de remover */} + {/* Header com tipo e botão de remover */}
-
- +
+
Enviar e-mail
@@ -454,7 +454,7 @@ export function EmailActionConfig({ action, onChange, onRemove, agents }: EmailA size="icon" onClick={onRemove} className="h-8 w-8 text-slate-500 hover:bg-red-50 hover:text-red-700" - title="Remover acao" + title="Remover ação" > @@ -486,10 +486,10 @@ export function EmailActionConfig({ action, onChange, onRemove, agents }: EmailA
- {/* Paleta de variaveis */} + {/* Paleta de variáveis */}
{EMAIL_VARIABLES.map((variable) => ( @@ -497,10 +497,15 @@ export function EmailActionConfig({ action, onChange, onRemove, agents }: EmailA
- {/* Destinatarios */} + {/* Destinatários */}
- +
- + handleChange("ctaTarget", value as EmailCtaTarget)} @@ -601,7 +606,7 @@ export function EmailActionConfig({ action, onChange, onRemove, agents }: EmailA
- + handleChange("ctaLabel", e.target.value)}