How sakshamjain4999-web/bridge-cursor works
TransportAI is a transport-operations dashboard: users sign in, review business metrics, and manage trips, fleet, drivers, parties, expenses, and invoices. The main workflow is dashboard pages reading operational records from Supabase and presenting them for review or editing; browser forms also support record creation and updates. Trip detail covers trip actions, expenses, and payments, while invoices include PDF generation and download. These connections are based on sampled excerpts and SOURCE INDEX references; several page and component implementations were not sampled, so uncertain interactions are omitted.
Main entry points: server.ts Server data client · fleet/page.tsx Fleet management · trips/page.tsx Trip list · parties/page.tsx Party directory
Components 22
Access and shell
- Sign in / signup
src/app/(auth)/signup/page.tsx - Business overview
src/app/(dashboard)/page.tsx - Dashboard navigation
src/components/layout/Sidebar.tsx
Fleet operations
- Trip list
src/app/(dashboard)/trips/page.tsx - Trip detail
src/app/(dashboard)/trips/[id]/page.tsx - Trip actions
src/app/(dashboard)/trips/[id]/TripActions.tsx - Trip entry
src/app/(dashboard)/trips/AddTripButton.tsx - Driver management
src/app/(dashboard)/drivers/page.tsx - Driver editing
src/app/(dashboard)/drivers/[id]/EditDriverForm.tsx - Fleet management
src/app/(dashboard)/fleet/page.tsx - Vehicle editing
src/app/(dashboard)/fleet/[id]/EditVehicleForm.tsx - Expiry warnings
src/app/(dashboard)/fleet/ExpiryBanner.tsx
Finance and billing
- Party directory
src/app/(dashboard)/parties/page.tsx - Party ledger
src/app/(dashboard)/parties/[id]/PartyTabs.tsx - Expense tracking
src/app/(dashboard)/expenses/page.tsx - Invoice management
src/app/(dashboard)/invoices/page.tsx - Invoice PDF
src/app/(dashboard)/invoices/buildInvoicePDF.ts
Data and services
- Server data client
src/lib/supabase/server.ts - Browser data client
src/lib/supabase/client.ts - Supabase
- Request diagnostics
src/lib/performance-diagnostics.ts
Other components
- Transport operator
Connections 29
- Transport operator → Sign in / signup: signs in
src/app/(auth)/signup/page.tsx - Transport operator → Business overview: views operations
src/app/(dashboard)/page.tsx - Business overview → Server data client: creates client
src/app/(dashboard)/page.tsx - Business overview → Supabase: reads trips
src/app/(dashboard)/page.tsx - Dashboard navigation → Trip list: links to
- Trip list → Server data client: creates client
src/app/(dashboard)/trips/page.tsx - Trip list → Supabase: queries trips
src/app/(dashboard)/trips/page.tsx - Trip list → Trip entry: renders
src/app/(dashboard)/trips/page.tsx - Trip list → Trip detail: links to
- Trip detail → Trip actions: renders
src/app/(dashboard)/trips/[id]/page.tsx - Trip detail → Supabase: reads and writes
src/app/(dashboard)/trips/[id]/page.tsx - Driver management → Server data client: creates client
src/app/(dashboard)/drivers/page.tsx - Driver management → Driver editing: opens editor
- Driver editing → Browser data client: creates client
src/app/(dashboard)/drivers/[id]/EditDriverForm.tsx - Fleet management → Server data client: creates client
src/app/(dashboard)/fleet/page.tsx - Fleet management → Supabase: queries vehicles
src/app/(dashboard)/fleet/page.tsx - Fleet management → Expiry warnings: renders warnings
src/app/(dashboard)/fleet/page.tsx - Fleet management → Vehicle editing: opens editor
- Party directory → Server data client: creates client
src/app/(dashboard)/parties/page.tsx - Party directory → Supabase: queries parties
src/app/(dashboard)/parties/page.tsx - Party directory → Party ledger: links to ledger
src/app/(dashboard)/parties/page.tsx - Expense tracking → Server data client: creates client
src/app/(dashboard)/expenses/page.tsx - Expense tracking → Supabase: queries expenses
src/app/(dashboard)/expenses/page.tsx - Invoice management → Server data client: creates client
src/app/(dashboard)/invoices/page.tsx - Invoice management → Invoice PDF: generates PDF
- Sign in / signup → Browser data client: creates client
src/app/(auth)/signup/page.tsx - Browser data client → Supabase: auth and data access
- Server data client → Supabase: server data access
- Fleet management → Request diagnostics: logs timings
src/app/(dashboard)/fleet/page.tsx