How gowtham1103/consumption works
GoWatr is a React water-consumption management app. Users sign in, choose a property, inspect meter status and consumption totals, open per-door history, and generate or download invoices. The route component enforces client-side authentication and selects the property, detail, and invoice screens. Fetch components retrieve data for several screens and show a shared loading view while waiting. Source excerpts show some route and component relationships, but not every data-fetching implementation or integration, so those links are omitted where evidence is unavailable.
Main entry points: App.jsx Routes and auth · FetchMore.jsx Meter history data · FetchPlutus.jsx Plutus data · FetchingData.jsx Invoice data
Components 20
Access and routing
- Routes and auth
src/App.jsx - Login logic
src/components/loginpage/LoginLogic.jsx - Login screen
src/components/loginpage/LoginPage.jsx - Loading screen
src/components/loading/LoadingPage.jsx
Property selection
- Property data
src/components/property/ApiLit.jsx - Property chooser
src/components/property/Page2.jsx
Consumption views
- Cloud Graze data
src/components/cloudGlaze/CloudGraze.jsx - Cloud Graze meters
src/components/cloudGlaze/TableData.jsx - Plutus data
src/components/plutus/FetchPlutus.jsx - Plutus meters
src/components/plutus/PlutusTable.jsx - Meter history data
src/components/morecomponent/FetchMore.jsx - Meter history
src/components/morecomponent/More.jsx
Invoice flow
- Invoice data
src/components/Invoice/FetchingData.jsx - Cloud Graze invoice
src/components/Invoice/Invoice.jsx - Invoice 2 data
src/components/cloudGlaze/FetchingData2.jsx - Plutus invoice
src/components/Invoice/Invoic2.jsx - Invoice download
src/components/Invoice/DownloadInvoice.jsx
Other components
- Property user
- Plutus data service
- Meter detail service
Connections 29
- Property user → Routes and auth: uses
- Routes and auth → Login logic: routes to
src/App.jsx - Routes and auth → Property data: routes to
src/App.jsx - Routes and auth → Cloud Graze data: routes to
src/App.jsx - Routes and auth → Plutus data: routes to
src/App.jsx - Routes and auth → Meter history data: routes to
src/App.jsx - Routes and auth → Invoice data: routes to
src/App.jsx - Routes and auth → Invoice 2 data: routes to
src/App.jsx - Routes and auth → Invoice download: routes to
src/App.jsx - Login logic → Login screen: renders
src/components/loginpage/LoginLogic.jsx - Property data → Property chooser: renders
src/components/property/ApiLit.jsx - Property chooser → Cloud Graze data: navigates to
src/components/property/Page2.jsx - Property chooser → Plutus data: navigates to
src/components/property/Page2.jsx - Cloud Graze data → Cloud Graze meters: renders
src/components/cloudGlaze/CloudGraze.jsx - Plutus data → Plutus data service: requests
src/components/plutus/FetchPlutus.jsx - Plutus data → Plutus meters: renders
src/components/plutus/FetchPlutus.jsx - Meter history data → Meter detail service: requests
src/components/morecomponent/FetchMore.jsx - Meter history data → Meter history: renders
src/components/morecomponent/FetchMore.jsx - Invoice data → Cloud Graze invoice: renders
src/components/Invoice/FetchingData.jsx - Invoice 2 data → Plutus invoice: renders
src/components/cloudGlaze/FetchingData2.jsx - Cloud Graze invoice → Invoice download: passes invoice data
src/components/Invoice/Invoice.jsx - Plutus invoice → Invoice download: passes invoice data
src/components/Invoice/Invoic2.jsx - Cloud Graze meters → Invoice data: opens invoice
src/components/cloudGlaze/TableData.jsx - Cloud Graze meters → Meter history data: opens history
src/components/cloudGlaze/TableData.jsx - Plutus meters → Invoice 2 data: opens invoice
src/components/plutus/PlutusTable.jsx - Plutus meters → Meter history data: opens history
src/components/plutus/PlutusTable.jsx - Meter history data → Loading screen: renders while waiting
src/components/morecomponent/FetchMore.jsx - Plutus data → Loading screen: renders while waiting
src/components/plutus/FetchPlutus.jsx - Invoice data → Loading screen: renders while waiting
src/components/Invoice/FetchingData.jsx