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} } />