feat: unify chart range controls

This commit is contained in:
Developer
2026-07-14 17:00:32 +00:00
parent a541a4fd16
commit 03aece02b8
8 changed files with 235 additions and 96 deletions
+16 -4
View File
@@ -221,10 +221,20 @@ export const SERVICE_REGISTRY: Record<string, ServiceBinding> = {
name: "Speed chart",
description: "Live download/upload speed over a short window.",
refreshIntervalMs: 15_000,
defaultConfig: { unit: "bytes_per_sec", scale: "auto" },
defaultConfig: {
window_seconds: 1800,
unit: "bytes_per_sec",
scale: "auto",
},
configSchema: {
type: "object",
properties: { ...AXIS_FORMAT_PROPERTIES },
properties: {
window_seconds: {
type: "integer",
description: "Maximum data window available to the chart",
},
...AXIS_FORMAT_PROPERTIES,
},
required: [],
},
component: QbittorrentSpeedWidget,
@@ -257,7 +267,8 @@ export const SERVICE_REGISTRY: Record<string, ServiceBinding> = {
{
kind: "stat",
name: "Request stat",
description: "A single Jellyseerr request statistic (e.g. pending requests).",
description:
"A single Jellyseerr request statistic (e.g. pending requests).",
refreshIntervalMs: 60_000,
defaultConfig: { stat: "pending" },
configSchema: {
@@ -283,7 +294,8 @@ export const SERVICE_REGISTRY: Record<string, ServiceBinding> = {
{
kind: "stats_overview",
name: "Requests overview",
description: "All Jellyseerr request stats plus a recent-requests list.",
description:
"All Jellyseerr request stats plus a recent-requests list.",
refreshIntervalMs: 60_000,
defaultConfig: {},
configSchema: { type: "object", properties: {}, required: [] },