# bosaj/les-ambassadeurs-web architecture

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

- Interactive diagram: https://gitdiagram.com/bosaj/les-ambassadeurs-web
- Repository: https://github.com/bosaj/les-ambassadeurs-web

## Overview

Les Ambassadeurs is a trilingual community platform for a humanitarian association. Visitors discover programs, events, news and branches, then can volunteer, register, or donate; authenticated volunteers use profile and activity dashboards, while administrators manage content and community operations. The map preserves the documented public, volunteer, donation, gallery and back-office capabilities, with authentication/data providers as an internal layer. Several page and integration details come from the README and source index rather than inspected implementation excerpts, so those relationships are cited as documented or omitted where wiring is unclear.

Main entry points: [`src/App.jsx`](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/App.jsx) (Route application), [`src/lib/supabase.js`](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/lib/supabase.js) (Supabase client), [`src/pages`](https://github.com/bosaj/les-ambassadeurs-web/tree/main/src/pages) (Public pages), [`src/pages/VolunteerDashboard.jsx`](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/VolunteerDashboard.jsx) (Volunteer dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Public experience"]
  node_public_pages["Public pages"]
  node_gallery["Gallery<br/>[GalleryPage.jsx]"]
  node_branch_map["Branch map<br/>[BranchMap.jsx]"]
  node_donations["Donation checkout<br/>[Donate.jsx]"]
end

subgraph group_engagement["Volunteer engagement"]
  node_volunteer_dashboard["Volunteer dashboard"]
  node_gamification["Gamification"]
  node_points_rules["Points rules<br/>[gamification.js]"]
  node_membership["Membership renewal"]
end

subgraph group_operations["Administration"]
  node_admin_dashboard["Admin back-office<br/>[AdminDashboard.jsx]"]
  node_community_admin["Community management"]
  node_gallery_admin["Gallery management"]
  node_donation_admin["Donation records<br/>[DonationsList.jsx]"]
end

subgraph group_platform["Application platform"]
  node_app["Route application<br/>[App.jsx]"]
  node_auth["Authentication<br/>[AuthContext.jsx]"]
  node_data["Shared data<br/>[DataContext.jsx]"]
  node_supabase_client["Supabase client<br/>[supabase.js]"]
end

subgraph group_integrations["External services"]
  node_stripe_checkout["Stripe integration<br/>[StripeCheckout.jsx]"]
end

node_visitor(("Visitor"))
node_member(("Volunteer"))
node_administrator(("Administrator"))
node_stripe(("Stripe"))
node_paypal(("PayPal"))
node_supabase[("Supabase services")]

node_visitor -->|"opens"| node_app
node_member -.->|"opens"| node_app
node_administrator -.->|"opens"| node_app
node_app -->|"routes to"| node_public_pages
node_app -->|"routes to"| node_volunteer_dashboard
node_app -->|"routes to"| node_admin_dashboard
node_public_pages -.->|"includes"| node_gallery
node_public_pages -.->|"includes"| node_branch_map
node_public_pages -->|"includes"| node_donations
node_donations -->|"uses"| node_stripe_checkout
node_stripe_checkout -.->|"processes payment"| node_stripe
node_donations -.->|"offers checkout"| node_paypal
node_auth -->|"uses"| node_supabase_client
node_data -->|"uses"| node_supabase_client
node_supabase_client -->|"connects to"| node_supabase
node_volunteer_dashboard -->|"reads data"| node_data
node_volunteer_dashboard -->|"opens renewal"| node_membership
node_volunteer_dashboard -.->|"links to"| node_gamification
node_gamification -->|"uses rules"| node_points_rules
node_gamification -->|"reads data"| node_supabase_client
node_admin_dashboard -->|"renders"| node_community_admin
node_admin_dashboard -->|"renders"| node_gallery_admin
node_admin_dashboard -->|"renders"| node_donation_admin
node_community_admin -->|"reads data"| node_supabase_client
node_gallery_admin -->|"manages media"| node_supabase_client
node_gallery_admin -.->|"uploads to storage"| node_supabase
node_donation_admin -->|"reads data"| node_data

click node_app "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/App.jsx"
click node_public_pages "https://github.com/bosaj/les-ambassadeurs-web/tree/main/src/pages"
click node_gallery "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/GalleryPage.jsx"
click node_branch_map "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/BranchMap.jsx"
click node_donations "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/Donate.jsx"
click node_auth "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/context/AuthContext.jsx"
click node_data "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/context/DataContext.jsx"
click node_supabase_client "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/lib/supabase.js"
click node_volunteer_dashboard "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/VolunteerDashboard.jsx"
click node_gamification "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/GamificationHub.jsx"
click node_points_rules "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/lib/gamification.js"
click node_membership "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/MembershipRenewalModal.jsx"
click node_admin_dashboard "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/AdminDashboard.jsx"
click node_community_admin "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/admin/CommunityManagement.jsx"
click node_gallery_admin "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/admin/GalleryManagement.jsx"
click node_donation_admin "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/admin/DonationsList.jsx"
click node_stripe_checkout "https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/StripeCheckout.jsx"

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_public_pages,node_gallery,node_branch_map,node_donations toneBlue
class node_volunteer_dashboard,node_gamification,node_points_rules,node_membership,node_supabase toneAmber
class node_admin_dashboard,node_community_admin,node_gallery_admin,node_donation_admin toneMint
class node_app,node_auth,node_data,node_supabase_client toneRose
class node_stripe_checkout,node_visitor,node_member,node_administrator,node_stripe,node_paypal toneIndigo
```

## Components

### Public experience

- [Public pages](https://github.com/bosaj/les-ambassadeurs-web/tree/main/src/pages): `src/pages`
- [Gallery](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/GalleryPage.jsx): `src/pages/GalleryPage.jsx`
- [Branch map](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/BranchMap.jsx): `src/components/BranchMap.jsx`
- [Donation checkout](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/Donate.jsx): `src/pages/Donate.jsx`

### Volunteer engagement

- [Volunteer dashboard](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/VolunteerDashboard.jsx): `src/pages/VolunteerDashboard.jsx`
- [Gamification](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/GamificationHub.jsx): `src/components/GamificationHub.jsx`
- [Points rules](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/lib/gamification.js): `src/lib/gamification.js`
- [Membership renewal](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/MembershipRenewalModal.jsx): `src/components/MembershipRenewalModal.jsx`

### Administration

- [Admin back-office](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/pages/AdminDashboard.jsx): `src/pages/AdminDashboard.jsx`
- [Community management](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/admin/CommunityManagement.jsx): `src/components/admin/CommunityManagement.jsx`
- [Gallery management](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/admin/GalleryManagement.jsx): `src/components/admin/GalleryManagement.jsx`
- [Donation records](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/admin/DonationsList.jsx): `src/components/admin/DonationsList.jsx`

### Application platform

- [Route application](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/App.jsx): `src/App.jsx`
- [Authentication](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Shared data](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/context/DataContext.jsx): `src/context/DataContext.jsx`
- [Supabase client](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/lib/supabase.js): `src/lib/supabase.js`

### External services

- [Stripe integration](https://github.com/bosaj/les-ambassadeurs-web/blob/main/src/components/StripeCheckout.jsx): `src/components/StripeCheckout.jsx`

### Other components

- **Visitor**
- **Volunteer**
- **Administrator**
- **Stripe**
- **PayPal**
- **Supabase services**

## Connections

- Visitor → Route application: opens (evidence: `src/App.jsx`)
- Volunteer → Route application: opens
- Administrator → Route application: opens
- Route application → Public pages: routes to (evidence: `src/App.jsx`)
- Route application → Volunteer dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Admin back-office: routes to (evidence: `src/App.jsx`)
- Public pages → Gallery: includes
- Public pages → Branch map: includes
- Public pages → Donation checkout: includes (evidence: `src/App.jsx`)
- Donation checkout → Stripe integration: uses (evidence: `src/pages/Donate.jsx`)
- Stripe integration → Stripe: processes payment
- Donation checkout → PayPal: offers checkout
- Authentication → Supabase client: uses (evidence: `src/context/AuthContext.jsx`)
- Shared data → Supabase client: uses (evidence: `src/context/DataContext.jsx`)
- Supabase client → Supabase services: connects to
- Volunteer dashboard → Shared data: reads data (evidence: `src/pages/VolunteerDashboard.jsx`)
- Volunteer dashboard → Membership renewal: opens renewal (evidence: `src/pages/VolunteerDashboard.jsx`)
- Volunteer dashboard → Gamification: links to
- Gamification → Points rules: uses rules (evidence: `src/components/GamificationHub.jsx`)
- Gamification → Supabase client: reads data (evidence: `src/components/GamificationHub.jsx`)
- Admin back-office → Community management: renders (evidence: `src/pages/AdminDashboard.jsx`)
- Admin back-office → Gallery management: renders (evidence: `src/pages/AdminDashboard.jsx`)
- Admin back-office → Donation records: renders (evidence: `src/pages/AdminDashboard.jsx`)
- Community management → Supabase client: reads data (evidence: `src/components/admin/CommunityManagement.jsx`)
- Gallery management → Supabase client: manages media (evidence: `src/components/admin/GalleryManagement.jsx`)
- Gallery management → Supabase services: uploads to storage
- Donation records → Shared data: reads data (evidence: `src/components/admin/DonationsList.jsx`)
