From 2f798d934a5c6347b073857a1b3c0061e88f94c9 Mon Sep 17 00:00:00 2001 From: codex-bot Date: Mon, 20 Oct 2025 17:40:17 -0300 Subject: [PATCH] =?UTF-8?q?UI:=20corrigir=20duplicidade=20do=20Encerrar,?= =?UTF-8?q?=20padronizar=20ciano,=20ajustar=20tamanho=20do=20=C3=ADcone=20?= =?UTF-8?q?de=20tempo;=20atualizar=20cabe=C3=A7alho=20do=20login;=20invert?= =?UTF-8?q?er=20ordem=20(Novo=20ticket=20=C3=A0=20esquerda,=20Compartilhar?= =?UTF-8?q?=20=C3=A0=20direita)=20no=20ticket=20individual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/login/login-page-client.tsx | 15 ++-- src/app/tickets/[id]/page.tsx | 4 +- src/components/tickets/status-select.tsx | 68 ++++++++++--------- .../tickets/ticket-summary-header.tsx | 5 +- 4 files changed, 47 insertions(+), 45 deletions(-) diff --git a/src/app/login/login-page-client.tsx b/src/app/login/login-page-client.tsx index 1bd509a..5cd6630 100644 --- a/src/app/login/login-page-client.tsx +++ b/src/app/login/login-page-client.tsx @@ -55,16 +55,11 @@ export function LoginPageClient() {
- - Logotipo Raven - Raven + +
+ Sistema de chamados + Por Rever Tecnologia +
diff --git a/src/app/tickets/[id]/page.tsx b/src/app/tickets/[id]/page.tsx index d5e69c4..56b2a6f 100644 --- a/src/app/tickets/[id]/page.tsx +++ b/src/app/tickets/[id]/page.tsx @@ -18,8 +18,8 @@ export default async function TicketDetailPage({ params }: TicketDetailPageProps Compartilhar} - primaryAction={} + secondaryAction={} + primaryAction={Compartilhar} /> } > diff --git a/src/components/tickets/status-select.tsx b/src/components/tickets/status-select.tsx index e1c9a3f..64b4b46 100644 --- a/src/components/tickets/status-select.tsx +++ b/src/components/tickets/status-select.tsx @@ -83,11 +83,13 @@ export function StatusSelect({ value, tenantId, requesterName, + showCloseButton = true, }: { ticketId: string value: TicketStatus tenantId: string requesterName?: string | null + showCloseButton?: boolean }) { const { convexUserId } = useAuth() const actorId = (convexUserId ?? null) as Id<"users"> | null @@ -104,38 +106,42 @@ export function StatusSelect({ {statusStyles[status]?.label ?? statusStyles.PENDING.label} - - - - - - Encerrar ticket - - + {showCloseButton ? ( + + + + + + Encerrar ticket + + + ) : null}
- {/* Dialog control moved to header; keep for status-only contexts */} - { - if (!open) setCloseDialogOpen(false) - }} - ticketId={ticketId} - tenantId={tenantId} - actorId={actorId} - requesterName={requesterName} - onSuccess={() => { - setStatus("RESOLVED") - setCloseDialogOpen(false) - }} - /> + {/* Dialog control visível apenas quando o botão de encerrar está presente */} + {showCloseButton ? ( + { + if (!open) setCloseDialogOpen(false) + }} + ticketId={ticketId} + tenantId={tenantId} + actorId={actorId} + requesterName={requesterName} + onSuccess={() => { + setStatus("RESOLVED") + setCloseDialogOpen(false) + }} + /> + ) : null} ) } diff --git a/src/components/tickets/ticket-summary-header.tsx b/src/components/tickets/ticket-summary-header.tsx index 0033a66..6fd9441 100644 --- a/src/components/tickets/ticket-summary-header.tsx +++ b/src/components/tickets/ticket-summary-header.tsx @@ -621,7 +621,7 @@ export function TicketSummaryHeader({ ticket }: TicketHeaderProps) {