How govpf/mes-demarches works
Mes-Démarches.gov.pf is a French-Polynesia-adapted government procedures platform. Applicants submit dossiers through configured procedures; administrators define forms and routing, and instructeurs process submitted dossiers. The tree and README establish these product areas, but the sampled controllers do not expose their calls, so workflow links are marked unverified. The graph also preserves the GraphQL/API surface and the sampled rich-text editor modules; their runtime wiring is not fully shown.
Main entry points: tiptap_controller.ts Editor interaction · procedures_controller.rb Procedure setup · dossiers_controller.rb Dossier submission · editor.ts Editor factory
Components 21
Applicant dossiers
- Dossier submission
app/controllers/users/dossiers_controller.rb - Dossier records
app/controllers/users/dossiers_controller.rb
Procedure configuration
- Procedure setup
app/controllers/administrateurs/procedures_controller.rb - Form fields
app/controllers/administrateurs/types_de_champ_controller.rb - Routing rules
app/models/routing_engine.rb
Dossier instruction
- Dossier review
app/controllers/instructeurs/dossiers_controller.rb - Expert opinions
app/controllers/experts/avis_controller.rb
API interfaces
- Public API
app/controllers/api/public/v1/dossiers_controller.rb - Versioned API
app/controllers/api/v1/dossiers_controller.rb - API v2 dossiers
app/controllers/api/v2/dossiers_controller.rb - GraphQL queries
app/graphql/types/query_type.rb - Stored queries
app/graphql/api/v2/stored_query.rb
Rich-text editor
- Editor interaction
app/javascript/controllers/lazy/tiptap_controller.ts - Formatting actions
app/javascript/shared/tiptap/actions.ts - Editor factory
app/javascript/shared/tiptap/editor.ts - Tag suggestions
app/javascript/shared/tiptap/tags.ts - Controller base
app/javascript/controllers/application_controller.ts - Controller loader
app/javascript/shared/stimulus-loader.ts - Manager entrypoint
app/javascript/entrypoints/manager.ts
Other components
- Applicant
- Instructeur
Connections 11
- Applicant → Dossier submission: submits dossier
- Dossier submission → Dossier records: persists dossier
app/controllers/users/dossiers_controller.rb - Procedure setup → Form fields: configures fields
- Procedure setup → Routing rules: configures routing
- Instructeur → Dossier review: reviews dossier
- Expert opinions → Dossier review: supports review
- Editor interaction → Controller base: extends
app/javascript/controllers/lazy/tiptap_controller.ts - Editor interaction → Editor factory: creates editor
app/javascript/controllers/lazy/tiptap_controller.ts - Editor interaction → Formatting actions: dispatches actions
app/javascript/controllers/lazy/tiptap_controller.ts - Editor factory → Tag suggestions: creates suggestions
app/javascript/shared/tiptap/editor.ts - Manager entrypoint → Controller loader: registers controllers
app/javascript/entrypoints/manager.ts