Skip to content

Commit a46db35

Browse files
committed
Fix lint errors in Phase 5 implementation
Frontend: - CesiumGlobe.tsx: Remove unused Cesium imports (Entity, JulianDate, etc.) - TimeControls.tsx: Remove unused addHours, subHours imports Backend: - tle_routes.py: Remove unused imports (TLESource, TLERecord, fetch_sample_satellites, delete, declarative_base)
1 parent d1ac4f0 commit a46db35

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

backend/core-orbits/app/tle_routes.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
from typing import List, Optional
88
from fastapi import APIRouter, Depends, HTTPException, Query, BackgroundTasks
99
from sqlalchemy.ext.asyncio import AsyncSession
10-
from sqlalchemy import select, func, delete
10+
from sqlalchemy import select, func
1111
from pydantic import BaseModel
1212

1313
from .db import get_db
1414
from .services.tle_ingestion import (
1515
TLEIngestionService,
16-
TLESource,
17-
TLERecord,
1816
CelesTrakCatalog,
19-
fetch_sample_satellites
2017
)
2118

2219
# Try to import auth (optional)
@@ -83,7 +80,6 @@ class TLERefreshResponse(BaseModel):
8380

8481
try:
8582
from sqlalchemy import Column, Integer, String, DateTime
86-
from sqlalchemy.ext.declarative import declarative_base
8783
from .db import Base
8884

8985
class TLERecordORM(Base):

frontend/web/src/components/Globe/CesiumGlobe.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,21 @@ import {
88
Viewer,
99
Cartesian3,
1010
Color,
11-
Entity,
1211
Ion,
1312
ScreenSpaceEventHandler,
1413
ScreenSpaceEventType,
1514
defined,
16-
JulianDate,
1715
ClockRange,
1816
ClockStep,
1917
OpenStreetMapImageryProvider,
20-
createWorldTerrainAsync,
21-
Cartographic,
22-
Math as CesiumMath,
23-
PointPrimitiveCollection,
24-
LabelCollection,
2518
NearFarScalar,
2619
VerticalOrigin,
2720
HeightReference,
28-
PolylineGlowMaterialProperty,
29-
SampledPositionProperty,
30-
VelocityOrientationProperty,
31-
PathGraphics,
32-
ModelGraphics,
3321
} from 'cesium';
3422
import 'cesium/Build/Cesium/Widgets/widgets.css';
3523
import { Satellite, Radio, Layers, Eye, EyeOff, Play, Pause, RotateCcw } from 'lucide-react';
3624

25+
3726
// Disable Cesium Ion - we use open-source tiles
3827
Ion.defaultAccessToken = '';
3928

frontend/web/src/components/Globe/TimeControls.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import { useState, useCallback } from 'react';
55
import { Play, Pause, SkipBack, SkipForward, FastForward, Clock } from 'lucide-react';
6-
import { format, addHours, subHours } from 'date-fns';
6+
import { format } from 'date-fns';
77

88
interface TimeControlsProps {
99
currentTime?: Date;
@@ -127,8 +127,8 @@ export default function TimeControls({
127127
<button
128128
onClick={onPlayPause}
129129
className={`p-3 rounded-lg transition-all ${isPlaying
130-
? 'bg-cosmic-500 text-white hover:bg-cosmic-400'
131-
: 'bg-space-700 text-white/60 hover:bg-space-600 hover:text-white'
130+
? 'bg-cosmic-500 text-white hover:bg-cosmic-400'
131+
: 'bg-space-700 text-white/60 hover:bg-space-600 hover:text-white'
132132
}`}
133133
title={isPlaying ? 'Pause' : 'Play'}
134134
>

0 commit comments

Comments
 (0)