# tester2021test/mpg1602 architecture

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

- Interactive diagram: https://gitdiagram.com/tester2021test/mpg1602
- Repository: https://github.com/tester2021test/mpg1602

## Overview

HomeLedger is a mobile-friendly home-renovation expense and carpenter-work ledger. The visible workflow is owner sign-in, entering bills or carpenter measurements/advances, then reviewing summaries and exporting reports. The main implementation is concentrated in a large React component rather than separate domain modules; the other T-prefixed files appear to be substantial alternate implementations, but the excerpts do not establish how they are selected. Evidence is limited to the supplied excerpts and template README, which documents no product-specific capabilities.

Main entry points: [`src/App.tsx`](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx) (HomeLedger app), [`src/main.jsx`](https://github.com/tester2021test/mpg1602/blob/main/src/main.jsx) (React entry), [`src/T1App.tsx`](https://github.com/tester2021test/mpg1602/blob/main/src/T1App.tsx) (Alternate app T1), [`src/T2App.tsx`](https://github.com/tester2021test/mpg1602/blob/main/src/T2App.tsx) (Alternate app T2)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Ledger experience"]
  node_entry["React entry<br/>[main.jsx]"]
  node_homeledger["HomeLedger app<br/>[App.tsx]"]
  node_auth["Owner authentication<br/>[App.tsx]"]
  node_bill_ledger["Bill ledger<br/>[App.tsx]"]
  node_work_ledger["Carpenter ledger<br/>[App.tsx]"]
  node_analytics["Spending analytics<br/>[App.tsx]"]
  node_reports["Report export<br/>[App.tsx]"]
  node_receipt["Receipt processing<br/>[App.tsx]"]
  node_variant_t1["Alternate app T1<br/>[T1App.tsx]"]
  node_variant_t2["Alternate app T2<br/>[T2App.tsx]"]
  node_variant_t3["Alternate app T3<br/>[T3App.tsx]"]
  node_variant_t["Alternate app T<br/>[TApp.tsx]"]
end

subgraph group_services["Cloud services"]
  node_firebase_auth["Firebase Auth"]
  node_firestore[("Cloud workspace")]
end

subgraph group_native["Mobile shell"]
  node_android["Capacitor Android shell<br/>[MainActivity.java]"]
end

node_owner(("Ledger owner"))

node_owner -->|"opens"| node_entry
node_entry -->|"renders"| node_homeledger
node_homeledger -->|"manages"| node_auth
node_auth -->|"authenticates"| node_firebase_auth
node_homeledger -->|"records bills"| node_bill_ledger
node_homeledger -->|"records work"| node_work_ledger
node_homeledger -->|"summarizes"| node_analytics
node_homeledger -->|"generates reports"| node_reports
node_homeledger -->|"compresses images"| node_receipt
node_variant_t1 -->|"writes workspace"| node_firestore
node_variant_t2 -->|"writes workspace"| node_firestore
node_variant_t3 -->|"writes workspace"| node_firestore
node_android -.->|"hosts web app"| node_entry

click node_entry "https://github.com/tester2021test/mpg1602/blob/main/src/main.jsx"
click node_homeledger "https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx"
click node_auth "https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx"
click node_bill_ledger "https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx"
click node_work_ledger "https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx"
click node_analytics "https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx"
click node_reports "https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx"
click node_receipt "https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx"
click node_android "https://github.com/tester2021test/mpg1602/blob/main/android/app/src/main/java/com/vivek/homeledger/MainActivity.java"
click node_variant_t1 "https://github.com/tester2021test/mpg1602/blob/main/src/T1App.tsx"
click node_variant_t2 "https://github.com/tester2021test/mpg1602/blob/main/src/T2App.tsx"
click node_variant_t3 "https://github.com/tester2021test/mpg1602/blob/main/src/T3App.tsx"
click node_variant_t "https://github.com/tester2021test/mpg1602/blob/main/src/TApp.tsx"

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_entry,node_homeledger,node_auth,node_bill_ledger,node_work_ledger,node_analytics,node_reports,node_receipt,node_variant_t1,node_variant_t2,node_variant_t3,node_variant_t toneBlue
class node_firebase_auth,node_firestore toneAmber
class node_android toneMint
class node_owner toneIndigo
```

## Components

### Ledger experience

- [React entry](https://github.com/tester2021test/mpg1602/blob/main/src/main.jsx): `src/main.jsx`
- [HomeLedger app](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx): `src/App.tsx`
- [Owner authentication](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx): `src/App.tsx`
- [Bill ledger](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx): `src/App.tsx`
- [Carpenter ledger](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx): `src/App.tsx`
- [Spending analytics](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx): `src/App.tsx`
- [Report export](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx): `src/App.tsx`
- [Receipt processing](https://github.com/tester2021test/mpg1602/blob/main/src/App.tsx): `src/App.tsx`
- [Alternate app T1](https://github.com/tester2021test/mpg1602/blob/main/src/T1App.tsx): `src/T1App.tsx`
- [Alternate app T2](https://github.com/tester2021test/mpg1602/blob/main/src/T2App.tsx): `src/T2App.tsx`
- [Alternate app T3](https://github.com/tester2021test/mpg1602/blob/main/src/T3App.tsx): `src/T3App.tsx`
- [Alternate app T](https://github.com/tester2021test/mpg1602/blob/main/src/TApp.tsx): `src/TApp.tsx`

### Cloud services

- **Firebase Auth**
- **Cloud workspace**

### Mobile shell

- [Capacitor Android shell](https://github.com/tester2021test/mpg1602/blob/main/android/app/src/main/java/com/vivek/homeledger/MainActivity.java): `android/app/src/main/java/com/vivek/homeledger/MainActivity.java`

### Other components

- **Ledger owner**

## Connections

- Ledger owner → React entry: opens
- React entry → HomeLedger app: renders (evidence: `src/main.jsx`)
- HomeLedger app → Owner authentication: manages (evidence: `src/App.tsx`)
- Owner authentication → Firebase Auth: authenticates (evidence: `src/App.tsx`)
- HomeLedger app → Bill ledger: records bills (evidence: `src/App.tsx`)
- HomeLedger app → Carpenter ledger: records work (evidence: `src/App.tsx`)
- HomeLedger app → Spending analytics: summarizes (evidence: `src/App.tsx`)
- HomeLedger app → Report export: generates reports (evidence: `src/App.tsx`)
- HomeLedger app → Receipt processing: compresses images (evidence: `src/App.tsx`)
- Alternate app T1 → Cloud workspace: writes workspace (evidence: `src/T1App.tsx`)
- Alternate app T2 → Cloud workspace: writes workspace (evidence: `src/T2App.tsx`)
- Alternate app T3 → Cloud workspace: writes workspace (evidence: `src/T3App.tsx`)
- Capacitor Android shell → React entry: hosts web app
