From 9a54c0957744be458929c0c84dd095da7bf98e50 Mon Sep 17 00:00:00 2001 From: linomp Date: Fri, 28 Jun 2024 21:31:48 +0200 Subject: [PATCH 1/8] initial caveman mode impl. --- .../ui/src/components/TimeSeriesChart.svelte | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/mvp/client/ui/src/components/TimeSeriesChart.svelte b/mvp/client/ui/src/components/TimeSeriesChart.svelte index 2c4ac52..bf8926f 100644 --- a/mvp/client/ui/src/components/TimeSeriesChart.svelte +++ b/mvp/client/ui/src/components/TimeSeriesChart.svelte @@ -1,12 +1,32 @@ - + Date: Sat, 29 Jun 2024 13:17:55 +0200 Subject: [PATCH 2/8] adjust margins & sizes for mobile & decent web layout --- mvp/client/ui/src/components/MachineData.svelte | 15 +++++++++------ mvp/client/ui/src/components/Sensor.svelte | 4 ++-- .../ui/src/components/TimeSeriesChart.svelte | 4 ++-- mvp/client/ui/src/global.css | 3 +++ mvp/client/ui/src/pages/HomePage.svelte | 3 ++- mvp/server/core/constants.py | 2 +- mvp/server/core/game/GameSession.py | 4 ++-- 7 files changed, 21 insertions(+), 14 deletions(-) diff --git a/mvp/client/ui/src/components/MachineData.svelte b/mvp/client/ui/src/components/MachineData.svelte index f76e98e..9c0e196 100644 --- a/mvp/client/ui/src/components/MachineData.svelte +++ b/mvp/client/ui/src/components/MachineData.svelte @@ -85,9 +85,11 @@ {/each}
- {"Remaining Useful Life"}: {$gameSession?.machine_state?.predicted_rul - ? `${$gameSession.machine_state?.predicted_rul} steps` - : "???"} + {"Remaining Useful Life"}: + {$gameSession?.machine_state?.predicted_rul + ? `${$gameSession.machine_state?.predicted_rul} steps` + : "???"} +