# fluig/helpdesk architecture

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

- Interactive diagram: https://gitdiagram.com/fluig/helpdesk
- Repository: https://github.com/fluig/helpdesk

## Overview

This Fluig Help Desk process lets an employee submit a support request, routes it through incident handling, and captures a resolution and feedback. Its forms include incident-type registration and support-request entry; workflow state controls form behavior, while form events validate submissions and populate user and ticket details. The README also documents multilingual and mobile form support. The workflow diagram and HTML forms are present in the tree but were not sampled, so stage links rely on README evidence; implementation details beyond the excerpts are not inferred.

Main entry points: [`forms/Solicitacao_Suporte/Solicitacao_Suporte.html`](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/Solicitacao_Suporte.html) (Support Request), [`workflow/diagrams/HELP_DESK.process`](https://github.com/fluig/helpdesk/blob/master/workflow/diagrams/HELP_DESK.process) (Help Desk Workflow), [`forms/Solicitacao_Suporte/events`](https://github.com/fluig/helpdesk/tree/master/forms/Solicitacao_Suporte/events) (Request Events), [`forms/Solicitacao_Suporte/events/displayFields.js`](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/events/displayFields.js) (State Display Logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Request Intake"]
  node_incident_types["Incident Types"]
  node_request_form["Support Request"]
  node_request_events["Request Events"]
  node_request_display["State Display Logic<br/>[displayFields.js]"]
  node_request_validation["Request Validation<br/>[validateForm.js]"]
  node_zoom_selection["Incident Zoom Selection<br/>[custom.js]"]
end

subgraph group_workflow["Process Workflow"]
  node_workflow_model["Help Desk Workflow<br/>[HELP_DESK.process]"]
  node_ticket_creation["Ticket Initialization"]
end

subgraph group_support["Support Handling"]
  node_incident_analysis["Incident Analysis<br/>[HELP_DESK.process]"]
  node_resolution["Solution Entry"]
  node_feedback["Service Feedback"]
end

subgraph group_integrations["Fluig Integrations"]
  node_user_dataset[("Colleague Dataset")]
  node_user_api["Fluig User API"]
end

node_employee(("Employee"))
node_support_agent(("Support Agent"))

node_employee -->|"submits request"| node_request_form
node_employee -->|"registers types"| node_incident_types
node_request_form -.->|"runs events"| node_request_events
node_request_events -.->|"includes display logic"| node_request_display
node_request_events -.->|"includes validation"| node_request_validation
node_request_form -.->|"uses selection logic"| node_zoom_selection
node_request_form -->|"starts process"| node_workflow_model
node_workflow_model -.->|"creates ticket"| node_ticket_creation
node_ticket_creation -->|"sets ticket ID"| node_request_form
node_workflow_model -->|"routes for analysis"| node_incident_analysis
node_support_agent -->|"analyzes ticket"| node_incident_analysis
node_incident_analysis -->|"records solution"| node_resolution
node_workflow_model -->|"routes for feedback"| node_feedback
node_request_display -->|"queries user data"| node_user_dataset
node_request_display -->|"gets current user"| node_user_api

click node_incident_types "https://github.com/fluig/helpdesk/blob/master/forms/Cadastro_tipo_Incidente/Cadastro_tipo_Incidente.html"
click node_request_form "https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/Solicitacao_Suporte.html"
click node_request_events "https://github.com/fluig/helpdesk/tree/master/forms/Solicitacao_Suporte/events"
click node_request_display "https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/events/displayFields.js"
click node_request_validation "https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/events/validateForm.js"
click node_zoom_selection "https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/js/custom.js"
click node_workflow_model "https://github.com/fluig/helpdesk/blob/master/workflow/diagrams/HELP_DESK.process"
click node_ticket_creation "https://github.com/fluig/helpdesk/blob/master/workflow/scripts/HELP_DESK.afterProcessCreate.js"
click node_incident_analysis "https://github.com/fluig/helpdesk/blob/master/workflow/diagrams/HELP_DESK.process"
click node_resolution "https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/Solicitacao_Suporte.html"
click node_feedback "https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/Solicitacao_Suporte.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_incident_types,node_request_form,node_request_events,node_request_display,node_request_validation,node_zoom_selection toneBlue
class node_workflow_model,node_ticket_creation toneAmber
class node_incident_analysis,node_resolution,node_feedback toneMint
class node_user_dataset,node_user_api toneRose
class node_employee,node_support_agent toneIndigo
```

## Components

### Request Intake

- [Incident Types](https://github.com/fluig/helpdesk/blob/master/forms/Cadastro_tipo_Incidente/Cadastro_tipo_Incidente.html): `forms/Cadastro_tipo_Incidente/Cadastro_tipo_Incidente.html`
- [Support Request](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/Solicitacao_Suporte.html): `forms/Solicitacao_Suporte/Solicitacao_Suporte.html`
- [Request Events](https://github.com/fluig/helpdesk/tree/master/forms/Solicitacao_Suporte/events): `forms/Solicitacao_Suporte/events`
- [State Display Logic](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/events/displayFields.js): `forms/Solicitacao_Suporte/events/displayFields.js`
- [Request Validation](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/events/validateForm.js): `forms/Solicitacao_Suporte/events/validateForm.js`
- [Incident Zoom Selection](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/js/custom.js): `forms/Solicitacao_Suporte/js/custom.js`

### Process Workflow

- [Help Desk Workflow](https://github.com/fluig/helpdesk/blob/master/workflow/diagrams/HELP_DESK.process): `workflow/diagrams/HELP_DESK.process`
- [Ticket Initialization](https://github.com/fluig/helpdesk/blob/master/workflow/scripts/HELP_DESK.afterProcessCreate.js): `workflow/scripts/HELP_DESK.afterProcessCreate.js`

### Support Handling

- [Incident Analysis](https://github.com/fluig/helpdesk/blob/master/workflow/diagrams/HELP_DESK.process): `workflow/diagrams/HELP_DESK.process`
- [Solution Entry](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/Solicitacao_Suporte.html): `forms/Solicitacao_Suporte/Solicitacao_Suporte.html`
- [Service Feedback](https://github.com/fluig/helpdesk/blob/master/forms/Solicitacao_Suporte/Solicitacao_Suporte.html): `forms/Solicitacao_Suporte/Solicitacao_Suporte.html`

### Fluig Integrations

- **Colleague Dataset**
- **Fluig User API**

### Other components

- **Employee**
- **Support Agent**

## Connections

- Employee → Support Request: submits request (evidence: `README.md`)
- Employee → Incident Types: registers types (evidence: `README.md`)
- Support Request → Request Events: runs events
- Request Events → State Display Logic: includes display logic
- Request Events → Request Validation: includes validation
- Support Request → Incident Zoom Selection: uses selection logic
- Support Request → Help Desk Workflow: starts process (evidence: `README.md`)
- Help Desk Workflow → Ticket Initialization: creates ticket
- Ticket Initialization → Support Request: sets ticket ID (evidence: `workflow/scripts/HELP_DESK.afterProcessCreate.js`)
- Help Desk Workflow → Incident Analysis: routes for analysis (evidence: `README.md`)
- Support Agent → Incident Analysis: analyzes ticket (evidence: `README.md`)
- Incident Analysis → Solution Entry: records solution (evidence: `README.md`)
- Help Desk Workflow → Service Feedback: routes for feedback (evidence: `README.md`)
- State Display Logic → Colleague Dataset: queries user data (evidence: `forms/Solicitacao_Suporte/events/displayFields.js`)
- State Display Logic → Fluig User API: gets current user (evidence: `forms/Solicitacao_Suporte/events/displayFields.js`)
