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
- 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
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>
- 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
- 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
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.
- 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
- 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
- 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