feat: unify chart range controls
This commit is contained in:
@@ -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: [] },
|
||||
|
||||
Reference in New Issue
Block a user