How roitolin/lifecyle works
LifeCycle is a funeral-service coordination product for families, funeral shops, and administrators, delivered as mobile and web apps backed by Supabase. The user workflow covers sign-in, shop and product discovery, cart/checkout, service-request submission and tracking; separate branches support shop operations and administration. The graph also shows authentication, scheduling, and payment layers where source excerpts expose their links. README statements support broad capability branches; unsampled implementation details and relationships are left at subsystem level.
Main entry points: src/App.tsx Web app routes · navigation Mobile navigation · App.tsx Mobile app · AuthContext.tsx Authentication context
Components 27
App entry
- Mobile app
App.tsx - Mobile navigation
src/navigation - App providers
src/providers - Web app routes
LIFECYCLE_WEB/src/App.tsx
Family services
- Shop and product discovery
LIFECYCLE_WEB/src/pages - Cart and checkout
LIFECYCLE_WEB/src/pages/CartPage.tsx - Family service requests
LIFECYCLE_WEB/src/pages/MyServiceRequestsPage.tsx - Funeral browsing
src/screens/funeral - Request tracking
src/screens/funeral/FuneralMyServiceRequestsScreen.tsx - Request details
src/screens/funeral/FuneralServiceRequestDetailsScreen.tsx - Schedule fields
src/components/ServiceRequestScheduleFields.tsx - Schedule rules
src/utils/serviceRequestSchedule.ts
Shop operations
- Shop management
src/screens/funeral - Seller centre
LIFECYCLE_WEB/src/pages/SellerCentrePage.tsx
Administration
- Admin tools
src/screens/admin - Web administration
LIFECYCLE_WEB/src/pages/admin
Identity and platform
- Authentication context
src/context/AuthContext.tsx - Supabase client
src/services/supabaseClient.ts - User profiles
src/services/userProfile.ts - Push notifications
src/services/pushNotifications.ts - Service payment sheet
src/components/ServiceXenditSheet.tsx - Service checkout service
src/services/serviceXendit.ts - Media storage
src/services/supabaseStorage.ts - Supabase backend
Other components
- Families
- Funeral shops
- Administrators
Connections 27
- Families → Mobile app: use
- Funeral shops → Mobile app: use
- Administrators → Mobile app: use
- Families → Web app routes: use
- Funeral shops → Web app routes: use
- Administrators → Web app routes: use
- Mobile app → Mobile navigation: loads
App.tsx - Mobile app → App providers: loads
App.tsx - Web app routes → Shop and product discovery: routes to
LIFECYCLE_WEB/src/App.tsx - Web app routes → Cart and checkout: routes to
LIFECYCLE_WEB/src/App.tsx - Web app routes → Family service requests: routes to
LIFECYCLE_WEB/src/App.tsx - Web app routes → Seller centre: routes to
LIFECYCLE_WEB/src/App.tsx - Web app routes → Web administration: routes to
LIFECYCLE_WEB/src/App.tsx - Mobile navigation → Funeral browsing: routes to
- Mobile navigation → Request tracking: routes to
- Mobile navigation → Shop management: routes to
- Mobile navigation → Admin tools: routes to
- Request tracking → Schedule fields: renders
src/screens/funeral/FuneralMyServiceRequestsScreen.tsx - Request details → Schedule fields: renders
src/screens/funeral/FuneralServiceRequestDetailsScreen.tsx - Schedule fields → Schedule rules: serializes dates
src/components/ServiceRequestScheduleFields.tsx - Authentication context → Supabase client: authenticates with
src/context/AuthContext.tsx - Authentication context → User profiles: loads profile
src/context/AuthContext.tsx - Authentication context → Push notifications: updates token
src/context/AuthContext.tsx - Service payment sheet → Service checkout service: starts checkout
src/components/ServiceXenditSheet.tsx - Service checkout service → Supabase client: uses
src/services/serviceXendit.ts - Media storage → Supabase backend: uploads media
src/services/supabaseStorage.ts - Supabase client → Supabase backend: connects