# thomas200593/mdm architecture

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

- Interactive diagram: https://gitdiagram.com/thomas200593/mdm
- Repository: https://github.com/thomas200593/mdm

## Overview

MDM is an Android administrative dashboard. Its main user path is onboarding/initial setup, sign-in, session and role selection, then the TLD dashboards and management features; users can also configure localization and appearance, inspect notifications, recover accounts, and manage profiles. The graph preserves the documented feature areas, while connecting only source relationships demonstrated by the excerpts or README. Several feature nodes represent documented subsystems with paths taken directly from the tree; their internal wiring was not sampled.

Main entry points: [`app/src/main/java/com/thomas200593/mdm/app/main/nav/ScrGraphs.kt`](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/app/main/nav/ScrGraphs.kt) (App navigation), [`app/src/main/java/com/thomas200593/mdm/app/App.kt`](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/app/App.kt) (Application), [`app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt`](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt) (Sign-in), [`app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_common`](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_common) (Common settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App shell"]
  node_app["Application<br/>[App.kt]"]
  node_navigation["App navigation<br/>[ScrGraphs.kt]"]
  node_intro["Onboarding and setup"]
  node_bootstrap["Bootstrap"]
end

subgraph group_identity["Identity and access"]
  node_auth["Sign-in<br/>[ScrAuth.kt]"]
  node_recovery["Account recovery"]
  node_session["Session management<br/>[SessionManager.kt]"]
  node_sessiondata["Session records<br/>[RepoSession.kt]"]
  node_authdata["Auth records<br/>[AuthEntity.kt]"]
  node_iam["Profile and roles"]
  node_notifications["User notifications"]
end

subgraph group_operations["Administration"]
  node_tld["TLD dashboards"]
  node_business["Business operations"]
  node_company["Company profile"]
  node_product["Product code tools"]
end

subgraph group_settings["Configuration"]
  node_appconfig["App configuration"]
  node_commonconfig["Common settings"]
  node_localization["Localization"]
  node_country["Country settings"]
  node_language["Language settings"]
  node_uiconfig["Appearance settings"]
end

subgraph group_platform["Local platform"]
  node_database[("Room database<br/>[AppDatabase.kt]")]
  node_validation["Environment checks"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -.->|"starts"| node_navigation
node_navigation -.->|"routes"| node_intro
node_navigation -.->|"routes"| node_auth
node_auth -->|"navigates"| node_bootstrap
node_bootstrap -.->|"initializes"| node_session
node_auth -.->|"starts session"| node_session
node_session -.->|"uses"| node_sessiondata
node_sessiondata -->|"reads and writes"| node_database
node_database -->|"provides DAO"| node_sessiondata
node_database -->|"provides DAO"| node_authdata
node_navigation -.->|"routes"| node_tld
node_navigation -.->|"routes"| node_business
node_navigation -.->|"routes"| node_iam
node_navigation -.->|"routes"| node_notifications
node_navigation -.->|"routes"| node_appconfig
node_appconfig -.->|"offers"| node_commonconfig
node_commonconfig -.->|"offers"| node_localization
node_localization -.->|"includes"| node_country
node_localization -.->|"includes"| node_language
node_commonconfig -.->|"offers"| node_uiconfig
node_navigation -.->|"routes"| node_recovery
node_navigation -.->|"routes"| node_company
node_navigation -.->|"routes"| node_product
node_app -.->|"checks environment"| node_validation

click node_app "https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/app/App.kt"
click node_navigation "https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/app/main/nav/ScrGraphs.kt"
click node_intro "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/introduction"
click node_bootstrap "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/bootstrap"
click node_auth "https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt"
click node_recovery "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/iam/account_recover"
click node_session "https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/session_manager/infra/SessionManager.kt"
click node_sessiondata "https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/session/repository/RepoSession.kt"
click node_authdata "https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/auth/entity/AuthEntity.kt"
click node_iam "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/iam"
click node_notifications "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/iam/notification"
click node_tld "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/tld"
click node_business "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/business"
click node_company "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/management/mod_customer"
click node_product "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/management"
click node_appconfig "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/app_cnf"
click node_commonconfig "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_common"
click node_localization "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization"
click node_country "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization_country"
click node_language "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization_language"
click node_uiconfig "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_ui"
click node_database "https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/core/data/local/database/provider/AppDatabase.kt"
click node_validation "https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/core/infra/env_validation"

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_navigation,node_intro,node_bootstrap,node_user toneBlue
class node_auth,node_recovery,node_session,node_sessiondata,node_authdata,node_iam,node_notifications toneAmber
class node_tld,node_business,node_company,node_product toneMint
class node_appconfig,node_commonconfig,node_localization,node_country,node_language,node_uiconfig toneRose
class node_database,node_validation toneIndigo
```

## Components

### App shell

- [Application](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/app/App.kt): `app/src/main/java/com/thomas200593/mdm/app/App.kt`
- [App navigation](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/app/main/nav/ScrGraphs.kt): `app/src/main/java/com/thomas200593/mdm/app/main/nav/ScrGraphs.kt`
- [Onboarding and setup](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/introduction): `app/src/main/java/com/thomas200593/mdm/features/introduction`
- [Bootstrap](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/bootstrap): `app/src/main/java/com/thomas200593/mdm/features/bootstrap`

### Identity and access

- [Sign-in](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt): `app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt`
- [Account recovery](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/iam/account_recover): `app/src/main/java/com/thomas200593/mdm/features/iam/account_recover`
- [Session management](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/session_manager/infra/SessionManager.kt): `app/src/main/java/com/thomas200593/mdm/features/iam/session_manager/infra/SessionManager.kt`
- [Session records](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/session/repository/RepoSession.kt): `app/src/main/java/com/thomas200593/mdm/features/iam/session/repository/RepoSession.kt`
- [Auth records](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/features/iam/auth/entity/AuthEntity.kt): `app/src/main/java/com/thomas200593/mdm/features/iam/auth/entity/AuthEntity.kt`
- [Profile and roles](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/iam): `app/src/main/java/com/thomas200593/mdm/features/iam`
- [User notifications](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/iam/notification): `app/src/main/java/com/thomas200593/mdm/features/iam/notification`

### Administration

- [TLD dashboards](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/tld): `app/src/main/java/com/thomas200593/mdm/features/tld`
- [Business operations](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/business): `app/src/main/java/com/thomas200593/mdm/features/business`
- [Company profile](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/management/mod_customer): `app/src/main/java/com/thomas200593/mdm/features/management/mod_customer`
- [Product code tools](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/management): `app/src/main/java/com/thomas200593/mdm/features/management`

### Configuration

- [App configuration](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/app_cnf): `app/src/main/java/com/thomas200593/mdm/features/configuration/app_cnf`
- [Common settings](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_common): `app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_common`
- [Localization](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization): `app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization`
- [Country settings](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization_country): `app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization_country`
- [Language settings](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization_language): `app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_localization_language`
- [Appearance settings](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_ui): `app/src/main/java/com/thomas200593/mdm/features/configuration/cnf_ui`

### Local platform

- [Room database](https://github.com/thomas200593/mdm/blob/main/app/src/main/java/com/thomas200593/mdm/core/data/local/database/provider/AppDatabase.kt): `app/src/main/java/com/thomas200593/mdm/core/data/local/database/provider/AppDatabase.kt`
- [Environment checks](https://github.com/thomas200593/mdm/tree/main/app/src/main/java/com/thomas200593/mdm/core/infra/env_validation): `app/src/main/java/com/thomas200593/mdm/core/infra/env_validation`

### Other components

- **User**

## Connections

- User → Application: opens
- Application → App navigation: starts
- App navigation → Onboarding and setup: routes (evidence: `app/src/main/java/com/thomas200593/mdm/app/main/nav/ScrGraphs.kt`)
- App navigation → Sign-in: routes (evidence: `app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt`)
- Sign-in → Bootstrap: navigates (evidence: `app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt`)
- Bootstrap → Session management: initializes
- Sign-in → Session management: starts session
- Session management → Session records: uses
- Session records → Room database: reads and writes (evidence: `app/src/main/java/com/thomas200593/mdm/features/iam/session/repository/RepoSession.kt`)
- Room database → Session records: provides DAO (evidence: `app/src/main/java/com/thomas200593/mdm/core/data/local/database/provider/AppDatabase.kt`)
- Room database → Auth records: provides DAO (evidence: `app/src/main/java/com/thomas200593/mdm/core/data/local/database/provider/AppDatabase.kt`)
- App navigation → TLD dashboards: routes
- App navigation → Business operations: routes
- App navigation → Profile and roles: routes (evidence: `app/src/main/java/com/thomas200593/mdm/features/iam/auth/ui/ScrAuth.kt`)
- App navigation → User notifications: routes
- App navigation → App configuration: routes
- App configuration → Common settings: offers
- Common settings → Localization: offers
- Localization → Country settings: includes
- Localization → Language settings: includes
- Common settings → Appearance settings: offers
- App navigation → Account recovery: routes
- App navigation → Company profile: routes
- App navigation → Product code tools: routes
- Application → Environment checks: checks environment
