# mohamedsoultan/rawabet---real-estate-marketplace architecture

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

- Interactive diagram: https://gitdiagram.com/mohamedsoultan/rawabet---real-estate-marketplace
- Repository: https://github.com/mohamedsoultan/rawabet---real-estate-marketplace

## Overview

Rawabet is a real-estate brokerage frontend for browsing and matching properties, submitting listings, and handling customer and staff workflows. The primary journey begins with guided search or property browsing, proceeds through property details and viewing requests, and is supported by seller submission and internal review/lead-management workspaces. The map also includes shared app state, filtering, authentication, and API infrastructure. Source excerpts establish the app shell and several imports; README capabilities preserve broader role-based workflows where implementation details were not sampled.

Main entry points: [`src/routes/AppRoutes.tsx`](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/AppRoutes.tsx) (Route dispatch), [`src/App.tsx`](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/App.tsx) (Application entry), [`src/layouts/MainLayout.tsx`](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/layouts/MainLayout.tsx) (Main layout), [`src/routes/StartRoute.tsx`](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/StartRoute.tsx) (Guided search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_app["Application entry<br/>[App.tsx]"]
  node_routes["Route dispatch<br/>[AppRoutes.tsx]"]
  node_layout["Main layout<br/>[MainLayout.tsx]"]
end

subgraph group_discovery["Property discovery"]
  node_home["Home experience<br/>[HomeRoute.tsx]"]
  node_guided["Guided search<br/>[StartRoute.tsx]"]
  node_filter["Filter engine<br/>[filterEngine.ts]"]
  node_property_views["Property listings and details"]
  node_property_card["Property cards<br/>[PropertyCard.tsx]"]
  node_preview["Quick property preview"]
  node_viewing["Viewing requests"]
  node_smart_search["Search no-match guidance"]
end

subgraph group_operations["Brokerage operations"]
  node_seller["Seller dashboard and submission"]
  node_wizard["Property submission wizard"]
  node_review["Property review queue"]
  node_admin["Admin and staff workspaces"]
  node_sales["Sales lead workspace"]
end

subgraph group_platform["Platform services"]
  node_auth["Authentication UI<br/>[AuthModal.tsx]"]
  node_state["Shared application state<br/>[AppContext.tsx]"]
  node_seed["Initial platform data<br/>[initialData.ts]"]
  node_api["API client and endpoints"]
  node_env["Environment configuration<br/>[env.ts]"]
  node_toast["Toast notifications<br/>[Toast.tsx]"]
  node_errors["Error boundary<br/>[ErrorBoundary.tsx]"]
  node_modal_a11y["Modal accessibility<br/>[useModalA11y.ts]"]
end

node_visitor(("Guest or customer"))
node_backend[("Backend services")]

node_app -->|"provides state"| node_state
node_app -->|"provides toasts"| node_toast
node_app -->|"renders routes"| node_routes
node_app -->|"wraps app"| node_errors
node_routes -->|"routes through"| node_layout
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_guided
node_routes -->|"routes to"| node_property_views
node_layout -->|"opens preview"| node_preview
node_layout -->|"renders modal"| node_auth
node_layout -->|"opens wizard"| node_wizard
node_visitor -.->|"browses"| node_routes
node_home -->|"renders cards"| node_property_card
node_guided -->|"uses filters"| node_filter
node_guided -->|"shows guidance"| node_smart_search
node_preview -->|"opens request"| node_viewing
node_seller -.->|"starts submission"| node_wizard
node_review -.->|"supports review role"| node_admin
node_sales -.->|"supports sales role"| node_admin
node_auth -->|"uses shared state"| node_state
node_state -->|"initializes from"| node_seed
node_api -.->|"sends API requests"| node_backend
node_api -->|"configures base URL"| node_env
node_visitor -.->|"submits listings"| node_seller
node_visitor -.->|"requests viewing"| node_viewing
node_modal_a11y -->|"supports modal"| node_auth

click node_app "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/App.tsx"
click node_routes "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/AppRoutes.tsx"
click node_layout "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/layouts/MainLayout.tsx"
click node_home "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/HomeRoute.tsx"
click node_guided "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/StartRoute.tsx"
click node_filter "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/services/filterEngine.ts"
click node_property_views "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/PropertiesRoute.tsx"
click node_property_card "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/PropertyCard.tsx"
click node_preview "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/PropertyPreviewModal.tsx"
click node_viewing "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/RequestViewingModal.tsx"
click node_seller "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/seller/SellerDashboard.tsx"
click node_wizard "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/seller/PropertyWizardModal.tsx"
click node_review "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/admin/ReviewQueueView.tsx"
click node_admin "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/tree/main/src/components/admin"
click node_sales "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/tree/main/src/components/internal/sales"
click node_auth "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/auth/AuthModal.tsx"
click node_state "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/context/AppContext.tsx"
click node_seed "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/data/initialData.ts"
click node_api "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/tree/main/src/api"
click node_env "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/config/env.ts"
click node_toast "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/ui/Toast.tsx"
click node_errors "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/common/ErrorBoundary.tsx"
click node_modal_a11y "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/utils/useModalA11y.ts"
click node_smart_search "https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/SmartSearchNoMatchModal.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_routes,node_layout toneBlue
class node_home,node_guided,node_filter,node_property_views,node_property_card,node_preview,node_viewing,node_smart_search,node_backend toneAmber
class node_seller,node_wizard,node_review,node_admin,node_sales toneMint
class node_auth,node_state,node_seed,node_api,node_env,node_toast,node_errors,node_modal_a11y toneRose
class node_visitor toneIndigo
```

## Components

### App shell

- [Application entry](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/App.tsx): `src/App.tsx`
- [Route dispatch](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/AppRoutes.tsx): `src/routes/AppRoutes.tsx`
- [Main layout](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/layouts/MainLayout.tsx): `src/layouts/MainLayout.tsx`

### Property discovery

- [Home experience](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/HomeRoute.tsx): `src/routes/HomeRoute.tsx`
- [Guided search](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/StartRoute.tsx): `src/routes/StartRoute.tsx`
- [Filter engine](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/services/filterEngine.ts): `src/services/filterEngine.ts`
- [Property listings and details](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/routes/PropertiesRoute.tsx): `src/routes/PropertiesRoute.tsx`
- [Property cards](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/PropertyCard.tsx): `src/components/public/PropertyCard.tsx`
- [Quick property preview](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/PropertyPreviewModal.tsx): `src/components/public/PropertyPreviewModal.tsx`
- [Viewing requests](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/RequestViewingModal.tsx): `src/components/public/RequestViewingModal.tsx`
- [Search no-match guidance](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/public/SmartSearchNoMatchModal.tsx): `src/components/public/SmartSearchNoMatchModal.tsx`

### Brokerage operations

- [Seller dashboard and submission](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/seller/SellerDashboard.tsx): `src/components/seller/SellerDashboard.tsx`
- [Property submission wizard](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/seller/PropertyWizardModal.tsx): `src/components/seller/PropertyWizardModal.tsx`
- [Property review queue](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/admin/ReviewQueueView.tsx): `src/components/admin/ReviewQueueView.tsx`
- [Admin and staff workspaces](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/tree/main/src/components/admin): `src/components/admin`
- [Sales lead workspace](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/tree/main/src/components/internal/sales): `src/components/internal/sales`

### Platform services

- [Authentication UI](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/auth/AuthModal.tsx): `src/components/auth/AuthModal.tsx`
- [Shared application state](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/context/AppContext.tsx): `src/context/AppContext.tsx`
- [Initial platform data](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/data/initialData.ts): `src/data/initialData.ts`
- [API client and endpoints](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/tree/main/src/api): `src/api`
- [Environment configuration](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/config/env.ts): `src/config/env.ts`
- [Toast notifications](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/ui/Toast.tsx): `src/components/ui/Toast.tsx`
- [Error boundary](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/components/common/ErrorBoundary.tsx): `src/components/common/ErrorBoundary.tsx`
- [Modal accessibility](https://github.com/mohamedsoultan/rawabet---real-estate-marketplace/blob/main/src/utils/useModalA11y.ts): `src/utils/useModalA11y.ts`

### Other components

- **Guest or customer**
- **Backend services**

## Connections

- Application entry → Shared application state: provides state (evidence: `src/App.tsx`)
- Application entry → Toast notifications: provides toasts (evidence: `src/App.tsx`)
- Application entry → Route dispatch: renders routes (evidence: `src/App.tsx`)
- Application entry → Error boundary: wraps app (evidence: `src/App.tsx`)
- Route dispatch → Main layout: routes through (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatch → Home experience: routes to (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatch → Guided search: routes to (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatch → Property listings and details: routes to (evidence: `src/routes/AppRoutes.tsx`)
- Main layout → Quick property preview: opens preview (evidence: `src/layouts/MainLayout.tsx`)
- Main layout → Authentication UI: renders modal (evidence: `src/layouts/MainLayout.tsx`)
- Main layout → Property submission wizard: opens wizard (evidence: `src/layouts/MainLayout.tsx`)
- Guest or customer → Route dispatch: browses
- Home experience → Property cards: renders cards (evidence: `src/routes/HomeRoute.tsx`)
- Guided search → Filter engine: uses filters (evidence: `src/routes/StartRoute.tsx`)
- Guided search → Search no-match guidance: shows guidance (evidence: `src/routes/StartRoute.tsx`)
- Quick property preview → Viewing requests: opens request (evidence: `src/components/public/PropertyPreviewModal.tsx`)
- Seller dashboard and submission → Property submission wizard: starts submission
- Property review queue → Admin and staff workspaces: supports review role
- Sales lead workspace → Admin and staff workspaces: supports sales role
- Authentication UI → Shared application state: uses shared state (evidence: `src/components/auth/AuthModal.tsx`)
- Shared application state → Initial platform data: initializes from (evidence: `src/context/AppContext.tsx`)
- API client and endpoints → Backend services: sends API requests
- API client and endpoints → Environment configuration: configures base URL (evidence: `src/api/client.ts`)
- Guest or customer → Seller dashboard and submission: submits listings
- Guest or customer → Viewing requests: requests viewing
- Modal accessibility → Authentication UI: supports modal (evidence: `src/components/auth/AuthModal.tsx`)
