How brianaryansyah/weathcionz works
This is a weather application with a dashboard and an interactive map experience. The main workflow enters through the React app, loads weather for the active location (using live data or generated demo data), and presents current conditions, forecasts, city comparisons, air quality, and map visualizations. Location selection and geolocation update shared weather state. The tree also contains a landing-page preview; its route wiring is not shown in the excerpts, so it is represented as a separate capability. Some component internals and API integrations were not sampled.
Main entry points: WeatherApp.jsx Weather App · useWeatherData.js Weather Queries · useWeatherStore.js Weather State · FloatingSidebar.jsx Map Sidebar
Components 29
Application
- App Router
src/App.jsx - Weather App
src/WeatherApp.jsx
Weather Data
- Weather State
src/store/useWeatherStore.js - Weather Queries
src/hooks/useWeatherData.js - Weather API
src/services/weatherApi.js - Demo Weather
src/data/demoWeather.js - Geolocation Hook
src/hooks/useGeolocation.js - Geolocation Service
src/services/geolocation.js - City Search
src/hooks/useSearchCities.js - Weather Formatting
src/utils/weatherUtils.js
Map Experience
- Dashboard Map
src/components/dashboard/MapCard.jsx - Interactive Map
src/components/MapCanvas.jsx - Weather Grid
src/utils/heatmapGenerator.js - Map Sidebar
src/components/FloatingSidebar.jsx - Map Legend
src/components/MapLegend.jsx - Daily Forecast
src/components/DailyForecast.jsx - Forecast Timeline
src/components/TimelineSlider.jsx
Views and UI
- Dashboard Layout
src/components/dashboard/DashboardLayout.jsx - Dashboard Header
src/components/dashboard/Header.jsx - Current Conditions
src/components/dashboard/WeatherNowCard.jsx - City Comparisons
src/components/dashboard/CityCards.jsx - Air Quality
src/components/dashboard/AirQualityCard.jsx - Temperature Chart
src/components/dashboard/TemperatureChart.jsx - Tomorrow Forecast
src/components/dashboard/TomorrowCard.jsx - Forecast Table
src/components/ExpandedForecastTable.jsx - Landing Preview
src/pages/LandingPage/Preview.jsx - Landing Hero
src/pages/LandingPage/Hero.jsx - Weather Icons
src/components/WeatherIcon.jsx
Other components
- Visitor
Connections 44
- Visitor → App Router: opens
- App Router → Weather App: routes to
src/App.jsx - Weather App → Dashboard Layout: renders
src/WeatherApp.jsx - Weather App → Weather State: reads state
src/WeatherApp.jsx - Weather App → Weather Queries: loads weather
src/WeatherApp.jsx - Weather App → Geolocation Hook: uses location
src/WeatherApp.jsx - Weather App → Dashboard Header: renders
src/WeatherApp.jsx - Weather App → Current Conditions: renders
src/WeatherApp.jsx - Weather App → Dashboard Map: renders
src/WeatherApp.jsx - Weather App → City Comparisons: renders
src/WeatherApp.jsx - Weather App → Air Quality: renders
src/WeatherApp.jsx - Weather App → Temperature Chart: renders
src/WeatherApp.jsx - Weather App → Tomorrow Forecast: renders
src/WeatherApp.jsx - Weather App → Forecast Table: renders
src/WeatherApp.jsx - Weather Queries → Weather API: fetches live data
src/hooks/useWeatherData.js - Weather Queries → Demo Weather: falls back to
src/hooks/useWeatherData.js - Weather Queries → Weather State: reads location
src/hooks/useWeatherData.js - Geolocation Hook → Weather State: updates state
src/hooks/useGeolocation.js - Weather State → Geolocation Service: locates user
src/store/useWeatherStore.js - Weather State → Weather API: reverse geocodes
src/store/useWeatherStore.js - City Search → Weather API: geocodes query
src/hooks/useSearchCities.js - City Search → Demo Weather: uses demo cities
src/hooks/useSearchCities.js - Dashboard Map → Interactive Map: renders
src/components/dashboard/MapCard.jsx - Interactive Map → Weather State: reads map state
src/components/MapCanvas.jsx - Interactive Map → Weather Queries: loads conditions
src/components/MapCanvas.jsx - Interactive Map → Weather Grid: generates grid
src/components/MapCanvas.jsx - Interactive Map → Weather Formatting: formats values
src/components/MapCanvas.jsx - Map Sidebar → Weather Queries: loads conditions
src/components/FloatingSidebar.jsx - Map Sidebar → Weather State: reads map state
src/components/FloatingSidebar.jsx - Map Sidebar → City Search: searches cities
src/components/FloatingSidebar.jsx - Map Sidebar → Map Legend: renders
src/components/FloatingSidebar.jsx - Map Sidebar → Daily Forecast: renders
src/components/FloatingSidebar.jsx - Map Sidebar → Forecast Timeline: renders
src/components/FloatingSidebar.jsx - Landing Preview → Weather State: reads location
src/pages/LandingPage/Preview.jsx - Landing Preview → Weather Queries: loads preview data
src/pages/LandingPage/Preview.jsx - Landing Preview → Interactive Map: embeds map
src/pages/LandingPage/Preview.jsx - Landing Preview → Weather Icons: renders
src/pages/LandingPage/Preview.jsx - Landing Hero → Visitor: presents entry
src/pages/LandingPage/Hero.jsx - City Comparisons → Weather API: fetches city weather
src/components/dashboard/CityCards.jsx - City Comparisons → Weather Icons: renders
src/components/dashboard/CityCards.jsx - Current Conditions → Weather Icons: renders
src/components/dashboard/WeatherNowCard.jsx - Tomorrow Forecast → Weather Icons: renders
src/components/dashboard/TomorrowCard.jsx - Forecast Table → Weather Queries: loads forecast
src/components/ExpandedForecastTable.jsx - Forecast Table → Weather Formatting: formats forecast
src/components/ExpandedForecastTable.jsx