From 4fdf1d810e7958c296f43153941514b88f58c639 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Oct 2024 10:47:23 +0100 Subject: [PATCH 1/4] tidy up rename buttons --- interface/src/app/main/Customizations.tsx | 40 ++++++++++++----------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/interface/src/app/main/Customizations.tsx b/interface/src/app/main/Customizations.tsx index 87ac23822..2eb6f58f3 100644 --- a/interface/src/app/main/Customizations.tsx +++ b/interface/src/app/main/Customizations.tsx @@ -464,14 +464,7 @@ const Customizations = () => { )} {selectedDevice !== -1 && (rename ? ( - - + <> - + + ) : ( - + {!rename && ( + + + + )} )} {renderResetDialog()} From 72a515faab4d94298fcce7874cd4b8194ec1706a Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Oct 2024 10:47:39 +0100 Subject: [PATCH 2/4] formatting text --- interface/src/app/settings/Version.tsx | 81 +++++++++++++++----------- 1 file changed, 48 insertions(+), 33 deletions(-) diff --git a/interface/src/app/settings/Version.tsx b/interface/src/app/settings/Version.tsx index dc9432b88..c6aaa5827 100644 --- a/interface/src/app/settings/Version.tsx +++ b/interface/src/app/settings/Version.tsx @@ -11,9 +11,11 @@ import { DialogActions, DialogContent, DialogTitle, + Divider, Link, Typography } from '@mui/material'; +import Grid from '@mui/material/Grid2'; import * as SystemApi from 'api/system'; import { callAction } from 'api/app'; @@ -182,43 +184,55 @@ const Version = () => { return ( <> - - Firmware Version Check - - - - - {LL.VERSION() + ':'} {data.emsesp_version} - {data.build_flags && ( - -   ({data.build_flags}) + + + + + {LL.VERSION()} - )} - - - Platform: {getPlatform()} - + + Platform + + + Release + + + + + {data.emsesp_version} + {data.build_flags && ( + +   ({data.build_flags}) + + )} + + {getPlatform()} + + {isDev ? LL.DEVELOPMENT() : LL.STABLE()}  + + (changelog) + + + + - - Release:  - + + {!isDev && ( + - )} - + {LL.SWITCH_DEV()} + + )} @@ -231,6 +245,7 @@ const Version = () => { sx={{ ml: 2, textTransform: 'none' }} variant="outlined" color="primary" + size="small" onClick={() => showFirmwareDialog(false)} > {isDev From 13a24e4d853244d1f1b9497a941a158af0dbf8dd Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Oct 2024 10:47:51 +0100 Subject: [PATCH 3/4] update test data --- mock-api/rest_server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mock-api/rest_server.ts b/mock-api/rest_server.ts index 1e04cf847..7d8e58197 100644 --- a/mock-api/rest_server.ts +++ b/mock-api/rest_server.ts @@ -202,8 +202,8 @@ function check_upgrade(version: string) { console.log('check upgrade from version', version); data = { emsesp_version: VERSION, - upgradeable: true - // upgradeable: false, + // upgradeable: true + upgradeable: false }; } else { console.log('requesting ems-esp version'); From 4a4ea0e749a81adec6f2a105096cd63c0c4b73c8 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Oct 2024 10:48:11 +0100 Subject: [PATCH 4/4] change text for customizations/rename --- interface/src/i18n/en/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/i18n/en/index.ts b/interface/src/i18n/en/index.ts index 3c06024df..0ad95342f 100644 --- a/interface/src/i18n/en/index.ts +++ b/interface/src/i18n/en/index.ts @@ -143,7 +143,7 @@ const en: Translation = { CUSTOMIZATIONS_RESTART: 'All customizations have been removed. Restarting...', CUSTOMIZATIONS_FULL: 'Selected entities exceeded limit. Please save in batches', CUSTOMIZATIONS_SAVED: 'Customizations saved', - CUSTOMIZATIONS_HELP_1: 'Select a device and customize the entities options or click to rename', + CUSTOMIZATIONS_HELP_1: 'Select a device and customize the entities options', CUSTOMIZATIONS_HELP_2: 'mark as favorite', CUSTOMIZATIONS_HELP_3: 'disable write action', CUSTOMIZATIONS_HELP_4: 'exclude from MQTT and API',