# poed16/taskpilot architecture

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

- Interactive diagram: https://gitdiagram.com/poed16/taskpilot
- Repository: https://github.com/poed16/taskpilot

## Overview

TaskPilot is a Django application combining personal and shared task reminders, personnel and classification records, and unit-based accounting documents. Users interact with each domain through its views; those views use forms and persistent models, while domain-specific reminder and registration logic handles follow-up work. The shared core provides unit and profile data plus a plug-in contract for modules. The tree and excerpts show these capabilities, but do not expose project URL routing or all domain views, so some entry-point links are left unverified.

Main entry points: [`contabilitate/views.py`](https://github.com/poed16/taskpilot/blob/main/contabilitate/views.py) (Accounting views), [`sarcini/models.py`](https://github.com/poed16/taskpilot/blob/main/sarcini/models.py) (Tasks and shares), [`clasificari/models.py`](https://github.com/poed16/taskpilot/blob/main/clasificari/models.py) (Personnel and classifications), [`nucleu/views.py`](https://github.com/poed16/taskpilot/blob/main/nucleu/views.py) (Core views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shared["Shared core"]
  node_core_views["Core views<br/>[views.py]"]
  node_core_forms["Core forms<br/>[forms.py]"]
  node_core_data[("Profiles and units<br/>[models.py]")]
  node_module_api["Module contract<br/>[module.py]"]
end

subgraph group_tasks["Tasks and reminders"]
  node_task_views["Task views<br/>[views.py]"]
  node_task_forms["Task forms<br/>[forms.py]"]
  node_task_data[("Tasks and shares<br/>[models.py]")]
  node_task_utils["Reminder utilities<br/>[utils.py]"]
  node_task_runner["Reminder runner<br/>[run_reminders.py]"]
end

subgraph group_evidence["Personnel evidence"]
  node_evidence_views["Evidence views<br/>[views.py]"]
  node_evidence_forms["Evidence forms<br/>[forms.py]"]
  node_evidence_data[("Personnel and classifications<br/>[models.py]")]
  node_person_import["Personnel import"]
  node_class_signals["Classification signals<br/>[signals.py]"]
end

subgraph group_accounting["Accounting"]
  node_account_views["Accounting views<br/>[views.py]"]
  node_account_forms["Accounting forms<br/>[forms.py]"]
  node_account_data[("Accounting records<br/>[models.py]")]
  node_registration["Document registration<br/>[services.py]"]
  node_account_export["Spreadsheet export<br/>[export.py]"]
end

subgraph group_legacy["Legacy tasks"]
  node_old_views["Legacy task views<br/>[views.py]"]
  node_old_forms["Legacy task forms<br/>[forms.py]"]
  node_old_data[("Legacy task records<br/>[models.py]")]
end

node_user(("User"))

node_user -.->|"uses"| node_core_views
node_user -.->|"uses"| node_task_views
node_user -.->|"uses"| node_evidence_views
node_user -.->|"uses"| node_account_views
node_user -.->|"uses"| node_old_views
node_core_views -->|"uses"| node_core_forms
node_core_forms -->|"uses"| node_core_data
node_core_views -->|"loads modules"| node_module_api
node_task_views -->|"uses"| node_task_forms
node_task_forms -->|"validates"| node_task_data
node_task_views -->|"reads and writes"| node_task_data
node_task_utils -->|"schedules"| node_task_data
node_task_runner -->|"processes reminders"| node_task_data
node_evidence_views -->|"uses"| node_evidence_forms
node_evidence_forms -->|"validates"| node_evidence_data
node_evidence_views -->|"reads and writes"| node_evidence_data
node_person_import -->|"imports records"| node_evidence_data
node_class_signals -->|"handles changes"| node_evidence_data
node_account_views -.->|"uses"| node_account_forms
node_account_forms -->|"validates"| node_account_data
node_account_views -.->|"reads and writes"| node_account_data
node_account_views -.->|"registers documents"| node_registration
node_registration -->|"locks and records"| node_account_data
node_account_views -.->|"exports"| node_account_export
node_old_views -->|"uses"| node_old_forms
node_old_forms -->|"validates"| node_old_data
node_old_views -->|"reads and writes"| node_old_data

click node_core_views "https://github.com/poed16/taskpilot/blob/main/nucleu/views.py"
click node_core_forms "https://github.com/poed16/taskpilot/blob/main/nucleu/forms.py"
click node_core_data "https://github.com/poed16/taskpilot/blob/main/nucleu/models.py"
click node_module_api "https://github.com/poed16/taskpilot/blob/main/nucleu/module.py"
click node_task_views "https://github.com/poed16/taskpilot/blob/main/sarcini/views.py"
click node_task_forms "https://github.com/poed16/taskpilot/blob/main/sarcini/forms.py"
click node_task_data "https://github.com/poed16/taskpilot/blob/main/sarcini/models.py"
click node_task_utils "https://github.com/poed16/taskpilot/blob/main/sarcini/utils.py"
click node_task_runner "https://github.com/poed16/taskpilot/blob/main/sarcini/management/commands/run_reminders.py"
click node_evidence_views "https://github.com/poed16/taskpilot/blob/main/clasificari/views.py"
click node_evidence_forms "https://github.com/poed16/taskpilot/blob/main/clasificari/forms.py"
click node_evidence_data "https://github.com/poed16/taskpilot/blob/main/clasificari/models.py"
click node_person_import "https://github.com/poed16/taskpilot/blob/main/clasificari/management/commands/import_personal_2026.py"
click node_class_signals "https://github.com/poed16/taskpilot/blob/main/clasificari/signals.py"
click node_account_views "https://github.com/poed16/taskpilot/blob/main/contabilitate/views.py"
click node_account_forms "https://github.com/poed16/taskpilot/blob/main/contabilitate/forms.py"
click node_account_data "https://github.com/poed16/taskpilot/blob/main/contabilitate/models.py"
click node_registration "https://github.com/poed16/taskpilot/blob/main/contabilitate/services.py"
click node_account_export "https://github.com/poed16/taskpilot/blob/main/contabilitate/export.py"
click node_old_views "https://github.com/poed16/taskpilot/blob/main/core_old/views.py"
click node_old_forms "https://github.com/poed16/taskpilot/blob/main/core_old/forms.py"
click node_old_data "https://github.com/poed16/taskpilot/blob/main/core_old/models.py"

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_core_views,node_core_forms,node_core_data,node_module_api,node_user toneBlue
class node_task_views,node_task_forms,node_task_data,node_task_utils,node_task_runner toneAmber
class node_evidence_views,node_evidence_forms,node_evidence_data,node_person_import,node_class_signals toneMint
class node_account_views,node_account_forms,node_account_data,node_registration,node_account_export toneRose
class node_old_views,node_old_forms,node_old_data toneIndigo
```

## Components

### Shared core

- [Core views](https://github.com/poed16/taskpilot/blob/main/nucleu/views.py): `nucleu/views.py`
- [Core forms](https://github.com/poed16/taskpilot/blob/main/nucleu/forms.py): `nucleu/forms.py`
- [Profiles and units](https://github.com/poed16/taskpilot/blob/main/nucleu/models.py): `nucleu/models.py`
- [Module contract](https://github.com/poed16/taskpilot/blob/main/nucleu/module.py): `nucleu/module.py`

### Tasks and reminders

- [Task views](https://github.com/poed16/taskpilot/blob/main/sarcini/views.py): `sarcini/views.py`
- [Task forms](https://github.com/poed16/taskpilot/blob/main/sarcini/forms.py): `sarcini/forms.py`
- [Tasks and shares](https://github.com/poed16/taskpilot/blob/main/sarcini/models.py): `sarcini/models.py`
- [Reminder utilities](https://github.com/poed16/taskpilot/blob/main/sarcini/utils.py): `sarcini/utils.py`
- [Reminder runner](https://github.com/poed16/taskpilot/blob/main/sarcini/management/commands/run_reminders.py): `sarcini/management/commands/run_reminders.py`

### Personnel evidence

- [Evidence views](https://github.com/poed16/taskpilot/blob/main/clasificari/views.py): `clasificari/views.py`
- [Evidence forms](https://github.com/poed16/taskpilot/blob/main/clasificari/forms.py): `clasificari/forms.py`
- [Personnel and classifications](https://github.com/poed16/taskpilot/blob/main/clasificari/models.py): `clasificari/models.py`
- [Personnel import](https://github.com/poed16/taskpilot/blob/main/clasificari/management/commands/import_personal_2026.py): `clasificari/management/commands/import_personal_2026.py`
- [Classification signals](https://github.com/poed16/taskpilot/blob/main/clasificari/signals.py): `clasificari/signals.py`

### Accounting

- [Accounting views](https://github.com/poed16/taskpilot/blob/main/contabilitate/views.py): `contabilitate/views.py`
- [Accounting forms](https://github.com/poed16/taskpilot/blob/main/contabilitate/forms.py): `contabilitate/forms.py`
- [Accounting records](https://github.com/poed16/taskpilot/blob/main/contabilitate/models.py): `contabilitate/models.py`
- [Document registration](https://github.com/poed16/taskpilot/blob/main/contabilitate/services.py): `contabilitate/services.py`
- [Spreadsheet export](https://github.com/poed16/taskpilot/blob/main/contabilitate/export.py): `contabilitate/export.py`

### Legacy tasks

- [Legacy task views](https://github.com/poed16/taskpilot/blob/main/core_old/views.py): `core_old/views.py`
- [Legacy task forms](https://github.com/poed16/taskpilot/blob/main/core_old/forms.py): `core_old/forms.py`
- [Legacy task records](https://github.com/poed16/taskpilot/blob/main/core_old/models.py): `core_old/models.py`

### Other components

- **User**

## Connections

- User → Core views: uses
- User → Task views: uses
- User → Evidence views: uses
- User → Accounting views: uses
- User → Legacy task views: uses
- Core views → Core forms: uses (evidence: `nucleu/views.py`)
- Core forms → Profiles and units: uses (evidence: `nucleu/forms.py`)
- Core views → Module contract: loads modules (evidence: `nucleu/views.py`)
- Task views → Task forms: uses (evidence: `sarcini/views.py`)
- Task forms → Tasks and shares: validates (evidence: `sarcini/forms.py`)
- Task views → Tasks and shares: reads and writes (evidence: `sarcini/views.py`)
- Reminder utilities → Tasks and shares: schedules (evidence: `sarcini/utils.py`)
- Reminder runner → Tasks and shares: processes reminders (evidence: `sarcini/management/commands/run_reminders.py`)
- Evidence views → Evidence forms: uses (evidence: `clasificari/views.py`)
- Evidence forms → Personnel and classifications: validates (evidence: `clasificari/forms.py`)
- Evidence views → Personnel and classifications: reads and writes (evidence: `clasificari/views.py`)
- Personnel import → Personnel and classifications: imports records (evidence: `clasificari/management/commands/import_personal_2026.py`)
- Classification signals → Personnel and classifications: handles changes (evidence: `clasificari/signals.py`)
- Accounting views → Accounting forms: uses
- Accounting forms → Accounting records: validates (evidence: `contabilitate/forms.py`)
- Accounting views → Accounting records: reads and writes
- Accounting views → Document registration: registers documents
- Document registration → Accounting records: locks and records (evidence: `contabilitate/services.py`)
- Accounting views → Spreadsheet export: exports
- Legacy task views → Legacy task forms: uses (evidence: `core_old/views.py`)
- Legacy task forms → Legacy task records: validates (evidence: `core_old/forms.py`)
- Legacy task views → Legacy task records: reads and writes (evidence: `core_old/views.py`)
