From c2c504653204509afccdd567719f1f893979ef82 Mon Sep 17 00:00:00 2001 From: Florian Graule Date: Tue, 13 Aug 2024 19:24:03 +0200 Subject: [PATCH] Fixing not available satellites --- .../app/satellites/SatelliteResponsiveTable.tsx | 17 ++++++++--------- .../[satelliteSlug]/orbitDataGraph.tsx | 5 +++++ .../src/app/satellites/[satelliteSlug]/page.tsx | 4 ++-- frontend/src/components/layout/Footer.tsx | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/frontend/src/app/satellites/SatelliteResponsiveTable.tsx b/frontend/src/app/satellites/SatelliteResponsiveTable.tsx index 72bd56d..484472e 100644 --- a/frontend/src/app/satellites/SatelliteResponsiveTable.tsx +++ b/frontend/src/app/satellites/SatelliteResponsiveTable.tsx @@ -99,15 +99,14 @@ export default function SatelliteResponsiveTable({ /> )) : (satellites ?? []).map((satellite) => ( - - handleRowClick( - satellite.attributes?.slug ?? "", - ) - } - > + + handleRowClick(satellite.attributes?.slug ?? "") + } : {})} + > {satellite.attributes?.name} diff --git a/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx b/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx index 5c6295f..b97b3b9 100644 --- a/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx +++ b/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx @@ -194,6 +194,11 @@ const OrbitDataGraph: React.FC = ({ <> {orbitalData && (
+
+

Orbital parameters history (source :

+ Space Track +

)

+

Zoom :

{/* Scrollbar thumb represents the zoom period selected, in case it fits bad we don't display diff --git a/frontend/src/app/satellites/[satelliteSlug]/page.tsx b/frontend/src/app/satellites/[satelliteSlug]/page.tsx index 5ee8338..e0ed7d1 100644 --- a/frontend/src/app/satellites/[satelliteSlug]/page.tsx +++ b/frontend/src/app/satellites/[satelliteSlug]/page.tsx @@ -155,9 +155,9 @@ export default async function SatelliteInfoPage({
- {/* Orbit data */} + {/* Container for graph of historical orbital data */}
- {/*Pass the satNum and the launchDate as props to OrbitDataGraph*/} + {/*Pass the historicalData and the launchDate as props to OrbitDataGraph*/} {noradId ? ( satAttributes?.launchDate ? (
- NTNU Small Satellite Lab + NTNU Small Satellite Lab Trondheim, Norway

Norwegian University of Science and Technology