How kusitms-byarrival/byarrival_fe works
This is an Expo mobile app for a commuter-oriented news and engagement experience. The apparent core journey is to set up a commuter profile, build and start a daily news route, read its stops, and complete the ride; the repository also exposes quizzes, saved-article browsing, smalltalk, trending content, notifications, and personal statistics. Source excerpts show API, session, and ride-stop behavior, but not most screen-to-hook wiring, so those broader workflow links are marked unverified rather than asserted as source-proven.
Main entry points: _layout.tsx Route shell · stop.tsx News stop · api-client.ts API client · home.tsx Home feed
Components 25
App and onboarding
- Route shell
src/app/_layout.tsx - Sign-in
src/screens/auth/sign-in.tsx - Profile setup
src/screens/onboarding
News and discovery
- Home feed
src/screens/home/home.tsx - Trending news
src/screens/trending/trending.tsx - Saved archive
src/screens/archive/archive.tsx - Smalltalk
src/screens/smalltalk/smalltalk.tsx - Daily quiz
src/screens/quiz/quiz.tsx - Quiz results
src/screens/quiz/result.tsx
Daily ride
- Route selection
src/screens/ride/select.tsx - Ride condition
src/screens/ride/condition.tsx - Boarding pass
src/screens/ride/boarding-pass.tsx - News stop
src/screens/ride/stop.tsx - Stop article
src/screens/ride/_components/stop-article.tsx - Ride completion
src/screens/ride/arrival.tsx
Profile and engagement
- Profile settings
src/screens/profile/profile.tsx - Notifications
src/screens/notifications/notifications.tsx - Commute stats
src/screens/my/my.tsx
App services
- API client
src/lib/api-client.ts - Session store
src/stores/auth-store.ts - Query manager
src/lib/query-client.ts - Ride API
src/apis/ride-service.ts - Analytics
src/lib/analytics.ts
Other components
- Commuter
- Application backend
Connections 30
- Commuter → Route shell: opens app
src/app/_layout.tsx - Route shell → Sign-in: routes by session
src/app/_layout.tsx - Route shell → Profile setup: routes by session
src/app/_layout.tsx - Route shell → Home feed: routes when ready
src/app/_layout.tsx - Commuter → Profile setup: sets preferences
- Commuter → Home feed: browses feed
- Home feed → Route selection: starts daily route
- Commuter → Trending news: explores news
- Commuter → Saved archive: opens saved stories
- Commuter → Smalltalk: opens smalltalk
- Commuter → Daily quiz: takes quiz
- Daily quiz → Quiz results: shows result
- Route selection → Ride condition: sets condition
- Ride condition → Boarding pass: prepares route
- Boarding pass → News stop: begins ride
- News stop → Stop article: renders article
src/screens/ride/stop.tsx - News stop → Ride completion: finishes route
- News stop → API client: requests stop data
- News stop → Ride API: reads stop
- API client → Application backend: sends HTTP requests
src/lib/api-client.ts - API client → Session store: reads session tokens
src/lib/api-client.ts - API client → Session store: refreshes tokens
src/lib/api-client.ts - Ride API → API client: calls endpoints
src/apis/ride-service.ts - Commuter → Profile settings: edits profile
- Commuter → Notifications: views alerts
- Commuter → Commute stats: reviews progress
- Route shell → Query manager: provides queries
src/app/_layout.tsx - Query manager → Analytics: tracks errors
src/lib/query-client.ts - Route shell → Analytics: tracks screens
src/app/_layout.tsx - Session store → Query manager: clears cache
src/stores/auth-store.ts