# chichofb/benutzerliste architecture

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

- Interactive diagram: https://gitdiagram.com/chichofb/benutzerliste
- Repository: https://github.com/chichofb/benutzerliste

## Overview

This is a React-based user and organisation administration frontend. An authenticated operator enters the application, switches between user and organisation management, and performs record, profile, and organisation-related tasks through UI components that use a service layer. The services select real API implementations or mock implementations according to mock mode. The graph follows calls and imports visible in the supplied excerpts and SOURCE INDEX; several component internals and authentication wiring were not sampled, so uncertain relationships are omitted.

Main entry points: [`src/services/index.js`](https://github.com/chichofb/benutzerliste/blob/main/src/services/index.js) (Service resolver), [`src/components/Benutzerliste.jsx`](https://github.com/chichofb/benutzerliste/blob/main/src/components/Benutzerliste.jsx) (User listing), [`src/App.jsx`](https://github.com/chichofb/benutzerliste/blob/main/src/App.jsx) (Navigation shell), [`src/main.jsx`](https://github.com/chichofb/benutzerliste/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_appshell["Navigation shell<br/>[App.jsx]"]
end

subgraph group_users["User management"]
  node_userlist["User listing<br/>[Benutzerliste.jsx]"]
  node_userdetail["User details<br/>[BenutzerDetail.jsx]"]
  node_userform["User form"]
  node_userfilter["User filters<br/>[UserFilterBar.jsx]"]
  node_usertable["User table<br/>[UserTable.jsx]"]
  node_deletedialog["Delete dialog"]
  node_reactivate["Reactivate dialog"]
  node_pagedhook["Paged-user hook"]
end

subgraph group_orgs["Organisation management"]
  node_orgmanage["Organisation management"]
  node_orgform["Organisation form"]
  node_orgdetail["Organisation details"]
end

subgraph group_services["Service layer"]
  node_resolver["Service resolver<br/>[index.js]"]
  node_userservice["User API service<br/>[userService.js]"]
  node_mockusers["Mock user service<br/>[mockUserService.js]"]
  node_orgservice["Organisation API service"]
  node_mockorgs["Mock organisation service"]
end

subgraph group_authui["Identity and presentation"]
  node_profile["Profile menu<br/>[ProfileMenu.jsx]"]
  node_authhook["Auth hook<br/>[useAuth.js]"]
  node_keycloakconfig["Keycloak config<br/>[keycloak.js]"]
  node_theme["Theme definitions<br/>[theme.js]"]
  node_themeprovider["Theme provider<br/>[ThemeProvider.jsx]"]
end

node_operator(("Operator"))
node_backend["Backend API"]

node_operator -.->|"uses"| node_entry
node_entry -->|"renders"| node_appshell
node_entry -->|"configures auth"| node_keycloakconfig
node_entry -->|"reads mock mode"| node_authhook
node_appshell -->|"checks auth"| node_authhook
node_appshell -->|"renders users"| node_userlist
node_appshell -->|"renders organisations"| node_orgmanage
node_appshell -->|"renders profile"| node_profile
node_appshell -->|"uses theme"| node_theme
node_userlist -->|"requests user data"| node_resolver
node_userlist -->|"renders filters"| node_userfilter
node_userlist -->|"renders table"| node_usertable
node_userlist -->|"opens details"| node_userdetail
node_userlist -->|"opens form"| node_userform
node_userlist -->|"opens dialog"| node_deletedialog
node_userlist -->|"opens dialog"| node_reactivate
node_userform -->|"uses services"| node_resolver
node_orgmanage -->|"opens form"| node_orgform
node_orgmanage -->|"opens details"| node_orgdetail
node_orgmanage -->|"uses services"| node_resolver
node_orgform -->|"uses services"| node_resolver
node_orgdetail -->|"uses services"| node_resolver
node_profile -->|"reads identity"| node_authhook
node_profile -->|"uses services"| node_resolver
node_resolver -->|"selects real service"| node_userservice
node_resolver -->|"selects mock service"| node_mockusers
node_resolver -->|"selects real service"| node_orgservice
node_resolver -->|"selects mock service"| node_mockorgs
node_userservice -->|"sends HTTP requests"| node_backend
node_orgservice -->|"sends HTTP requests"| node_backend
node_themeprovider -->|"uses definitions"| node_theme

click node_entry "https://github.com/chichofb/benutzerliste/blob/main/src/main.jsx"
click node_appshell "https://github.com/chichofb/benutzerliste/blob/main/src/App.jsx"
click node_userlist "https://github.com/chichofb/benutzerliste/blob/main/src/components/Benutzerliste.jsx"
click node_userdetail "https://github.com/chichofb/benutzerliste/blob/main/src/components/BenutzerDetail.jsx"
click node_userform "https://github.com/chichofb/benutzerliste/blob/main/src/components/BenutzerFormStepper.jsx"
click node_userfilter "https://github.com/chichofb/benutzerliste/blob/main/src/components/UserFilterBar.jsx"
click node_usertable "https://github.com/chichofb/benutzerliste/blob/main/src/components/UserTable.jsx"
click node_deletedialog "https://github.com/chichofb/benutzerliste/blob/main/src/components/DeletedUserDialog.jsx"
click node_reactivate "https://github.com/chichofb/benutzerliste/blob/main/src/components/ReactivateUserDialog.jsx"
click node_pagedhook "https://github.com/chichofb/benutzerliste/blob/main/src/hooks/useServerPagedUsers.js"
click node_orgmanage "https://github.com/chichofb/benutzerliste/blob/main/src/components/OrganisationVerwaltung.jsx"
click node_orgform "https://github.com/chichofb/benutzerliste/blob/main/src/components/OrganisationForm.jsx"
click node_orgdetail "https://github.com/chichofb/benutzerliste/blob/main/src/components/OrganisationDetail.jsx"
click node_profile "https://github.com/chichofb/benutzerliste/blob/main/src/components/ProfileMenu.jsx"
click node_authhook "https://github.com/chichofb/benutzerliste/blob/main/src/useAuth.js"
click node_keycloakconfig "https://github.com/chichofb/benutzerliste/blob/main/src/keycloak.js"
click node_theme "https://github.com/chichofb/benutzerliste/blob/main/src/theme/theme.js"
click node_themeprovider "https://github.com/chichofb/benutzerliste/blob/main/src/theme/ThemeProvider.jsx"
click node_resolver "https://github.com/chichofb/benutzerliste/blob/main/src/services/index.js"
click node_userservice "https://github.com/chichofb/benutzerliste/blob/main/src/services/userService.js"
click node_mockusers "https://github.com/chichofb/benutzerliste/blob/main/src/services/mockUserService.js"
click node_orgservice "https://github.com/chichofb/benutzerliste/blob/main/src/services/organisationService.js"
click node_mockorgs "https://github.com/chichofb/benutzerliste/blob/main/src/services/mockOrganisationService.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_entry,node_appshell toneBlue
class node_userlist,node_userdetail,node_userform,node_userfilter,node_usertable,node_deletedialog,node_reactivate,node_pagedhook toneAmber
class node_orgmanage,node_orgform,node_orgdetail,node_backend toneMint
class node_resolver,node_userservice,node_mockusers,node_orgservice,node_mockorgs toneRose
class node_profile,node_authhook,node_keycloakconfig,node_theme,node_themeprovider,node_operator toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/chichofb/benutzerliste/blob/main/src/main.jsx): `src/main.jsx`
- [Navigation shell](https://github.com/chichofb/benutzerliste/blob/main/src/App.jsx): `src/App.jsx`

### User management

- [User listing](https://github.com/chichofb/benutzerliste/blob/main/src/components/Benutzerliste.jsx): `src/components/Benutzerliste.jsx`
- [User details](https://github.com/chichofb/benutzerliste/blob/main/src/components/BenutzerDetail.jsx): `src/components/BenutzerDetail.jsx`
- [User form](https://github.com/chichofb/benutzerliste/blob/main/src/components/BenutzerFormStepper.jsx): `src/components/BenutzerFormStepper.jsx`
- [User filters](https://github.com/chichofb/benutzerliste/blob/main/src/components/UserFilterBar.jsx): `src/components/UserFilterBar.jsx`
- [User table](https://github.com/chichofb/benutzerliste/blob/main/src/components/UserTable.jsx): `src/components/UserTable.jsx`
- [Delete dialog](https://github.com/chichofb/benutzerliste/blob/main/src/components/DeletedUserDialog.jsx): `src/components/DeletedUserDialog.jsx`
- [Reactivate dialog](https://github.com/chichofb/benutzerliste/blob/main/src/components/ReactivateUserDialog.jsx): `src/components/ReactivateUserDialog.jsx`
- [Paged-user hook](https://github.com/chichofb/benutzerliste/blob/main/src/hooks/useServerPagedUsers.js): `src/hooks/useServerPagedUsers.js`

### Organisation management

- [Organisation management](https://github.com/chichofb/benutzerliste/blob/main/src/components/OrganisationVerwaltung.jsx): `src/components/OrganisationVerwaltung.jsx`
- [Organisation form](https://github.com/chichofb/benutzerliste/blob/main/src/components/OrganisationForm.jsx): `src/components/OrganisationForm.jsx`
- [Organisation details](https://github.com/chichofb/benutzerliste/blob/main/src/components/OrganisationDetail.jsx): `src/components/OrganisationDetail.jsx`

### Service layer

- [Service resolver](https://github.com/chichofb/benutzerliste/blob/main/src/services/index.js): `src/services/index.js`
- [User API service](https://github.com/chichofb/benutzerliste/blob/main/src/services/userService.js): `src/services/userService.js`
- [Mock user service](https://github.com/chichofb/benutzerliste/blob/main/src/services/mockUserService.js): `src/services/mockUserService.js`
- [Organisation API service](https://github.com/chichofb/benutzerliste/blob/main/src/services/organisationService.js): `src/services/organisationService.js`
- [Mock organisation service](https://github.com/chichofb/benutzerliste/blob/main/src/services/mockOrganisationService.js): `src/services/mockOrganisationService.js`

### Identity and presentation

- [Profile menu](https://github.com/chichofb/benutzerliste/blob/main/src/components/ProfileMenu.jsx): `src/components/ProfileMenu.jsx`
- [Auth hook](https://github.com/chichofb/benutzerliste/blob/main/src/useAuth.js): `src/useAuth.js`
- [Keycloak config](https://github.com/chichofb/benutzerliste/blob/main/src/keycloak.js): `src/keycloak.js`
- [Theme definitions](https://github.com/chichofb/benutzerliste/blob/main/src/theme/theme.js): `src/theme/theme.js`
- [Theme provider](https://github.com/chichofb/benutzerliste/blob/main/src/theme/ThemeProvider.jsx): `src/theme/ThemeProvider.jsx`

### Other components

- **Operator**
- **Backend API**

## Connections

- Operator → React entry: uses
- React entry → Navigation shell: renders (evidence: `src/main.jsx`)
- React entry → Keycloak config: configures auth (evidence: `src/main.jsx`)
- React entry → Auth hook: reads mock mode (evidence: `src/main.jsx`)
- Navigation shell → Auth hook: checks auth (evidence: `src/App.jsx`)
- Navigation shell → User listing: renders users (evidence: `src/App.jsx`)
- Navigation shell → Organisation management: renders organisations (evidence: `src/App.jsx`)
- Navigation shell → Profile menu: renders profile (evidence: `src/App.jsx`)
- Navigation shell → Theme definitions: uses theme (evidence: `src/App.jsx`)
- User listing → Service resolver: requests user data (evidence: `src/components/Benutzerliste.jsx`)
- User listing → User filters: renders filters (evidence: `src/components/Benutzerliste.jsx`)
- User listing → User table: renders table (evidence: `src/components/Benutzerliste.jsx`)
- User listing → User details: opens details (evidence: `src/components/Benutzerliste.jsx`)
- User listing → User form: opens form (evidence: `src/components/Benutzerliste.jsx`)
- User listing → Delete dialog: opens dialog (evidence: `src/components/Benutzerliste.jsx`)
- User listing → Reactivate dialog: opens dialog (evidence: `src/components/Benutzerliste.jsx`)
- User form → Service resolver: uses services (evidence: `src/components/BenutzerFormStepper.jsx`)
- Organisation management → Organisation form: opens form (evidence: `src/components/OrganisationVerwaltung.jsx`)
- Organisation management → Organisation details: opens details (evidence: `src/components/OrganisationVerwaltung.jsx`)
- Organisation management → Service resolver: uses services (evidence: `src/components/OrganisationVerwaltung.jsx`)
- Organisation form → Service resolver: uses services (evidence: `src/components/OrganisationForm.jsx`)
- Organisation details → Service resolver: uses services (evidence: `src/components/OrganisationDetail.jsx`)
- Profile menu → Auth hook: reads identity (evidence: `src/components/ProfileMenu.jsx`)
- Profile menu → Service resolver: uses services (evidence: `src/components/ProfileMenu.jsx`)
- Service resolver → User API service: selects real service (evidence: `src/services/index.js`)
- Service resolver → Mock user service: selects mock service (evidence: `src/services/index.js`)
- Service resolver → Organisation API service: selects real service (evidence: `src/services/index.js`)
- Service resolver → Mock organisation service: selects mock service (evidence: `src/services/index.js`)
- User API service → Backend API: sends HTTP requests (evidence: `src/services/userService.js`)
- Organisation API service → Backend API: sends HTTP requests (evidence: `src/services/organisationService.js`)
- Theme provider → Theme definitions: uses definitions (evidence: `src/theme/ThemeProvider.jsx`)
