# edv1g3/rottami_galattici architecture

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

- Interactive diagram: https://gitdiagram.com/edv1g3/rottami_galattici
- Repository: https://github.com/edv1g3/rottami_galattici

## Overview

Rottami Galattici is an Angular application for managing spacecraft repair work and spare parts. Managers create and update repair jobs; technicians review assigned work, submit assessments and required parts, and track repair time; inventory staff view stock and record replenishment. The app keeps jobs, technicians, and inventory in in-memory services rather than an evidenced external database. The graph follows the documented routes and sampled component/service calls; unsampled templates and other wiring are not inferred.

Main entry points: [`Rottami_Galattici/src/app/app.routes.ts`](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/app.routes.ts) (Route table), [`Rottami_Galattici/src/app/service/lavorazione.service.ts`](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/lavorazione.service.ts) (Work service), [`Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts`](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts) (Technician portal), [`Rottami_Galattici/src/app/service/gestorepersonale.service.ts`](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/gestorepersonale.service.ts) (Personnel service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_config["App config<br/>[app.config.ts]"]
  node_shell["App shell<br/>[app.component.ts]"]
  node_routes["Route table<br/>[app.routes.ts]"]
  node_home["Home<br/>[home.component.ts]"]
end

subgraph group_repair["Repair workflow"]
  node_manager["Work manager"]
  node_technician["Technician portal"]
end

subgraph group_operations["Operational services"]
  node_inventory["Stock screen"]
  node_workservice["Work service"]
  node_staffservice["Personnel service"]
  node_stockservice["Stock service"]
end

subgraph group_records["Domain records"]
  node_workmodel["Work record"]
  node_shipmodel["Ship record<br/>[navicella.model.ts]"]
  node_partmodel["Part record<br/>[pezzo.model.ts]"]
  node_techmodel["Technician record<br/>[tecnico.model.ts]"]
end

node_user(("User"))

node_user -->|"uses"| node_shell
node_bootstrap -->|"starts with"| node_config
node_bootstrap -->|"starts"| node_shell
node_config -->|"provides"| node_routes
node_shell -->|"hosts outlet"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_manager
node_routes -->|"routes to"| node_technician
node_routes -->|"routes to"| node_inventory
node_manager -->|"manages jobs"| node_workservice
node_manager -->|"loads technicians"| node_staffservice
node_technician -->|"authenticates"| node_staffservice
node_technician -->|"updates work"| node_workservice
node_technician -->|"lists parts"| node_stockservice
node_inventory -->|"replenishes stock"| node_stockservice
node_workservice -->|"checks and withdraws"| node_stockservice
node_workservice -->|"uses type"| node_workmodel
node_workservice -->|"uses type"| node_shipmodel
node_staffservice -->|"uses type"| node_techmodel
node_staffservice -->|"uses type"| node_workmodel
node_stockservice -->|"uses type"| node_partmodel
node_workmodel -->|"uses type"| node_shipmodel

click node_bootstrap "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/main.ts"
click node_config "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/app.config.ts"
click node_shell "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/app.component.ts"
click node_routes "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/app.routes.ts"
click node_home "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/home/home.component.ts"
click node_manager "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/gestorelavorazioni/gestionelavorazione.component.ts"
click node_technician "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts"
click node_inventory "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/magazzino/magazzino.component.ts"
click node_workservice "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/lavorazione.service.ts"
click node_staffservice "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/gestorepersonale.service.ts"
click node_stockservice "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/magazzino.service.ts"
click node_workmodel "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/lavorazione.model.ts"
click node_shipmodel "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/navicella.model.ts"
click node_partmodel "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/pezzo.model.ts"
click node_techmodel "https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/tecnico.model.ts"

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_bootstrap,node_config,node_shell,node_routes,node_home,node_user toneBlue
class node_manager,node_technician toneAmber
class node_inventory,node_workservice,node_staffservice,node_stockservice toneMint
class node_workmodel,node_shipmodel,node_partmodel,node_techmodel toneRose
```

## Components

### App navigation

- [App bootstrap](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/main.ts): `Rottami_Galattici/src/main.ts`
- [App config](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/app.config.ts): `Rottami_Galattici/src/app/app.config.ts`
- [App shell](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/app.component.ts): `Rottami_Galattici/src/app/app.component.ts`
- [Route table](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/app.routes.ts): `Rottami_Galattici/src/app/app.routes.ts`
- [Home](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/home/home.component.ts): `Rottami_Galattici/src/app/component/home/home.component.ts`

### Repair workflow

- [Work manager](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/gestorelavorazioni/gestionelavorazione.component.ts): `Rottami_Galattici/src/app/component/gestorelavorazioni/gestionelavorazione.component.ts`
- [Technician portal](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts): `Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts`

### Operational services

- [Stock screen](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/component/magazzino/magazzino.component.ts): `Rottami_Galattici/src/app/component/magazzino/magazzino.component.ts`
- [Work service](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/lavorazione.service.ts): `Rottami_Galattici/src/app/service/lavorazione.service.ts`
- [Personnel service](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/gestorepersonale.service.ts): `Rottami_Galattici/src/app/service/gestorepersonale.service.ts`
- [Stock service](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/service/magazzino.service.ts): `Rottami_Galattici/src/app/service/magazzino.service.ts`

### Domain records

- [Work record](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/lavorazione.model.ts): `Rottami_Galattici/src/app/model/lavorazione.model.ts`
- [Ship record](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/navicella.model.ts): `Rottami_Galattici/src/app/model/navicella.model.ts`
- [Part record](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/pezzo.model.ts): `Rottami_Galattici/src/app/model/pezzo.model.ts`
- [Technician record](https://github.com/edv1g3/rottami_galattici/blob/main/Rottami_Galattici/src/app/model/tecnico.model.ts): `Rottami_Galattici/src/app/model/tecnico.model.ts`

### Other components

- **User**

## Connections

- User → App shell: uses (evidence: `Rottami_Galattici/src/app/app.component.ts`)
- App bootstrap → App config: starts with (evidence: `Rottami_Galattici/src/main.ts`)
- App bootstrap → App shell: starts (evidence: `Rottami_Galattici/src/main.ts`)
- App config → Route table: provides (evidence: `Rottami_Galattici/src/app/app.config.ts`)
- App shell → Route table: hosts outlet (evidence: `Rottami_Galattici/src/app/app.component.ts`)
- Route table → Home: routes to (evidence: `Rottami_Galattici/src/app/app.routes.ts`)
- Route table → Work manager: routes to (evidence: `Rottami_Galattici/src/app/app.routes.ts`)
- Route table → Technician portal: routes to (evidence: `Rottami_Galattici/src/app/app.routes.ts`)
- Route table → Stock screen: routes to (evidence: `Rottami_Galattici/src/app/app.routes.ts`)
- Work manager → Work service: manages jobs (evidence: `Rottami_Galattici/src/app/component/gestorelavorazioni/gestionelavorazione.component.ts`)
- Work manager → Personnel service: loads technicians (evidence: `Rottami_Galattici/src/app/component/gestorelavorazioni/gestionelavorazione.component.ts`)
- Technician portal → Personnel service: authenticates (evidence: `Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts`)
- Technician portal → Work service: updates work (evidence: `Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts`)
- Technician portal → Stock service: lists parts (evidence: `Rottami_Galattici/src/app/component/portaletecnico/portaletecnico.component.ts`)
- Stock screen → Stock service: replenishes stock (evidence: `Rottami_Galattici/src/app/component/magazzino/magazzino.component.ts`)
- Work service → Stock service: checks and withdraws (evidence: `Rottami_Galattici/src/app/service/lavorazione.service.ts`)
- Work service → Work record: uses type (evidence: `Rottami_Galattici/src/app/service/lavorazione.service.ts`)
- Work service → Ship record: uses type (evidence: `Rottami_Galattici/src/app/service/lavorazione.service.ts`)
- Personnel service → Technician record: uses type (evidence: `Rottami_Galattici/src/app/service/gestorepersonale.service.ts`)
- Personnel service → Work record: uses type (evidence: `Rottami_Galattici/src/app/service/gestorepersonale.service.ts`)
- Stock service → Part record: uses type (evidence: `Rottami_Galattici/src/app/service/magazzino.service.ts`)
- Work record → Ship record: uses type (evidence: `Rottami_Galattici/src/app/model/lavorazione.model.ts`)
