From 7d80b21c1b83974644e86bd1ba8c2dd762fc2da2 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Wed, 1 Apr 2026 13:22:11 +0100 Subject: [PATCH] fix: pass deploy widget fields through config whitelist, fix siteMonitor URLs - Add service/label/apiBase to service-helpers.js whitelist for deploy type (these keys were being stripped, causing deploy widget to show nothing) - Add trailing slashes to gsb/semblance/cc-dashboard siteMonitor URLs to prevent 301 redirect to http:// which was causing red dots Co-Authored-By: Claude Sonnet 4.6 --- config/services.yaml | 6 +++--- src/utils/config/service-helpers.js | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/config/services.yaml b/config/services.yaml index 7719c2c7..bf303046 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -19,7 +19,7 @@ description: AI ratecard & team scoping container: gmal-scope-builder-backend-1 server: local - siteMonitor: https://optical-dev.oliver.solutions/gsb + siteMonitor: https://optical-dev.oliver.solutions/gsb/ showStats: true widget: type: deploy @@ -32,7 +32,7 @@ description: Synthetic personas & focus groups container: semblance-backend-1 server: local - siteMonitor: https://optical-dev.oliver.solutions/semblance + siteMonitor: https://optical-dev.oliver.solutions/semblance/ showStats: true widget: type: deploy @@ -45,7 +45,7 @@ description: API key & project management container: cc-dashboard-app-1 server: local - siteMonitor: https://optical-dev.oliver.solutions/cc-dashboard + siteMonitor: https://optical-dev.oliver.solutions/cc-dashboard/ showStats: true widget: type: deploy diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index f9651af5..0ea03ad8 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -435,6 +435,11 @@ export function cleanServiceGroups(groups) { // grafana alerts, + + // deploy + service: deployService, + label: deployLabel, + apiBase: deployApiBase, } = widgetData; let fieldsList = fields; @@ -685,6 +690,11 @@ export function cleanServiceGroups(groups) { if (type === "grafana") { if (alerts) widget.alerts = alerts; } + if (type === "deploy") { + if (deployService) widget.service = deployService; + if (deployLabel) widget.label = deployLabel; + if (deployApiBase) widget.apiBase = deployApiBase; + } if (type === "unraid") { if (pool1) widget.pool1 = pool1; if (pool2) widget.pool2 = pool2;