# victor-cleber/my-wallet-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/victor-cleber/my-wallet-frontend
- Repository: https://github.com/victor-cleber/my-wallet-frontend

## Overview

My-wallet is a browser-based personal-finance app for adding and removing transactions and viewing income, expenditure, and balance totals. Its main workflow validates and formats a submitted transaction, updates in-memory transaction state, then rerenders the table and totals. The app also writes transaction state to browser storage. The source excerpt shows these internal calls, but not the HTML event bindings or styling details, so user interactions with the form and modal are left unverified.

Main entry points: [`src/Web/wallet.js`](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js) (Transaction form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Web interaction"]
  node_form["Transaction form<br/>[wallet.js]"]
  node_modal["Entry modal<br/>[wallet.js]"]
  node_transaction_view["Transaction table<br/>[wallet.js]"]
  node_balance_view["Balance summary<br/>[wallet.js]"]
  node_web_assets["Web presentation"]
end

subgraph group_domain["Finance domain"]
  node_transaction["Transaction state<br/>[wallet.js]"]
  node_utils["Format utilities<br/>[wallet.js]"]
end

subgraph group_runtime["App runtime"]
  node_app["App coordinator<br/>[wallet.js]"]
  node_storage[("Browser storage<br/>[wallet.js]")]
end

node_user(("User"))

node_user -.->|"submits"| node_form
node_user -.->|"opens"| node_modal
node_form -->|"adds"| node_transaction
node_form -->|"formats"| node_utils
node_form -->|"closes"| node_modal
node_transaction -->|"reloads"| node_app
node_app -->|"renders"| node_transaction_view
node_app -->|"updates"| node_balance_view
node_app -->|"writes"| node_storage
node_transaction_view -->|"formats"| node_utils
node_transaction_view -->|"removes"| node_transaction
node_balance_view -->|"calculates from"| node_transaction

click node_form "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_modal "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_transaction_view "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_balance_view "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_transaction "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_utils "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_app "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_storage "https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js"
click node_web_assets "https://github.com/victor-cleber/my-wallet-frontend/tree/main/src/Web"

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_form,node_modal,node_transaction_view,node_balance_view,node_web_assets,node_user toneBlue
class node_transaction,node_utils toneAmber
class node_app,node_storage toneMint
```

## Components

### Web interaction

- [Transaction form](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`
- [Entry modal](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`
- [Transaction table](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`
- [Balance summary](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`
- [Web presentation](https://github.com/victor-cleber/my-wallet-frontend/tree/main/src/Web): `src/Web`

### Finance domain

- [Transaction state](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`
- [Format utilities](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`

### App runtime

- [App coordinator](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`
- [Browser storage](https://github.com/victor-cleber/my-wallet-frontend/blob/main/src/Web/wallet.js): `src/Web/wallet.js`

### Other components

- **User**

## Connections

- User → Transaction form: submits
- User → Entry modal: opens
- Transaction form → Transaction state: adds (evidence: `src/Web/wallet.js`)
- Transaction form → Format utilities: formats (evidence: `src/Web/wallet.js`)
- Transaction form → Entry modal: closes (evidence: `src/Web/wallet.js`)
- Transaction state → App coordinator: reloads (evidence: `src/Web/wallet.js`)
- App coordinator → Transaction table: renders (evidence: `src/Web/wallet.js`)
- App coordinator → Balance summary: updates (evidence: `src/Web/wallet.js`)
- App coordinator → Browser storage: writes (evidence: `src/Web/wallet.js`)
- Transaction table → Format utilities: formats (evidence: `src/Web/wallet.js`)
- Transaction table → Transaction state: removes (evidence: `src/Web/wallet.js`)
- Balance summary → Transaction state: calculates from (evidence: `src/Web/wallet.js`)
