How shaistaaman/portal works
This is a role-based vacation-rental portal for clients and property staff, with property discovery alongside booking and operational management. The main discovery flow is a user entering destination, dates, and guest counts, then reaching filtered property results and property details. Authenticated role routes expose calendars/bookings and administration for properties, experiences, packages, users, finances, notifications, and settings. The tree and sampled source show routing, search behavior, and mock-data organization; most feature internals and persistence wiring were not sampled, so those connections are intentionally limited.
Main entry points: App.tsx App router · RoleRoute.tsx Role guard · SearchResults.tsx Filter and results · RoleSearchResultsPage.tsx Search results page
Components 20
Application and access
- App router
src/App.tsx - Auth context
src/auth/AuthContext.tsx - Role guard
src/routes/RoleRoute.tsx - Role layouts
src/layouts - Login and signup
src/pages/auth
Property discovery
- Property search
src/components/search/PropertySearch.tsx - Search results page
src/pages/search/RoleSearchResultsPage.tsx - Filter and results
src/features/search/SearchResults.tsx - Property details
src/pages/shared/PropertyDetailPage.tsx - Property sample data
src/data/properties.ts
Bookings and calendar
- Calendar and bookings
src/features/calendar - Calendar pages
src/pages/calendar
Property operations
- Property management
src/features/properties - User management
src/features/user-management - Financial records
src/features/financials
Portal features
- Experiences and packages
src/features/experiences - Blog management
src/features/blogs - Notifications
src/features/notifications - Account settings
src/features/settings/AccountSettings.tsx
Other components
- Portal user
Connections 19
- Portal user → App router: opens portal
- App router → Auth context: provides auth
- App router → Login and signup: routes unauthenticated
- App router → Role guard: routes protected areas
- Role guard → Auth context: checks role
- Role guard → Role layouts: renders role layout
- Property search → Search results page: navigates with criteria
- Search results page → Filter and results: passes search criteria
- Filter and results → Property sample data: reads properties
- Filter and results → Property details: opens details
- App router → Calendar pages: routes booking pages
- Calendar pages → Calendar and bookings: renders calendar features
- App router → Property management: routes property pages
- App router → User management: routes user pages
- App router → Financial records: routes finance pages
- App router → Experiences and packages: routes experience pages
- App router → Blog management: routes blog pages
- App router → Notifications: routes notification pages
- App router → Account settings: routes settings pages