# ricohtwdd/leihliste_b1_sose26 architecture

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

- Interactive diagram: https://gitdiagram.com/ricohtwdd/leihliste_b1_sose26
- Repository: https://github.com/ricohtwdd/leihliste_b1_sose26

## Overview

The README describes a Software Engineering documentation-template repository, but the supplied tree also contains a substantial LeihListe application under src/. This map focuses on that implemented runtime: users browse inventory and submit loan requests through the React app, backed by Django inventory and lending domains. Frontend-to-backend API wiring is not established by the shown excerpts, so those connections are omitted; organization and user modules are present but their behavior was not sampled.

Main entry points: [`src/frontend/src/App.jsx`](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/App.jsx) (App navigation), [`src/frontend/src/pages/GegenstandsUebersicht.jsx`](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/GegenstandsUebersicht.jsx) (Item overview), [`src/frontend/src/pages/MeineAnfragen.jsx`](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/MeineAnfragen.jsx) (My requests), [`src/frontend/src/components/layout/AppLayout.jsx`](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/layout/AppLayout.jsx) (App layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["App navigation<br/>[App.jsx]"]
  node_entry["React entry<br/>[main.jsx]"]
  node_home["Home page<br/>[HomePage.jsx]"]
end

subgraph group_experience["Interface"]
  node_layout["App layout<br/>[AppLayout.jsx]"]
  node_header["Header<br/>[Header.jsx]"]
  node_sidebar["Sidebar navigation<br/>[Sidebar.jsx]"]
  node_theme["UI theme<br/>[theme.js]"]
  node_status["Status badge<br/>[StatusBadge.jsx]"]
  node_error["Error message<br/>[ErrorMessage.jsx]"]
  node_hint["Hint box<br/>[HintBox.jsx]"]
  node_statuslogic["Status formatting<br/>[anzeigeStatus.js]"]
end

subgraph group_inventory["Inventory"]
  node_catalog["Item overview"]
  node_detail["Item detail"]
  node_inventoryapi["Inventory views<br/>[views.py]"]
  node_inventoryserializers["Inventory serializers<br/>[serializers.py]"]
  node_inventorymodels[("Inventory models<br/>[models.py]")]
end

subgraph group_lending["Lending"]
  node_requestpage["Loan request page"]
  node_myrequests["My requests<br/>[MeineAnfragen.jsx]"]
  node_lendingapi["Lending views<br/>[views.py]"]
  node_lendingserializers["Lending serializers<br/>[serializers.py]"]
  node_lendingmodels[("Lending models<br/>[models.py]")]
end

node_borrower(("Borrower"))

node_borrower -->|"uses"| node_app
node_entry -->|"renders"| node_app
node_entry -->|"provides theme"| node_theme
node_app -->|"renders"| node_layout
node_app -->|"selects"| node_home
node_app -->|"selects"| node_requestpage
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_sidebar
node_catalog -->|"renders"| node_status
node_catalog -->|"renders"| node_error
node_catalog -->|"renders"| node_hint
node_catalog -->|"formats status"| node_statuslogic
node_requestpage -->|"renders"| node_status
node_requestpage -->|"renders"| node_error
node_myrequests -->|"renders"| node_status
node_myrequests -->|"renders"| node_error
node_myrequests -->|"renders"| node_hint
node_inventoryapi -->|"serializes"| node_inventoryserializers
node_inventoryapi -->|"queries"| node_inventorymodels
node_inventoryserializers -->|"serializes"| node_inventorymodels
node_lendingapi -->|"serializes"| node_lendingserializers
node_lendingapi -->|"queries"| node_lendingmodels
node_lendingserializers -->|"serializes"| node_lendingmodels

click node_app "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/App.jsx"
click node_entry "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/main.jsx"
click node_layout "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/layout/AppLayout.jsx"
click node_header "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/layout/Header.jsx"
click node_sidebar "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/layout/Sidebar.jsx"
click node_theme "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/theme/theme.js"
click node_status "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/ui/StatusBadge.jsx"
click node_error "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/ui/ErrorMessage.jsx"
click node_hint "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/ui/HintBox.jsx"
click node_statuslogic "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/utils/anzeigeStatus.js"
click node_home "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/HomePage.jsx"
click node_catalog "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/GegenstandsUebersicht.jsx"
click node_detail "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/GegenstandDetail.jsx"
click node_requestpage "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/LoanRequestPage.jsx"
click node_myrequests "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/MeineAnfragen.jsx"
click node_inventoryapi "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/inventory/views.py"
click node_inventoryserializers "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/inventory/serializers.py"
click node_inventorymodels "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/inventory/models.py"
click node_lendingapi "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/lending/views.py"
click node_lendingserializers "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/lending/serializers.py"
click node_lendingmodels "https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/lending/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_app,node_entry,node_home toneBlue
class node_layout,node_header,node_sidebar,node_theme,node_status,node_error,node_hint,node_statuslogic toneAmber
class node_catalog,node_detail,node_inventoryapi,node_inventoryserializers,node_inventorymodels toneMint
class node_requestpage,node_myrequests,node_lendingapi,node_lendingserializers,node_lendingmodels toneRose
class node_borrower toneIndigo
```

## Components

### Web client

- [App navigation](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/App.jsx): `src/frontend/src/App.jsx`
- [React entry](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/main.jsx): `src/frontend/src/main.jsx`
- [Home page](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/HomePage.jsx): `src/frontend/src/pages/HomePage.jsx`

### Interface

- [App layout](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/layout/AppLayout.jsx): `src/frontend/src/components/layout/AppLayout.jsx`
- [Header](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/layout/Header.jsx): `src/frontend/src/components/layout/Header.jsx`
- [Sidebar navigation](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/layout/Sidebar.jsx): `src/frontend/src/components/layout/Sidebar.jsx`
- [UI theme](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/theme/theme.js): `src/frontend/src/theme/theme.js`
- [Status badge](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/ui/StatusBadge.jsx): `src/frontend/src/components/ui/StatusBadge.jsx`
- [Error message](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/ui/ErrorMessage.jsx): `src/frontend/src/components/ui/ErrorMessage.jsx`
- [Hint box](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/components/ui/HintBox.jsx): `src/frontend/src/components/ui/HintBox.jsx`
- [Status formatting](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/utils/anzeigeStatus.js): `src/frontend/src/utils/anzeigeStatus.js`

### Inventory

- [Item overview](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/GegenstandsUebersicht.jsx): `src/frontend/src/pages/GegenstandsUebersicht.jsx`
- [Item detail](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/GegenstandDetail.jsx): `src/frontend/src/pages/GegenstandDetail.jsx`
- [Inventory views](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/inventory/views.py): `src/backend/datenbank/inventory/views.py`
- [Inventory serializers](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/inventory/serializers.py): `src/backend/datenbank/inventory/serializers.py`
- [Inventory models](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/inventory/models.py): `src/backend/datenbank/inventory/models.py`

### Lending

- [Loan request page](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/LoanRequestPage.jsx): `src/frontend/src/pages/LoanRequestPage.jsx`
- [My requests](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/frontend/src/pages/MeineAnfragen.jsx): `src/frontend/src/pages/MeineAnfragen.jsx`
- [Lending views](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/lending/views.py): `src/backend/datenbank/lending/views.py`
- [Lending serializers](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/lending/serializers.py): `src/backend/datenbank/lending/serializers.py`
- [Lending models](https://github.com/ricohtwdd/leihliste_b1_sose26/blob/main/src/backend/datenbank/lending/models.py): `src/backend/datenbank/lending/models.py`

### Other components

- **Borrower**

## Connections

- Borrower → App navigation: uses
- React entry → App navigation: renders (evidence: `src/frontend/src/main.jsx`)
- React entry → UI theme: provides theme (evidence: `src/frontend/src/main.jsx`)
- App navigation → App layout: renders (evidence: `src/frontend/src/App.jsx`)
- App navigation → Home page: selects (evidence: `src/frontend/src/App.jsx`)
- App navigation → Loan request page: selects (evidence: `src/frontend/src/App.jsx`)
- App layout → Header: renders (evidence: `src/frontend/src/components/layout/AppLayout.jsx`)
- App layout → Sidebar navigation: renders (evidence: `src/frontend/src/components/layout/AppLayout.jsx`)
- Item overview → Status badge: renders (evidence: `src/frontend/src/pages/GegenstandsUebersicht.jsx`)
- Item overview → Error message: renders (evidence: `src/frontend/src/pages/GegenstandsUebersicht.jsx`)
- Item overview → Hint box: renders (evidence: `src/frontend/src/pages/GegenstandsUebersicht.jsx`)
- Item overview → Status formatting: formats status (evidence: `src/frontend/src/pages/GegenstandsUebersicht.jsx`)
- Loan request page → Status badge: renders (evidence: `src/frontend/src/pages/LoanRequestPage.jsx`)
- Loan request page → Error message: renders (evidence: `src/frontend/src/pages/LoanRequestPage.jsx`)
- My requests → Status badge: renders (evidence: `src/frontend/src/pages/MeineAnfragen.jsx`)
- My requests → Error message: renders (evidence: `src/frontend/src/pages/MeineAnfragen.jsx`)
- My requests → Hint box: renders (evidence: `src/frontend/src/pages/MeineAnfragen.jsx`)
- Inventory views → Inventory serializers: serializes (evidence: `src/backend/datenbank/inventory/views.py`)
- Inventory views → Inventory models: queries (evidence: `src/backend/datenbank/inventory/views.py`)
- Inventory serializers → Inventory models: serializes (evidence: `src/backend/datenbank/inventory/serializers.py`)
- Lending views → Lending serializers: serializes (evidence: `src/backend/datenbank/lending/views.py`)
- Lending views → Lending models: queries (evidence: `src/backend/datenbank/lending/views.py`)
- Lending serializers → Lending models: serializes (evidence: `src/backend/datenbank/lending/serializers.py`)
