From 98a5779f9d0f858d2c4dedf852fd9693ecbd3344 Mon Sep 17 00:00:00 2001 From: Zachary McGibbon Date: Sat, 4 May 2024 11:22:29 -0400 Subject: [PATCH] Add seconds properties to fields that are missing them --- src/components/PageComponents/Config/Display.tsx | 5 ++++- src/components/PageComponents/Config/Position.tsx | 6 ++++++ .../PageComponents/ModuleConfig/DetectionSensor.tsx | 3 +++ src/components/PageComponents/ModuleConfig/MQTT.tsx | 3 +++ src/components/PageComponents/ModuleConfig/NeighborInfo.tsx | 5 ++++- src/components/PageComponents/ModuleConfig/Paxcounter.tsx | 3 +++ src/components/PageComponents/ModuleConfig/RangeTest.tsx | 3 +++ src/components/PageComponents/ModuleConfig/Telemetry.tsx | 4 ++-- 8 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/components/PageComponents/Config/Display.tsx b/src/components/PageComponents/Config/Display.tsx index d75ac7d3..5d0d0813 100644 --- a/src/components/PageComponents/Config/Display.tsx +++ b/src/components/PageComponents/Config/Display.tsx @@ -32,7 +32,7 @@ export const Display = (): JSX.Element => { label: "Screen Timeout", description: "Turn off the display after this long", properties: { - suffix: "seconds", + suffix: "Seconds", }, }, { @@ -50,6 +50,9 @@ export const Display = (): JSX.Element => { name: "autoScreenCarouselSecs", label: "Carousel Delay", description: "How fast to cycle through windows", + properties: { + suffix: "Seconds", + }, }, { type: "toggle", diff --git a/src/components/PageComponents/Config/Position.tsx b/src/components/PageComponents/Config/Position.tsx index 6b02f4b9..e8a93c31 100644 --- a/src/components/PageComponents/Config/Position.tsx +++ b/src/components/PageComponents/Config/Position.tsx @@ -94,12 +94,18 @@ export const Position = (): JSX.Element => { name: "positionBroadcastSecs", label: "Broadcast Interval", description: "How often your position is sent out over the mesh", + properties: { + suffix: "Seconds", + }, }, { type: "number", name: "gpsUpdateInterval", label: "GPS Update Interval", description: "How often a GPS fix should be acquired", + properties: { + suffix: "Seconds", + }, }, { type: "number", diff --git a/src/components/PageComponents/ModuleConfig/DetectionSensor.tsx b/src/components/PageComponents/ModuleConfig/DetectionSensor.tsx index e98af1d5..ff11ae8b 100644 --- a/src/components/PageComponents/ModuleConfig/DetectionSensor.tsx +++ b/src/components/PageComponents/ModuleConfig/DetectionSensor.tsx @@ -38,6 +38,9 @@ export const DetectionSensor = (): JSX.Element => { label: "Minimum Broadcast Seconds", description: "The interval in seconds of how often we can send a message to the mesh when a state change is detected", + properties: { + suffix: "Seconds", + }, disabledBy: [ { fieldName: "enabled", diff --git a/src/components/PageComponents/ModuleConfig/MQTT.tsx b/src/components/PageComponents/ModuleConfig/MQTT.tsx index 0cbba049..dc75f4a9 100644 --- a/src/components/PageComponents/ModuleConfig/MQTT.tsx +++ b/src/components/PageComponents/ModuleConfig/MQTT.tsx @@ -138,6 +138,9 @@ export const MQTT = (): JSX.Element => { name: "mapReportSettings.publishIntervalSecs", label: "Map Report Publish Interval (s)", description: "Interval in seconds to publish map reports", + properties: { + suffix: "Seconds", + }, disabledBy: [ { fieldName: "enabled", diff --git a/src/components/PageComponents/ModuleConfig/NeighborInfo.tsx b/src/components/PageComponents/ModuleConfig/NeighborInfo.tsx index 397fabf4..2a2acab7 100644 --- a/src/components/PageComponents/ModuleConfig/NeighborInfo.tsx +++ b/src/components/PageComponents/ModuleConfig/NeighborInfo.tsx @@ -36,8 +36,11 @@ export const NeighborInfo = (): JSX.Element => { type: "number", name: "updateInterval", label: "Update Interval", - description: + description: "Interval in seconds of how often we should try to send our Neighbor Info to the mesh", + properties: { + suffix: "Seconds", + }, disabledBy: [ { fieldName: "enabled", diff --git a/src/components/PageComponents/ModuleConfig/Paxcounter.tsx b/src/components/PageComponents/ModuleConfig/Paxcounter.tsx index fd82d241..90a090fa 100644 --- a/src/components/PageComponents/ModuleConfig/Paxcounter.tsx +++ b/src/components/PageComponents/ModuleConfig/Paxcounter.tsx @@ -37,6 +37,9 @@ export const Paxcounter = (): JSX.Element => { name: "paxcounterUpdateInterval", label: "Update Interval (seconds)", description: "How long to wait between sending paxcounter packets", + properties: { + suffix: "Seconds", + }, disabledBy: [ { fieldName: "enabled", diff --git a/src/components/PageComponents/ModuleConfig/RangeTest.tsx b/src/components/PageComponents/ModuleConfig/RangeTest.tsx index ee396225..4fb2abb8 100644 --- a/src/components/PageComponents/ModuleConfig/RangeTest.tsx +++ b/src/components/PageComponents/ModuleConfig/RangeTest.tsx @@ -37,6 +37,9 @@ export const RangeTest = (): JSX.Element => { name: "sender", label: "Message Interval", description: "How long to wait between sending test packets", + properties: { + suffix: "Seconds", + }, disabledBy: [ { fieldName: "enabled", diff --git a/src/components/PageComponents/ModuleConfig/Telemetry.tsx b/src/components/PageComponents/ModuleConfig/Telemetry.tsx index 817f3bf2..6fb5ed4d 100644 --- a/src/components/PageComponents/ModuleConfig/Telemetry.tsx +++ b/src/components/PageComponents/ModuleConfig/Telemetry.tsx @@ -32,7 +32,7 @@ export const Telemetry = (): JSX.Element => { label: "Query Interval", description: "Interval to get telemetry data", properties: { - suffix: "seconds", + suffix: "Seconds", }, }, { @@ -41,7 +41,7 @@ export const Telemetry = (): JSX.Element => { label: "Update Interval", description: "How often to send Metrics over the mesh", properties: { - suffix: "seconds", + suffix: "Seconds", }, }, {