Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Ignore missing type declarations for side-effect CSS import
// @ts-ignore
// @ts-expect-error - side-effect CSS import without type declarations
import "../src/styles/index.css";
import type { Preview } from '@storybook/react-vite'

Expand Down
52 changes: 22 additions & 30 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions frontend/src/components/EarthTwin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function keplerToLatLonAlt(obj: CatalogObject, timeOffsetSec: number = 0): { lat
const epochDate = obj.epoch ? new Date(obj.epoch) : new Date();
const now = new Date();
const elapsedDays = (now.getTime() - epochDate.getTime()) / 86400000 + (timeOffsetSec / 86400);
const meanMotionRadPerSec = (obj.mean_motion * 2 * Math.PI) / 86400;
const currentMeanAnomaly = ((obj.mean_anomaly + (elapsedDays * obj.mean_motion * 360)) % 360) * Math.PI / 180;


Expand Down Expand Up @@ -284,6 +283,7 @@ export const EarthTwin: React.FC = () => {
});

viewerRef.current = viewer;
// eslint-disable-next-line react-hooks/set-state-in-effect
setUseFallback(false);


Expand Down Expand Up @@ -323,7 +323,7 @@ export const EarthTwin: React.FC = () => {
setHoveredObject(obj);
setTooltipPos({ x: movement.endPosition.x + 15, y: movement.endPosition.y - 10 });
}
} catch { }
} catch { /* ignore parse errors */ }
} else {
setHoveredObject(null);
}
Expand All @@ -348,7 +348,7 @@ export const EarthTwin: React.FC = () => {
});
}
}
} catch { }
} catch { /* ignore parse errors */ }
}
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);

Expand Down Expand Up @@ -377,6 +377,7 @@ export const EarthTwin: React.FC = () => {
console.warn('Cesium initialization failed, using fallback', e);
setUseFallback(true);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return (
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/layouts/FooterSocials.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
ArrowRight,
Mail,
Heart,
} from "lucide-react";
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/layouts/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const MainLayout: React.FC = () => {

useEffect(() => {
// Close mobile sidebar on route change
// eslint-disable-next-line react-hooks/set-state-in-effect
setMobileSidebarOpen(false);
}, [location.pathname]);

Expand Down
7 changes: 1 addition & 6 deletions frontend/src/components/layouts/MarketingLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ function useScrollToHash() {
}, [pathname, hash]);
}

const footerLinkClass =
"font-body-ui text-[13px] text-[#8892A6] hover:text-[#E7EBF3] no-underline transition-ui";

const navLinks = [
{ label: "Product", to: "/product" },
{ label: "Solutions", to: "/solutions" },
Expand Down Expand Up @@ -71,6 +68,7 @@ function MarketingNavBar() {
const location = useLocation();

useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
setMenuOpen(false);
}, [location.pathname, location.hash]);

Expand Down Expand Up @@ -192,9 +190,6 @@ function MarketingNavBar() {
);
}

type FooterLink =
| { label: string; to: string; disabled?: false }
| { label: string; to?: undefined; disabled: true };

function MarketingFooter() {
return (
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/ui/magic-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function MagicCard(props: MagicCardProps) {
const { theme, systemTheme } = useTheme()
const [mounted, setMounted] = useState(false)

// eslint-disable-next-line react-hooks/set-state-in-effect
useEffect(() => setMounted(true), [])

const isDarkTheme = useMemo(() => {
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/ui/particles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,11 @@ export const Particles: React.FC<ParticlesProps> = ({
rafID.current = window.requestAnimationFrame(animateRef.current)
}

// eslint-disable-next-line react-hooks/refs
initCanvasRef.current = initCanvas
// eslint-disable-next-line react-hooks/refs
onMouseMoveRef.current = onMouseMove
// eslint-disable-next-line react-hooks/refs
animateRef.current = animate

return (
Expand Down
Loading
Loading