fixed folder name and SodistoreMax name

This commit is contained in:
Yinyin Liu 2026-03-04 09:37:01 +01:00
parent a86dc963b2
commit 25b961dc93
6 changed files with 14 additions and 6 deletions

View File

@ -71,6 +71,10 @@ public static partial class Db
Connection.Execute("UPDATE User SET Language = 'fr' WHERE Language = 'french'"); Connection.Execute("UPDATE User SET Language = 'fr' WHERE Language = 'french'");
Connection.Execute("UPDATE User SET Language = 'it' WHERE Language = 'italian'"); Connection.Execute("UPDATE User SET Language = 'it' WHERE Language = 'italian'");
// One-time migration: rebrand folder names
Connection.Execute("UPDATE Folder SET Name = 'inesco Energy' WHERE Name = 'InnovEnergy'");
Connection.Execute("UPDATE Folder SET Name = 'Sodistore Max Installations' WHERE Name = 'SodistoreMax Installations'");
//UpdateKeys(); //UpdateKeys();
CleanupSessions().SupressAwaitWarning(); CleanupSessions().SupressAwaitWarning();
DeleteSnapshots().SupressAwaitWarning(); DeleteSnapshots().SupressAwaitWarning();

View File

@ -126,7 +126,7 @@ public static class RabbitMqManager
Console.WriteLine("Send replace battery email to the support team for installation "+installationId); Console.WriteLine("Send replace battery email to the support team for installation "+installationId);
string recipient = "support@innov.energy"; string recipient = "support@innov.energy";
string subject = $"Battery Alarm from {installation.InstallationName}: 2 or more strings broken"; string subject = $"Battery Alarm from {installation.InstallationName}: 2 or more strings broken";
string text = $"Dear InnovEnergy Support Team,\n" + string text = $"Dear inesco Energy Support Team,\n" +
$"\n"+ $"\n"+
$"Installation Name: {installation.InstallationName}\n"+ $"Installation Name: {installation.InstallationName}\n"+
$"\n"+ $"\n"+
@ -138,7 +138,7 @@ public static class RabbitMqManager
$"\n"+ $"\n"+
$"Thank you for your great support:)"; $"Thank you for your great support:)";
//Disable this function now //Disable this function now
//Mailer.Send("InnovEnergy Support Team", recipient, subject, text); //Mailer.Send("inesco Energy Support Team", recipient, subject, text);
} }
//Create a new error and add it to the database //Create a new error and add it to the database
Db.HandleError(newError, installationId); Db.HandleError(newError, installationId);

View File

@ -98,7 +98,7 @@ function Logo() {
const theme = useTheme(); const theme = useTheme();
return ( return (
<TooltipWrapper title="InnovEnergy" arrow> <TooltipWrapper title="inesco Energy" arrow>
<LogoWrapper to="/overview"> <LogoWrapper to="/overview">
<Badge <Badge
sx={{ sx={{

View File

@ -66,6 +66,10 @@ function TreeInformation(props: TreeInformationProps) {
}; };
const ProductTypes = ['Salimax', 'Salidomo', 'SodistoreHome', 'SodistoreMax']; const ProductTypes = ['Salimax', 'Salidomo', 'SodistoreHome', 'SodistoreMax'];
const ProductDisplayNames: Record<string, string> = {
'SodistoreHome': 'Sodistore Home',
'SodistoreMax': 'Sodistore Max'
};
const isMobile = window.innerWidth <= 1490; const isMobile = window.innerWidth <= 1490;
@ -282,7 +286,7 @@ function TreeInformation(props: TreeInformationProps) {
> >
{ProductTypes.map((type) => ( {ProductTypes.map((type) => (
<MenuItem key={type} value={type}> <MenuItem key={type} value={type}>
{type} {ProductDisplayNames[type] || type}
</MenuItem> </MenuItem>
))} ))}
</Select> </Select>

View File

@ -115,7 +115,7 @@ function Status500() {
<Container maxWidth="sm"> <Container maxWidth="sm">
<Box textAlign="center"> <Box textAlign="center">
<TypographyPrimary variant="h1" sx={{ my: 2 }}> <TypographyPrimary variant="h1" sx={{ my: 2 }}>
InnovEnergy{' '} inesco Energy{' '}
</TypographyPrimary> </TypographyPrimary>
<TypographySecondary <TypographySecondary
variant="h4" variant="h4"

View File

@ -213,7 +213,7 @@ function SidebarMenu() {
<Box sx={{ marginTop: '3px' }}> <Box sx={{ marginTop: '3px' }}>
<FormattedMessage <FormattedMessage
id="sodistore" id="sodistore"
defaultMessage="SodistoreMax" defaultMessage="Sodistore Max"
/> />
</Box> </Box>
</Button> </Button>