From 739c470f8d54cdfa0a690ba3d1622729930d3457 Mon Sep 17 00:00:00 2001 From: Thebinary-bard Date: Wed, 12 Aug 2026 21:56:36 +0530 Subject: [PATCH 1/2] feat: simplify dashboard controls and remove redundant metrics --- frontend/src/components/EarthTwin.tsx | 64 ++++----------------------- frontend/src/pages/Dashboard.tsx | 27 ++--------- 2 files changed, 12 insertions(+), 79 deletions(-) diff --git a/frontend/src/components/EarthTwin.tsx b/frontend/src/components/EarthTwin.tsx index 3337893..93cbb76 100644 --- a/frontend/src/components/EarthTwin.tsx +++ b/frontend/src/components/EarthTwin.tsx @@ -5,8 +5,6 @@ import { useSpotlightEffect } from '@/hooks/useSpotlightEffect'; import { useCinematicCamera } from '@/hooks/useCinematicCamera'; import { ProceduralSpaceBackground } from '@/components/ui/ProceduralSpaceBackground'; import { keplerToLatLonAlt } from '@/utils/orbitCalc'; -import { useUIStore } from '@/store/uiStore'; -import { logEvent } from '@/store/logbookStore'; import { useUIStore, useActiveSector, useLayerStore, logEvent } from '@/store'; import { MaterialIcon } from './MaterialIcon'; import { useNavigate } from 'react-router-dom'; @@ -155,8 +153,7 @@ export const EarthTwin = forwardRef((_props, ref) => { const [hoveredObject, setHoveredObject] = useState(null); const [tooltipPos, setTooltipPos] = useState({ x: 0, y: 0 }); const [showLegend, setShowLegend] = useState(true); - const [showDensity, setShowDensity] = useState(false); - const [showRiskOverlay, setShowRiskOverlay] = useState(false); + const [showLayerManager, setShowLayerManager] = useState(false); const [objectCounts, setObjectCounts] = useState({ navigation: 0, weather: 0, military: 0, debris: 0, rocketBodies: 0, other: 0, @@ -976,42 +973,14 @@ export const EarthTwin = forwardRef((_props, ref) => { {/* Bottom Row */} -
-
- {!dataLoaded && !useFallback ? ( -
- ) : ( - <> -
-

Objects Tracked

-

- {objectCounts.total.toLocaleString()} -

-
-
-

Debris

-

- {objectCounts.debris.toLocaleString()} -

-
-
-

Collision Risks

-

0 ? 'text-status-emergency animate-pulse drop-shadow-[0_0_8px_rgba(255,59,48,0.6)]' : 'text-status-success drop-shadow-[0_0_8px_rgba(0,255,136,0.4)]'}`}> - {objectCounts.collisions} -

-
- - ) - } -
- - {/* Controls */} -
+
+ {/* Controls — compact mission-control toolbar */} +
- - -