From fd20fd97f488e5673cfbe8b6a52455bcace98095 Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Mon, 30 Oct 2023 16:12:00 +0100 Subject: [PATCH] Add device health checks in user detail area - WIP --- .../kit/showKit/showKit.controller.js | 2 ++ src/app/components/kit/showKit/showKit.html | 32 ++++++++++++++----- src/app/components/kit/showKit/showKit.scss | 4 +++ 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/src/app/components/kit/showKit/showKit.controller.js b/src/app/components/kit/showKit/showKit.controller.js index 444e7afe..b5660a19 100644 --- a/src/app/components/kit/showKit/showKit.controller.js +++ b/src/app/components/kit/showKit/showKit.controller.js @@ -255,6 +255,8 @@ var compareSensors = sensorsRes[1]; vm.battery = _.find(mainSensors, {name: 'battery'}); + vm.sdcard = _.find(mainSensors, {id: 221}) + vm.rssi = _.find(mainSensors, {id: 220}); vm.sensors = mainSensors.reverse(); vm.sensors.forEach(checkRaw); vm.sensors.forEach(checkSystem); diff --git a/src/app/components/kit/showKit/showKit.html b/src/app/components/kit/showKit/showKit.html index b627cb96..5c6e0da8 100644 --- a/src/app/components/kit/showKit/showKit.html +++ b/src/app/components/kit/showKit/showKit.html @@ -64,13 +64,6 @@ --> - - - - Device Health Checks - - - @@ -228,7 +221,7 @@

{{ vm.kit.name }}

-

Manage your kit

+

Manage your kit

EDIT @@ -241,6 +234,29 @@

Manage your kit

SD CARD UPLOAD
DELETE
+
+

Health checks

+ Here you can find some indicators of how your kit is doing: + +

We empower communities to better understand their environment

diff --git a/src/app/components/kit/showKit/showKit.scss b/src/app/components/kit/showKit/showKit.scss index 41b29487..2773b29f 100644 --- a/src/app/components/kit/showKit/showKit.scss +++ b/src/app/components/kit/showKit/showKit.scss @@ -904,3 +904,7 @@ because they conflict with enter animations */ .bat_animation.ng-leave-active { opacity: 1; } */ + +h3.tight{ + margin-top: 5px; +}