From 7e72940eaedffd613f253861edee448c5a37878a Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Wed, 22 Apr 2026 15:34:18 +0200 Subject: [PATCH] bugs fixed for checklist page --- csharp/App/Backend/DataTypes/Methods/User.cs | 8 +++++++- .../src/content/dashboards/Installations/Installation.tsx | 3 ++- .../dashboards/SodiohomeInstallations/Installation.tsx | 3 ++- .../content/dashboards/SodiohomeInstallations/index.tsx | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/csharp/App/Backend/DataTypes/Methods/User.cs b/csharp/App/Backend/DataTypes/Methods/User.cs index 3eb708713..331c44b44 100644 --- a/csharp/App/Backend/DataTypes/Methods/User.cs +++ b/csharp/App/Backend/DataTypes/Methods/User.cs @@ -524,7 +524,13 @@ public static class UserMethods Installation installation, String notifiedByName) { - var checklistLink = $"https://monitor.inesco.energy/sodiohome_installations/installation/{installation.Id}/checklist"; + var productPath = installation.Product switch + { + 4 => "sodistoregrid_installations", + 5 => "sodistorepro_installations", + _ => "sodiohome_installations" + }; + var checklistLink = $"https://monitor.inesco.energy/{productPath}/installation/{installation.Id}/checklist"; var installationName = String.IsNullOrEmpty(installation.Name) ? $"#{installation.Id}" : installation.Name; var commentsBlock = String.IsNullOrWhiteSpace(item.Comments) ? "" : item.Comments; diff --git a/typescript/frontend-marios2/src/content/dashboards/Installations/Installation.tsx b/typescript/frontend-marios2/src/content/dashboards/Installations/Installation.tsx index f7187b695..3aae45443 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Installations/Installation.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Installations/Installation.tsx @@ -388,7 +388,8 @@ function Installation(props: singleInstallationProps) { currentTab != 'history' && // currentTab != 'manage' && currentTab != 'log' && - currentTab != 'installationTickets' && ( + currentTab != 'installationTickets' && + currentTab != 'checklist' && (