diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx
index 62b040379..040ec6f2d 100644
--- a/web/src/Sidebar.jsx
+++ b/web/src/Sidebar.jsx
@@ -44,7 +44,7 @@ export default function Sidebar() {
{birdseye?.enabled ? : null}
-
+
{ENV !== 'production' ? (
diff --git a/web/src/app.tsx b/web/src/app.tsx
index 6e560bd8f..09d9bbfb8 100644
--- a/web/src/app.tsx
+++ b/web/src/app.tsx
@@ -35,7 +35,7 @@ export default function App() {
path="/recording/:camera/:date?/:hour?/:minute?/:second?"
getComponent={Routes.getRecording}
/>
-
+
diff --git a/web/src/routes/Debug.jsx b/web/src/routes/System.jsx
similarity index 97%
rename from web/src/routes/Debug.jsx
rename to web/src/routes/System.jsx
index f96b40b03..96b3523c2 100644
--- a/web/src/routes/Debug.jsx
+++ b/web/src/routes/System.jsx
@@ -12,7 +12,7 @@ import Dialog from '../components/Dialog';
const emptyObject = Object.freeze({});
-export default function Debug() {
+export default function System() {
const [state, setState] = useState({ showFfprobe: false, ffprobe: '' });
const { data: config } = useSWR('config');
@@ -69,7 +69,7 @@ export default function Debug() {
return (
- Debug {service.version}
+ System {service.version}
{state.showFfprobe && (
- Debug stats update automatically every {config.mqtt.stats_interval} seconds.
+ System stats update automatically every {config.mqtt.stats_interval} seconds.
)}
diff --git a/web/src/routes/__tests__/Debug.test.jsx b/web/src/routes/__tests__/System.test.jsx
similarity index 89%
rename from web/src/routes/__tests__/Debug.test.jsx
rename to web/src/routes/__tests__/System.test.jsx
index 9ca261b79..bf353d01d 100644
--- a/web/src/routes/__tests__/Debug.test.jsx
+++ b/web/src/routes/__tests__/System.test.jsx
@@ -1,18 +1,18 @@
import { h } from 'preact';
-import Debug from '../Debug';
+import System from '../System';
import { render, screen, waitForElementToBeRemoved } from 'testing-library';
-describe('Debug Route', () => {
+describe('System Route', () => {
beforeEach(() => {});
test('shows an ActivityIndicator if stats are null', async () => {
- render();
+ render();
expect(screen.queryByLabelText('Loading…')).toBeInTheDocument();
});
// eslint-disable-next-line jest/no-disabled-tests
test.skip('shows stats and config', async () => {
- render();
+ render();
await waitForElementToBeRemoved(() => screen.queryByLabelText('Loading…'));
diff --git a/web/src/routes/index.js b/web/src/routes/index.js
index b10ce6edb..1a8af6384 100644
--- a/web/src/routes/index.js
+++ b/web/src/routes/index.js
@@ -28,8 +28,8 @@ export async function getRecording(_url, _cb, _props) {
return module.default;
}
-export async function getDebug(_url, _cb, _props) {
- const module = await import('./Debug.jsx');
+export async function getSystem(_url, _cb, _props) {
+ const module = await import('./System.jsx');
return module.default;
}