# tonif03/nursery architecture

> Architecture diagram of the GitHub repository tonif03/nursery, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tonif03/nursery
- Repository: https://github.com/tonif03/nursery

## Overview

Nursery is a cross-platform Flutter nursing workflow app. The documented user journey is professional sign-in, then a dashboard for patient information, alerts, care schedules and rapid access to patient files; collaboration and shift planning are additional capabilities. The graph maps documented features to the closest paths in the tree. Dart implementation excerpts were not provided, so feature relationships are documented in the README rather than verified as direct calls; messaging and shift-planning implementation paths remain broad.

Main entry points: [`lib/screens/dashboard.dart`](https://github.com/tonif03/nursery/blob/main/lib/screens/dashboard.dart) (Dashboard), [`lib/main.dart`](https://github.com/tonif03/nursery/blob/main/lib/main.dart) (Flutter app), [`lib/core/app_locale.dart`](https://github.com/tonif03/nursery/blob/main/lib/core/app_locale.dart) (Localization), [`lib/widgets/dashboard/dashboard_info_card.dart`](https://github.com/tonif03/nursery/blob/main/lib/widgets/dashboard/dashboard_info_card.dart) (Patient overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App foundation"]
  node_entry["Flutter app<br/>[main.dart]"]
  node_locale["Localization<br/>[app_locale.dart]"]
end

subgraph group_care["Nursing workflows"]
  node_dashboard["Dashboard<br/>[dashboard.dart]"]
  node_info["Patient overview"]
  node_alerts["Care alerts<br/>[alert_card.dart]"]
  node_timeline["Care timeline<br/>[timeline.dart]"]
  node_search["Quick search<br/>[dashboard.dart]"]
  node_records["Patient files<br/>[dashboard.dart]"]
  node_messaging["Team messaging"]
  node_shifts["Shift planning"]
end

subgraph group_identity["Access and profile"]
  node_authgate["Auth gate<br/>[auth_gate.dart]"]
  node_authservice["Auth service<br/>[auth_service.dart]"]
  node_login["Login screen<br/>[login_screen.dart]"]
  node_register["Registration"]
  node_profile["User menu<br/>[user_menu.dart]"]
end

node_nurse(("Nursing professional"))

node_nurse -->|"uses"| node_entry
node_entry -->|"manages access"| node_authgate
node_nurse -->|"signs in"| node_login
node_nurse -->|"creates account"| node_register
node_nurse -->|"views duties"| node_dashboard
node_dashboard -->|"shows patient data"| node_info
node_dashboard -->|"shows alerts"| node_alerts
node_dashboard -->|"shows schedules"| node_timeline
node_nurse -->|"searches records"| node_search
node_nurse -->|"manages files"| node_records
node_nurse -->|"coordinates care"| node_messaging
node_nurse -->|"plans shifts"| node_shifts
node_entry -->|"supports languages"| node_locale
node_nurse -->|"opens profile"| node_profile

click node_entry "https://github.com/tonif03/nursery/blob/main/lib/main.dart"
click node_locale "https://github.com/tonif03/nursery/blob/main/lib/core/app_locale.dart"
click node_authgate "https://github.com/tonif03/nursery/blob/main/lib/core/auth_gate.dart"
click node_authservice "https://github.com/tonif03/nursery/blob/main/lib/core/auth_service.dart"
click node_login "https://github.com/tonif03/nursery/blob/main/lib/screens/login/login_screen.dart"
click node_register "https://github.com/tonif03/nursery/blob/main/lib/screens/login/register_screen.dart"
click node_profile "https://github.com/tonif03/nursery/blob/main/lib/screens/user_menu.dart"
click node_dashboard "https://github.com/tonif03/nursery/blob/main/lib/screens/dashboard.dart"
click node_info "https://github.com/tonif03/nursery/blob/main/lib/widgets/dashboard/dashboard_info_card.dart"
click node_alerts "https://github.com/tonif03/nursery/blob/main/lib/widgets/alert_card.dart"
click node_timeline "https://github.com/tonif03/nursery/blob/main/lib/widgets/timeline.dart"
click node_search "https://github.com/tonif03/nursery/blob/main/lib/screens/dashboard.dart"
click node_records "https://github.com/tonif03/nursery/blob/main/lib/screens/dashboard.dart"
click node_messaging "https://github.com/tonif03/nursery/tree/main/lib/screens"
click node_shifts "https://github.com/tonif03/nursery/tree/main/lib/screens"

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_entry,node_locale toneBlue
class node_dashboard,node_info,node_alerts,node_timeline,node_search,node_records,node_messaging,node_shifts toneAmber
class node_authgate,node_authservice,node_login,node_register,node_profile toneMint
class node_nurse toneIndigo
```

## Components

### App foundation

- [Flutter app](https://github.com/tonif03/nursery/blob/main/lib/main.dart): `lib/main.dart`
- [Localization](https://github.com/tonif03/nursery/blob/main/lib/core/app_locale.dart): `lib/core/app_locale.dart`

### Nursing workflows

- [Dashboard](https://github.com/tonif03/nursery/blob/main/lib/screens/dashboard.dart): `lib/screens/dashboard.dart`
- [Patient overview](https://github.com/tonif03/nursery/blob/main/lib/widgets/dashboard/dashboard_info_card.dart): `lib/widgets/dashboard/dashboard_info_card.dart`
- [Care alerts](https://github.com/tonif03/nursery/blob/main/lib/widgets/alert_card.dart): `lib/widgets/alert_card.dart`
- [Care timeline](https://github.com/tonif03/nursery/blob/main/lib/widgets/timeline.dart): `lib/widgets/timeline.dart`
- [Quick search](https://github.com/tonif03/nursery/blob/main/lib/screens/dashboard.dart): `lib/screens/dashboard.dart`
- [Patient files](https://github.com/tonif03/nursery/blob/main/lib/screens/dashboard.dart): `lib/screens/dashboard.dart`
- [Team messaging](https://github.com/tonif03/nursery/tree/main/lib/screens): `lib/screens`
- [Shift planning](https://github.com/tonif03/nursery/tree/main/lib/screens): `lib/screens`

### Access and profile

- [Auth gate](https://github.com/tonif03/nursery/blob/main/lib/core/auth_gate.dart): `lib/core/auth_gate.dart`
- [Auth service](https://github.com/tonif03/nursery/blob/main/lib/core/auth_service.dart): `lib/core/auth_service.dart`
- [Login screen](https://github.com/tonif03/nursery/blob/main/lib/screens/login/login_screen.dart): `lib/screens/login/login_screen.dart`
- [Registration](https://github.com/tonif03/nursery/blob/main/lib/screens/login/register_screen.dart): `lib/screens/login/register_screen.dart`
- [User menu](https://github.com/tonif03/nursery/blob/main/lib/screens/user_menu.dart): `lib/screens/user_menu.dart`

### Other components

- **Nursing professional**

## Connections

- Nursing professional → Flutter app: uses (evidence: `README.md`)
- Flutter app → Auth gate: manages access (evidence: `README.md`)
- Nursing professional → Login screen: signs in (evidence: `README.md`)
- Nursing professional → Registration: creates account (evidence: `README.md`)
- Nursing professional → Dashboard: views duties (evidence: `README.md`)
- Dashboard → Patient overview: shows patient data (evidence: `README.md`)
- Dashboard → Care alerts: shows alerts (evidence: `README.md`)
- Dashboard → Care timeline: shows schedules (evidence: `README.md`)
- Nursing professional → Quick search: searches records (evidence: `README.md`)
- Nursing professional → Patient files: manages files (evidence: `README.md`)
- Nursing professional → Team messaging: coordinates care (evidence: `README.md`)
- Nursing professional → Shift planning: plans shifts (evidence: `README.md`)
- Flutter app → Localization: supports languages (evidence: `README.md`)
- Nursing professional → User menu: opens profile (evidence: `README.md`)
