- Docs
- Containers
- Fleet Dashboard
Fleet Dashboard¶
Company-facing operations SPA for Managers. Platform Admin work belongs in Filament (/admin), not this surface.
Stack and runtime¶
- Framework: Vite 8 + React 19 + TypeScript + Tailwind v4.
- Routing/base:
BrowserRouterwithbasename="/dashboard"; app is served under/dashboard/. - State/UI: TanStack Query, React Router, i18next/react-i18next, shadcn/ui-style components.
- Realtime/maps:
laravel-echo+pusher-jsagainst Reverb;@vis.gl/react-google-maps. Maps stay LTR in RTL layouts.
Environment¶
| Variable | Purpose |
|---|---|
VITE_API_URL |
API base URL. |
VITE_USE_MOCKS |
Local mock toggle; keep false for real API. |
VITE_REVERB_APP_KEY |
Reverb/Pusher app key. |
VITE_REVERB_HOST |
Reverb host. |
VITE_REVERB_PORT |
Reverb port (443). |
VITE_REVERB_SCHEME |
Reverb scheme (https). |
Core pages¶
Overview, Trips, Live, D2D, Extra cars, Reviews, Analysis, and Settings. Auth uses phone + OTP; bearer token is sent to the API. API errors follow { "message": string, "errors"?: Record<string, string[]> }.
Build and deploy¶
- Install/dev:
npm install,npm run dev. - Build:
npm run build(typecheck + production build, outputdist/). - Lint/tests:
npm run lint,npm test(160 tests). - Deploy target:
public_html/dashboard.
Rules and references¶
- Company-scoped Manager data only;
company_idis server-derived, never trusted from client. - No passenger payment, wallet, top-up, or split-payment UI.
- Use canonical terminology: Driver, Passenger, Manager, Company, Fleet Dashboard, Front Views, Platform Admin.
See Fleet Dashboard spec, API conventions, and Container docs index.