# stephen-t-2023/dwkproject architecture

> Architecture diagram of the GitHub repository stephen-t-2023/dwkproject, 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/stephen-t-2023/dwkproject
- Repository: https://github.com/stephen-t-2023/dwkproject

## Overview

DWK is a browser-based banking and financial-advice demo. Users enter through sign-in or identity-verification screens, then the application routes them to role-specific customer, advisor, or team-leader experiences. Those areas cover personal accounts, statements, budgets and messaging; advisor clients and reports; and team case, complaint and workload management. The sampled data module contains mock records rather than evidence of a remote banking backend. Routing registration and several page implementations were not shown, so those connections are left unverified.

Main entry points: [`banking-app/js/app.js`](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/app.js) (Application shell), [`banking-app/js/data.js`](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/data.js) (Mock banking data), [`banking-app/js/fa-pages.js`](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/fa-pages.js) (Clients and reports), [`banking-app/js/auth-pages.js`](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/auth-pages.js) (Sign-in and recovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and routing"]
  node_auth["Sign-in and recovery<br/>[auth-pages.js]"]
  node_app["Application shell<br/>[app.js]"]
end

subgraph group_customer["Customer banking"]
  node_customer_pages["Accounts, budgets, messages<br/>[customer-pages.js]"]
end

subgraph group_advisor["Advisor workspace"]
  node_advisor_pages["Clients and reports<br/>[fa-pages.js]"]
end

subgraph group_leadership["Team leadership"]
  node_leader_pages["Cases and team oversight<br/>[tl-pages.js]"]
end

subgraph group_state["Demo data"]
  node_data[("Mock banking data<br/>[data.js]")]
end

node_user(("Banking user"))

node_user -->|"signs in"| node_auth
node_auth -->|"navigates via"| node_app
node_app -.->|"dispatches to"| node_customer_pages
node_app -.->|"dispatches to"| node_advisor_pages
node_app -.->|"dispatches to"| node_leader_pages
node_customer_pages -->|"reads chart data"| node_data
node_advisor_pages -->|"reads client and case records"| node_data
node_advisor_pages -->|"adds reports"| node_data
node_leader_pages -->|"reads team and case records"| node_data

click node_auth "https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/auth-pages.js"
click node_app "https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/app.js"
click node_customer_pages "https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/customer-pages.js"
click node_advisor_pages "https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/fa-pages.js"
click node_leader_pages "https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/tl-pages.js"
click node_data "https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/data.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_auth,node_app,node_user toneBlue
class node_customer_pages toneAmber
class node_advisor_pages toneMint
class node_leader_pages toneRose
class node_data toneIndigo
```

## Components

### Entry and routing

- [Sign-in and recovery](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/auth-pages.js): `banking-app/js/auth-pages.js`
- [Application shell](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/app.js): `banking-app/js/app.js`

### Customer banking

- [Accounts, budgets, messages](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/customer-pages.js): `banking-app/js/customer-pages.js`

### Advisor workspace

- [Clients and reports](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/fa-pages.js): `banking-app/js/fa-pages.js`

### Team leadership

- [Cases and team oversight](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/tl-pages.js): `banking-app/js/tl-pages.js`

### Demo data

- [Mock banking data](https://github.com/stephen-t-2023/dwkproject/blob/main/banking-app/js/data.js): `banking-app/js/data.js`

### Other components

- **Banking user**

## Connections

- Banking user → Sign-in and recovery: signs in (evidence: `banking-app/js/auth-pages.js`)
- Sign-in and recovery → Application shell: navigates via (evidence: `banking-app/js/auth-pages.js`)
- Application shell → Accounts, budgets, messages: dispatches to
- Application shell → Clients and reports: dispatches to
- Application shell → Cases and team oversight: dispatches to
- Accounts, budgets, messages → Mock banking data: reads chart data (evidence: `banking-app/js/customer-pages.js`)
- Clients and reports → Mock banking data: reads client and case records (evidence: `banking-app/js/fa-pages.js`)
- Clients and reports → Mock banking data: adds reports (evidence: `banking-app/js/fa-pages.js`)
- Cases and team oversight → Mock banking data: reads team and case records (evidence: `banking-app/js/tl-pages.js`)
