How sarthakdeshmukh87/climate-model works
Climate Intelligence is a web application for station-based weather monitoring, heat-risk assessment, alerts, reports, and user administration. The main workflow is selecting a station, viewing live conditions and climate records, then exploring predictions and warnings; separate views support reports, feedback, and administration. The page-to-view and selected service relationships shown below are supported by excerpts or the source index. Some data-access and domain-generation details are unsampled, so their relationships are not inferred.
Main entry points: page.tsx Main dashboard · AuthContext.tsx Authentication context · StationSelector.tsx Station selector · openmeteo.ts Live weather service
Components 23
Application experience
- Main dashboard
src/app/page.tsx - Navigation
src/components/Navigation.tsx - Weather dashboard
src/components/DashboardView.tsx - Weather records
src/components/WeatherRecordsView.tsx - Login page
src/app/login/page.tsx
Station and weather
- Station selector
src/components/StationSelector.tsx - Location geocoding
src/lib/services/geocoding.ts - Live weather service
src/lib/services/openmeteo.ts
Climate intelligence
- Risk prediction
src/lib/services/openmeteo.ts - Predictions view
src/components/PredictionsView.tsx - Alert management
src/components/AlertsView.tsx - Report analysis
src/components/ReportsView.tsx - Risk badge
src/components/RiskBadge.tsx
Identity and data
- Admin operations
src/components/AdminDashboardView.tsx - User feedback
src/components/FeedbackView.tsx - Authentication modal
src/components/AuthModal.tsx - Authentication context
src/context/AuthContext.tsx - Climate data service
src/lib/supabase/client.ts - Climate data schema
supabase/schema.sql - Climate data types
src/types/database.ts
Other components
- User
- Weather data API
- Supabase
Connections 24
- User → Main dashboard: opens
README.md - User → Login page: signs in
README.md - Main dashboard → Navigation: renders
src/app/page.tsx - Main dashboard → Station selector: renders
src/app/page.tsx - Main dashboard → Weather dashboard: renders
src/app/page.tsx - Main dashboard → Weather records: renders
src/app/page.tsx - Main dashboard → Predictions view: renders
src/app/page.tsx - Main dashboard → Alert management: renders
src/app/page.tsx - Main dashboard → Report analysis: renders
src/app/page.tsx - Main dashboard → User feedback: renders
src/app/page.tsx - Main dashboard → Admin operations: renders
src/app/page.tsx - Main dashboard → Authentication modal: renders
src/app/page.tsx - Station selector → Location geocoding: searches locations
src/components/StationSelector.tsx - Station selector → Climate data service: adds station
src/components/StationSelector.tsx - Weather dashboard → Live weather service: fetches live weather
src/components/DashboardView.tsx - Live weather service → Weather data API: requests weather data
README.md - Live weather service → Risk prediction: calculates risk
src/lib/services/openmeteo.ts - Alert management → Risk badge: renders severity
src/components/AlertsView.tsx - Authentication modal → Authentication context: uses authentication
src/components/AuthModal.tsx - Login page → Authentication context: uses authentication
src/app/login/page.tsx - Authentication context → Climate data service: loads user data
src/context/AuthContext.tsx - Authentication context → Supabase: authenticates and syncs
src/context/AuthContext.tsx - Climate data service → Supabase: reads and writes
src/lib/supabase/client.ts - Supabase → Climate data schema: implements schema
README.md