diff --git a/src/components/reports/hours-report.tsx b/src/components/reports/hours-report.tsx
index bfb7ade..7d75ba2 100644
--- a/src/components/reports/hours-report.tsx
+++ b/src/components/reports/hours-report.tsx
@@ -64,14 +64,7 @@ export function HoursReport() {
)
}, [filtered])
- const numberFormatter = useMemo(
- () =>
- new Intl.NumberFormat("pt-BR", {
- minimumFractionDigits: 2,
- maximumFractionDigits: 2,
- }),
- []
- )
+ // No number formatter needed; we use formatHoursCompact for hours
const filteredWithComputed = useMemo(
() =>
@@ -228,7 +221,7 @@ export function HoursReport() {
Contratadas/mês
- {row.contracted ? `${numberFormatter.format(row.contracted)} h` : "—"}
+ {row.contracted ? formatHoursCompact(row.contracted) : "—"}
diff --git a/src/components/reports/sla-report.tsx b/src/components/reports/sla-report.tsx
index 2772202..4e44b7f 100644
--- a/src/components/reports/sla-report.tsx
+++ b/src/components/reports/sla-report.tsx
@@ -19,6 +19,12 @@ import { Area, AreaChart, Bar, BarChart, CartesianGrid, XAxis } from "recharts"
import { ChartContainer, ChartTooltip, ChartTooltipContent } from "@/components/ui/chart"
import { formatDateDM, formatDateDMY, formatHoursCompact } from "@/lib/utils"
+const agentProductivityChartConfig = {
+ resolved: {
+ label: "Chamados resolvidos",
+ },
+}
+
function formatMinutes(value: number | null) {
if (value === null) return "—"
if (value < 60) return `${value.toFixed(0)} min`
@@ -300,15 +306,15 @@ export function SlaReport() {
Resolvidos por agente
-
+
({ name: a.name || a.email || 'Agente', resolved: a.resolved }))}
- margin={{ left: 12, right: 12, bottom: 28 }}
+ margin={{ top: 8, left: 20, right: 20, bottom: 56 }}
>
-
+
- } />
+ } />