How youssefatef289/mishwar works
Mishwar is a Next.js car-rental and fleet-management web app with renter, dealer, and individual-host views. The visible renter journey starts at the car-discovery home page, continues to fleet listings and car details, then exposes booking status and dealer chat through the renter’s bookings page. Dealer and host dashboards manage listings and booking decisions. The sampled runtime persists application data in browser localStorage rather than a server database. Several route capabilities are clear from the tree, but their internals and connections were not sampled.
Main entry points: storage.ts Browser data store · Navbar.tsx Role-aware navigation · app/page.tsx Car discovery · my-bookings/page.tsx Renter bookings
Components 24
App shell
- Shared app layout
src/app/layout.tsx - Storage initialization
src/components/AppInitializer.tsx - Role-aware navigation
src/components/Navbar.tsx - Browser data store
src/utils/storage.ts
Renter experience
- Car discovery
src/app/page.tsx - Fleet listings
src/app/fleet/page.tsx - Car details
src/app/fleet/[id]/page.tsx - Renter bookings
src/app/my-bookings/page.tsx - Booking management
src/app/bookings/page.tsx
Fleet operations
- Dealer operations
src/app/dealer/dashboard/page.tsx - Host listings
src/app/host/dashboard/page.tsx - Dealer area
src/app/dealer/page.tsx - Branch directory
src/app/branches/page.tsx - Contracts and invoices
src/app/contracts/page.tsx - Administration
src/app/admin/page.tsx
Accounts and communication
- Sign in
src/app/login/page.tsx - Registration
src/app/register/page.tsx - User profile
src/app/profile/page.tsx - Notifications
src/app/notifications/page.tsx - Renter chat
src/app/renter/chat/page.tsx - Dealer chat
src/app/dealer/chat/page.tsx
Other components
- Visitor / renter
- Dealer
- Car host
Connections 25
- Shared app layout → Storage initialization: renders
src/app/layout.tsx - Shared app layout → Role-aware navigation: renders
src/app/layout.tsx - Storage initialization → Browser data store: initializes
src/components/AppInitializer.tsx - Role-aware navigation → Browser data store: reads session
src/components/Navbar.tsx - Role-aware navigation → Car discovery: links to
src/components/Navbar.tsx - Role-aware navigation → Fleet listings: links to
src/components/Navbar.tsx - Role-aware navigation → Sign in: links to
src/components/Navbar.tsx - Role-aware navigation → Registration: links to
src/components/Navbar.tsx - Visitor / renter → Car discovery: browses
- Car discovery → Browser data store: reads fleet
src/app/page.tsx - Car discovery → Car details: links to
src/app/page.tsx - Fleet listings → Browser data store: reads fleet
src/app/fleet/page.tsx - Fleet listings → Car details: links to
src/app/fleet/page.tsx - Car details → Browser data store: reads car
src/app/fleet/[id]/page.tsx - Renter bookings → Browser data store: loads bookings
src/app/my-bookings/page.tsx - Renter bookings → Browser data store: loads car details
src/app/my-bookings/page.tsx - Renter bookings → Renter chat: links to
src/app/my-bookings/page.tsx - Dealer operations → Browser data store: manages fleet and bookings
src/app/dealer/dashboard/page.tsx - Host listings → Browser data store: manages fleet
src/app/host/dashboard/page.tsx - Sign in → Browser data store: authenticates user
src/app/login/page.tsx - Registration → Browser data store: saves account
src/app/register/page.tsx - Renter chat → Browser data store: uses conversations
src/app/renter/chat/page.tsx - Dealer chat → Browser data store: uses conversations
src/app/dealer/chat/page.tsx - Dealer → Dealer operations: manages bookings
- Car host → Host listings: lists cars