chore(types): remove explicit any, fix hook deps, and unused vars across admin/api/tickets; tighten zod server schemas; adjust UI types; fix pdf export expression; minor cleanup

This commit is contained in:
Esdras Renan 2025-10-09 22:43:39 -03:00
parent 0556502685
commit 6ffd6c6392
17 changed files with 104 additions and 59 deletions

View file

@ -48,7 +48,7 @@ function BacklogPriorityPie() {
const chartData = keys
.map((k) => ({ name: PRIORITY_LABELS[k] ?? k, value: data.priorityCounts?.[k] ?? 0, fill: fills[k as keyof typeof fills] }))
.filter((d) => d.value > 0)
const chartConfig: any = { value: { label: "Tickets" } }
const chartConfig: Record<string, { label: string }> = { value: { label: "Tickets" } }
return (
<Card className="flex flex-col">
@ -118,7 +118,7 @@ function QueuesOpenBar() {
if (!data) return <Skeleton className="h-[300px] w-full" />
const chartData = (data.queueBreakdown ?? []).map((q) => ({ queue: q.name, open: q.open }))
const chartConfig: any = { open: { label: "Abertos" } }
const chartConfig: Record<string, { label: string }> = { open: { label: "Abertos" } }
return (
<Card>