# rdz-2026/rdz_agent architecture

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

- Interactive diagram: https://gitdiagram.com/rdz-2026/rdz_agent
- Repository: https://github.com/rdz-2026/rdz_agent

## Overview

RDZ is a site-operations platform for security and facilities teams. Agents use mobile pages to record service activity—such as reports, checklists, counts, stock movements and equipment—and the platform provides centralist supervision, administrative configuration and direction-level oversight. The shared sync module supports offline saves and photo uploads; the agenda combines events and special instructions. The tree identifies the product areas, but no README or most page implementations were provided, so links between those areas are shown only where documented or marked unverified.

Main entry points: [`application/rdz-sync-v5.js`](https://github.com/rdz-2026/rdz_agent/blob/main/application/rdz-sync-v5.js) (Offline queue), [`application/mobile.html`](https://github.com/rdz-2026/rdz_agent/blob/main/application/mobile.html) (Mobile workspace), [`application/rapport-standard.html`](https://github.com/rdz-2026/rdz_agent/blob/main/application/rapport-standard.html) (Reports and alerts), [`application/checklist-evenement-agent.html`](https://github.com/rdz-2026/rdz_agent/blob/main/application/checklist-evenement-agent.html) (Checklists and events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agent["Agent operations"]
  node_mobile["Mobile workspace<br/>[mobile.html]"]
  node_reports["Reports and alerts"]
  node_checklists["Checklists and events"]
  node_route["Routes and service"]
  node_inventory["Stock and equipment"]
end

subgraph group_sync["Offline sync"]
  node_sync["Offline queue<br/>[rdz-sync-v5.js]"]
  node_browserstorage[("Browser storage")]
end

subgraph group_supervision["Centralist supervision"]
  node_agenda["Shared agenda<br/>[agenda.js]"]
  node_eventview["Event supervision"]
  node_reportview["Report supervision"]
  node_libraryview["Library supervision"]
end

subgraph group_management["Administration"]
  node_admin["Site administration"]
  node_accounts["Agent accounts"]
  node_syncadmin["Sync reset tools<br/>[reset-sync.html]"]
end

subgraph group_direction["Direction oversight"]
  node_history["Operational history"]
  node_stockadmin["Stock oversight<br/>[stock-gestion.html]"]
end

node_agent(("Field agents"))
node_supabase[("Supabase backend")]
node_centralist(("Centralist team"))
node_director(("Direction"))

node_agent -.->|"uses"| node_mobile
node_centralist -.->|"opens"| node_agenda
node_director -.->|"reviews"| node_history
node_mobile -.->|"provides access"| node_reports
node_mobile -.->|"provides access"| node_checklists
node_mobile -.->|"provides access"| node_route
node_mobile -.->|"provides access"| node_inventory
node_reports -.->|"shared sync"| node_sync
node_checklists -.->|"shared sync"| node_sync
node_route -.->|"shared sync"| node_sync
node_inventory -.->|"shared sync"| node_sync
node_sync -->|"queues locally"| node_browserstorage
node_sync -->|"uploads photos"| node_supabase
node_agenda -.->|"loads agenda data"| node_supabase
node_centralist -.->|"supervises"| node_eventview
node_centralist -.->|"supervises"| node_reportview
node_centralist -.->|"supervises"| node_libraryview
node_admin -.->|"configures"| node_accounts
node_director -.->|"oversees"| node_stockadmin
node_director -.->|"manages sync"| node_syncadmin

click node_mobile "https://github.com/rdz-2026/rdz_agent/blob/main/application/mobile.html"
click node_reports "https://github.com/rdz-2026/rdz_agent/blob/main/application/rapport-standard.html"
click node_checklists "https://github.com/rdz-2026/rdz_agent/blob/main/application/checklist-evenement-agent.html"
click node_route "https://github.com/rdz-2026/rdz_agent/blob/main/application/feuille-route-agent.html"
click node_inventory "https://github.com/rdz-2026/rdz_agent/blob/main/application/stock-mouvements.html"
click node_sync "https://github.com/rdz-2026/rdz_agent/blob/main/application/rdz-sync-v5.js"
click node_agenda "https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/agenda.js"
click node_eventview "https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/supervision-evenements.html"
click node_reportview "https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/supervision-rapports.html"
click node_libraryview "https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/supervision-bibliotheque.html"
click node_admin "https://github.com/rdz-2026/rdz_agent/blob/main/admin/parametrage-site.html"
click node_accounts "https://github.com/rdz-2026/rdz_agent/blob/main/admin/comptes-agents.html"
click node_syncadmin "https://github.com/rdz-2026/rdz_agent/blob/main/admin/reset-sync.html"
click node_history "https://github.com/rdz-2026/rdz_agent/blob/main/direction/historique-ouvertures.html"
click node_stockadmin "https://github.com/rdz-2026/rdz_agent/blob/main/direction/stock-gestion.html"

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_mobile,node_reports,node_checklists,node_route,node_inventory toneBlue
class node_sync,node_browserstorage,node_supabase toneAmber
class node_agenda,node_eventview,node_reportview,node_libraryview toneMint
class node_admin,node_accounts,node_syncadmin toneRose
class node_history,node_stockadmin,node_agent,node_centralist,node_director toneIndigo
```

## Components

### Agent operations

- [Mobile workspace](https://github.com/rdz-2026/rdz_agent/blob/main/application/mobile.html): `application/mobile.html`
- [Reports and alerts](https://github.com/rdz-2026/rdz_agent/blob/main/application/rapport-standard.html): `application/rapport-standard.html`
- [Checklists and events](https://github.com/rdz-2026/rdz_agent/blob/main/application/checklist-evenement-agent.html): `application/checklist-evenement-agent.html`
- [Routes and service](https://github.com/rdz-2026/rdz_agent/blob/main/application/feuille-route-agent.html): `application/feuille-route-agent.html`
- [Stock and equipment](https://github.com/rdz-2026/rdz_agent/blob/main/application/stock-mouvements.html): `application/stock-mouvements.html`

### Offline sync

- [Offline queue](https://github.com/rdz-2026/rdz_agent/blob/main/application/rdz-sync-v5.js): `application/rdz-sync-v5.js`
- **Browser storage**

### Centralist supervision

- [Shared agenda](https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/agenda.js): `centraliste/agenda.js`
- [Event supervision](https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/supervision-evenements.html): `centraliste/supervision-evenements.html`
- [Report supervision](https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/supervision-rapports.html): `centraliste/supervision-rapports.html`
- [Library supervision](https://github.com/rdz-2026/rdz_agent/blob/main/centraliste/supervision-bibliotheque.html): `centraliste/supervision-bibliotheque.html`

### Administration

- [Site administration](https://github.com/rdz-2026/rdz_agent/blob/main/admin/parametrage-site.html): `admin/parametrage-site.html`
- [Agent accounts](https://github.com/rdz-2026/rdz_agent/blob/main/admin/comptes-agents.html): `admin/comptes-agents.html`
- [Sync reset tools](https://github.com/rdz-2026/rdz_agent/blob/main/admin/reset-sync.html): `admin/reset-sync.html`

### Direction oversight

- [Operational history](https://github.com/rdz-2026/rdz_agent/blob/main/direction/historique-ouvertures.html): `direction/historique-ouvertures.html`
- [Stock oversight](https://github.com/rdz-2026/rdz_agent/blob/main/direction/stock-gestion.html): `direction/stock-gestion.html`

### Other components

- **Field agents**
- **Supabase backend**
- **Centralist team**
- **Direction**

## Connections

- Field agents → Mobile workspace: uses
- Centralist team → Shared agenda: opens
- Direction → Operational history: reviews
- Mobile workspace → Reports and alerts: provides access
- Mobile workspace → Checklists and events: provides access
- Mobile workspace → Routes and service: provides access
- Mobile workspace → Stock and equipment: provides access
- Reports and alerts → Offline queue: shared sync
- Checklists and events → Offline queue: shared sync
- Routes and service → Offline queue: shared sync
- Stock and equipment → Offline queue: shared sync
- Offline queue → Browser storage: queues locally (evidence: `application/rdz-sync-v5.js`)
- Offline queue → Supabase backend: uploads photos (evidence: `application/rdz-sync-v5.js`)
- Shared agenda → Supabase backend: loads agenda data
- Centralist team → Event supervision: supervises
- Centralist team → Report supervision: supervises
- Centralist team → Library supervision: supervises
- Site administration → Agent accounts: configures
- Direction → Stock oversight: oversees
- Direction → Sync reset tools: manages sync
