From 0fc7cff4f9129b2b0213173d27138af448b5592c Mon Sep 17 00:00:00 2001 From: Thomas Blommaert Date: Sat, 3 May 2025 18:59:51 +0200 Subject: [PATCH 1/3] fix: bringToFront uav list --- src/components/uavs/UAVStatusSummary.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/uavs/UAVStatusSummary.jsx b/src/components/uavs/UAVStatusSummary.jsx index 94e144b1..82fe9d98 100644 --- a/src/components/uavs/UAVStatusSummary.jsx +++ b/src/components/uavs/UAVStatusSummary.jsx @@ -160,7 +160,7 @@ const showUAVsList = (workbench, dispatch) => () => { return; } - if (!workbench.bringToFront('uavs')) { + if (!workbench.bringToFront('uavList')) { dispatch( showNotification({ message: 'UAVs panel is not added to the workbench yet', From 8a325fbacdebf9a686605ff34d21eb1582bd8891 Mon Sep 17 00:00:00 2001 From: Thomas Blommaert Date: Sat, 3 May 2025 19:28:03 +0200 Subject: [PATCH 2/3] feat: uav status panel --- src/features/sidebar/Sidebar.jsx | 6 ++++++ src/i18n/en.json | 3 ++- src/views/index.js | 2 ++ src/views/uavs/UAVStatusPanel.jsx | 10 ++++++++++ src/workbench.js | 5 +++++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/views/uavs/UAVStatusPanel.jsx diff --git a/src/features/sidebar/Sidebar.jsx b/src/features/sidebar/Sidebar.jsx index b760f7ed..1b037a81 100644 --- a/src/features/sidebar/Sidebar.jsx +++ b/src/features/sidebar/Sidebar.jsx @@ -111,6 +111,12 @@ const Sidebar = ({ label={t('view.uav-list')} component='uav-list' /> + } + label={t('view.uav-statuses')} + component='uav-statuses' + /> {hasFeature('beacons') && ( ( +
+ +
+); + +export default UAVStatusPanel; \ No newline at end of file diff --git a/src/workbench.js b/src/workbench.js index 75beb1de..b808e65b 100644 --- a/src/workbench.js +++ b/src/workbench.js @@ -173,6 +173,11 @@ export const componentRegistry = { label: 'UAVs', detachable: true, }, + 'uav-statuses': { + component: views.UAVStatusPanel, + label: 'UAV Statuses', + detachable: true, + }, }; function constructDefaultWorkbench(store) { From 57a766004f5943af85ef419995ec1bcf793106e3 Mon Sep 17 00:00:00 2001 From: Thomas Blommaert Date: Fri, 19 Sep 2025 19:12:12 +0200 Subject: [PATCH 3/3] feat: rtk status panel --- src/features/rtk/RTKStatusPanel.jsx | 10 ++++++++++ src/features/sidebar/Sidebar.jsx | 7 +++++++ src/i18n/en.json | 1 + src/views/index.js | 2 ++ src/workbench.js | 5 +++++ 5 files changed, 25 insertions(+) create mode 100644 src/features/rtk/RTKStatusPanel.jsx diff --git a/src/features/rtk/RTKStatusPanel.jsx b/src/features/rtk/RTKStatusPanel.jsx new file mode 100644 index 00000000..c1570f34 --- /dev/null +++ b/src/features/rtk/RTKStatusPanel.jsx @@ -0,0 +1,10 @@ +import React from 'react'; +import RTKStatusMiniList from '~/features/rtk/RTKStatusMiniList'; + +const RTKStatusPanel = () => ( +
+ +
+); + +export default RTKStatusPanel; \ No newline at end of file diff --git a/src/features/sidebar/Sidebar.jsx b/src/features/sidebar/Sidebar.jsx index 1b037a81..b7058f7f 100644 --- a/src/features/sidebar/Sidebar.jsx +++ b/src/features/sidebar/Sidebar.jsx @@ -27,6 +27,7 @@ import { getMissionType } from '~/features/mission/selectors'; import { areExperimentalFeaturesEnabled } from '~/features/settings/selectors'; import Antenna from '~/icons/Antenna'; import ConnectingAirports from '~/icons/ConnectingAirports'; +import Satellite from '~/icons/Satellite'; import Route from '~/icons/Route'; import ShapeLine from '~/icons/ShapeLine'; import { MissionType } from '~/model/missions'; @@ -117,6 +118,12 @@ const Sidebar = ({ label={t('view.uav-statuses')} component='uav-statuses' /> + } + label={t('view.rtk-statuses')} + component='rtk-statuses' + /> {hasFeature('beacons') && (