From 12c7fa23ae3c58aa3b396cfc14d002453d1edc97 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Mon, 13 Oct 2025 17:27:48 -0300 Subject: [PATCH] Ajusta estilo do painel de tickets recentes --- .../tickets/recent-tickets-panel.tsx | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/components/tickets/recent-tickets-panel.tsx b/src/components/tickets/recent-tickets-panel.tsx index db126f7..db5f2ce 100644 --- a/src/components/tickets/recent-tickets-panel.tsx +++ b/src/components/tickets/recent-tickets-panel.tsx @@ -10,7 +10,6 @@ import type { Id } from "@/convex/_generated/dataModel" import { DEFAULT_TENANT_ID } from "@/lib/constants" import { mapTicketsFromServerList } from "@/lib/mappers/ticket" import type { Ticket } from "@/lib/schemas/ticket" -import { Button } from "@/components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Skeleton } from "@/components/ui/skeleton" import { TicketPriorityPill } from "@/components/tickets/priority-pill" @@ -32,56 +31,54 @@ function TicketRow({ ticket, entering }: { ticket: Ticket; entering: boolean }) const requesterName = ticket.requester.name ?? ticket.requester.email ?? "Solicitante" const categoryBadges = [ticket.category?.name, ticket.subcategory?.name].filter((value): value is string => Boolean(value)) const channel = channelLabel[ticket.channel] ?? ticket.channel + const badgeClass = + "rounded-lg border border-slate-300 px-3.5 py-1.5 text-sm font-medium text-slate-600 transition-colors" return ( -
-
-
-
-
- #{ticket.reference} +
+
+
+
+ #{ticket.reference} {queueLabel}
- - + +
-
- +
+ {ticket.subject} - -

{ticket.summary ?? "Sem descrição informada."}

+
+

{ticket.summary ?? "Sem descrição informada."}

-
+
{requesterName} {formatDistanceToNow(ticket.updatedAt, { addSuffix: true, locale: ptBR })}
{categoryBadges.length > 0 ? ( -
+
{categoryBadges.map((label) => ( - + {label} ))}
) : ( - - {channel} - + {channel} )}
-
+ ) } @@ -134,7 +131,7 @@ export function RecentTicketsPanel() { return ( - Últimos chamados + Últimos chamados {Array.from({ length: 4 }).map((_, index) => ( @@ -151,10 +148,13 @@ export function RecentTicketsPanel() { return ( - Últimos chamados - + Últimos chamados + + Ver todos + {tickets.length === 0 ? (