feat: add queue summary widget and layout fixes
This commit is contained in:
parent
f7976e2c39
commit
a542846313
12 changed files with 350 additions and 45 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue