Commit 3cc52ec
committed
feat: implement code modernization and testing infrastructure
- TypeScript: Enable checkJs with type declarations for Cesium/satellite.js/hls.js
- Code Decomposition: Extract utilities from monolithic components
- src/constants/cities.js: 140+ cities organized by strategic tiers
- src/constants/globe.js: Globe constants, track views, layer budgets
- src/utils/geo.js: Geographic math helpers
- src/utils/entityMap.js: Entity ID to layer mapping
- src/utils/adsbParser.js: ADS-B payload parsing
- src/utils/aircraftClassification.js: Flight classification
- src/utils/cache.js: IndexedDB browser cache
- src/utils/entityCulling.js: Viewport culling & pagination
- Testing: Add 127 unit tests covering utilities and integration
- Tests for geo, layerHealth, cities, entityMap, globe, cache
- Tests for adsbParser, aircraftClassification, entityCulling
- Integration tests for parsing + classification flows
- Error Handling: Fix and document RenderBoundary component
- Linting: Fix type issues and update configurations
BREAKING: Requires npm install for new testing dependencies1 parent 09fbc07 commit 3cc52ec
31 files changed
Lines changed: 40059 additions & 37233 deletions
File tree
- public/manifests
- src
- components
- constants
- layers
- services
- types
- utils
- tests/unit
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
32 | | - | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments