# rhaza0210002/mypiggybank architecture

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

- Interactive diagram: https://gitdiagram.com/rhaza0210002/mypiggybank
- Repository: https://github.com/rhaza0210002/mypiggybank

## Overview

My PiggyBank is a small Next.js dashboard UI: a visitor opens the home page, which renders a dashboard with a balance, reconciliation items, and recent transaction history. The root layout supplies the shared header. Dashboard values and button handlers are currently local sample data and placeholder logging; no persistence or financial-service integration is evidenced. Source excerpts show the main render relationships, but not the stylesheet contents or behavior of other navigation destinations.

Main entry points: [`src/components/features/Dashboard/page.tsx`](https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/page.tsx) (Dashboard page), [`src/app/page.tsx`](https://github.com/rhaza0210002/mypiggybank/blob/main/src/app/page.tsx) (Home route), [`src/app/layout.tsx`](https://github.com/rhaza0210002/mypiggybank/blob/main/src/app/layout.tsx) (Root layout), [`src/components/features/Dashboard/AsideCards.tsx`](https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/AsideCards.tsx) (Dashboard cards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_home["Home route<br/>[page.tsx]"]
  node_layout["Root layout<br/>[layout.tsx]"]
  node_header["Header navigation<br/>[page.tsx]"]
end

subgraph group_dashboard["Dashboard UI"]
  node_dashboard["Dashboard page<br/>[page.tsx]"]
  node_cards["Dashboard cards<br/>[AsideCards.tsx]"]
  node_styles["Dashboard styles"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_layout -->|"renders"| node_header
node_layout -->|"wraps route"| node_home
node_home -->|"renders"| node_dashboard
node_dashboard -->|"passes data"| node_cards
node_dashboard -->|"uses styles"| node_styles
node_cards -->|"uses styles"| node_styles

click node_home "https://github.com/rhaza0210002/mypiggybank/blob/main/src/app/page.tsx"
click node_layout "https://github.com/rhaza0210002/mypiggybank/blob/main/src/app/layout.tsx"
click node_header "https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Header/page.tsx"
click node_dashboard "https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/page.tsx"
click node_cards "https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/AsideCards.tsx"
click node_styles "https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/Dashboard.module.css"

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_home,node_layout,node_header toneBlue
class node_dashboard,node_cards,node_styles toneAmber
class node_visitor toneIndigo
```

## Components

### App shell

- [Home route](https://github.com/rhaza0210002/mypiggybank/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Root layout](https://github.com/rhaza0210002/mypiggybank/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Header navigation](https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Header/page.tsx): `src/components/features/Header/page.tsx`

### Dashboard UI

- [Dashboard page](https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/page.tsx): `src/components/features/Dashboard/page.tsx`
- [Dashboard cards](https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/AsideCards.tsx): `src/components/features/Dashboard/AsideCards.tsx`
- [Dashboard styles](https://github.com/rhaza0210002/mypiggybank/blob/main/src/components/features/Dashboard/Dashboard.module.css): `src/components/features/Dashboard/Dashboard.module.css`

### Other components

- **Visitor**

## Connections

- Visitor → Home route: opens (evidence: `README.md`)
- Root layout → Header navigation: renders (evidence: `src/app/layout.tsx`)
- Root layout → Home route: wraps route (evidence: `src/app/layout.tsx`)
- Home route → Dashboard page: renders (evidence: `src/app/page.tsx`)
- Dashboard page → Dashboard cards: passes data (evidence: `src/components/features/Dashboard/page.tsx`)
- Dashboard page → Dashboard styles: uses styles (evidence: `src/components/features/Dashboard/page.tsx`)
- Dashboard cards → Dashboard styles: uses styles (evidence: `src/components/features/Dashboard/AsideCards.tsx`)
