# tebaarekshemsu/i-property-management-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/tebaarekshemsu/i-property-management-frontend
- Repository: https://github.com/tebaarekshemsu/i-property-management-frontend

## Overview

This is a Next.js property-listing and management application. The main user journey is authentication, browsing and filtering houses, viewing a property, and submitting a visit request; signed-in users can also post a property through a five-step form. Admin and super-admin screens cover property and user management, visit requests, reports, and financial oversight. The shown code confirms the listing, authentication, posting, and part of the admin-service paths. Other routes and features are represented from the tree, with unverified links dashed; the README offers no further product detail.

Main entry points: [`app/user/house/page.tsx`](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/user/house/page.tsx) (House listing), [`app/house-posting/page.tsx`](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/house-posting/page.tsx) (Property posting), [`lib/services/admin.service.ts`](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/services/admin.service.ts) (Admin service), [`app/user/page.tsx`](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/user/page.tsx) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Property discovery"]
  node_home["Home page<br/>[page.tsx]"]
  node_homecontent["Home content<br/>[HouseList.tsx]"]
  node_listing["House listing<br/>[page.tsx]"]
  node_filters["Listing filters<br/>[FilterSection.tsx]"]
  node_listingcards["Listing cards<br/>[HouseCard.tsx]"]
  node_detail["House detail"]
  node_visitform["Visit request"]
end

subgraph group_identity["Accounts and posting"]
  node_authpage["Authentication page<br/>[page.tsx]"]
  node_authform["Auth form<br/>[AuthForm.tsx]"]
  node_authhook["Auth state<br/>[useAuth.ts]"]
  node_userdashboard["User dashboard<br/>[index.tsx]"]
  node_postingpage["Property posting<br/>[page.tsx]"]
  node_postingcontext["Posting state and submit"]
  node_postingsteps["Posting form steps<br/>[BasicInfo.tsx]"]
end

subgraph group_admin["Management consoles"]
  node_adminproperties["Admin properties<br/>[page.tsx]"]
  node_adminrequests["Admin requests and reports"]
  node_superadmin["Super-admin tools"]
end

subgraph group_services["Services and API"]
  node_authservice["Auth service<br/>[auth.service.ts]"]
  node_adminservice["Admin service<br/>[admin.service.ts]"]
  node_apiclient["API transport<br/>[api.service.ts]"]
  node_apiconfig["API configuration<br/>[api.config.ts]"]
end

node_visitor(("Property seeker"))
node_backend["Property API"]

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_homecontent
node_visitor -.->|"browses"| node_listing
node_listing -->|"renders"| node_filters
node_listing -->|"renders"| node_listingcards
node_visitor -.->|"opens"| node_detail
node_detail -.->|"renders"| node_visitform
node_visitor -->|"signs in"| node_authpage
node_authpage -->|"renders"| node_authform
node_authform -->|"uses"| node_authhook
node_authhook -->|"calls"| node_authservice
node_authservice -->|"authenticates"| node_backend
node_visitor -.->|"views account"| node_userdashboard
node_visitor -.->|"posts property"| node_postingpage
node_postingpage -->|"provides state"| node_postingcontext
node_postingpage -->|"renders steps"| node_postingsteps
node_postingcontext -->|"submits listing"| node_backend
node_adminproperties -->|"calls"| node_adminservice
node_adminservice -->|"uses"| node_apiclient
node_adminservice -->|"reads config"| node_apiconfig
node_apiclient -.->|"sends requests"| node_backend
node_adminrequests -.->|"manages requests"| node_backend
node_superadmin -.->|"manages platform"| node_backend

click node_home "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/user/page.tsx"
click node_homecontent "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Home/HouseList.tsx"
click node_listing "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/user/house/page.tsx"
click node_filters "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Listing/FilterSection.tsx"
click node_listingcards "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Listing/HouseCard.tsx"
click node_detail "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/HouseDetail/HouseDetailPage.tsx"
click node_visitform "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/HouseDetail/VisitRequestForm.tsx"
click node_authpage "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/auth/page.tsx"
click node_authform "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/AuthForm.tsx"
click node_authhook "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/hooks/useAuth.ts"
click node_authservice "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/services/auth.service.ts"
click node_userdashboard "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/UserDashboard/index.tsx"
click node_postingpage "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/house-posting/page.tsx"
click node_postingcontext "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/contexts/HousePostingContext.tsx"
click node_postingsteps "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/house-posting/BasicInfo.tsx"
click node_adminproperties "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/admin/properties/page.tsx"
click node_adminservice "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/services/admin.service.ts"
click node_adminrequests "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Admin/PostRequestsAdmin.tsx"
click node_superadmin "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/SuperAdmin/AdminManagement.tsx"
click node_apiclient "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/services/api.service.ts"
click node_apiconfig "https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/config/api.config.ts"

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_homecontent,node_listing,node_filters,node_listingcards,node_detail,node_visitform toneBlue
class node_authpage,node_authform,node_authhook,node_userdashboard,node_postingpage,node_postingcontext,node_postingsteps toneAmber
class node_adminproperties,node_adminrequests,node_superadmin,node_backend toneMint
class node_authservice,node_adminservice,node_apiclient,node_apiconfig toneRose
class node_visitor toneIndigo
```

## Components

### Property discovery

- [Home page](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/user/page.tsx): `app/user/page.tsx`
- [Home content](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Home/HouseList.tsx): `components/Home/HouseList.tsx`
- [House listing](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/user/house/page.tsx): `app/user/house/page.tsx`
- [Listing filters](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Listing/FilterSection.tsx): `components/Listing/FilterSection.tsx`
- [Listing cards](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Listing/HouseCard.tsx): `components/Listing/HouseCard.tsx`
- [House detail](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/HouseDetail/HouseDetailPage.tsx): `components/HouseDetail/HouseDetailPage.tsx`
- [Visit request](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/HouseDetail/VisitRequestForm.tsx): `components/HouseDetail/VisitRequestForm.tsx`

### Accounts and posting

- [Authentication page](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/auth/page.tsx): `app/auth/page.tsx`
- [Auth form](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/AuthForm.tsx): `components/AuthForm.tsx`
- [Auth state](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/hooks/useAuth.ts): `lib/hooks/useAuth.ts`
- [User dashboard](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/UserDashboard/index.tsx): `components/UserDashboard/index.tsx`
- [Property posting](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/house-posting/page.tsx): `app/house-posting/page.tsx`
- [Posting state and submit](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/contexts/HousePostingContext.tsx): `contexts/HousePostingContext.tsx`
- [Posting form steps](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/house-posting/BasicInfo.tsx): `components/house-posting/BasicInfo.tsx`

### Management consoles

- [Admin properties](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/app/admin/properties/page.tsx): `app/admin/properties/page.tsx`
- [Admin requests and reports](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/Admin/PostRequestsAdmin.tsx): `components/Admin/PostRequestsAdmin.tsx`
- [Super-admin tools](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/components/SuperAdmin/AdminManagement.tsx): `components/SuperAdmin/AdminManagement.tsx`

### Services and API

- [Auth service](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/services/auth.service.ts): `lib/services/auth.service.ts`
- [Admin service](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/services/admin.service.ts): `lib/services/admin.service.ts`
- [API transport](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/services/api.service.ts): `lib/services/api.service.ts`
- [API configuration](https://github.com/tebaarekshemsu/i-property-management-frontend/blob/main/lib/config/api.config.ts): `lib/config/api.config.ts`

### Other components

- **Property seeker**
- **Property API**

## Connections

- Property seeker → Home page: opens
- Home page → Home content: renders (evidence: `app/user/page.tsx`)
- Property seeker → House listing: browses
- House listing → Listing filters: renders (evidence: `app/user/house/page.tsx`)
- House listing → Listing cards: renders (evidence: `app/user/house/page.tsx`)
- Property seeker → House detail: opens
- House detail → Visit request: renders
- Property seeker → Authentication page: signs in
- Authentication page → Auth form: renders (evidence: `app/auth/page.tsx`)
- Auth form → Auth state: uses (evidence: `components/AuthForm.tsx`)
- Auth state → Auth service: calls (evidence: `lib/hooks/useAuth.ts`)
- Auth service → Property API: authenticates (evidence: `lib/services/auth.service.ts`)
- Property seeker → User dashboard: views account
- Property seeker → Property posting: posts property
- Property posting → Posting state and submit: provides state (evidence: `app/house-posting/page.tsx`)
- Property posting → Posting form steps: renders steps (evidence: `app/house-posting/page.tsx`)
- Posting state and submit → Property API: submits listing (evidence: `contexts/HousePostingContext.tsx`)
- Admin properties → Admin service: calls (evidence: `app/admin/properties/page.tsx`)
- Admin service → API transport: uses (evidence: `lib/services/admin.service.ts`)
- Admin service → API configuration: reads config (evidence: `lib/services/admin.service.ts`)
- API transport → Property API: sends requests
- Admin requests and reports → Property API: manages requests
- Super-admin tools → Property API: manages platform
