# rodulfo-dmgz/rd-recueil architecture

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

- Interactive diagram: https://gitdiagram.com/rodulfo-dmgz/rd-recueil
- Repository: https://github.com/rodulfo-dmgz/rd-recueil

## Overview

RD Recueil is a client-and-consultant application for collecting needs and producing a validated project-scoping note, including Qualiopi evidence. The main workflow routes users into demand and questionnaire views, then supports consultant review and client approval of the note; proposals and scheduling are additional capabilities. The graph reflects documented routes and sampled calls. Several product areas are represented at their exact enclosing directories because their implementation was not excerpted; their internal connections are therefore omitted rather than assumed.

Main entry points: [`app/js/views/consultant/editeur-proposition.js`](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/consultant/editeur-proposition.js) (Proposal editor), [`app/js/services/demandes.js`](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/demandes.js) (Demand service), [`app/js/views/client/accueil.js`](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/client/accueil.js) (Demand overview), [`app/js/views/client/cadrage.js`](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/client/cadrage.js) (Note approval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Application routing"]
  node_main["Application entry<br/>[main.js]"]
  node_router["Hash router<br/>[router.js]"]
end

subgraph group_client["Client workflow"]
  node_client_views["Client views"]
  node_questionnaire_fields["Questionnaire fields"]
  node_client_home["Demand overview<br/>[accueil.js]"]
  node_client_cadrage["Note approval<br/>[cadrage.js]"]
end

subgraph group_consultant["Consultant workflow"]
  node_consultant_views["Consultant views"]
  node_consultant_360["Demand review<br/>[vue-360.js]"]
  node_proposal_editor["Proposal editor"]
end

subgraph group_domain["Domain logic"]
  node_conditions["Question visibility<br/>[conditions.js]"]
  node_glossary["Glossary engine<br/>[glossary.js]"]
  node_quotation["Pricing and quote"]
  node_note_rendering["Document rendering<br/>[markdown.js]"]
end

subgraph group_data["Data and services"]
  node_note_service["Scoping notes<br/>[notes-cadrage.js]"]
  node_demand_service["Demand service<br/>[demandes.js]"]
  node_proposal_service["Proposal service<br/>[propositions.js]"]
  node_response_service["Answers service<br/>[reponses.js]"]
  node_supabase_client["Supabase client<br/>[supabase.js]"]
  node_functions["Edge functions"]
end

node_client_actor(("Client"))
node_staff_actor(("Consultant"))
node_backend[("Supabase backend")]

node_main -->|"registers routes"| node_router
node_main -->|"routes to"| node_client_views
node_client_actor -.->|"reviews demand"| node_client_home
node_client_home -->|"loads demand"| node_demand_service
node_client_home -->|"loads answers"| node_response_service
node_client_home -->|"loads note versions"| node_note_service
node_client_actor -.->|"enters answers"| node_questionnaire_fields
node_staff_actor -.->|"reviews demand"| node_consultant_360
node_consultant_360 -->|"loads demand"| node_demand_service
node_consultant_360 -->|"loads proposal lines"| node_proposal_service
node_consultant_360 -->|"computes visibility"| node_conditions
node_staff_actor -.->|"edits proposal"| node_proposal_editor
node_proposal_editor -->|"loads demand"| node_demand_service
node_proposal_editor -->|"loads answers"| node_response_service
node_proposal_editor -->|"saves and sends"| node_proposal_service
node_proposal_editor -->|"calculates line totals"| node_quotation
node_client_actor -.->|"reviews and approves"| node_client_cadrage
node_client_cadrage -->|"loads demand"| node_demand_service
node_client_cadrage -->|"lists and validates"| node_note_service
node_client_cadrage -->|"renders note"| node_note_rendering
node_demand_service -->|"queries backend client"| node_supabase_client
node_note_service -->|"reads and updates"| node_supabase_client
node_supabase_client -->|"connects to"| node_backend

click node_main "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/main.js"
click node_router "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/router.js"
click node_client_views "https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/views/client"
click node_questionnaire_fields "https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/components/fields"
click node_client_home "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/client/accueil.js"
click node_client_cadrage "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/client/cadrage.js"
click node_consultant_views "https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/views/consultant"
click node_consultant_360 "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/consultant/vue-360.js"
click node_proposal_editor "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/consultant/editeur-proposition.js"
click node_conditions "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/engine/conditions.js"
click node_glossary "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/engine/glossary.js"
click node_quotation "https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/engine"
click node_note_rendering "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/components/markdown.js"
click node_note_service "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/notes-cadrage.js"
click node_demand_service "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/demandes.js"
click node_proposal_service "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/propositions.js"
click node_response_service "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/reponses.js"
click node_supabase_client "https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/supabase.js"
click node_functions "https://github.com/rodulfo-dmgz/rd-recueil/tree/main/supabase/functions"

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_main,node_router,node_client_actor toneBlue
class node_client_views,node_questionnaire_fields,node_client_home,node_client_cadrage,node_backend toneAmber
class node_consultant_views,node_consultant_360,node_proposal_editor toneMint
class node_conditions,node_glossary,node_quotation,node_note_rendering toneRose
class node_note_service,node_demand_service,node_proposal_service,node_response_service,node_supabase_client,node_functions,node_staff_actor toneIndigo
```

## Components

### Application routing

- [Application entry](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/main.js): `app/js/main.js`
- [Hash router](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/router.js): `app/js/router.js`

### Client workflow

- [Client views](https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/views/client): `app/js/views/client`
- [Questionnaire fields](https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/components/fields): `app/js/components/fields`
- [Demand overview](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/client/accueil.js): `app/js/views/client/accueil.js`
- [Note approval](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/client/cadrage.js): `app/js/views/client/cadrage.js`

### Consultant workflow

- [Consultant views](https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/views/consultant): `app/js/views/consultant`
- [Demand review](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/consultant/vue-360.js): `app/js/views/consultant/vue-360.js`
- [Proposal editor](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/views/consultant/editeur-proposition.js): `app/js/views/consultant/editeur-proposition.js`

### Domain logic

- [Question visibility](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/engine/conditions.js): `app/js/engine/conditions.js`
- [Glossary engine](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/engine/glossary.js): `app/js/engine/glossary.js`
- [Pricing and quote](https://github.com/rodulfo-dmgz/rd-recueil/tree/main/app/js/engine): `app/js/engine`
- [Document rendering](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/components/markdown.js): `app/js/components/markdown.js`

### Data and services

- [Scoping notes](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/notes-cadrage.js): `app/js/services/notes-cadrage.js`
- [Demand service](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/demandes.js): `app/js/services/demandes.js`
- [Proposal service](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/propositions.js): `app/js/services/propositions.js`
- [Answers service](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/services/reponses.js): `app/js/services/reponses.js`
- [Supabase client](https://github.com/rodulfo-dmgz/rd-recueil/blob/main/app/js/supabase.js): `app/js/supabase.js`
- [Edge functions](https://github.com/rodulfo-dmgz/rd-recueil/tree/main/supabase/functions): `supabase/functions`

### Other components

- **Client**
- **Consultant**
- **Supabase backend**

## Connections

- Application entry → Hash router: registers routes (evidence: `app/js/main.js`)
- Application entry → Client views: routes to (evidence: `app/js/main.js`)
- Client → Demand overview: reviews demand
- Demand overview → Demand service: loads demand (evidence: `app/js/views/client/accueil.js`)
- Demand overview → Answers service: loads answers (evidence: `app/js/views/client/accueil.js`)
- Demand overview → Scoping notes: loads note versions (evidence: `app/js/views/client/accueil.js`)
- Client → Questionnaire fields: enters answers
- Consultant → Demand review: reviews demand
- Demand review → Demand service: loads demand (evidence: `app/js/views/consultant/vue-360.js`)
- Demand review → Proposal service: loads proposal lines (evidence: `app/js/views/consultant/vue-360.js`)
- Demand review → Question visibility: computes visibility (evidence: `app/js/views/consultant/vue-360.js`)
- Consultant → Proposal editor: edits proposal
- Proposal editor → Demand service: loads demand (evidence: `app/js/views/consultant/editeur-proposition.js`)
- Proposal editor → Answers service: loads answers (evidence: `app/js/views/consultant/editeur-proposition.js`)
- Proposal editor → Proposal service: saves and sends (evidence: `app/js/views/consultant/editeur-proposition.js`)
- Proposal editor → Pricing and quote: calculates line totals (evidence: `app/js/views/consultant/editeur-proposition.js`)
- Client → Note approval: reviews and approves
- Note approval → Demand service: loads demand (evidence: `app/js/views/client/cadrage.js`)
- Note approval → Scoping notes: lists and validates (evidence: `app/js/views/client/cadrage.js`)
- Note approval → Document rendering: renders note (evidence: `app/js/views/client/cadrage.js`)
- Demand service → Supabase client: queries backend client (evidence: `app/js/services/demandes.js`)
- Scoping notes → Supabase client: reads and updates (evidence: `app/js/services/notes-cadrage.js`)
- Supabase client → Supabase backend: connects to (evidence: `app/js/supabase.js`)
