From 040965b1484020ac18dbd7f29e0c300e381f378d Mon Sep 17 00:00:00 2001 From: codex-bot Date: Mon, 20 Oct 2025 17:01:36 -0300 Subject: [PATCH] ui(header): reorder tempo total before edit icon; status close as icon with tooltip --- src/components/tickets/status-select.tsx | 27 ++++++++----- .../tickets/ticket-summary-header.tsx | 40 +++++++++---------- 2 files changed, 37 insertions(+), 30 deletions(-) diff --git a/src/components/tickets/status-select.tsx b/src/components/tickets/status-select.tsx index e851f09..39219b3 100644 --- a/src/components/tickets/status-select.tsx +++ b/src/components/tickets/status-select.tsx @@ -8,6 +8,8 @@ import type { TicketStatus } from "@/lib/schemas/ticket" import { useAuth } from "@/lib/auth-client" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" +import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip" +import { CheckCircle2 } from "lucide-react" import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog" import { Spinner } from "@/components/ui/spinner" import { RichTextEditor } from "@/components/ui/rich-text-editor" @@ -105,15 +107,22 @@ export function StatusSelect({ {statusStyles[status]?.label ?? statusStyles.PENDING.label} - + + + + + + Encerrar ticket + +
+ {workSummary ? ( + + + + Tempo total: {formattedTotalWorked} + + + +
+ Horas internas: {formatDuration(internalWorkedMs)} + Horas externas: {formatDuration(externalWorkedMs)} +
+
+
+ ) : null} {!editing ? ( - {workSummary ? ( - - - - Tempo total: {formattedTotalWorked} - - - -
- Horas internas: {formatDuration(internalWorkedMs)} - Horas externas: {formatDuration(externalWorkedMs)} -
-
-
- ) : null} } />