How yasar-sys/living-earth-trend-detective-nasc works
Earth Trend Watch is an interactive Earth-observation trend investigation app. The main workflow moves from the landing page into the globe investigation: users choose a data layer and year, select a region, then inspect its time series, rate, significance, and source. Separate cases, hypothesis puzzles, and a printable report broaden the analysis experience. The graph reflects documented imports and calls; unsampled UI and route internals are represented only where the README or source index supports them. The README describes pre-fetched data rather than live NASA API access.
Main entry points: trends.ts Cached trend results · RegionPanel.tsx Region details · investigate.tsx Investigation page · cases.tsx Cases page
Components 20
App experience
- Landing page
src/routes/index.tsx - Starfield
src/components/Starfield.tsx
Globe exploration
- Investigation page
src/routes/investigate.tsx - 3D globe
src/components/globe/EarthScene.tsx - Globe canvas
src/components/globe/GlobeCanvas.tsx - Layer selector
src/components/LayerPanel.tsx - Year slider
src/components/TimeSlider.tsx - Region details
src/components/RegionPanel.tsx
Trend analysis
- NASA time series
src/data/nasa-datasets.ts - Cached trend results
src/data/trends.ts - Mann–Kendall test
src/lib/mann-kendall.ts
Investigation content
- Cases page
src/routes/cases.tsx - Detective mode
src/routes/detective-mode.tsx - Printable report
src/routes/report.tsx - Case narratives
src/data/cases.ts
Shared presentation
- Site navigation
src/components/SiteNav.tsx - Trend chart
src/components/TrendChart.tsx - Source credits
src/components/SourceCredit.tsx - Animated values
src/components/AnimatedNumber.tsx
Other components
- Visitor
Connections 29
- Visitor → Landing page: opens
src/routes/index.tsx - Visitor → Investigation page: starts investigating
- Visitor → Cases page: opens cases
- Landing page → Starfield: renders
src/routes/index.tsx - Investigation page → Globe canvas: renders
src/routes/investigate.tsx - Globe canvas → 3D globe: hosts
- Investigation page → Layer selector: renders
src/routes/investigate.tsx - Investigation page → Year slider: renders
src/routes/investigate.tsx - Investigation page → Region details: renders
src/routes/investigate.tsx - 3D globe → NASA time series: reads series
src/components/globe/EarthScene.tsx - 3D globe → Cached trend results: reads trends
src/components/globe/EarthScene.tsx - Region details → Cached trend results: gets regional trend
src/components/RegionPanel.tsx - Region details → NASA time series: reads metadata
src/components/RegionPanel.tsx - Region details → Trend chart: renders
src/components/RegionPanel.tsx - Region details → Source credits: renders
src/components/RegionPanel.tsx - Region details → Animated values: renders
src/components/RegionPanel.tsx - Year slider → Cached trend results: reads year value
- Cached trend results → NASA time series: gets series
src/data/trends.ts - Cached trend results → Mann–Kendall test: computes statistics
src/data/trends.ts - Cases page → Case narratives: reads cases
src/routes/cases.tsx - Cases page → Trend chart: renders charts
src/routes/cases.tsx - Cases page → NASA time series: reads layer metadata
src/routes/cases.tsx - Detective mode → Cached trend results: gets trends
src/routes/detective-mode.tsx - Detective mode → Trend chart: renders charts
src/routes/detective-mode.tsx - Detective mode → Source credits: renders credits
src/routes/detective-mode.tsx - Printable report → Case narratives: reads cases
src/routes/report.tsx - Printable report → Cached trend results: gets layer trends
src/routes/report.tsx - Printable report → Mann–Kendall test: formats p-values
src/routes/report.tsx - Landing page → Site navigation: links to app