How ranielletuazon/tribo-connect works
TriboConnect is an Expo mobile app for community communication and safety. Users enter through authentication and profile setup, then use the home hub to access community announcements, a social feed, messaging, emergency contacts, incident reporting, identity verification, and Tribobot. Firebase provides authentication and Firestore-backed profile and community data; callable Cloud Functions handle reports and verification/OTP operations. The map reflects the sampled screens and explicit function exports; several feature screens and service implementations were not sampled, so their internal wiring is left unspecified.
Main entry points: index.tsx Home hub · index.ts Cloud Functions exports · login.tsx Sign in / register · auth-provider.tsx Auth and profile state
Components 24
Access and identity
- Welcome
src/app/index.tsx - Sign in / register
src/app/(auth)/login.tsx - OTP verification
src/app/(auth)/otp-verify.tsx - Account setup
src/app/(auth)/account-setup.tsx - Auth and profile state
src/providers/auth-provider.tsx
Community space
- Home hub
src/app/(tabs)/index.tsx - Community feed
src/app/(tabs)/feed/index.tsx - Post operations
src/lib/posts.ts - Announcements
src/app/(tabs)/community/index.tsx - Announcement mapping
src/lib/announcements.ts
Safety services
- Emergency contacts
src/app/(tabs)/emergency/index.tsx - Incident report
src/app/(tabs)/report/index.tsx - Identity verification
src/app/(tabs)/profile/verify.tsx - Verification client
src/lib/verification.ts
Communication
- Conversations
src/app/(tabs)/chat/index.tsx - Conversation view
src/app/(tabs)/chat/[conversationId].tsx - Tribobot
src/app/(tabs)/tribobot/index.tsx
Backend services
- Firebase configuration
src/lib/firebase.ts - Firestore
- Cloud Functions exports
functions/src/index.ts - OTP functions
functions/src/otp.ts - Report function
functions/src/report.ts - Verification functions
functions/src/verification.ts
Other components
- Community member
Connections 29
- Community member → Welcome: opens app
- Welcome → Sign in / register: starts sign-in
- Sign in / register → Auth and profile state: signs in
- Sign in / register → OTP verification: continues registration
- OTP verification → Cloud Functions exports: requests or verifies OTP
- Cloud Functions exports → OTP functions: exports
- Auth and profile state → Firebase configuration: uses authentication
- Auth and profile state → Firestore: watches profile
- Sign in / register → Account setup: sets up account
- Community member → Home hub: uses services
- Home hub → Community feed: opens feed
- Community feed → Firestore: reads and updates posts
- Community feed → Post operations: maps post data
- Home hub → Announcements: opens announcements
- Announcements → Firestore: reads announcements
- Announcements → Announcement mapping: maps announcement data
- Home hub → Emergency contacts: opens contacts
- Home hub → Incident report: opens reporting
- Incident report → Cloud Functions exports: submits report
- Cloud Functions exports → Report function: exports
- Home hub → Identity verification: opens verification
- Identity verification → Verification client: uses verification operations
- Verification client → Cloud Functions exports: calls verification functions
- Cloud Functions exports → Verification functions: exports
- Home hub → Conversations: opens messaging
- Conversations → Firestore: reads conversations and users
- Conversations → Conversation view: opens conversation
- Home hub → Tribobot: opens assistant
- Firebase configuration → Firestore: configures client access