# saidou-123/jur-gui architecture

> Architecture diagram of the GitHub repository saidou-123/jur-gui, 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/saidou-123/jur-gui
- Repository: https://github.com/saidou-123/jur-gui

## Overview

Jur-Gui is a Flutter application whose tree indicates livestock breeders’ and veterinarians’ workflows, including herd and animal records, reproduction, health care, messaging, and notifications. The README only identifies it as a starter Flutter project, and no Dart feature source was excerpted, so the app’s user journey and links among those features remain tentative. The shown Supabase function does document account-status email delivery and, for approval or rejection, a push-notification request. Windows runner components are included as runtime hosting infrastructure.

Main entry points: [`lib/pages/Interface/interfaceEleveur/interfaceElevaur.dart`](https://github.com/saidou-123/jur-gui/blob/main/lib/pages/Interface/interfaceEleveur/interfaceElevaur.dart) (Breeder interface), [`lib/pages/Interface/interfaceVeterinaire/interfaceVeterinaire.dart`](https://github.com/saidou-123/jur-gui/blob/main/lib/pages/Interface/interfaceVeterinaire/interfaceVeterinaire.dart) (Veterinarian interface), [`supabase/functions/notifier-statut-veterinaire/index.ts`](https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/notifier-statut-veterinaire/index.ts) (Account-status notices), [`lib/pages/Bienvenue`](https://github.com/saidou-123/jur-gui/tree/main/lib/pages/Bienvenue) (Sign-in and registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter application"]
  node_flutter_app["Flutter app<br/>[main.dart]"]
  node_account["Sign-in and registration"]
  node_breeder_home["Breeder interface"]
  node_vet_home["Veterinarian interface"]
end

subgraph group_livestock["Herd and reproduction"]
  node_herd["Herd management"]
  node_animal_entry["Animal registration"]
  node_reproduction["Reproduction tracking"]
  node_heat["Heat-cycle tracking"]
  node_pedigree["Genealogy"]
end

subgraph group_care["Animal care"]
  node_vet_care["Veterinary health records"]
  node_rfid_scan["Veterinary RFID scan"]
  node_messaging["Messaging"]
  node_pdf["Health booklet PDF"]
end

subgraph group_services["Backend services"]
  node_notifications["Notification functions<br/>[index.ts]"]
  node_cycle_check["Cycle anomaly check<br/>[index.ts]"]
  node_copilot["Copilot function<br/>[index.ts]"]
  node_status_notice["Account-status notices<br/>[index.ts]"]
  node_push_notice["Push delivery function<br/>[index.ts]"]
  node_user_store[("User records")]
end

subgraph group_runtime["Windows host"]
  node_win_entry["Windows entry point<br/>[main.cpp]"]
  node_flutter_window["Flutter window host<br/>[flutter_window.cpp]"]
  node_win_window["Win32 window<br/>[win32_window.cpp]"]
  node_plugin_reg["Plugin registration"]
end

node_user(("Breeder or vet"))
node_brevo["Brevo email service"]

node_user -.->|"uses"| node_flutter_app
node_flutter_app -.->|"presents"| node_account
node_account -.->|"routes to"| node_breeder_home
node_account -.->|"routes to"| node_vet_home
node_breeder_home -.->|"offers"| node_herd
node_breeder_home -.->|"offers"| node_animal_entry
node_breeder_home -.->|"offers"| node_reproduction
node_breeder_home -.->|"offers"| node_heat
node_breeder_home -.->|"offers"| node_pedigree
node_vet_home -.->|"offers"| node_vet_care
node_vet_home -.->|"offers"| node_rfid_scan
node_breeder_home -.->|"offers"| node_messaging
node_vet_home -.->|"offers"| node_messaging
node_herd -.->|"exports"| node_pdf
node_status_notice -->|"reads"| node_user_store
node_status_notice -->|"sends email"| node_brevo
node_status_notice -->|"requests push"| node_push_notice
node_win_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits"| node_win_window
node_flutter_window -->|"registers plugins"| node_plugin_reg

click node_flutter_app "https://github.com/saidou-123/jur-gui/blob/main/lib/main.dart"
click node_account "https://github.com/saidou-123/jur-gui/tree/main/lib/pages/Bienvenue"
click node_breeder_home "https://github.com/saidou-123/jur-gui/blob/main/lib/pages/Interface/interfaceEleveur/interfaceElevaur.dart"
click node_vet_home "https://github.com/saidou-123/jur-gui/blob/main/lib/pages/Interface/interfaceVeterinaire/interfaceVeterinaire.dart"
click node_herd "https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/Mon%20Troupeau"
click node_animal_entry "https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/Ajouter%20Animal"
click node_reproduction "https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/New/Accouplemt"
click node_heat "https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/New/chaleur"
click node_pedigree "https://github.com/saidou-123/jur-gui/blob/main/lib/Eleveures/New/genealogique/ArbreGenealogique.dart"
click node_vet_care "https://github.com/saidou-123/jur-gui/tree/main/lib/Veterinaires/Sant%C3%A9Animale"
click node_rfid_scan "https://github.com/saidou-123/jur-gui/tree/main/lib/Veterinaires/Scanveterinaire"
click node_messaging "https://github.com/saidou-123/jur-gui/blob/main/lib/Eleveures/Messagerie/MessageriePage.dart"
click node_pdf "https://github.com/saidou-123/jur-gui/blob/main/lib/Eleveures/PDF/CarnetSantePdfService.dart"
click node_notifications "https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/process-scheduled-notifications/index.ts"
click node_cycle_check "https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/check-cycle-anomalies/index.ts"
click node_copilot "https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/copilot/index.ts"
click node_status_notice "https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/notifier-statut-veterinaire/index.ts"
click node_push_notice "https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/send-push-notification/index.ts"
click node_win_entry "https://github.com/saidou-123/jur-gui/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/saidou-123/jur-gui/blob/main/windows/runner/flutter_window.cpp"
click node_win_window "https://github.com/saidou-123/jur-gui/blob/main/windows/runner/win32_window.cpp"
click node_plugin_reg "https://github.com/saidou-123/jur-gui/blob/main/windows/flutter/generated_plugin_registrant.cc"

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_flutter_app,node_account,node_breeder_home,node_vet_home toneBlue
class node_herd,node_animal_entry,node_reproduction,node_heat,node_pedigree toneAmber
class node_vet_care,node_rfid_scan,node_messaging,node_pdf toneMint
class node_notifications,node_cycle_check,node_copilot,node_status_notice,node_push_notice,node_user_store toneRose
class node_win_entry,node_flutter_window,node_win_window,node_plugin_reg,node_user,node_brevo toneIndigo
```

## Components

### Flutter application

- [Flutter app](https://github.com/saidou-123/jur-gui/blob/main/lib/main.dart): `lib/main.dart`
- [Sign-in and registration](https://github.com/saidou-123/jur-gui/tree/main/lib/pages/Bienvenue): `lib/pages/Bienvenue`
- [Breeder interface](https://github.com/saidou-123/jur-gui/blob/main/lib/pages/Interface/interfaceEleveur/interfaceElevaur.dart): `lib/pages/Interface/interfaceEleveur/interfaceElevaur.dart`
- [Veterinarian interface](https://github.com/saidou-123/jur-gui/blob/main/lib/pages/Interface/interfaceVeterinaire/interfaceVeterinaire.dart): `lib/pages/Interface/interfaceVeterinaire/interfaceVeterinaire.dart`

### Herd and reproduction

- [Herd management](https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/Mon%20Troupeau): `lib/Eleveures/Mon Troupeau`
- [Animal registration](https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/Ajouter%20Animal): `lib/Eleveures/Ajouter Animal`
- [Reproduction tracking](https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/New/Accouplemt): `lib/Eleveures/New/Accouplemt`
- [Heat-cycle tracking](https://github.com/saidou-123/jur-gui/tree/main/lib/Eleveures/New/chaleur): `lib/Eleveures/New/chaleur`
- [Genealogy](https://github.com/saidou-123/jur-gui/blob/main/lib/Eleveures/New/genealogique/ArbreGenealogique.dart): `lib/Eleveures/New/genealogique/ArbreGenealogique.dart`

### Animal care

- [Veterinary health records](https://github.com/saidou-123/jur-gui/tree/main/lib/Veterinaires/Sant%C3%A9Animale): `lib/Veterinaires/SantéAnimale`
- [Veterinary RFID scan](https://github.com/saidou-123/jur-gui/tree/main/lib/Veterinaires/Scanveterinaire): `lib/Veterinaires/Scanveterinaire`
- [Messaging](https://github.com/saidou-123/jur-gui/blob/main/lib/Eleveures/Messagerie/MessageriePage.dart): `lib/Eleveures/Messagerie/MessageriePage.dart`
- [Health booklet PDF](https://github.com/saidou-123/jur-gui/blob/main/lib/Eleveures/PDF/CarnetSantePdfService.dart): `lib/Eleveures/PDF/CarnetSantePdfService.dart`

### Backend services

- [Notification functions](https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/process-scheduled-notifications/index.ts): `supabase/functions/process-scheduled-notifications/index.ts`
- [Cycle anomaly check](https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/check-cycle-anomalies/index.ts): `supabase/functions/check-cycle-anomalies/index.ts`
- [Copilot function](https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/copilot/index.ts): `supabase/functions/copilot/index.ts`
- [Account-status notices](https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/notifier-statut-veterinaire/index.ts): `supabase/functions/notifier-statut-veterinaire/index.ts`
- [Push delivery function](https://github.com/saidou-123/jur-gui/blob/main/supabase/functions/send-push-notification/index.ts): `supabase/functions/send-push-notification/index.ts`
- **User records**

### Windows host

- [Windows entry point](https://github.com/saidou-123/jur-gui/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window host](https://github.com/saidou-123/jur-gui/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Win32 window](https://github.com/saidou-123/jur-gui/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Plugin registration](https://github.com/saidou-123/jur-gui/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`

### Other components

- **Breeder or vet**
- **Brevo email service**

## Connections

- Breeder or vet → Flutter app: uses
- Flutter app → Sign-in and registration: presents
- Sign-in and registration → Breeder interface: routes to
- Sign-in and registration → Veterinarian interface: routes to
- Breeder interface → Herd management: offers
- Breeder interface → Animal registration: offers
- Breeder interface → Reproduction tracking: offers
- Breeder interface → Heat-cycle tracking: offers
- Breeder interface → Genealogy: offers
- Veterinarian interface → Veterinary health records: offers
- Veterinarian interface → Veterinary RFID scan: offers
- Breeder interface → Messaging: offers
- Veterinarian interface → Messaging: offers
- Herd management → Health booklet PDF: exports
- Account-status notices → User records: reads (evidence: `supabase/functions/notifier-statut-veterinaire/index.ts`)
- Account-status notices → Brevo email service: sends email (evidence: `supabase/functions/notifier-statut-veterinaire/index.ts`)
- Account-status notices → Push delivery function: requests push (evidence: `supabase/functions/notifier-statut-veterinaire/index.ts`)
- Windows entry point → Flutter window host: creates (evidence: `windows/runner/main.cpp`)
- Flutter window host → Win32 window: inherits
- Flutter window host → Plugin registration: registers plugins (evidence: `windows/runner/flutter_window.cpp`)
