From cb480209326b37ff640e446bfa4d23b28533ac72 Mon Sep 17 00:00:00 2001 From: salirezav Date: Mon, 1 Dec 2025 15:40:32 -0500 Subject: [PATCH] Enhance CameraPage UI and improve loading indicators - Updated loading indicators with larger sizes and improved animations for better visibility. - Enhanced error banner styling and increased padding for a more user-friendly experience. - Adjusted stream status and recording status sections for improved readability and consistency in font sizes. - Refined MQTT message log display with better spacing and text sizes for clearer information presentation. - Improved overall layout and styling of the CameraPage component for a more polished user interface. --- .../src/components/CameraPage.tsx | 140 +++++++++--------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/management-dashboard-web-app/src/components/CameraPage.tsx b/management-dashboard-web-app/src/components/CameraPage.tsx index 14077df..f1fb68d 100644 --- a/management-dashboard-web-app/src/components/CameraPage.tsx +++ b/management-dashboard-web-app/src/components/CameraPage.tsx @@ -279,10 +279,10 @@ export function CameraPage({ cameraName }: CameraPageProps) { if (loading) { return ( -
+
-
-

Loading camera data...

+
+

Loading camera data...

) @@ -291,23 +291,23 @@ export function CameraPage({ cameraName }: CameraPageProps) { const healthStatus = getHealthStatus() return ( -
+
{/* Left Side - Live Stream (3/5) */} -
+
{/* Auto-recording Error Banner */} {autoRecordingError && ( -
-
- +
+
+ - {autoRecordingError} + {autoRecordingError}
@@ -315,7 +315,7 @@ export function CameraPage({ cameraName }: CameraPageProps) { )} {/* Stream Container */} -
+
{isStreaming && streamStatus === 'streaming' ? ( ) : streamStatus === 'starting' ? (
-
-

Starting stream...

+
+

Starting stream...

) : (
- + -

Stream not active

-

Click "Start Stream" to begin

+

Stream not active

+

Click "Start Stream" to begin

)} {/* Camera Label Overlay */} -
-
+
+
{cameraName} - Live View
{/* Stream Status Indicator */} {isStreaming && ( -
-
-
- LIVE +
+
+
+ LIVE
)} @@ -373,27 +373,27 @@ export function CameraPage({ cameraName }: CameraPageProps) {
{/* Right Side - Controls & Info (2/5) */} -
-

{cameraName.toUpperCase()}

+
+

{cameraName.toUpperCase()}

{/* Health Status */} -
-

Health Status

-
+

Health Status

+
-
-
+
- {healthStatus.message} + {healthStatus.message}
{cameraStatus?.device_info && ( -
+
Model: {cameraStatus.device_info.model || 'N/A'}
Serial: {cameraStatus.device_info.serial_number || 'N/A'}
@@ -402,12 +402,12 @@ export function CameraPage({ cameraName }: CameraPageProps) {
{/* Stream Controls */} -
-

Stream Control

-
-
-
Status:
-
+

Stream Control

+
+
+
Status:
+
-
+