How baymaxrehaan/jal-sanchay-frontend works
Jal Sanchay is a web-based geospatial intelligence platform for water conservation and agriculture. Users enter through public pages, register or log in, then access a protected dashboard whose map and time-series views support satellite-index exploration and comparison; chart views add interpolation, derivatives and an AI chat panel. Authentication is managed in a shared context and backed by API calls. The tree contains both root-level and src/dashboard implementations; their documented composition is shown separately. Dashboard map internals are not excerpted, so their data-source relationships are not asserted.
Main entry points: App.jsx App router · HomePage.jsx Home page · AuthContext.jsx Auth context · ProtectedRoute.jsx Protected routes
Components 29
Application and access
- App router
src/App.jsx - Protected routes
src/components/ProtectedRoute.jsx - Dashboard page
src/pages/Dashboard.jsx
Public experience
- Home page
src/pages/HomePage.jsx - About and contact
src/pages/AboutPage.jsx - Landing content
src/components/Hero.jsx - Feature cards
src/components/FeatureCards.jsx - Navigation bar
src/components/Navbar.jsx - Footer
src/components/Footer.jsx
Geospatial analysis
- Dashboard analysis view
src/dashboard/MapWithTimeseries.jsx - Map selection
src/dashboard/MapSection.jsx - Analysis controls
src/dashboard/TopPanel.jsx - Chart and chat modal
src/dashboard/ChartModal.jsx - Series calculations
src/utils/timeseriesUtils.js - Component analysis view
src/components/MapWithTimeseries.jsx - Component map
src/components/MapSection.jsx - Component controls
src/components/TopPanel.jsx - Component chart modal
src/components/ChartModal.jsx - Root analysis view
dashboard/MapWithTimeseries.jsx - Root map
dashboard/MapSection.jsx - Root controls
dashboard/TopPanel.jsx - Root chart modal
dashboard/ChartModal.jsx
Identity and API
- Login and registration
src/pages/Login.jsx - Profile page
src/pages/Profile.jsx - Auth context
src/context/AuthContext.jsx - Backend API client
src/services/api.js
Other components
- Visitor
- Application backend
- Chat endpoint
Connections 35
- Visitor → App router: opens
src/App.jsx - App router → Auth context: provides auth
src/App.jsx - App router → Home page: routes to
src/App.jsx - App router → Login and registration: routes to
src/App.jsx - App router → About and contact: routes to
src/App.jsx - App router → Protected routes: guards
src/App.jsx - Protected routes → Auth context: checks session
src/components/ProtectedRoute.jsx - Protected routes → Dashboard page: renders
src/App.jsx - Protected routes → Profile page: renders
src/App.jsx - Home page → Landing content: renders
src/pages/HomePage.jsx - Home page → Feature cards: renders
src/pages/HomePage.jsx - Home page → Navigation bar: renders
src/pages/HomePage.jsx - Home page → Footer: renders
src/pages/HomePage.jsx - About and contact → Navigation bar: renders
src/pages/AboutPage.jsx - About and contact → Footer: renders
src/pages/AboutPage.jsx - Login and registration → Auth context: uses auth
src/pages/Login.jsx - Profile page → Auth context: uses auth
src/pages/Profile.jsx - Auth context → Backend API client: calls auth API
src/context/AuthContext.jsx - Backend API client → Application backend: requests endpoints
src/services/api.js - Dashboard page → Dashboard analysis view: renders
src/pages/Dashboard.jsx - Dashboard analysis view → Map selection: renders
src/dashboard/MapWithTimeseries.jsx - Dashboard analysis view → Analysis controls: renders
src/dashboard/MapWithTimeseries.jsx - Dashboard analysis view → Chart and chat modal: renders
src/dashboard/MapWithTimeseries.jsx - Chart and chat modal → Series calculations: computes series
src/dashboard/ChartModal.jsx - Component analysis view → Component map: renders
src/components/MapWithTimeseries.jsx - Component analysis view → Component controls: renders
src/components/MapWithTimeseries.jsx - Component analysis view → Component chart modal: renders
src/components/MapWithTimeseries.jsx - Component chart modal → Series calculations: computes series
src/components/ChartModal.jsx - Root analysis view → Root map: renders
dashboard/MapWithTimeseries.jsx - Root analysis view → Root controls: renders
dashboard/MapWithTimeseries.jsx - Root analysis view → Root chart modal: renders
dashboard/MapWithTimeseries.jsx - Root chart modal → Series calculations: computes series
dashboard/ChartModal.jsx - Chart and chat modal → Chat endpoint: posts questions
src/dashboard/ChartModal.jsx - Component chart modal → Chat endpoint: posts questions
src/components/ChartModal.jsx - Root chart modal → Chat endpoint: posts questions
dashboard/ChartModal.jsx