feat: add queue summary widget and layout fixes

This commit is contained in:
Esdras Renan 2025-11-06 17:05:31 -03:00
parent f7976e2c39
commit a542846313
12 changed files with 350 additions and 45 deletions

View file

@ -13,6 +13,7 @@ const WIDGET_TYPES = [
"radar",
"gauge",
"table",
"queue-summary",
"text",
] as const
@ -145,6 +146,12 @@ function normalizeWidgetConfig(type: WidgetType, config: unknown) {
],
options: { downloadCSV: true },
}
case "queue-summary":
return {
type: "queue-summary",
title: "Resumo por fila",
dataSource: { metricKey: "queues.summary_cards" },
}
case "text":
default:
return {