# xvi-r/at-main architecture

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

- Interactive diagram: https://gitdiagram.com/xvi-r/at-main
- Repository: https://github.com/xvi-r/at-main

## Overview

This is an AirTortilla reservation CSV operations portal: users upload CSVs in bulk or line by line, then inspect partitioned results either as a ZIP or through line-oriented consultation. The browser code explicitly names the Spring `/files` API endpoints and ZIP handling. Backend service roles are inferred from the source tree only; their call relationships are therefore shown as unverified, and no README documentation was available.

Main entry points: [`FileSystem/src/main/java/com/example/demo/controller/CsvController.java`](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/controller/CsvController.java) (CSV endpoints), [`FileSystem/src/main/java/com/example/demo/service/CsvService.java`](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/CsvService.java) (CSV processing), [`FileSystem/src/main/resources/static/app.js`](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/resources/static/app.js) (Operations UI), [`FileSystem/src/main/java/com/example/demo/mapper/ReservasMapper.java`](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/mapper/ReservasMapper.java) (Reservation mapping)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Web portal"]
  node_web["Operations UI<br/>[app.js]"]
end

subgraph group_api["HTTP API"]
  node_controller["CSV endpoints<br/>[CsvController.java]"]
end

subgraph group_processing["CSV processing"]
  node_csv["CSV processing<br/>[CsvService.java]"]
  node_mapper["Reservation mapping"]
  node_identifier["Identifier service"]
  node_localizer["Localization service"]
  node_zip["ZIP service<br/>[ZipService.java]"]
  node_reservation["Reservation model<br/>[Reserva.java]"]
  node_person["Person model<br/>[Person.java]"]
end

subgraph group_state["Runtime state"]
  node_uploads[("Upload files")]
end

node_operator(("Operator"))

node_operator -->|"uses"| node_web
node_web -->|"sends CSV requests"| node_controller
node_web -->|"requests ZIP and lines"| node_controller
node_controller -.->|"delegates to"| node_csv
node_controller -.->|"delegates to"| node_zip
node_controller -.->|"reads or writes"| node_uploads
node_csv -.->|"maps reservations"| node_mapper
node_csv -.->|"uses identifiers"| node_identifier
node_csv -.->|"localizes data"| node_localizer
node_mapper -.->|"creates or maps"| node_reservation
node_mapper -.->|"maps person data"| node_person

click node_web "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/resources/static/app.js"
click node_controller "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/controller/CsvController.java"
click node_csv "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/CsvService.java"
click node_mapper "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/mapper/ReservasMapper.java"
click node_identifier "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/IdentifierService.java"
click node_localizer "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/LocalizerService.java"
click node_zip "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/ZipService.java"
click node_reservation "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/model/Reserva.java"
click node_person "https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/model/Person.java"
click node_uploads "https://github.com/xvi-r/at-main/tree/main/FileSystem/uploads"

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_web toneBlue
class node_controller toneAmber
class node_csv,node_mapper,node_identifier,node_localizer,node_zip,node_reservation,node_person toneMint
class node_uploads toneRose
class node_operator toneIndigo
```

## Components

### Web portal

- [Operations UI](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/resources/static/app.js): `FileSystem/src/main/resources/static/app.js`

### HTTP API

- [CSV endpoints](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/controller/CsvController.java): `FileSystem/src/main/java/com/example/demo/controller/CsvController.java`

### CSV processing

- [CSV processing](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/CsvService.java): `FileSystem/src/main/java/com/example/demo/service/CsvService.java`
- [Reservation mapping](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/mapper/ReservasMapper.java): `FileSystem/src/main/java/com/example/demo/mapper/ReservasMapper.java`
- [Identifier service](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/IdentifierService.java): `FileSystem/src/main/java/com/example/demo/service/IdentifierService.java`
- [Localization service](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/LocalizerService.java): `FileSystem/src/main/java/com/example/demo/service/LocalizerService.java`
- [ZIP service](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/service/ZipService.java): `FileSystem/src/main/java/com/example/demo/service/ZipService.java`
- [Reservation model](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/model/Reserva.java): `FileSystem/src/main/java/com/example/demo/model/Reserva.java`
- [Person model](https://github.com/xvi-r/at-main/blob/main/FileSystem/src/main/java/com/example/demo/model/Person.java): `FileSystem/src/main/java/com/example/demo/model/Person.java`

### Runtime state

- [Upload files](https://github.com/xvi-r/at-main/tree/main/FileSystem/uploads): `FileSystem/uploads`

### Other components

- **Operator**

## Connections

- Operator → Operations UI: uses (evidence: `FileSystem/src/main/resources/static/app.js`)
- Operations UI → CSV endpoints: sends CSV requests (evidence: `FileSystem/src/main/resources/static/app.js`)
- Operations UI → CSV endpoints: requests ZIP and lines (evidence: `FileSystem/src/main/resources/static/app.js`)
- CSV endpoints → CSV processing: delegates to
- CSV endpoints → ZIP service: delegates to
- CSV endpoints → Upload files: reads or writes
- CSV processing → Reservation mapping: maps reservations
- CSV processing → Identifier service: uses identifiers
- CSV processing → Localization service: localizes data
- Reservation mapping → Reservation model: creates or maps
- Reservation mapping → Person model: maps person data
