How redfacesa/petangels works
Pet Angels SA is a social-commerce app for pet owners, shops, and shelters. Users enter through routed web pages, then discover community content, listings, animals, care, and shelter-map features; signed-in users can create content, message, and manage profiles. Purchases, donations, and related fees open RedFace Pay or Paystack, while a webhook records payment receipts in Supabase. The graph combines documented capabilities with sampled routing and data-layer evidence; several feature pages and their internal call paths were not sampled, so those links are not inferred.
Main entry points: App.tsx Routes and providers · redface-pay.ts Payment handling · db.ts Domain data access · ProfilePage.tsx Profiles
Components 25
App experience
- Routes and providers
src/App.tsx - App shell
src/components/AppShell.tsx - Sign-in and signup
src/pages/SignupPage.tsx - Content creation
src/pages/CreatePage.tsx
Community and rescue
- Home and discovery
src/pages/HomePage.tsx - Social discovery
src/pages/DiscoverPage.tsx - Profiles
src/pages/ProfilePage.tsx - Posts and journal
src/pages/PostPage.tsx - Inbox and messages
src/pages/MessagesPage.tsx - Rescue and adoption
src/pages/RescuePage.tsx - Animal listings
src/pages/AnimalPage.tsx
Commerce and care
- Marketplace
src/pages/MarketplacePage.tsx - Cart and checkout
src/pages/CartPage.tsx - Donations
src/pages/DonatePage.tsx - Care and shelter map
src/pages/CarePage.tsx
Platform services
- Catalog state
src/contexts/CatalogContext.tsx - Authentication state
src/contexts/AuthContext.tsx - Domain data access
src/lib/db.ts - Image storage access
src/lib/media.ts - Payment handling
src/lib/redface-pay.ts - Payment webhook
supabase/functions/pay-webhook/index.ts
Other components
- People
- Supabase
- RedFace Pay
- Paystack
Connections 35
- People → Routes and providers: opens
src/App.tsx - Routes and providers → Authentication state: provides auth
src/App.tsx - Routes and providers → Catalog state: provides catalog
src/App.tsx - Routes and providers → App shell: renders routes
src/App.tsx - Routes and providers → Sign-in and signup: routes to
src/App.tsx - Routes and providers → Home and discovery: routes to
src/App.tsx - Routes and providers → Social discovery: routes to
src/App.tsx - Routes and providers → Profiles: routes to
src/App.tsx - Routes and providers → Posts and journal: routes to
src/App.tsx - Routes and providers → Inbox and messages: routes to
src/App.tsx - Routes and providers → Rescue and adoption: routes to
src/App.tsx - Routes and providers → Animal listings: routes to
src/App.tsx - Routes and providers → Marketplace: routes to
src/App.tsx - Routes and providers → Cart and checkout: routes to
src/App.tsx - Routes and providers → Donations: routes to
src/App.tsx - Routes and providers → Care and shelter map: routes to
src/App.tsx - Routes and providers → Content creation: routes to
src/App.tsx - Catalog state → Authentication state: reads user
src/contexts/CatalogContext.tsx - Catalog state → Domain data access: loads catalog
src/contexts/CatalogContext.tsx - Authentication state → Supabase: authenticates
src/contexts/AuthContext.tsx - Domain data access → Supabase: reads and writes
README.md - Image storage access → Supabase: stores images
README.md - Social discovery → Domain data access: loads content
src/pages/DiscoverPage.tsx - Content creation → Domain data access: saves content
src/pages/CreatePage.tsx - Content creation → Image storage access: uploads images
src/pages/CreatePage.tsx - Profiles → Domain data access: loads profile data
src/pages/ProfilePage.tsx - Profiles → Image storage access: uploads avatar
src/pages/ProfilePage.tsx - Profiles → Payment handling: starts payments
src/pages/ProfilePage.tsx - Cart and checkout → Payment handling: starts checkout
- Donations → Payment handling: starts donations
- Payment handling → RedFace Pay: opens merchant checkout
README.md - Payment handling → Paystack: opens platform checkout
README.md - RedFace Pay → Payment webhook: sends payment event
README.md - Paystack → Payment webhook: sends payment event
README.md - Payment webhook → Supabase: records receipt
README.md