From fd64db66e78252a874337ed6910a202a2acdd241 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Thu, 27 Aug 2026 16:02:41 +0200 Subject: [PATCH] docs(web): document resample options in the UI config schema plot-configuration.resample-policy and resample-algo are read into PlotConfiguration and exposed through UIDefaultsMap as the site default for new users, but neither appeared in the schema, so they looked unsupported. Co-Authored-By: Claude Opus 5 (1M context) --- web/configSchema.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/configSchema.go b/web/configSchema.go index d2c839e9..86bf5353 100644 --- a/web/configSchema.go +++ b/web/configSchema.go @@ -182,6 +182,16 @@ const configSchema = `{ "type": "integer", "minimum": 0 }, + "resample-policy": { + "description": "Initial resample policy for new users, controlling how many data points metric plots request. Empty string falls back to main.resampling.default-policy.", + "type": "string", + "enum": ["", "low", "medium", "high"] + }, + "resample-algo": { + "description": "Initial resample algorithm for new users. Empty string falls back to main.resampling.default-algo.", + "type": "string", + "enum": ["", "lttb", "average", "simple"] + }, "color-scheme": { "description": "Initial colorScheme to be used for metric plots.", "type": "array",