diff --git a/frontend/src/components/EarthTwin.tsx b/frontend/src/components/EarthTwin.tsx index 3337893..4e5d31d 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 */} +
- - -