# kylevillareal51-cloud/fop_finals architecture

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

- Interactive diagram: https://gitdiagram.com/kylevillareal51-cloud/fop_finals
- Repository: https://github.com/kylevillareal51-cloud/fop_finals

## Overview

FOP_FINALS is a console-based inventory and ordering application with Admin, Warehouse, and User roles. Its visible workflow initializes in-memory users, authenticates a role, then supports user administration, product entry/display, or product ordering with stock reduction. Users, products, and orders are process-local lists rather than a persistent database. The implementation is concentrated in Program.cs; the README provides no further capability details, and omitted code limits certainty about some dispatch relationships.

Main entry points: [`finalss/finalss/Program.cs`](https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs) (Application entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and administration"]
  node_entry["Application entry<br/>[Program.cs]"]
  node_login["Role login<br/>[Program.cs]"]
  node_user_admin["User administration<br/>[Program.cs]"]
end

subgraph group_inventory["Inventory management"]
  node_catalog["Product management<br/>[Program.cs]"]
end

subgraph group_orders["Ordering"]
  node_order_flow["Order creation<br/>[Program.cs]"]
end

node_operator(("Console user"))
node_state["In-memory lists<br/>[Program.cs]"]

node_operator -->|"uses console"| node_entry
node_entry -->|"calls login"| node_login
node_entry -.->|"role dispatch"| node_user_admin
node_entry -.->|"role dispatch"| node_catalog
node_entry -.->|"role dispatch"| node_order_flow
node_user_admin -->|"updates lists"| node_state
node_catalog -->|"updates products"| node_state
node_order_flow -->|"updates stock"| node_state

click node_entry "https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs"
click node_login "https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs"
click node_user_admin "https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs"
click node_state "https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs"
click node_catalog "https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs"
click node_order_flow "https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs"

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_entry,node_login,node_user_admin,node_operator toneBlue
class node_catalog toneAmber
class node_order_flow toneMint
class node_state toneTeal
```

## Components

### Access and administration

- [Application entry](https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs): `finalss/finalss/Program.cs`
- [Role login](https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs): `finalss/finalss/Program.cs`
- [User administration](https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs): `finalss/finalss/Program.cs`

### Inventory management

- [Product management](https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs): `finalss/finalss/Program.cs`

### Ordering

- [Order creation](https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs): `finalss/finalss/Program.cs`

### Other components

- **Console user**
- [In-memory lists](https://github.com/kylevillareal51-cloud/fop_finals/blob/main/finalss/finalss/Program.cs): `finalss/finalss/Program.cs`

## Connections

- Console user → Application entry: uses console (evidence: `finalss/finalss/Program.cs`)
- Application entry → Role login: calls login (evidence: `finalss/finalss/Program.cs`)
- Application entry → User administration: role dispatch (evidence: `finalss/finalss/Program.cs`)
- Application entry → Product management: role dispatch (evidence: `finalss/finalss/Program.cs`)
- Application entry → Order creation: role dispatch (evidence: `finalss/finalss/Program.cs`)
- User administration → In-memory lists: updates lists (evidence: `finalss/finalss/Program.cs`)
- Product management → In-memory lists: updates products (evidence: `finalss/finalss/Program.cs`)
- Order creation → In-memory lists: updates stock (evidence: `finalss/finalss/Program.cs`)
