# qonto-android-team/transactions-exercise architecture

> Architecture diagram of the GitHub repository qonto-android-team/transactions-exercise, 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/qonto-android-team/transactions-exercise
- Repository: https://github.com/qonto-android-team/transactions-exercise

## Overview

This Android app fetches transactions from a remote API and displays them as a Compose list. The principal flow runs from app launch through the screen and ViewModel, repository, remote source, and API service; transaction data is converted into UI models before rendering. The graph also shows the API configuration and core data shapes. The README describes the product at a high level; relationships shown here rely on the sampled source and SOURCE INDEX, so unsampled behavior is not inferred.

Main entry points: [`app/src/main/java/com/qonto/transactions/data/remote/TransactionApiService.kt`](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/data/remote/TransactionApiService.kt) (Transaction API service), [`app/src/main/java/com/qonto/transactions/ui/TransactionsScreen.kt`](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionsScreen.kt) (Transactions screen), [`app/src/main/java/com/qonto/transactions/ui/TransactionsViewModel.kt`](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionsViewModel.kt) (Transactions ViewModel), [`app/src/main/java/com/qonto/transactions/ui/converter/TransactionToTransactionUiModelConverter.kt`](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/converter/TransactionToTransactionUiModelConverter.kt) (UI model converter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app_ui["App and UI"]
  node_activity["Main activity<br/>[MainActivity.kt]"]
  node_screen["Transactions screen"]
  node_viewmodel["Transactions ViewModel"]
  node_converter["UI model converter"]
  node_ui_model["Transaction UI model"]
end

subgraph group_domain["Transaction data"]
  node_repository["Transactions repository"]
  node_transaction["Transaction<br/>[Transaction.kt]"]
  node_amount["Amount<br/>[Amount.kt]"]
  node_response["Transactions response"]
end

subgraph group_network["Remote access"]
  node_remote["Remote source"]
  node_api["Transaction API service"]
end

subgraph group_wiring["Dependency setup"]
  node_app_module["Network providers<br/>[AppModule.kt]"]
end

node_user(("App user"))
node_external_api["Transactions API"]

node_user -.->|"opens app"| node_activity
node_activity -->|"sets content"| node_screen
node_screen -->|"collects state"| node_viewmodel
node_viewmodel -->|"loads transactions"| node_repository
node_viewmodel -->|"converts results"| node_converter
node_converter -->|"formats fields"| node_transaction
node_converter -->|"produces"| node_ui_model
node_screen -->|"renders rows"| node_ui_model
node_repository -->|"fetches from"| node_remote
node_remote -->|"requests results"| node_api
node_api -->|"GET transactions"| node_external_api
node_api -->|"returns"| node_response
node_response -->|"contains results"| node_transaction
node_transaction -->|"has amount"| node_amount
node_app_module -->|"provides service"| node_api

click node_activity "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/MainActivity.kt"
click node_screen "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionsScreen.kt"
click node_viewmodel "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionsViewModel.kt"
click node_converter "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/converter/TransactionToTransactionUiModelConverter.kt"
click node_ui_model "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionUiModel.kt"
click node_repository "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/data/TransactionsRepository.kt"
click node_transaction "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/model/Transaction.kt"
click node_amount "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/model/Amount.kt"
click node_response "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/model/TransactionsResponse.kt"
click node_remote "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/data/remote/TransactionsRemoteSource.kt"
click node_api "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/data/remote/TransactionApiService.kt"
click node_app_module "https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/di/AppModule.kt"

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_activity,node_screen,node_viewmodel,node_converter,node_ui_model,node_user toneBlue
class node_repository,node_transaction,node_amount,node_response toneAmber
class node_remote,node_api,node_external_api toneMint
class node_app_module toneRose
```

## Components

### App and UI

- [Main activity](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/MainActivity.kt): `app/src/main/java/com/qonto/transactions/MainActivity.kt`
- [Transactions screen](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionsScreen.kt): `app/src/main/java/com/qonto/transactions/ui/TransactionsScreen.kt`
- [Transactions ViewModel](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionsViewModel.kt): `app/src/main/java/com/qonto/transactions/ui/TransactionsViewModel.kt`
- [UI model converter](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/converter/TransactionToTransactionUiModelConverter.kt): `app/src/main/java/com/qonto/transactions/ui/converter/TransactionToTransactionUiModelConverter.kt`
- [Transaction UI model](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/ui/TransactionUiModel.kt): `app/src/main/java/com/qonto/transactions/ui/TransactionUiModel.kt`

### Transaction data

- [Transactions repository](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/data/TransactionsRepository.kt): `app/src/main/java/com/qonto/transactions/data/TransactionsRepository.kt`
- [Transaction](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/model/Transaction.kt): `app/src/main/java/com/qonto/transactions/model/Transaction.kt`
- [Amount](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/model/Amount.kt): `app/src/main/java/com/qonto/transactions/model/Amount.kt`
- [Transactions response](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/model/TransactionsResponse.kt): `app/src/main/java/com/qonto/transactions/model/TransactionsResponse.kt`

### Remote access

- [Remote source](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/data/remote/TransactionsRemoteSource.kt): `app/src/main/java/com/qonto/transactions/data/remote/TransactionsRemoteSource.kt`
- [Transaction API service](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/data/remote/TransactionApiService.kt): `app/src/main/java/com/qonto/transactions/data/remote/TransactionApiService.kt`

### Dependency setup

- [Network providers](https://github.com/qonto-android-team/transactions-exercise/blob/master/app/src/main/java/com/qonto/transactions/di/AppModule.kt): `app/src/main/java/com/qonto/transactions/di/AppModule.kt`

### Other components

- **App user**
- **Transactions API**

## Connections

- App user → Main activity: opens app
- Main activity → Transactions screen: sets content (evidence: `app/src/main/java/com/qonto/transactions/MainActivity.kt`)
- Transactions screen → Transactions ViewModel: collects state (evidence: `app/src/main/java/com/qonto/transactions/ui/TransactionsScreen.kt`)
- Transactions ViewModel → Transactions repository: loads transactions (evidence: `app/src/main/java/com/qonto/transactions/ui/TransactionsViewModel.kt`)
- Transactions ViewModel → UI model converter: converts results (evidence: `app/src/main/java/com/qonto/transactions/ui/TransactionsViewModel.kt`)
- UI model converter → Transaction: formats fields (evidence: `app/src/main/java/com/qonto/transactions/ui/converter/TransactionToTransactionUiModelConverter.kt`)
- UI model converter → Transaction UI model: produces (evidence: `app/src/main/java/com/qonto/transactions/ui/converter/TransactionToTransactionUiModelConverter.kt`)
- Transactions screen → Transaction UI model: renders rows (evidence: `app/src/main/java/com/qonto/transactions/ui/TransactionsScreen.kt`)
- Transactions repository → Remote source: fetches from (evidence: `app/src/main/java/com/qonto/transactions/data/TransactionsRepository.kt`)
- Remote source → Transaction API service: requests results (evidence: `app/src/main/java/com/qonto/transactions/data/remote/TransactionsRemoteSource.kt`)
- Transaction API service → Transactions API: GET transactions (evidence: `app/src/main/java/com/qonto/transactions/data/remote/TransactionApiService.kt`)
- Transaction API service → Transactions response: returns (evidence: `app/src/main/java/com/qonto/transactions/data/remote/TransactionApiService.kt`)
- Transactions response → Transaction: contains results (evidence: `app/src/main/java/com/qonto/transactions/model/TransactionsResponse.kt`)
- Transaction → Amount: has amount (evidence: `app/src/main/java/com/qonto/transactions/model/Transaction.kt`)
- Network providers → Transaction API service: provides service (evidence: `app/src/main/java/com/qonto/transactions/di/AppModule.kt`)
