# lein0404/mobile_assignment architecture

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

- Interactive diagram: https://gitdiagram.com/lein0404/mobile_assignment
- Repository: https://github.com/lein0404/mobile_assignment

## Overview

Foodie Heal is an Android food and wellness app with user and chef experiences. A central user journey is to discover a chef, book an appointment, and manage payment and appointment details; other major capabilities include recipes, meal planning, ingredients and shopping lists, and wallet tracking. The tree identifies these subsystems, but no README or app source excerpts were provided, so the links below are dashed and unverified rather than asserted call relationships.

Main entry points: [`app/src/main/java/com/example/foodieheal/navigation/AppNavGraph.kt`](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/navigation/AppNavGraph.kt) (App routes), [`app/src/main/java/com/example/foodieheal/ingredients/view/IngredientsMainScreen.kt`](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/ingredients/view/IngredientsMainScreen.kt) (Ingredient catalog), [`app/src/main/java/com/example/foodieheal/hiring/screen/AddHiringAppointment.kt`](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/AddHiringAppointment.kt) (Book appointment), [`app/src/main/java/com/example/foodieheal/Payment/Screen/PaymentScreen.kt`](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Payment/Screen/PaymentScreen.kt) (Payment flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App entry"]
  node_entry["Activity and navigation<br/>[MainActivity.kt]"]
  node_nav["App routes<br/>[AppNavGraph.kt]"]
end

subgraph group_identity["User identity"]
  node_auth["Sign-in and profile"]
  node_userrepo["User data<br/>[UserRepository.kt]"]
end

subgraph group_food["Food planning"]
  node_recipe["Recipe browsing<br/>[RecipesScreen.kt]"]
  node_recipedata["Recipe storage"]
  node_planner["Meal planner"]
  node_planrepo["Plan data<br/>[PlanRepository.kt]"]
  node_ingredients["Ingredient catalog"]
  node_shopping["Shopping lists"]
  node_admin["Ingredient administration<br/>[AdminMain.kt]"]
end

subgraph group_hiring["Chef hiring"]
  node_chefsearch["Find a chef<br/>[HiringScreen.kt]"]
  node_chefdetails["Chef details"]
  node_booking["Book appointment"]
  node_bookingdata["Booking services"]
  node_appointment["Appointment management<br/>[UserAppointment.kt]"]
  node_chefportal["Chef portal<br/>[ChefMain.kt]"]
end

subgraph group_money["Payments and wallet"]
  node_payment["Payment flow<br/>[PaymentScreen.kt]"]
  node_paymentrepo["Payment methods"]
  node_wallet["Wallet and transactions<br/>[WalletScreen.kt]"]
  node_walletrepo["Wallet data"]
end

node_user(("App user"))

node_user -.->|"opens app"| node_entry
node_entry -.->|"starts routes"| node_nav
node_nav -.->|"routes to"| node_auth
node_nav -.->|"routes to"| node_recipe
node_nav -.->|"routes to"| node_planner
node_nav -.->|"routes to"| node_ingredients
node_nav -.->|"routes to"| node_chefsearch
node_nav -.->|"routes to"| node_appointment
node_auth -.->|"uses data"| node_userrepo
node_recipe -.->|"uses data"| node_recipedata
node_planner -.->|"uses data"| node_planrepo
node_ingredients -.->|"supports lists"| node_shopping
node_ingredients -.->|"administers"| node_admin
node_chefsearch -.->|"opens details"| node_chefdetails
node_chefdetails -.->|"starts booking"| node_booking
node_booking -.->|"uses services"| node_bookingdata
node_booking -.->|"continues to"| node_payment
node_payment -.->|"uses methods"| node_paymentrepo
node_appointment -.->|"manages bookings"| node_bookingdata
node_chefportal -.->|"manages bookings"| node_bookingdata
node_payment -.->|"tracks funds"| node_wallet
node_wallet -.->|"uses data"| node_walletrepo

click node_entry "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/MainActivity.kt"
click node_nav "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/navigation/AppNavGraph.kt"
click node_auth "https://github.com/lein0404/mobile_assignment/tree/master/app/src/main/java/com/example/foodieheal/User/View"
click node_userrepo "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/User/Repo/UserRepository.kt"
click node_recipe "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Recipe/View/RecipesScreen.kt"
click node_recipedata "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Recipe/Repo/RecipeRepository.kt"
click node_planner "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/meal_planner/screen/MealPlannerScreen.kt"
click node_planrepo "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/meal_planner/data/PlanRepository.kt"
click node_ingredients "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/ingredients/view/IngredientsMainScreen.kt"
click node_shopping "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/ingredients/view/ShoppingListHomeScreen.kt"
click node_chefsearch "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/HiringScreen.kt"
click node_chefdetails "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/HiringChefDetails.kt"
click node_booking "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/AddHiringAppointment.kt"
click node_bookingdata "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/data/HiringRepository.kt"
click node_appointment "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/UserAppointment.kt"
click node_chefportal "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Chef/ChefMain.kt"
click node_payment "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Payment/Screen/PaymentScreen.kt"
click node_paymentrepo "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Payment/repo/PaymentRepository.kt"
click node_wallet "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/wallet/screen/WalletScreen.kt"
click node_walletrepo "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/wallet/data/WalletRepository.kt"
click node_admin "https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Admin/AdminMain.kt"

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_nav,node_user toneBlue
class node_auth,node_userrepo toneAmber
class node_recipe,node_recipedata,node_planner,node_planrepo,node_ingredients,node_shopping,node_admin toneMint
class node_chefsearch,node_chefdetails,node_booking,node_bookingdata,node_appointment,node_chefportal toneRose
class node_payment,node_paymentrepo,node_wallet,node_walletrepo toneIndigo
```

## Components

### App entry

- [Activity and navigation](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/MainActivity.kt): `app/src/main/java/com/example/foodieheal/MainActivity.kt`
- [App routes](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/navigation/AppNavGraph.kt): `app/src/main/java/com/example/foodieheal/navigation/AppNavGraph.kt`

### User identity

- [Sign-in and profile](https://github.com/lein0404/mobile_assignment/tree/master/app/src/main/java/com/example/foodieheal/User/View): `app/src/main/java/com/example/foodieheal/User/View`
- [User data](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/User/Repo/UserRepository.kt): `app/src/main/java/com/example/foodieheal/User/Repo/UserRepository.kt`

### Food planning

- [Recipe browsing](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Recipe/View/RecipesScreen.kt): `app/src/main/java/com/example/foodieheal/Recipe/View/RecipesScreen.kt`
- [Recipe storage](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Recipe/Repo/RecipeRepository.kt): `app/src/main/java/com/example/foodieheal/Recipe/Repo/RecipeRepository.kt`
- [Meal planner](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/meal_planner/screen/MealPlannerScreen.kt): `app/src/main/java/com/example/foodieheal/meal_planner/screen/MealPlannerScreen.kt`
- [Plan data](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/meal_planner/data/PlanRepository.kt): `app/src/main/java/com/example/foodieheal/meal_planner/data/PlanRepository.kt`
- [Ingredient catalog](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/ingredients/view/IngredientsMainScreen.kt): `app/src/main/java/com/example/foodieheal/ingredients/view/IngredientsMainScreen.kt`
- [Shopping lists](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/ingredients/view/ShoppingListHomeScreen.kt): `app/src/main/java/com/example/foodieheal/ingredients/view/ShoppingListHomeScreen.kt`
- [Ingredient administration](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Admin/AdminMain.kt): `app/src/main/java/com/example/foodieheal/Admin/AdminMain.kt`

### Chef hiring

- [Find a chef](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/HiringScreen.kt): `app/src/main/java/com/example/foodieheal/hiring/screen/HiringScreen.kt`
- [Chef details](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/HiringChefDetails.kt): `app/src/main/java/com/example/foodieheal/hiring/screen/HiringChefDetails.kt`
- [Book appointment](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/AddHiringAppointment.kt): `app/src/main/java/com/example/foodieheal/hiring/screen/AddHiringAppointment.kt`
- [Booking services](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/data/HiringRepository.kt): `app/src/main/java/com/example/foodieheal/hiring/data/HiringRepository.kt`
- [Appointment management](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/hiring/screen/UserAppointment.kt): `app/src/main/java/com/example/foodieheal/hiring/screen/UserAppointment.kt`
- [Chef portal](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Chef/ChefMain.kt): `app/src/main/java/com/example/foodieheal/Chef/ChefMain.kt`

### Payments and wallet

- [Payment flow](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Payment/Screen/PaymentScreen.kt): `app/src/main/java/com/example/foodieheal/Payment/Screen/PaymentScreen.kt`
- [Payment methods](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/Payment/repo/PaymentRepository.kt): `app/src/main/java/com/example/foodieheal/Payment/repo/PaymentRepository.kt`
- [Wallet and transactions](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/wallet/screen/WalletScreen.kt): `app/src/main/java/com/example/foodieheal/wallet/screen/WalletScreen.kt`
- [Wallet data](https://github.com/lein0404/mobile_assignment/blob/master/app/src/main/java/com/example/foodieheal/wallet/data/WalletRepository.kt): `app/src/main/java/com/example/foodieheal/wallet/data/WalletRepository.kt`

### Other components

- **App user**

## Connections

- App user → Activity and navigation: opens app
- Activity and navigation → App routes: starts routes
- App routes → Sign-in and profile: routes to
- App routes → Recipe browsing: routes to
- App routes → Meal planner: routes to
- App routes → Ingredient catalog: routes to
- App routes → Find a chef: routes to
- App routes → Appointment management: routes to
- Sign-in and profile → User data: uses data
- Recipe browsing → Recipe storage: uses data
- Meal planner → Plan data: uses data
- Ingredient catalog → Shopping lists: supports lists
- Ingredient catalog → Ingredient administration: administers
- Find a chef → Chef details: opens details
- Chef details → Book appointment: starts booking
- Book appointment → Booking services: uses services
- Book appointment → Payment flow: continues to
- Payment flow → Payment methods: uses methods
- Appointment management → Booking services: manages bookings
- Chef portal → Booking services: manages bookings
- Payment flow → Wallet and transactions: tracks funds
- Wallet and transactions → Wallet data: uses data
