# paarth04/estateiq-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/paarth04/estateiq-frontend
- Repository: https://github.com/paarth04/estateiq-frontend

## Overview

EstateIQ is a React frontend for real-estate enquiries and property discovery, backed here by mock data rather than a live service. The public journey runs from the landing page through project/property discovery or the call widget; the admin surface provides lead, analytics, project-catalog, and settings screens. The catalog is shared between admin editing and public browsing. Admin capabilities are represented from the source index even where their implementation was not sampled; this is a frontend map, not a backend call-processing pipeline.

Main entry points: [`src/admin/AdminRoutes.tsx`](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/AdminRoutes.tsx) (Admin routing), [`src/api/mock.ts`](https://github.com/paarth04/estateiq-frontend/blob/main/src/api/mock.ts) (Mock client API), [`src/features/landing/Landing.tsx`](https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/Landing.tsx) (Landing page), [`src/App.tsx`](https://github.com/paarth04/estateiq-frontend/blob/main/src/App.tsx) (App routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public experience"]
  node_app["App routing<br/>[App.tsx]"]
  node_landing["Landing page<br/>[Landing.tsx]"]
  node_call["Call widget<br/>[CallWidget.tsx]"]
  node_belowfold["Discovery sections<br/>[BelowFold.tsx]"]
  node_globe["City globe<br/>[GlobeSection.tsx]"]
  node_projectcards["Project browsing<br/>[ProjectCards.tsx]"]
end

subgraph group_data["Mock data"]
  node_api["Mock client API<br/>[mock.ts]"]
  node_catalog[("Shared catalog<br/>[catalog.ts]")]
  node_adminmock["Admin mock data<br/>[mock.ts]"]
end

subgraph group_admin["Admin workspace"]
  node_adminroutes["Admin routing<br/>[AdminRoutes.tsx]"]
  node_adminauth[("Mock admin session<br/>[auth.ts]")]
  node_adminlayout["Admin shell<br/>[AdminLayout.tsx]"]
  node_overview["Dashboard analytics<br/>[Overview.tsx]"]
  node_leads["Lead management<br/>[Leads.tsx]"]
  node_leaddetail["Lead detail<br/>[LeadDetail.tsx]"]
  node_analytics["Analytics screen<br/>[Analytics.tsx]"]
  node_projects["Project management<br/>[ProjectAdmin.tsx]"]
  node_projectlist["Project list<br/>[Projects.tsx]"]
  node_settings["Admin settings<br/>[Settings.tsx]"]
end

subgraph group_shared["Shared UI and contracts"]
  node_contract["API data types<br/>[types.ts]"]
  node_clientviews["Enquiry and transcript UI"]
  node_propertycard["Property cards<br/>[PropertyCard.tsx]"]
end

node_visitor(("Property seeker"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_adminroutes
node_landing -->|"opens"| node_call
node_landing -->|"renders"| node_belowfold
node_landing -->|"renders"| node_globe
node_belowfold -->|"renders"| node_projectcards
node_belowfold -->|"reads"| node_api
node_globe -->|"reads"| node_api
node_projectcards -->|"reads"| node_catalog
node_projectcards -->|"renders"| node_propertycard
node_api -->|"uses types"| node_contract
node_adminroutes -->|"routes to"| node_adminlayout
node_adminroutes -->|"checks session"| node_adminauth
node_adminroutes -->|"routes to"| node_overview
node_adminroutes -->|"routes to"| node_leads
node_adminroutes -->|"routes to"| node_leaddetail
node_adminroutes -->|"routes to"| node_analytics
node_adminroutes -->|"routes to"| node_projects
node_adminroutes -->|"routes to"| node_projectlist
node_adminroutes -->|"routes to"| node_settings
node_overview -->|"reads"| node_adminmock
node_leads -->|"reads"| node_api
node_leads -->|"reads"| node_adminmock
node_adminmock -->|"uses types"| node_api
node_projects -->|"updates"| node_catalog

click node_app "https://github.com/paarth04/estateiq-frontend/blob/main/src/App.tsx"
click node_landing "https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/Landing.tsx"
click node_call "https://github.com/paarth04/estateiq-frontend/blob/main/src/features/client/CallWidget.tsx"
click node_belowfold "https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/BelowFold.tsx"
click node_globe "https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/GlobeSection.tsx"
click node_projectcards "https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/ProjectCards.tsx"
click node_api "https://github.com/paarth04/estateiq-frontend/blob/main/src/api/mock.ts"
click node_catalog "https://github.com/paarth04/estateiq-frontend/blob/main/src/api/catalog.ts"
click node_contract "https://github.com/paarth04/estateiq-frontend/blob/main/src/api/types.ts"
click node_clientviews "https://github.com/paarth04/estateiq-frontend/blob/main/src/components/EnquiryDetailsCard.tsx"
click node_adminroutes "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/AdminRoutes.tsx"
click node_adminauth "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/auth.ts"
click node_adminlayout "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/AdminLayout.tsx"
click node_overview "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Overview.tsx"
click node_leads "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Leads.tsx"
click node_leaddetail "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/LeadDetail.tsx"
click node_analytics "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Analytics.tsx"
click node_projects "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/ProjectAdmin.tsx"
click node_projectlist "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Projects.tsx"
click node_settings "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Settings.tsx"
click node_adminmock "https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/mock.ts"
click node_propertycard "https://github.com/paarth04/estateiq-frontend/blob/main/src/components/PropertyCard.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_app,node_landing,node_call,node_belowfold,node_globe,node_projectcards toneBlue
class node_api,node_catalog,node_adminmock toneAmber
class node_adminroutes,node_adminauth,node_adminlayout,node_overview,node_leads,node_leaddetail,node_analytics,node_projects,node_projectlist,node_settings toneMint
class node_contract,node_clientviews,node_propertycard toneRose
class node_visitor toneIndigo
```

## Components

### Public experience

- [App routing](https://github.com/paarth04/estateiq-frontend/blob/main/src/App.tsx): `src/App.tsx`
- [Landing page](https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/Landing.tsx): `src/features/landing/Landing.tsx`
- [Call widget](https://github.com/paarth04/estateiq-frontend/blob/main/src/features/client/CallWidget.tsx): `src/features/client/CallWidget.tsx`
- [Discovery sections](https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/BelowFold.tsx): `src/features/landing/BelowFold.tsx`
- [City globe](https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/GlobeSection.tsx): `src/features/landing/GlobeSection.tsx`
- [Project browsing](https://github.com/paarth04/estateiq-frontend/blob/main/src/features/landing/ProjectCards.tsx): `src/features/landing/ProjectCards.tsx`

### Mock data

- [Mock client API](https://github.com/paarth04/estateiq-frontend/blob/main/src/api/mock.ts): `src/api/mock.ts`
- [Shared catalog](https://github.com/paarth04/estateiq-frontend/blob/main/src/api/catalog.ts): `src/api/catalog.ts`
- [Admin mock data](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/mock.ts): `src/admin/mock.ts`

### Admin workspace

- [Admin routing](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/AdminRoutes.tsx): `src/admin/AdminRoutes.tsx`
- [Mock admin session](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/auth.ts): `src/admin/auth.ts`
- [Admin shell](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/AdminLayout.tsx): `src/admin/AdminLayout.tsx`
- [Dashboard analytics](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Overview.tsx): `src/admin/screens/Overview.tsx`
- [Lead management](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Leads.tsx): `src/admin/screens/Leads.tsx`
- [Lead detail](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/LeadDetail.tsx): `src/admin/screens/LeadDetail.tsx`
- [Analytics screen](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Analytics.tsx): `src/admin/screens/Analytics.tsx`
- [Project management](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/ProjectAdmin.tsx): `src/admin/screens/ProjectAdmin.tsx`
- [Project list](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Projects.tsx): `src/admin/screens/Projects.tsx`
- [Admin settings](https://github.com/paarth04/estateiq-frontend/blob/main/src/admin/screens/Settings.tsx): `src/admin/screens/Settings.tsx`

### Shared UI and contracts

- [API data types](https://github.com/paarth04/estateiq-frontend/blob/main/src/api/types.ts): `src/api/types.ts`
- [Enquiry and transcript UI](https://github.com/paarth04/estateiq-frontend/blob/main/src/components/EnquiryDetailsCard.tsx): `src/components/EnquiryDetailsCard.tsx`
- [Property cards](https://github.com/paarth04/estateiq-frontend/blob/main/src/components/PropertyCard.tsx): `src/components/PropertyCard.tsx`

### Other components

- **Property seeker**

## Connections

- Property seeker → App routing: opens (evidence: `README.md`)
- App routing → Landing page: routes to (evidence: `src/App.tsx`)
- App routing → Admin routing: routes to (evidence: `src/App.tsx`)
- Landing page → Call widget: opens (evidence: `src/features/landing/Landing.tsx`)
- Landing page → Discovery sections: renders (evidence: `src/features/landing/Landing.tsx`)
- Landing page → City globe: renders (evidence: `src/features/landing/Landing.tsx`)
- Discovery sections → Project browsing: renders (evidence: `src/features/landing/BelowFold.tsx`)
- Discovery sections → Mock client API: reads (evidence: `src/features/landing/BelowFold.tsx`)
- City globe → Mock client API: reads (evidence: `src/features/landing/GlobeSection.tsx`)
- Project browsing → Shared catalog: reads (evidence: `src/features/landing/ProjectCards.tsx`)
- Project browsing → Property cards: renders (evidence: `src/features/landing/ProjectCards.tsx`)
- Mock client API → API data types: uses types (evidence: `src/api/mock.ts`)
- Admin routing → Admin shell: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Mock admin session: checks session (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Dashboard analytics: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Lead management: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Lead detail: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Analytics screen: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Project management: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Project list: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Admin routing → Admin settings: routes to (evidence: `src/admin/AdminRoutes.tsx`)
- Dashboard analytics → Admin mock data: reads (evidence: `src/admin/screens/Overview.tsx`)
- Lead management → Mock client API: reads (evidence: `src/admin/screens/Leads.tsx`)
- Lead management → Admin mock data: reads (evidence: `src/admin/screens/Leads.tsx`)
- Admin mock data → Mock client API: uses types (evidence: `src/admin/mock.ts`)
- Project management → Shared catalog: updates (evidence: `src/admin/screens/ProjectAdmin.tsx`)
