Commit Graph
75 Commits
Author SHA1 Message Date
silvertakana c4f32ece18 feat: Introduce GlobeView component with Google 3D Tiles and integrate various camera data sources including GDOT, Caltrans, and TFL. 2026-03-12 19:04:47 +13:00
silvertakana 6cfef39e1b feat: add QUINTIC_IN_OUT easing to all camera flyTo calls for smoother start/end 2026-03-12 19:01:12 +13:00
silvertakana bccdc6aa26 feat: Add HLS stream playback support for traffic cameras (GDOT) 2026-03-11 19:42:53 +13:00
silvertakana fcdea75bdc feat: migrate to filtered GeoJSON camera feed and remove insecam system 2026-03-11 17:43:42 +13:00
silvertakana 9748d02820 feat: Add GeoJSON importer with dynamic per-import plugin registration 2026-03-11 16:20:40 +13:00
silvertakana 39c7324872 docs: add CONTRIBUTING.md, CODE_OF_CONDUCT.md, and GitHub issue/PR templates 2026-03-11 14:07:33 +13:00
silvertakana 53f4a02d07 feat: reactivate insecam with Supabase cache and stale-while-revalidate 2026-03-10 15:48:23 +13:00
silvertakana 3f6c9bf7c7 feat: Add core application UI components including AppShell, SearchBar, and FloatingWindow, alongside search history, API key management, and globe interaction hooks. 2026-03-10 11:50:07 +13:00
silvertakana 3df54a8c47 feat: Add location pin animation after search camera fly-to 2026-03-10 11:27:05 +13:00
silvertakana 1d90209d51 perf: replace requestIdleCallback with rAF and remove distance sort for instant point rendering 2026-03-10 11:20:19 +13:00
silvertakana f64d5a61ba feat: Add loading indicator spinner for data layers 2026-03-10 11:12:24 +13:00
silvertakana c995716d02 fix: increase data point tap size (8px desktop, 12px mobile) 2026-03-10 11:03:58 +13:00
silvertakana 899d23e2e5 feat: Integrate CesiumJS for 3D globe visualization and add supporting search and place detail functionalities. 2026-03-10 10:57:22 +13:00
silvertakana 59b0c638c7 feat(camera): add default source type that auto-loads cameras.json 2026-03-10 10:47:06 +13:00
silvertakana 9e8ea82480 fix: rotate credential immediately on any API failure, not just 429 2026-03-09 19:23:45 +13:00
silvertakana 3c516ff021 feat: expand search to support addresses, institutions, and landmarks 2026-03-09 19:22:10 +13:00
silvertakana e77626d84d feat: mobile HUD layout + borders imagery optimization
Mobile layout:
- Compact 'WWV' logo with persistent centered search bar
- Region + time bar attached flush below header (no gap)
- Collapsible camera stats notch (LAT/LON/ALT/HDG/FPS)
- Sidebar boot animation disabled on mobile (no flash-on-load)

Borders optimization:
- Replace Entity-based GeoJSON borders (200+ entities) with
  Bing Maps AERIAL_WITH_LABELS_ON_DEMAND imagery overlay
- GPU-rasterized tiles with near-zero CPU overhead
- Auto-disabled when using Google 3D Tiles mode
2026-03-09 18:57:48 +13:00
silvertakana 5f85a1d9e8 Merge branch 'main' of https://github.com/silvertakana/worldwideview 2026-03-09 18:31:10 +13:00
silvertakana 4845b72cc8 feat: add mobile-friendly responsive layout
- Add useIsMobile hook (768px breakpoint via matchMedia)
- Add exclusive mobile panel state (openMobilePanel) to uiSlice
- Condense header on mobile: logo + expandable search + LIVE badge
- Create MobileHudBar: scrollable region presets + time windows
- PanelToggleArrows: fixed to screen edges, exclusive toggle on mobile
- LayerPanel/DataConfigPanel: slide-in 80vw panels on mobile
- Hide CameraStatsPanel on mobile
- Comprehensive mobile CSS: 44px touch targets, compact timeline
- AppShell: conditionally render mobile components
2026-03-09 18:30:54 +13:00
Silvertakana 3522c7646f Merge pull request #1 from silvertakana/vercel/set-up-vercel-web-analytics-fo-4673vj
Set up Vercel Web Analytics for Next.js
2026-03-09 18:12:57 +13:00
Vercel 97188a9c64 Set up Vercel Web Analytics for Next.js
Implemented Vercel Web Analytics for Next.js App Router Project

Changes Made:
=============

1. Installed @vercel/analytics package
   - Added @vercel/analytics ^1.6.1 to dependencies in package.json
   - Updated package-lock.json with new dependency tree

2. Modified src/app/layout.tsx
   - Added import statement: `import { Analytics } from "@vercel/analytics/next";`
   - Added <Analytics /> component inside the <body> tag, after {children}
   - Preserved all existing code structure, including suppressHydrationWarning and CesiumJS styles

Implementation Details:
======================

This is an App Router Next.js project (using the app directory structure), so the Analytics component was added to the root layout file (src/app/layout.tsx) as per Vercel's official documentation.

The Analytics component was placed after {children} in the body tag to ensure:
- It doesn't interfere with page content rendering
- Analytics scripts load after the main content
- Follows Vercel's recommended placement pattern

Verification:
============

✓ Build completed successfully (npm run build)
✓ All tests passed (npm test) - 30 tests across 5 test suites
✓ TypeScript compilation successful
✓ No linting errors introduced

The implementation follows Next.js 16.1.6 best practices and preserves all existing functionality while adding comprehensive web analytics tracking.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2026-03-09 04:56:30 +00:00
silvertakana 90b9c029df feat: sci-fi HUD boot-up with optimized camera fly-in
- Implement staged HUD entrance animations (Header, Sidebars, Timeline)
- Add BootOverlay with orbital ring animation and flickering text
- Optimize LOD loading: camera starts at 10k km to pre-load tiles, then teleports to 60k km for smooth fly-in
- Fix panel toggle positioning by switching to pure opacity fades for controls with complex transforms
- Ensure UI toggles work post-boot by removing animation classes via 'boot-done' state
2026-03-09 17:01:03 +13:00
silvertakana c2722856d8 fix: add viewer.isDestroyed() guards to prevent hot-reload TypeError 2026-03-09 16:56:28 +13:00
silvertakana 1505b0902b fix: correct backward 3D model orientation and enable position interpolation for promoted models 2026-03-09 16:09:15 +13:00
silvertakana 83752b96c9 chore: add clientId to all credential rotation log messages 2026-03-09 15:57:04 +13:00
silvertakana 9db38cb0de fix: safer credential parsing (split on first colon only) 2026-03-09 15:54:58 +13:00
silvertakana 522e976739 feat: multi-account OpenSky credential rotation
- New credentials.ts: pool manager that parses OPENSKY_CREDENTIALS env
  var (comma-separated clientId:clientSecret pairs), tracks per-credential
  tokens and credits, auto-rotates when credits drop below threshold or
  on 429 responses. Falls back to legacy OPENSKY_CLIENTID/CLIENTSECRET.
- Simplified auth.ts to thin wrapper over credential pool
- Removed single-credential fields from state.ts (now per-credential)
- rate-limit.ts stores credits per-credential via pool
- polling.ts rotates credentials on 429
- Updated .env.example with OPENSKY_CREDENTIALS documentation
- Added credentials.test.ts (8 tests) and updated rate-limit.test.ts
2026-03-09 15:42:54 +13:00
silvertakana 19b521c5ca fix: hide entities during chunked loading to prevent terrain bleed-through
Entities were visible through the ground during async chunked rendering
because they were created with show:true (default) while the animation
loop (which handles horizon culling) only starts after loading completes.

Now primitives are created with show:false and the animation loop sets
show:true once they pass frustum + horizon culling checks.
2026-03-09 15:17:43 +13:00
silvertakana e8e2311422 feat(camera): disable insecam data source option 2026-03-09 15:13:13 +13:00
silvertakana 41e2413af4 feat: add OpenSky rate-limit header parsing and credit-aware adaptive polling
- New rate-limit.ts module: parses X-Rate-Limit-Remaining and
  X-Rate-Limit-Retry-After-Seconds headers, computes adaptive backoff
  based on remaining credits
- Updated state.ts: added creditsRemaining/retryAfterSec fields,
  changed base poll interval from 10s to 15s
- Updated polling.ts: integrates rate-limit header parsing on every
  response, uses server retry-after for 429 backoff, uses credit-aware
  adaptive scheduling
- Added rate-limit.test.ts: 9 unit tests covering header parsing,
  backoff computation, and edge cases
2026-03-09 15:12:59 +13:00
silvertakana a3e19cecef deploy: add Dockerfile for standalone Next.js deployment 2026-03-08 22:21:00 +13:00
silvertakana 62daafc4a0 chore: production disk sustainability - standalone output, remove fs cache 2026-03-08 19:29:54 +13:00
silvertakana 3f17dd21f8 docs: use actual github repository url 2026-03-08 14:05:35 +13:00
silvertakana 400ac5aa13 fix: match trail and camera lock-on to extrapolated aircraft position
- dataSlice: refresh selectedEntity when polling data arrives
- useSelectionAnchor: use CallbackProperty to read extrapolated posRef
  from animatables map so viewer.trackedEntity follows smoothly
- SelectionHandler: extend trail to extrapolated posRef tip
- GlobeView: pass animatablesMapRef to selection anchor and trail
2026-03-07 23:19:02 +13:00
silvertakana 83d329e407 feat(camera): add 3D frustum wireframe rendering for camera view cones
- frustumGeometry.ts: pure math module with haversine projection for
  4 corner points of the camera view pyramid
- FrustumRenderer.ts: Cesium Entity polyline management (4 side edges)
- useFrustumRendering.ts: React hook bridging renderer with viewer
- GlobeView.tsx: wire frustum hook into rendering pipeline
- cameraMapper.ts: default camera altitude to 8m above ground
- vitest.config.ts: include plugin tests in vitest glob
- 12 unit tests passing for geometry + cardinal direction parsing
- Architecture supports future ground-surface projection
2026-03-07 19:34:07 +13:00
silvertakana 616ccf40df chore: license change to ELv2 and add fair-use notice v0.2.0 2026-03-07 18:04:46 +13:00
silvertakana 488bebafce feat(camera): implement insecam mult-page parsing for bulk camera retrieval 2026-03-07 14:33:27 +13:00
silvertakana 91155f3b70 feat(camera): add insecam-api source integration 2026-03-07 14:27:35 +13:00
silvertakana e1d0f06a54 feat: Add Favorite Data Item functionality 2026-03-07 13:18:56 +13:00
silvertakana e2e4d5db37 refactor: modularize timeline availability & finalize data config refactor 2026-03-07 13:09:18 +13:00
silvertakana 3efacce157 refactor: modularize DataConfigPanel into sub-components for improved DRYness 2026-03-07 12:49:47 +13:00
silvertakana a8e52d42aa feat: Implement camera plugin, core application shell, globe view, floating windows, and state management. 2026-03-07 12:36:16 +13:00
silvertakana 35050d150e docs: add .env.example template and update setup guide 2026-03-07 09:41:03 +13:00
silvertakana 0d037d0266 docs: comprehensive project documentation and architectural overview 2026-03-06 13:46:57 +13:00
silvertakana f672efd1d2 feat: integrate CesiumJS for 3D globe visualization, adding core components, assets, and documentation. 2026-03-06 13:33:24 +13:00
silvertakana 7cf44d2d5c feat: add real-time FPS indicator to HUD 2026-03-06 09:59:15 +13:00
silvertakana 4b9d8e8010 feat: move camera stats to top-center HUD notch with collapsible functionality 2026-03-05 22:46:48 +13:00
silvertakana bafc755916 refactor(GlobeView): improve cameraGoTo logic with back-offset, zero roll, and pitch clamping 2026-03-05 22:35:26 +13:00
silvertakana 5a2075ba6c feat: native Cesium camera controls (flyTo, trackedEntity, lookAt) 2026-03-05 20:14:44 +13:00
silvertakana dadbeea612 fix: refine 'Go To' camera alignment using flyToBoundingSphere 2026-03-05 18:18:38 +13:00