Commit Graph
13 Commits
Author SHA1 Message Date
KrikoriosandClaude Opus 5 59e336c23d Fix home map and location, add service selector
The Android map never drew because mapType was "mutedStandard", an Apple
Maps value. Android's MapManager looks the name up in a fixed table and
unboxes the result into an int, so an unrecognised value threw a
NullPointerException in the native view manager before any tile
rendered. Android now gets "standard" plus a customMapStyle that mutes
POI and transit labels, since showsPointsOfInterest is iOS-only too.

Location hung indefinitely: getCurrentPositionAsync was called with no
accuracy and no timeout, so it waited for a GPS fix that never arrives
indoors or on an emulator with no mock location. useUserLocation now
takes a cached fix first for an immediate render, caps the precise
reading at 15 seconds, and checks device location services separately
from app permission. Reverse geocoding moved off the critical path so a
failed lookup costs the address label rather than the coordinates. The
single boolean became five states, each with its own notice and either a
retry or a settings shortcut, since retrying a hard denial does nothing.

Map also no longer deletes itself when the driver fetch fails or the
location is still pending: drivers are an overlay, and calculateRegion
already falls back to Beirut.

Adds a four-tile service selector above Recent Rides - Car, Moto,
Courier, My Car - with the choice held in useServiceStore for the
booking flow to read. English only for now; the intended Arabic names
are recorded in constants/services.ts for the language pass. Selection
styling matches the role picker on sign-up so the two read as one
control.

app.config.js layers the Google Maps key and expo-location permission
strings onto app.json. No effect under Expo Go, which ignores native
config, but required for the first EAS build.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-23 23:34:04 +03:00
Krikorios a0b297285a Add self-hosted auth, admin API, and owner web dashboard
- Replace Clerk with self-hosted JWT auth (register/login/verify, bcrypt
  passwords, Gmail OTP with console fallback)
- Add lib/db.ts pg pool + transaction helpers; seed script migrates legacy
  Clerk-era schema (drop clerk_id, enforce UUID ids and unique email)
- Add owner-gated admin API: stats, users, drivers CRUD, rides
- Add dashboard/ Vite React owner dashboard (login, overview, users,
  fleet, rides) with dev-server proxy to avoid Expo CORS middleware
- Add scripts/set-owner.mjs for role management
2026-08-23 16:38:41 +03:00
Krikorios fbe92c9d16 Add rider/driver role selection after sign-up
- users.role column (+ migration in seed script)
- /(api)/user: GET role by clerkId, PATCH to set role
- Role selection screen; drivers get placeholder driver-home
- Root index routes by role; hardened location handling on home
2026-08-22 16:13:59 +03:00
Sanidhya Kumar Verma 7894ff18aa source code link added 2024-09-04 12:58:27 +00:00
Sanidhya Kumar Verma 2a0e9a79dc completed final todo 2024-09-04 12:32:35 +00:00
Sanidhya Kumar Verma efe9b523a2 rides fixed 2024-09-04 11:14:56 +00:00
Sanidhya Kumar Verma bf66181b70 removed console.log 2024-08-30 15:21:39 +00:00
Sanidhya Kumar Verma fba9c66389 google text input created 2024-08-30 15:19:58 +00:00
Sanidhya Kumar Verma dcb9ff3bee current location map ui implemented 2024-08-30 13:28:30 +00:00
Sanidhya Kumar Verma b313417609 home page initial ui implemented 2024-08-30 12:18:27 +00:00
Sanidhya Kumar Verma 76223faa19 imports reorder 2024-08-30 05:59:42 +00:00
Sanidhya Kumar Verma a5cabfe1a1 clerk sign in and sign up login setup 2024-08-29 16:08:12 +00:00
Sanidhya Kumar Verma 77030fd4c2 basic layout created and welcome onboarding screen implemented 2024-08-29 08:29:58 +00:00