How rachad-zenatech/internal_portal_travel_management_dashboard_front works
This is a React travel-management portal. Users authenticate, enter a permission-guarded dashboard, and work with travel operations or administrative views; those views call a shared API client to exchange data with the backend. Major documented branches include RBAC, notifications, audit/system logs, and travel management. The README describes capabilities whose source was not sampled, so those are represented at directory-level paths where supported; edges without direct source evidence are documented by the README or omitted.
Main entry points: apiClient.ts API client · AuthContext.tsx Authentication context · travelService.ts Travel service · App.tsx Routes and pages
Components 20
Application shell
- Routes and pages
src/App.tsx - App shell
src/components/AppShell/AppShell.tsx - Dashboard
src/pages/Dashboard.tsx
Identity and access
- Authentication context
src/lib/AuthContext.tsx - Sign-in
src/pages/Login.tsx - Access status
src/pages/PendingAccess.tsx - RBAC administration
src/pages/Configurations
Travel operations
- Travel events and roster
src/pages/Travel/TravelEventsPage.tsx - Receipts and expenses
src/pages/Travel/ReceiptExpensePage.tsx - Travel planning views
src/pages/Travel - Flight booking tracker
src/components/Flight/BookingTrackerModal.tsx
Observability
- Audit trail
src/pages/Log/AuditLog.tsx - System logs
src/pages/Logs/SystemLogsPage.tsx - Notification center
src/hooks/useNotifications.ts
Data and integration
- Travel service
src/services/travelService.ts - Flight service
src/services/flightService.ts - API client
src/services/apiClient.ts - Session storage
src/lib/storage.ts
Other components
- Portal user
- Portal backend
Connections 23
- Portal user → Routes and pages: uses portal
- Routes and pages → Authentication context: guards routes
src/App.tsx - Routes and pages → App shell: renders protected
src/App.tsx - App shell → Dashboard: hosts views
- Portal user → Sign-in: signs in
- Sign-in → Authentication context: establishes session
- Authentication context → API client: requests permissions
src/lib/AuthContext.tsx - Authentication context → Session storage: reads and clears tokens
src/lib/AuthContext.tsx - Authentication context → Access status: evaluates access
- RBAC administration → API client: manages permissions
src/pages/Configurations/Roles.tsx - Dashboard → API client: loads portal data
src/pages/Dashboard.tsx - Dashboard → Travel service: loads travel data
src/pages/Dashboard.tsx - Travel events and roster → Travel service: manages rosters
src/pages/Travel/TravelEventsPage.tsx - Receipts and expenses → Travel service: manages expenses
src/pages/Travel/ReceiptExpensePage.tsx - Travel planning views → Travel service: uses travel operations
src/pages/Travel/TravelEventsPage.tsx - Flight booking tracker → Flight service: manages bookings
src/components/Flight/BookingTrackerModal.tsx - Travel service → API client: sends API requests
src/services/travelService.ts - Flight service → API client: sends API requests
src/services/flightService.ts - Audit trail → API client: loads audit records
src/pages/Log/AuditLog.tsx - System logs → API client: loads system logs
src/pages/Logs/SystemLogsPage.tsx - App shell → Notification center: shows notifications
- Notification center → Portal backend: opens SSE stream
- API client → Portal backend: sends REST requests