# domdip99/webapp-studio_tecnico_fratangelo architecture

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

- Interactive diagram: https://gitdiagram.com/domdip99/webapp-studio_tecnico_fratangelo
- Repository: https://github.com/domdip99/webapp-studio_tecnico_fratangelo

## Overview

STLF is a work-in-progress bookkeeping application. Its current end-to-end workflow is a mock-data React client: users sign in, pass role-protected routes, and use pages for journals, expenses, installments, client work files, account activity, search, and invoices; the server currently exposes only health status. The graph preserves the documented capability areas, with distinct page nodes where useful and a shared calculation/formatting layer. The README supplies coverage for features whose source was not sampled; edges are limited to relationships visible in excerpts or the source index.

Main entry points: [`client/src/AppRoutes.jsx`](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/AppRoutes.jsx) (Protected routes), [`client/src/pages/fatture/Fatture.jsx`](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/fatture/Fatture.jsx) (Invoice management), [`client/src/pages/gestione/Pratiche.jsx`](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/gestione/Pratiche.jsx) (Work files), [`client/src/utils`](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/tree/main/client/src/utils) (Calculations and formatting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_app_routes["Protected routes<br/>[AppRoutes.jsx]"]
  node_auth["Mock role access<br/>[AuthProvider.jsx]"]
end

subgraph group_bookkeeping["Bookkeeping workflows"]
  node_prima_nota["Journal entries<br/>[PrimaNota.jsx]"]
  node_expenses["Expenses by category<br/>[PerVociDiSpesa.jsx]"]
  node_installments["Installment plans<br/>[PianiRate.jsx]"]
  node_work_files["Work files<br/>[Pratiche.jsx]"]
  node_invoices["Invoice management<br/>[Fatture.jsx]"]
  node_invoice_calc["Invoice calculation<br/>[CalcoloFattura.jsx]"]
end

subgraph group_insights["Situation and accounts"]
  node_daily["Daily overview<br/>[Oggi.jsx]"]
  node_calendar["Calendar view<br/>[Calendario.jsx]"]
  node_search["Filtered search<br/>[RicercaVoce.jsx]"]
  node_balances["Account balances"]
  node_transfers["Account movements<br/>[Movimenti.jsx]"]
  node_history["Account history<br/>[Storico.jsx]"]
end

subgraph group_records["Reference data and utilities"]
  node_lookups["Lookup tables"]
  node_utilities["Date and backup tools"]
end

subgraph group_shared["Shared presentation and logic"]
  node_table["Selectable data table<br/>[DataTable.jsx]"]
  node_forms["Reusable form fields<br/>[FormFields.jsx]"]
  node_toolbar["Action toolbar<br/>[Toolbar.jsx]"]
  node_totals["Totals display<br/>[Totale.jsx]"]
  node_calculations["Calculations and formatting"]
  node_calendar_ui["Calendar grid"]
end

subgraph group_service["Health service"]
  node_health_api["Health endpoint<br/>[app.js]"]
  node_server_process["Express server<br/>[index.js]"]
end

node_user(("Bookkeeping user"))
node_browser(("Browser client"))

node_user -->|"uses"| node_app_routes
node_app_routes -->|"guards routes"| node_auth
node_app_routes -->|"routes to"| node_prima_nota
node_app_routes -->|"routes to"| node_expenses
node_app_routes -->|"routes to"| node_work_files
node_app_routes -->|"routes to"| node_daily
node_app_routes -->|"routes to"| node_calendar
node_app_routes -->|"routes to"| node_search
node_app_routes -->|"routes to"| node_balances
node_app_routes -->|"routes to"| node_transfers
node_app_routes -->|"routes to"| node_history
node_app_routes -->|"routes to"| node_invoices
node_app_routes -->|"routes to"| node_lookups
node_app_routes -->|"routes to"| node_utilities
node_app_routes -.->|"routes to"| node_installments
node_invoices -->|"renders"| node_invoice_calc
node_invoices -->|"calculates totals"| node_calculations
node_invoices -->|"renders fields"| node_forms
node_invoices -->|"renders rows"| node_table
node_invoices -->|"renders actions"| node_toolbar
node_invoices -->|"shows total"| node_totals
node_invoice_calc -->|"calculates amounts"| node_calculations
node_work_files -->|"renders rows"| node_table
node_work_files -->|"renders fields"| node_forms
node_work_files -->|"renders actions"| node_toolbar
node_work_files -->|"shows totals"| node_totals
node_work_files -->|"summarizes files"| node_calculations
node_search -->|"filters and totals"| node_calculations
node_search -->|"renders results"| node_table
node_search -->|"shows totals"| node_totals
node_calendar -->|"renders calendar"| node_calendar_ui
node_calendar_ui -->|"gets calendar dates"| node_calculations
node_prima_nota -->|"formats values"| node_calculations
node_browser -.->|"checks status"| node_health_api
node_server_process -->|"serves endpoint"| node_health_api
node_browser -.->|"connects to"| node_server_process

click node_app_routes "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/AppRoutes.jsx"
click node_auth "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/auth/AuthProvider.jsx"
click node_prima_nota "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/PrimaNota.jsx"
click node_expenses "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/gestione/PerVociDiSpesa.jsx"
click node_installments "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/gestione/rate/PianiRate.jsx"
click node_work_files "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/gestione/Pratiche.jsx"
click node_invoices "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/fatture/Fatture.jsx"
click node_invoice_calc "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/fatture/CalcoloFattura.jsx"
click node_daily "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/situazione/Oggi.jsx"
click node_calendar "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/situazione/Calendario.jsx"
click node_search "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/situazione/RicercaVoce.jsx"
click node_balances "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/conti/SituazioneConti.jsx"
click node_transfers "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/conti/Movimenti.jsx"
click node_history "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/conti/Storico.jsx"
click node_lookups "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/tree/main/client/src/pages/tabelle"
click node_utilities "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/tree/main/client/src/pages/utilita"
click node_table "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/DataTable.jsx"
click node_forms "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/FormFields.jsx"
click node_toolbar "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/Toolbar.jsx"
click node_totals "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/Totale.jsx"
click node_calculations "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/tree/main/client/src/utils"
click node_calendar_ui "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/CalendarioGiorni.jsx"
click node_health_api "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/server/app.js"
click node_server_process "https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/server/index.js"

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_app_routes,node_auth,node_user,node_browser toneBlue
class node_prima_nota,node_expenses,node_installments,node_work_files,node_invoices,node_invoice_calc toneAmber
class node_daily,node_calendar,node_search,node_balances,node_transfers,node_history toneMint
class node_lookups,node_utilities toneRose
class node_table,node_forms,node_toolbar,node_totals,node_calculations,node_calendar_ui toneIndigo
class node_health_api,node_server_process toneTeal
```

## Components

### Access and navigation

- [Protected routes](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/AppRoutes.jsx): `client/src/AppRoutes.jsx`
- [Mock role access](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/auth/AuthProvider.jsx): `client/src/auth/AuthProvider.jsx`

### Bookkeeping workflows

- [Journal entries](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/PrimaNota.jsx): `client/src/pages/PrimaNota.jsx`
- [Expenses by category](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/gestione/PerVociDiSpesa.jsx): `client/src/pages/gestione/PerVociDiSpesa.jsx`
- [Installment plans](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/gestione/rate/PianiRate.jsx): `client/src/pages/gestione/rate/PianiRate.jsx`
- [Work files](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/gestione/Pratiche.jsx): `client/src/pages/gestione/Pratiche.jsx`
- [Invoice management](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/fatture/Fatture.jsx): `client/src/pages/fatture/Fatture.jsx`
- [Invoice calculation](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/fatture/CalcoloFattura.jsx): `client/src/pages/fatture/CalcoloFattura.jsx`

### Situation and accounts

- [Daily overview](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/situazione/Oggi.jsx): `client/src/pages/situazione/Oggi.jsx`
- [Calendar view](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/situazione/Calendario.jsx): `client/src/pages/situazione/Calendario.jsx`
- [Filtered search](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/situazione/RicercaVoce.jsx): `client/src/pages/situazione/RicercaVoce.jsx`
- [Account balances](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/conti/SituazioneConti.jsx): `client/src/pages/conti/SituazioneConti.jsx`
- [Account movements](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/conti/Movimenti.jsx): `client/src/pages/conti/Movimenti.jsx`
- [Account history](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/pages/conti/Storico.jsx): `client/src/pages/conti/Storico.jsx`

### Reference data and utilities

- [Lookup tables](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/tree/main/client/src/pages/tabelle): `client/src/pages/tabelle`
- [Date and backup tools](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/tree/main/client/src/pages/utilita): `client/src/pages/utilita`

### Shared presentation and logic

- [Selectable data table](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/DataTable.jsx): `client/src/components/DataTable.jsx`
- [Reusable form fields](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/FormFields.jsx): `client/src/components/FormFields.jsx`
- [Action toolbar](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/Toolbar.jsx): `client/src/components/Toolbar.jsx`
- [Totals display](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/Totale.jsx): `client/src/components/Totale.jsx`
- [Calculations and formatting](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/tree/main/client/src/utils): `client/src/utils`
- [Calendar grid](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/client/src/components/CalendarioGiorni.jsx): `client/src/components/CalendarioGiorni.jsx`

### Health service

- [Health endpoint](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/server/app.js): `server/app.js`
- [Express server](https://github.com/domdip99/webapp-studio_tecnico_fratangelo/blob/main/server/index.js): `server/index.js`

### Other components

- **Bookkeeping user**
- **Browser client**

## Connections

- Bookkeeping user → Protected routes: uses (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Mock role access: guards routes (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Journal entries: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Expenses by category: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Work files: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Daily overview: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Calendar view: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Filtered search: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Account balances: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Account movements: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Account history: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Invoice management: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Lookup tables: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Date and backup tools: routes to (evidence: `client/src/AppRoutes.jsx`)
- Protected routes → Installment plans: routes to
- Invoice management → Invoice calculation: renders (evidence: `client/src/pages/fatture/Fatture.jsx`)
- Invoice management → Calculations and formatting: calculates totals (evidence: `client/src/pages/fatture/Fatture.jsx`)
- Invoice management → Reusable form fields: renders fields (evidence: `client/src/pages/fatture/Fatture.jsx`)
- Invoice management → Selectable data table: renders rows (evidence: `client/src/pages/fatture/Fatture.jsx`)
- Invoice management → Action toolbar: renders actions (evidence: `client/src/pages/fatture/Fatture.jsx`)
- Invoice management → Totals display: shows total (evidence: `client/src/pages/fatture/Fatture.jsx`)
- Invoice calculation → Calculations and formatting: calculates amounts (evidence: `client/src/pages/fatture/CalcoloFattura.jsx`)
- Work files → Selectable data table: renders rows (evidence: `client/src/pages/gestione/Pratiche.jsx`)
- Work files → Reusable form fields: renders fields (evidence: `client/src/pages/gestione/Pratiche.jsx`)
- Work files → Action toolbar: renders actions (evidence: `client/src/pages/gestione/Pratiche.jsx`)
- Work files → Totals display: shows totals (evidence: `client/src/pages/gestione/Pratiche.jsx`)
- Work files → Calculations and formatting: summarizes files (evidence: `client/src/pages/gestione/Pratiche.jsx`)
- Filtered search → Calculations and formatting: filters and totals (evidence: `client/src/pages/situazione/RicercaVoce.jsx`)
- Filtered search → Selectable data table: renders results (evidence: `client/src/pages/situazione/RicercaVoce.jsx`)
- Filtered search → Totals display: shows totals (evidence: `client/src/pages/situazione/RicercaVoce.jsx`)
- Calendar view → Calendar grid: renders calendar (evidence: `client/src/pages/situazione/Calendario.jsx`)
- Calendar grid → Calculations and formatting: gets calendar dates (evidence: `client/src/components/CalendarioGiorni.jsx`)
- Journal entries → Calculations and formatting: formats values (evidence: `client/src/pages/PrimaNota.jsx`)
- Browser client → Health endpoint: checks status (evidence: `README.md`)
- Express server → Health endpoint: serves endpoint (evidence: `server/index.js`)
- Browser client → Express server: connects to
