- Docs
- Specs
- Surfaces
- Passenger App
Passenger App¶
The Passenger App is the TyteRide mobile app for approved company Passengers. It supports joining a Company, booking trips, selecting optional D2D points, tracking live trips, and submitting reviews. Passengers pay nothing.
1. Responsibility and Audience¶
| Concern | Detail |
|---|---|
| Primary audience | Passenger role (approved company employee). |
| Primary responsibility | Enrollment, blocked-state handling, trip discovery/booking, D2D pickup/drop-off selection, live tracking, reviews, notifications. |
| Explicit exclusion | No payment, wallet, top-up, split payment, or payment-method UI. |
| Host policy | Pointer only on this host. apps/passenger is a gitlink and must not be initialized, fetched, or populated on this server. |
2. Stack and Repository Policy¶
- Stack: Expo React Native (architecture/build spec).
- Repo/path:
apps/passenger/·tyteride-passenger. - Parent repo status: Gitlink recorded in parent; development happens on the owner's machine.
- Bootstrap rule:
scripts/bootstrap.shinitializes onlyapi,web/front,web/dashboard; it sets app submodule update tonone.
flowchart LR
Passenger[Passenger] --> App[Passenger App]
App -->|Sanctum token| API[API /api]
App -->|Realtime| Reverb[Reverb]
API --> Company[Company-scoped data]
Note[Pointer only on this host]
3. Core Flows¶
3.1 Join and Blocked State¶
- Passenger enters Company code and gender, then waits.
- A
pendingrequest creates acompany_membersrow. - Until
approved(or if suspended), the app shows a blocked state and no trips. - Company suspension blocks the app with a clear message.
3.2 Trip List and Booking¶
- Passenger App lists trip groups: same route and departure time offered by several cars, linked by
trip_group_code. - Each car shows seats left; Passenger picks a car and books.
- No payment step. Bookings carry no charge.
reservation_deadline_atis nullable; when set, booking is rejected after deadline (see Reservation Deadline).
3.3 D2D Points¶
- If eligible (
companies.d2d_enabledand per-membercompany_members.d2d_enabled), Passenger can set pickup and/or drop-off point on a map. - Backend estimates detour and rejects point if it exceeds
d2d_max_detour_minutes. - Booking request accepts
pickup_type,d2d_pickup,d2d_dropoffper API conventions/build spec.
3.4 Live Tracking¶
- Passenger sees vehicle position now, the route it is taking, and ETA to the Passenger's pickup point.
- Uses trip live data/channel as defined by live-ops and API specs.
3.5 Reviews and Notifications¶
- After a completed trip, Passenger can rate 1–5 with a comment.
- Passenger receives notifications, including extra-car assignment notifications where applicable.
- Existing notification channels stay (build spec).
4. Localization and UX Rules¶
- Arabic and English everywhere, with RTL in apps; maps stay LTR.
i18next+react-i18next, persisted locale, language switch in settings (build spec localization target).- UI must use project terminology: Passenger, Driver, Manager, Company, Fleet Dashboard, Front Views, Platform Admin.
5. Open Questions¶
- Offline behavior: Source docs do not specify Passenger App offline capabilities; Driver App explicitly mentions offline sync, Passenger App does not.
- Notification catalog: Exact notification types, deep links, and in-app inbox behavior are not fully specified.
- Blocked-state UX details: Exact copy and available actions while pending/rejected/suspended need product/UI confirmation.
- Trip history/detail: The exact set of historical trip/booking views is not fully enumerated in build spec.