How jayabapp/jayab-front works
This is a Next.js property-rental marketplace: visitors discover and filter listings, inspect a property, and can proceed toward a reservation; owners manage listings and availability, while users have profiles, messaging, and support. The graph groups the main user-facing domains and the API-service layer. Source-index references and excerpts support the API calls and selected component relationships; many route-to-component links are not shown in the sampled source, so those relationships are omitted rather than assumed.
Main entry points: apicall.helper.ts HTTP API helper · CityModal/index.tsx City selection · SearchBoxComp/index.tsx Search and filters · page.tsx Messaging
Components 23
Discovery
- Home
app/page.tsx - Search and filters
components/SearchBoxComp/index.tsx - City selection
components/CityModal/index.tsx - Property results
components/SinglePageComponents/Filterpage/index.tsx
Property lifecycle
- Property details
app/rooms/[room_slug]/page.tsx - Owner listing editor
components/properties/CreateEditProperty.tsx - Availability calendar
components/properties/owner/SingleOwnerPropertycallender/index.tsx - Reservations
app/(profile)/profile/reserves/page.tsx
Accounts and engagement
- Authentication
app/auth/page.tsx - User profile
app/(profile)/profile/page.tsx - Messaging
app/chat/[chat_id]/page.tsx - Advisor services
app/advisors/page.tsx - Customer support
app/(profile)/profile/support/page.tsx
API services
- Home content API
api_services/home/home.service.ts - Property API
api_services/property/property.service.ts - Authentication API
api_services/auth/auth.service.ts - Chat API
api_services/chat/chat.service.ts - Reservation API
api_services/reserve/reserve.service.ts
Shared runtime
- HTTP API helper
api_services/common/apicall.helper.ts - Client state
store/index.tsx
Other components
- Visitor
- Marketplace backend
- Socket service
Connections 22
- Visitor → Home: browses
- Visitor → Search and filters: searches
- Search and filters → Home content API: requests content
- Home content API → HTTP API helper: calls
api_services/home/home.service.ts - Property API → HTTP API helper: calls
api_services/property/property.service.ts - Authentication API → HTTP API helper: calls
api_services/auth/auth.service.ts - Chat API → HTTP API helper: calls
api_services/chat/chat.service.ts - Reservation API → HTTP API helper: calls
api_services/reserve/reserve.service.ts - HTTP API helper → Marketplace backend: sends HTTP requests
api_services/common/apicall.helper.ts - City selection → Marketplace backend: loads cities
components/CityModal/index.tsx - City selection → Client state: uses city state
components/CityModal/index.tsx - Visitor → Property details: opens listing
- Visitor → Authentication: signs in
- Visitor → User profile: manages account
- Visitor → Owner listing editor: edits listing
- Visitor → Availability calendar: manages dates
- Visitor → Reservations: views reservations
- Visitor → Messaging: messages
- Visitor → Advisor services: views advisors
- Visitor → Customer support: requests support
- Messaging → Chat API: uses chat API
- Socket service → Client state: updates state