Skip to content

Commit 3cc52ec

Browse files
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 dependencies
1 parent 09fbc07 commit 3cc52ec

31 files changed

Lines changed: 40059 additions & 37233 deletions

package-lock.json

Lines changed: 899 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@
2222
"@eslint/js": "^9.37.0",
2323
"@playwright/test": "^1.55.0",
2424
"@tailwindcss/vite": "^4.2.1",
25+
"@testing-library/jest-dom": "^6.9.1",
26+
"@testing-library/react": "^16.3.2",
2527
"eslint": "^9.37.0",
2628
"eslint-plugin-react": "^7.37.5",
2729
"eslint-plugin-react-hooks": "^5.2.0",
2830
"globals": "^16.4.0",
31+
"jsdom": "^24.1.3",
2932
"tailwindcss": "^4.2.1",
3033
"typescript": "^5.9.3",
31-
"vitest": "^3.2.4",
32-
"vite": "^7.3.1"
34+
"vite": "^7.3.1",
35+
"vitest": "^3.2.4"
3336
},
3437
"dependencies": {
3538
"@vitejs/plugin-react": "^5.1.4",

0 commit comments

Comments
 (0)