From 484e8d4298c58ea529620bb34d9e1d6c0d4daa82 Mon Sep 17 00:00:00 2001 From: Devon Doyle Date: Tue, 7 Jan 2025 08:45:39 -0500 Subject: [PATCH] General UI Refinements (#1678) Does the following: - Adjusts the shade of red buttons and banners to increase readability and reduce eye strain ![image](https://github.com/user-attachments/assets/7f741a9e-dc1e-4394-b87d-580e189245b1) ![image](https://github.com/user-attachments/assets/b23202f1-4cf6-46c1-aca5-2455a09259cd) - Cleans up factory reset and camera deletion modals ![image](https://github.com/user-attachments/assets/e6564732-d578-43da-bc83-729ec6fdbc5e) ![image](https://github.com/user-attachments/assets/9c5a1cba-f4fd-47ea-811c-abbabe5fa3a4) - Removes matchCamerasOnlyByPath as it is no longer used and throws errors in the console ![image](https://github.com/user-attachments/assets/77043993-26a2-4de4-8e98-702e7f285dc6) - Limits the criteria to flag a camera mismatch in Camera Matching to only what is necessary based on camera type and highlights differences in table properties (testing on this is appreciated) ![image](https://github.com/user-attachments/assets/cfbd96c1-09dd-414a-8177-693fc054b26f) - Only displays both saved vs. current info in camera matching if there is a difference between the two ![image](https://github.com/user-attachments/assets/6223ffc8-4cff-464f-8b54-720c3222a5d5) - Some general code cleanup (reduced unnecessary padding/margin/row-col statements, style="display:flex;" -> class="d-flex", etc. - Moves Compact Mode button to the bottom away from all the menu items (cleaner imo, open to thoughts) - Establishes a general spacing format for cards and pages and applies this to existing cards and pages to create a consistent look and feel to the UI (e.g. keeping things in line and less erratic spacing/placement of UI elements) ![image](https://github.com/user-attachments/assets/1ab0ca4b-303e-436d-97b3-da72d46c4fcb) ![image](https://github.com/user-attachments/assets/82ba9e53-f854-4309-bc00-7b5d0bad58b7) ![image](https://github.com/user-attachments/assets/18aa6ca4-e6fa-4125-8a0a-e6a007a0337d) ![image](https://github.com/user-attachments/assets/77043993-26a2-4de4-8e98-702e7f285dc6) - Delete protection for camera matching modules - Anti-backend-spam for activate/deactivate/delete modules to hopefully prevent any odd behavior from button spamming - Enforces a common camera stream size on camera matching view (NEEDS MORE TESTING) ![image](https://github.com/user-attachments/assets/9032783d-1edf-4c6e-ba7b-00e5f20280df) https://private-user-images.githubusercontent.com/29715865/400783758-dc99c151-b8a7-4367-a173-74c2fc5b2666.mp4?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzYyNTc3NzEsIm5iZiI6MTczNjI1NzQ3MSwicGF0aCI6Ii8yOTcxNTg2NS80MDA3ODM3NTgtZGM5OWMxNTEtYjhhNy00MzY3LWExNzMtNzRjMmZjNWIyNjY2Lm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAxMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTA3VDEzNDQzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwOWM1MDc2ZTVlOWZhM2MxYjAwZjAyZTc2MTYyZTk1ZTVmOGFhZmVkMzlmODRlZTk1ODVlOTk2ZGQzZmM0Y2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ovtRnObwbkEfljr9d5fqaory0nH91LWJSSkmrUUe_4Y --- .../components/app/photon-camera-stream.vue | 3 +- .../src/components/app/photon-sidebar.vue | 18 +- .../cameras/CameraCalibrationCard.vue | 521 +++++++++--------- .../components/cameras/CameraControlCard.vue | 16 +- .../components/cameras/CameraSettingsCard.vue | 126 ++--- .../src/components/cameras/CamerasView.vue | 32 +- .../components/common/pv-camera-info-card.vue | 20 +- .../common/pv-camera-match-card.vue | 84 ++- .../src/components/common/pv-input.vue | 38 +- .../src/components/common/pv-number-input.vue | 40 +- .../src/components/common/pv-radio.vue | 34 +- .../src/components/common/pv-range-slider.vue | 110 ++-- .../src/components/common/pv-select.vue | 42 +- .../src/components/common/pv-slider.vue | 82 ++- .../src/components/common/pv-switch.vue | 25 +- .../dashboard/CameraAndPipelineSelectCard.vue | 19 +- .../src/components/dashboard/CamerasCard.vue | 68 +-- .../components/dashboard/ConfigOptions.vue | 4 +- .../components/dashboard/StreamConfigCard.vue | 8 +- .../components/dashboard/tabs/AprilTagTab.vue | 23 +- .../components/dashboard/tabs/ArucoTab.vue | 22 +- .../components/dashboard/tabs/ContoursTab.vue | 44 +- .../components/dashboard/tabs/InputTab.vue | 30 +- .../components/dashboard/tabs/OutputTab.vue | 5 +- .../dashboard/tabs/ThresholdTab.vue | 59 +- .../settings/ApriltagControlCard.vue | 8 +- .../components/settings/DeviceControlCard.vue | 120 ++-- .../src/components/settings/MetricsCard.vue | 116 +++- .../components/settings/NetworkingCard.vue | 70 +-- photon-client/src/plugins/vuetify.ts | 4 +- .../stores/settings/GeneralSettingsStore.ts | 3 +- photon-client/src/types/SettingTypes.ts | 1 - .../src/views/CameraMatchingView.vue | 260 ++++++--- photon-client/src/views/DashboardView.vue | 2 +- 34 files changed, 1095 insertions(+), 962 deletions(-) diff --git a/photon-client/src/components/app/photon-camera-stream.vue b/photon-client/src/components/app/photon-camera-stream.vue index 64f4789dcd..19b5516b29 100644 --- a/photon-client/src/components/app/photon-camera-stream.vue +++ b/photon-client/src/components/app/photon-camera-stream.vue @@ -9,6 +9,7 @@ import type { UiCameraConfiguration } from "@/types/SettingTypes"; const props = defineProps<{ streamType: "Raw" | "Processed"; id: string; + outerId?: string; cameraSettings: UiCameraConfiguration; }>(); @@ -90,7 +91,7 @@ onBeforeUnmount(() => {