# ujeeje/sisabijak_mobile architecture

> Architecture diagram of the GitHub repository ujeeje/sisabijak_mobile, 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/ujeeje/sisabijak_mobile
- Repository: https://github.com/ujeeje/sisabijak_mobile

## Overview

SisaBijak Mobile is a Flutter client for a food-rescue marketplace: guests browse surplus-food offers, consumers can order and review them, and merchants manage inventory and redeem claims. The README documents catalog and merchant-product HTTP integrations with a Django REST backend, plus ordering, payment, QR redemption, profiles and merchant wallets. The Dart implementation was not included in the sampled source, so module paths follow the tree and undocumented internal calls are omitted; dashed edges mark broader documented flows whose wiring is not shown.

Main entry points: [`lib/modules/catalog/screens/catalog_page.dart`](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/screens/catalog_page.dart) (Product catalog), [`lib/modules/catalog/screens/product_detail_page.dart`](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/screens/product_detail_page.dart) (Product details), [`lib/modules/merchant_product/screens/my_products_page.dart`](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/merchant_product/screens/my_products_page.dart) (Inventory management), [`lib/modules/order/screens/cart_checkout_page.dart`](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/cart_checkout_page.dart) (Cart and checkout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["Flutter app<br/>[main.dart]"]
end

subgraph group_identity["Accounts and profiles"]
  node_auth["Authentication<br/>[login_page.dart]"]
  node_auth_service["Auth service<br/>[auth_service.dart]"]
  node_profiles["Consumer profiles"]
end

subgraph group_discovery["Marketplace discovery"]
  node_landing["Landing pages"]
  node_catalog["Product catalog<br/>[catalog_page.dart]"]
  node_product_detail["Product details"]
  node_product_model["Product and review models<br/>[product.dart]"]
  node_review["Review submission"]
  node_merchant_map["Merchant map"]
end

subgraph group_commerce["Merchant and orders"]
  node_merchant_products["Inventory management"]
  node_product_editor["Product editor"]
  node_cart["Cart and checkout"]
  node_payment["Payment QR<br/>[payment_page.dart]"]
  node_orders["Order history"]
  node_claim["Claim validation"]
  node_merchant_orders["Merchant orders"]
end

node_user(("Marketplace users"))
node_backend{{"Django REST backend"}}

node_user -.->|"uses"| node_app
node_app -.->|"offers sign-in"| node_auth
node_auth -.->|"delegates"| node_auth_service
node_user -.->|"browses"| node_landing
node_landing -.->|"opens catalog"| node_catalog
node_catalog -->|"requests products"| node_backend
node_catalog -->|"parses JSON"| node_product_model
node_catalog -.->|"opens details"| node_product_detail
node_product_detail -->|"requests details"| node_backend
node_product_detail -.->|"offers review"| node_review
node_review -->|"submits review"| node_backend
node_user -.->|"views locations"| node_merchant_map
node_user -.->|"manages stock"| node_merchant_products
node_merchant_products -->|"requests inventory"| node_backend
node_merchant_products -.->|"edits products"| node_product_editor
node_user -.->|"checks out"| node_cart
node_cart -.->|"creates order"| node_backend
node_cart -.->|"continues payment"| node_payment
node_payment -.->|"verifies payment"| node_backend
node_payment -.->|"provides claim QR"| node_orders
node_user -.->|"views orders"| node_orders
node_user -.->|"presents claim QR"| node_claim
node_claim -.->|"validates claim"| node_merchant_orders
node_user -.->|"views metrics"| node_profiles

click node_app "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/main.dart"
click node_auth "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/authentication/screens/login_page.dart"
click node_auth_service "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/authentication/services/auth_service.dart"
click node_profiles "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/consumer_profile/screens/consumer_profile_page.dart"
click node_landing "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/landing/screens/landing_guest_page.dart"
click node_catalog "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/screens/catalog_page.dart"
click node_product_detail "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/screens/product_detail_page.dart"
click node_product_model "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/models/product.dart"
click node_review "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/widgets/review_form_sheet.dart"
click node_merchant_map "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/merchant_location/screens/merchant_map_page.dart"
click node_merchant_products "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/merchant_product/screens/my_products_page.dart"
click node_product_editor "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/merchant_product/screens/add_product_page.dart"
click node_cart "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/cart_checkout_page.dart"
click node_payment "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/payment_page.dart"
click node_orders "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/my_orders_page.dart"
click node_claim "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/qr_validator_page.dart"
click node_merchant_orders "https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/merchant_orders_page.dart"

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_app,node_user toneBlue
class node_auth,node_auth_service,node_profiles toneAmber
class node_landing,node_catalog,node_product_detail,node_product_model,node_review,node_merchant_map toneMint
class node_merchant_products,node_product_editor,node_cart,node_payment,node_orders,node_claim,node_merchant_orders toneRose
class node_backend toneIndigo
```

## Components

### App entry

- [Flutter app](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/main.dart): `lib/main.dart`

### Accounts and profiles

- [Authentication](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/authentication/screens/login_page.dart): `lib/modules/authentication/screens/login_page.dart`
- [Auth service](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/authentication/services/auth_service.dart): `lib/modules/authentication/services/auth_service.dart`
- [Consumer profiles](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/consumer_profile/screens/consumer_profile_page.dart): `lib/modules/consumer_profile/screens/consumer_profile_page.dart`

### Marketplace discovery

- [Landing pages](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/landing/screens/landing_guest_page.dart): `lib/modules/landing/screens/landing_guest_page.dart`
- [Product catalog](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/screens/catalog_page.dart): `lib/modules/catalog/screens/catalog_page.dart`
- [Product details](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/screens/product_detail_page.dart): `lib/modules/catalog/screens/product_detail_page.dart`
- [Product and review models](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/models/product.dart): `lib/modules/catalog/models/product.dart`
- [Review submission](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/catalog/widgets/review_form_sheet.dart): `lib/modules/catalog/widgets/review_form_sheet.dart`
- [Merchant map](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/merchant_location/screens/merchant_map_page.dart): `lib/modules/merchant_location/screens/merchant_map_page.dart`

### Merchant and orders

- [Inventory management](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/merchant_product/screens/my_products_page.dart): `lib/modules/merchant_product/screens/my_products_page.dart`
- [Product editor](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/merchant_product/screens/add_product_page.dart): `lib/modules/merchant_product/screens/add_product_page.dart`
- [Cart and checkout](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/cart_checkout_page.dart): `lib/modules/order/screens/cart_checkout_page.dart`
- [Payment QR](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/payment_page.dart): `lib/modules/order/screens/payment_page.dart`
- [Order history](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/my_orders_page.dart): `lib/modules/order/screens/my_orders_page.dart`
- [Claim validation](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/qr_validator_page.dart): `lib/modules/order/screens/qr_validator_page.dart`
- [Merchant orders](https://github.com/ujeeje/sisabijak_mobile/blob/main/lib/modules/order/screens/merchant_orders_page.dart): `lib/modules/order/screens/merchant_orders_page.dart`

### Other components

- **Marketplace users**
- **Django REST backend**

## Connections

- Marketplace users → Flutter app: uses (evidence: `README.md`)
- Flutter app → Authentication: offers sign-in (evidence: `README.md`)
- Authentication → Auth service: delegates
- Marketplace users → Landing pages: browses (evidence: `README.md`)
- Landing pages → Product catalog: opens catalog (evidence: `README.md`)
- Product catalog → Django REST backend: requests products (evidence: `README.md`)
- Product catalog → Product and review models: parses JSON (evidence: `README.md`)
- Product catalog → Product details: opens details (evidence: `README.md`)
- Product details → Django REST backend: requests details (evidence: `README.md`)
- Product details → Review submission: offers review (evidence: `README.md`)
- Review submission → Django REST backend: submits review (evidence: `README.md`)
- Marketplace users → Merchant map: views locations (evidence: `README.md`)
- Marketplace users → Inventory management: manages stock (evidence: `README.md`)
- Inventory management → Django REST backend: requests inventory (evidence: `README.md`)
- Inventory management → Product editor: edits products (evidence: `README.md`)
- Marketplace users → Cart and checkout: checks out (evidence: `README.md`)
- Cart and checkout → Django REST backend: creates order
- Cart and checkout → Payment QR: continues payment (evidence: `README.md`)
- Payment QR → Django REST backend: verifies payment
- Payment QR → Order history: provides claim QR (evidence: `README.md`)
- Marketplace users → Order history: views orders (evidence: `README.md`)
- Marketplace users → Claim validation: presents claim QR (evidence: `README.md`)
- Claim validation → Merchant orders: validates claim (evidence: `README.md`)
- Marketplace users → Consumer profiles: views metrics (evidence: `README.md`)
