From 4bb35c6951ba945caa58355a7cd605ceed1cc5e4 Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Tue, 24 Mar 2026 14:38:23 +0100 Subject: [PATCH] frontend bug fix --- .../dashboards/Information/InformationSodistoreHome.tsx | 8 +++----- .../dashboards/Information/installationSetupUtils.ts | 8 ++++++++ .../SodiohomeInstallations/FlatInstallationView.tsx | 3 ++- .../SodistorehomeInstallationForm.tsx | 7 ++----- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/typescript/frontend-marios2/src/content/dashboards/Information/InformationSodistoreHome.tsx b/typescript/frontend-marios2/src/content/dashboards/Information/InformationSodistoreHome.tsx index a94a91042..c96266492 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Information/InformationSodistoreHome.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Information/InformationSodistoreHome.tsx @@ -42,6 +42,7 @@ import { remapTree, computeFlatValues, wouldLoseData, + SODIOHOME_DEVICE_TYPES, } from './installationSetupUtils'; interface InformationSodistorehomeProps { @@ -93,10 +94,7 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) { return [value.trim()]; }; - const DeviceTypes = [ - { id: 3, name: 'Growatt' }, - { id: 4, name: 'inesco 12K - WR Hybrid' } - ]; + const DeviceTypes = SODIOHOME_DEVICE_TYPES; // Preset state — initializes from persisted installationModel, empty for legacy const [selectedPreset, setSelectedPreset] = useState( @@ -741,7 +739,7 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) { shrink sx={{ fontSize: 14, backgroundColor: 'white', px: 0.5 }} > - Installation Model +