Skip to content

Commit

Permalink
Merge pull request #2362 from proddy/dev
Browse files Browse the repository at this point in the history
introduce system status in WebUI for easier monitoring of tasks
  • Loading branch information
proddy authored Jan 20, 2025
2 parents 6e29de4 + 4a9b74b commit 8b0e5ba
Show file tree
Hide file tree
Showing 31 changed files with 11,001 additions and 11,086 deletions.
10,679 changes: 5,294 additions & 5,385 deletions docs/Modbus-Entity-Registers.md

Large diffs are not rendered by default.

10,675 changes: 5,294 additions & 5,381 deletions docs/dump_entities.csv

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/dump_telegrams.csv
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ telegram_type_id,name,is_fetched
0x19,UBAMonitorSlow,
0x1A,UBASetPoints,
0x1C,UBAMaintenanceStatus,
0x1E,HydrTemp,
0x1E,WM10TempMessage,
0x23,JunkersSetMixer,fetched
0x26,UBASettingsWW,fetched
0x28,WeatherComp,fetched
Expand Down Expand Up @@ -109,10 +109,10 @@ telegram_type_id,name,is_fetched
0x02A0,RC300Curves,
0x02A1,RC300Curves,
0x02A2,RC300Curves,
0x02A5,EasyMonitor,
0x02A5,RC300Monitor,
0x02A6,RC300Monitor,
0x02A7,RC300Monitor,
0x02A8,RC300Monitor,
0x02A8,CRFMonitor,
0x02A9,RC300Monitor,
0x02AA,RC300Monitor,
0x02AB,RC300Monitor,
Expand All @@ -133,7 +133,7 @@ telegram_type_id,name,is_fetched
0x02BE,RC300Set,
0x02BF,RC300Set,
0x02C0,RC300Set,
0x02CC,HPPressure,fetched
0x02CC,RC300Set2,
0x02CD,MMPLUSConfigMessage,fetched
0x02CE,RC300Set2,
0x02D0,RC300Set2,
Expand Down
4 changes: 2 additions & 2 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@babel/core": "^7.26.0",
"@eslint/js": "^9.18.0",
"@preact/compat": "^18.3.1",
"@preact/preset-vite": "^2.9.4",
"@preact/preset-vite": "^2.10.0",
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
"@types/formidable": "^3",
"@types/node": "^22.10.7",
Expand All @@ -58,7 +58,7 @@
"rollup-plugin-visualizer": "^5.14.0",
"terser": "^5.37.0",
"typescript-eslint": "8.20.0",
"vite": "^6.0.7",
"vite": "^6.0.9",
"vite-plugin-imagemin": "^0.6.1",
"vite-tsconfig-paths": "^5.1.4"
},
Expand Down
2 changes: 1 addition & 1 deletion interface/src/AuthenticatedRouting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const AuthenticatedRouting = () => {
<Route path="/settings/ntp" element={<NTPSettings />} />
<Route path="/settings/ap" element={<APSettings />} />
<Route path="/settings/modules" element={<Modules />} />
<Route path="/settings/upload" element={<DownloadUpload />} />
<Route path="/settings/downloadUpload" element={<DownloadUpload />} />

<Route path="/settings/network/*" element={<Network />} />
<Route path="/settings/security/*" element={<Security />} />
Expand Down
2 changes: 1 addition & 1 deletion interface/src/api/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { LogSettings, SystemStatus } from 'types';

import { alovaInstance, alovaInstanceGH } from './endpoints';

// systemStatus - also used to ping in Restart monitor for pinging
// systemStatus - also used to ping in System Monitor for pinging
export const readSystemStatus = () =>
alovaInstance.Get<SystemStatus>('/rest/systemStatus');

Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/main/Customizations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
import { useTheme } from '@table-library/react-table-library/theme';
import { dialogStyle } from 'CustomTheme';
import { useRequest } from 'alova/client';
import RestartMonitor from 'app/status/RestartMonitor';
import SystemMonitor from 'app/status/SystemMonitor';
import {
BlockNavigation,
ButtonRow,
Expand Down Expand Up @@ -737,7 +737,7 @@ const Customizations = () => {
return (
<SectionContent>
{blocker ? <BlockNavigation blocker={blocker} /> : null}
{restarting ? <RestartMonitor /> : renderContent()}
{restarting ? <SystemMonitor /> : renderContent()}
{selectedDeviceEntity && (
<SettingsCustomizationsDialog
open={dialogOpen}
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/settings/ApplicationSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { readSystemStatus } from 'api/system';

import { useRequest } from 'alova/client';
import RestartMonitor from 'app/status/RestartMonitor';
import SystemMonitor from 'app/status/SystemMonitor';
import type { ValidateFieldsError } from 'async-validator';
import {
BlockFormControlLabel,
Expand Down Expand Up @@ -859,7 +859,7 @@ const ApplicationSettings = () => {
return (
<SectionContent>
{blocker ? <BlockNavigation blocker={blocker} /> : null}
{restarting ? <RestartMonitor /> : content()}
{restarting ? <SystemMonitor /> : content()}
</SectionContent>
);
};
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/settings/DownloadUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { API, callAction } from 'api/app';

import { useRequest } from 'alova/client';
import type { APIcall } from 'app/main/types';
import RestartMonitor from 'app/status/RestartMonitor';
import SystemMonitor from 'app/status/SystemMonitor';
import {
FormLoader,
SectionContent,
Expand Down Expand Up @@ -123,7 +123,7 @@ const DownloadUpload = () => {
};

return (
<SectionContent>{restarting ? <RestartMonitor /> : content()}</SectionContent>
<SectionContent>{restarting ? <SystemMonitor /> : content()}</SectionContent>
);
};

Expand Down
2 changes: 1 addition & 1 deletion interface/src/app/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const Settings = () => {
bgcolor="#5d89f7"
label={LL.DOWNLOAD_UPLOAD()}
text={LL.DOWNLOAD_UPLOAD_1()}
to="upload"
to="downloadUpload"
/>
</List>

Expand Down
6 changes: 3 additions & 3 deletions interface/src/app/settings/Version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { getDevVersion, getStableVersion } from 'api/system';

import { dialogStyle } from 'CustomTheme';
import { useRequest } from 'alova/client';
import RestartMonitor from 'app/status/RestartMonitor';
import SystemMonitor from 'app/status/SystemMonitor';
import { FormLoader, SectionContent, useLayoutTitle } from 'components';
import { useI18nContext } from 'i18n/i18n-react';

Expand Down Expand Up @@ -224,7 +224,7 @@ const Version = () => {
<>
<Box p={2} border="1px solid grey" borderRadius={2}>
<Typography mb={2} variant="h6" color="primary">
Firmware Version
Firmware&nbsp;{LL.VERSION()}
</Typography>

<Grid
Expand Down Expand Up @@ -360,7 +360,7 @@ const Version = () => {
};

return (
<SectionContent>{restarting ? <RestartMonitor /> : content()}</SectionContent>
<SectionContent>{restarting ? <SystemMonitor /> : content()}</SectionContent>
);
};

Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/settings/network/NetworkSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { updateValueDirty, useRest } from 'utils';
import { validate } from 'validators';
import { createNetworkSettingsValidator } from 'validators/network';

import RestartMonitor from '../../status/RestartMonitor';
import SystemMonitor from '../../status/SystemMonitor';
import { WiFiConnectionContext } from './WiFiConnectionContext';
import { isNetworkOpen, networkSecurityMode } from './WiFiNetworkSelector';

Expand Down Expand Up @@ -400,7 +400,7 @@ const NetworkSettings = () => {
return (
<SectionContent>
{blocker ? <BlockNavigation blocker={blocker} /> : null}
{restarting ? <RestartMonitor /> : content()}
{restarting ? <SystemMonitor /> : content()}
</SectionContent>
);
};
Expand Down
85 changes: 0 additions & 85 deletions interface/src/app/status/RestartMonitor.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions interface/src/app/status/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { NTPSyncStatus, NetworkConnectionStatus } from 'types';
import { useInterval } from 'utils';
import { formatDateTime } from 'utils/time';

import RestartMonitor from './RestartMonitor';
import SystemMonitor from './SystemMonitor';

const SystemStatus = () => {
const { LL } = useI18nContext();
Expand Down Expand Up @@ -349,7 +349,7 @@ const SystemStatus = () => {
};

return (
<SectionContent>{restarting ? <RestartMonitor /> : content()}</SectionContent>
<SectionContent>{restarting ? <SystemMonitor /> : content()}</SectionContent>
);
};

Expand Down
Loading

0 comments on commit 8b0e5ba

Please sign in to comment.