# grisu-noe/mobile-app architecture

> Architecture diagram of the GitHub repository grisu-noe/mobile-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/grisu-noe/mobile-app
- Repository: https://github.com/grisu-noe/mobile-app

## Overview

Grisu NÖ is an Ionic mobile app for firefighters to view WASTL’s real-time Lower Austria incident information. Users browse the overview or districts, open incident details (including extended and historical information), and can view statistics, incident maps, and nearby hydrants/water points. The sampled code shows controllers calling data and geospatial services, with settings and message state persisted locally. README documents the WASTL incident-data capability; unsampled controller behavior and some service operations are represented only where their role is supported by the tree or documentation.

Main entry points: [`www/js/app.js`](https://github.com/grisu-noe/mobile-app/blob/master/www/js/app.js) (App routes), [`www/js/factories/dataService.js`](https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/dataService.js) (WASTL data), [`www/js/controllers/incidentController.js`](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/incidentController.js) (Incident detail), [`www/js/controllers/extendedIncidentController.js`](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/extendedIncidentController.js) (Extended incident)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["App routes<br/>[app.js]"]
  node_overview["Overview"]
  node_districts["District browsing"]
end

subgraph group_incidents["Incident information"]
  node_incidents_list["Incident lists"]
  node_incident_detail["Incident detail"]
  node_extended_detail["Extended incident"]
  node_history["Incident history"]
  node_statistics["Statistics"]
end

subgraph group_services["Data and services"]
  node_data_service["WASTL data<br/>[dataService.js]"]
  node_storage[("Local settings<br/>[storageService.js]")]
  node_utilities["Refresh and formatting<br/>[util.js]"]
  node_screenshot["Screenshot service"]
end

subgraph group_maps["Maps and location"]
  node_geo_service["Geospatial services<br/>[geoService.js]"]
  node_water["Water points"]
end

node_firefighters(("Firefighters"))
node_wastl["WASTL incident provider"]
node_mapping["Mapping and geocoding providers"]

node_firefighters -->|"opens"| node_app
node_app -->|"routes to"| node_overview
node_app -.->|"routes to"| node_districts
node_app -->|"routes to"| node_incidents_list
node_app -->|"routes to"| node_incident_detail
node_app -->|"routes to"| node_extended_detail
node_app -->|"routes to"| node_statistics
node_overview -->|"loads data"| node_data_service
node_overview -->|"reads and writes"| node_storage
node_overview -->|"refreshes through"| node_utilities
node_incident_detail -->|"loads incident"| node_data_service
node_incident_detail -->|"geocodes and maps"| node_geo_service
node_incident_detail -->|"reads settings"| node_storage
node_incident_detail -->|"refreshes through"| node_utilities
node_extended_detail -->|"loads and votes"| node_data_service
node_extended_detail -->|"uses map"| node_geo_service
node_extended_detail -->|"reads settings"| node_storage
node_extended_detail -->|"formats and refreshes"| node_utilities
node_statistics -->|"loads statistics data"| node_data_service
node_statistics -->|"refreshes through"| node_utilities
node_water -->|"finds nearby points"| node_geo_service
node_incidents_list -.->|"loads incidents"| node_data_service
node_history -.->|"loads history"| node_data_service
node_data_service -->|"requests incident data"| node_wastl
node_geo_service -->|"requests map data"| node_mapping
node_app -->|"preloads BAZ info"| node_data_service
node_app -->|"uses"| node_screenshot

click node_app "https://github.com/grisu-noe/mobile-app/blob/master/www/js/app.js"
click node_overview "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/overviewTabController.js"
click node_districts "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/districtsTabController.js"
click node_incidents_list "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/incidentsListController.js"
click node_incident_detail "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/incidentController.js"
click node_extended_detail "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/extendedIncidentController.js"
click node_history "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/historyController.js"
click node_statistics "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/statisticsTabController.js"
click node_data_service "https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/dataService.js"
click node_storage "https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/storageService.js"
click node_utilities "https://github.com/grisu-noe/mobile-app/blob/master/www/js/services/util.js"
click node_geo_service "https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/geoService.js"
click node_water "https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/waterTabController.js"
click node_screenshot "https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/screenshotService.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_overview,node_districts toneBlue
class node_incidents_list,node_incident_detail,node_extended_detail,node_history,node_statistics toneAmber
class node_data_service,node_storage,node_utilities,node_screenshot toneMint
class node_geo_service,node_water toneRose
class node_firefighters,node_wastl,node_mapping toneIndigo
```

## Components

### App navigation

- [App routes](https://github.com/grisu-noe/mobile-app/blob/master/www/js/app.js): `www/js/app.js`
- [Overview](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/overviewTabController.js): `www/js/controllers/overviewTabController.js`
- [District browsing](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/districtsTabController.js): `www/js/controllers/districtsTabController.js`

### Incident information

- [Incident lists](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/incidentsListController.js): `www/js/controllers/incidentsListController.js`
- [Incident detail](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/incidentController.js): `www/js/controllers/incidentController.js`
- [Extended incident](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/extendedIncidentController.js): `www/js/controllers/extendedIncidentController.js`
- [Incident history](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/historyController.js): `www/js/controllers/historyController.js`
- [Statistics](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/statisticsTabController.js): `www/js/controllers/statisticsTabController.js`

### Data and services

- [WASTL data](https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/dataService.js): `www/js/factories/dataService.js`
- [Local settings](https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/storageService.js): `www/js/factories/storageService.js`
- [Refresh and formatting](https://github.com/grisu-noe/mobile-app/blob/master/www/js/services/util.js): `www/js/services/util.js`
- [Screenshot service](https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/screenshotService.js): `www/js/factories/screenshotService.js`

### Maps and location

- [Geospatial services](https://github.com/grisu-noe/mobile-app/blob/master/www/js/factories/geoService.js): `www/js/factories/geoService.js`
- [Water points](https://github.com/grisu-noe/mobile-app/blob/master/www/js/controllers/waterTabController.js): `www/js/controllers/waterTabController.js`

### Other components

- **Firefighters**
- **WASTL incident provider**
- **Mapping and geocoding providers**

## Connections

- Firefighters → App routes: opens (evidence: `www/js/app.js`)
- App routes → Overview: routes to (evidence: `www/js/app.js`)
- App routes → District browsing: routes to
- App routes → Incident lists: routes to (evidence: `www/js/app.js`)
- App routes → Incident detail: routes to (evidence: `www/js/app.js`)
- App routes → Extended incident: routes to (evidence: `www/js/app.js`)
- App routes → Statistics: routes to (evidence: `www/js/app.js`)
- Overview → WASTL data: loads data (evidence: `www/js/controllers/overviewTabController.js`)
- Overview → Local settings: reads and writes (evidence: `www/js/controllers/overviewTabController.js`)
- Overview → Refresh and formatting: refreshes through (evidence: `www/js/controllers/overviewTabController.js`)
- Incident detail → WASTL data: loads incident (evidence: `www/js/controllers/incidentController.js`)
- Incident detail → Geospatial services: geocodes and maps (evidence: `www/js/controllers/incidentController.js`)
- Incident detail → Local settings: reads settings (evidence: `www/js/controllers/incidentController.js`)
- Incident detail → Refresh and formatting: refreshes through (evidence: `www/js/controllers/incidentController.js`)
- Extended incident → WASTL data: loads and votes (evidence: `www/js/controllers/extendedIncidentController.js`)
- Extended incident → Geospatial services: uses map (evidence: `www/js/controllers/extendedIncidentController.js`)
- Extended incident → Local settings: reads settings (evidence: `www/js/controllers/extendedIncidentController.js`)
- Extended incident → Refresh and formatting: formats and refreshes (evidence: `www/js/controllers/extendedIncidentController.js`)
- Statistics → WASTL data: loads statistics data (evidence: `www/js/controllers/statisticsTabController.js`)
- Statistics → Refresh and formatting: refreshes through (evidence: `www/js/controllers/statisticsTabController.js`)
- Water points → Geospatial services: finds nearby points (evidence: `www/js/controllers/waterTabController.js`)
- Incident lists → WASTL data: loads incidents
- Incident history → WASTL data: loads history
- WASTL data → WASTL incident provider: requests incident data (evidence: `www/js/factories/dataService.js`)
- Geospatial services → Mapping and geocoding providers: requests map data (evidence: `www/js/factories/geoService.js`)
- App routes → WASTL data: preloads BAZ info (evidence: `www/js/app.js`)
- App routes → Screenshot service: uses (evidence: `www/js/app.js`)
