From 06388b368870d03082ebcce802dc2d7b398888f2 Mon Sep 17 00:00:00 2001 From: esdrasrenan Date: Sat, 13 Dec 2025 22:22:42 -0300 Subject: [PATCH] =?UTF-8?q?ui:=20ajustes=20de=20layout=20em=20automa=C3=A7?= =?UTF-8?q?=C3=B5es=20e=20checklist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reorganiza header da página de automações (título/descrição em cima, filtros embaixo) - Aumenta espaçamento da badge "quando" na tabela - Ajusta largura do input de checklist nos tickets para melhor distribuição 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../automations/automations-manager.tsx | 60 ++++++++++--------- .../tickets/ticket-checklist-card.tsx | 22 +++---- 2 files changed, 43 insertions(+), 39 deletions(-) diff --git a/src/components/automations/automations-manager.tsx b/src/components/automations/automations-manager.tsx index 0f42781..9806681 100644 --- a/src/components/automations/automations-manager.tsx +++ b/src/components/automations/automations-manager.tsx @@ -11,7 +11,7 @@ import { useAuth } from "@/lib/auth-client" import { DEFAULT_TENANT_ID } from "@/lib/constants" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" -import { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Dialog, DialogTrigger } from "@/components/ui/dialog" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu" import { Input } from "@/components/ui/input" @@ -152,21 +152,23 @@ export function AutomationsManager() { return ( - - Automações - - Crie gatilhos para executar ações automáticas. - - + +
+ Automações + + Crie gatilhos para executar ações automáticas nos tickets. + +
+
setQueryText(e.target.value)} placeholder="Buscar automação..." - className="h-8 w-full text-sm sm:w-64" + className="h-8 w-full text-sm sm:w-56" /> - - - - - setEditorOpen(false)} - /> -
- + + + + + setEditorOpen(false)} + /> + +
- - + + - + @@ -285,13 +287,13 @@ export function AutomationsManager() { {row.name} - +
- + {triggerLabel(row.trigger)} {row.timing === "DELAYED" && row.delayMs ? ( - + +{Math.round(row.delayMs / 60000)}m ) : null} diff --git a/src/components/tickets/ticket-checklist-card.tsx b/src/components/tickets/ticket-checklist-card.tsx index 72b3b66..7cf23a4 100644 --- a/src/components/tickets/ticket-checklist-card.tsx +++ b/src/components/tickets/ticket-checklist-card.tsx @@ -428,12 +428,12 @@ export function TicketChecklistCard({ )} {canEdit && !isResolved ? ( -
+
setNewText(e.target.value)} placeholder="Adicionar item do checklist..." - className="h-8 flex-1 bg-white" + className="h-8 w-full bg-white sm:max-w-md" onKeyDown={(e) => { if (e.key === "Enter") { e.preventDefault() @@ -441,14 +441,16 @@ export function TicketChecklistCard({ } }} /> - - +
+ + +
) : null}