How djmirontos/unmconfession works
This repository combines a mobile community app for posts, lost-and-found and marketplace listings, chat, profiles, and moderation; a staff administration panel; a public information site; and a Supabase storage-cleanup function. The main member journey is account access, browsing or creating community content, interacting with other members, and handling moderation or notifications. Most product routes are represented by the tree rather than inspected source, so their connections are shown as unverified; the auth bootstrap, held-item review call, and cleanup function have direct source evidence.
Main entry points: index.ts Cleanup worker · useAuthBootstrap.ts Session bootstrap · sessionStorage.ts Encrypted sessions · supabase.ts Supabase client
Components 32
Member app
- Account access
mobile/app/(auth)/sign-in.tsx - Community feed
mobile/app/(tabs)/index.tsx - Content creation
mobile/app/(tabs)/create.tsx - Marketplace
mobile/app/(tabs)/market.tsx - Member chat
mobile/app/chat/[id].tsx - Profiles and settings
mobile/app/(tabs)/profile.tsx - Member moderation
mobile/app/moderation/index.tsx - Held-item review
mobile/hooks/useReviewHeld.ts - Notifications
mobile/app/notifications.tsx - Session bootstrap
mobile/hooks/useAuthBootstrap.ts - Encrypted sessions
mobile/lib/sessionStorage.ts - Query persistence
mobile/lib/queryClient.ts - Supabase client
mobile/lib/supabase.ts
Staff administration
- Staff sign-in
admin/app/(auth)/login/page.tsx - Content operations
admin/app/(panel)/content/page.tsx - Review queues
admin/app/(panel)/review/[type]/[id]/page.tsx - User reports
admin/app/(panel)/reports/page.tsx - User management
admin/app/(panel)/users/[id]/page.tsx - Keyword controls
admin/app/(panel)/keywords/page.tsx - Announcements
admin/app/(panel)/announcements/page.tsx - Audit and logs
admin/app/(panel)/audit/page.tsx
Public information
- Public information
site/app/page.tsx - Legal and safety pages
site/content/legal.ts
Storage maintenance
- Cleanup worker
supabase/functions/storage-cleanup/index.ts - Cleanup rules
supabase/functions/storage-cleanup/logic.ts
Other components
- Member
- Supabase services
- Object storage
- Device storage
- Staff member
- Site visitor
- Scheduled trigger
Connections 23
- Member → Account access: signs in
- Member → Community feed: browses
- Member → Content creation: creates content
- Member → Marketplace: browses listings
- Member → Member chat: starts chat
- Member → Profiles and settings: manages profile
- Member → Member moderation: views moderation
- Member → Notifications: checks alerts
- Session bootstrap → Supabase client: restores session
mobile/hooks/useAuthBootstrap.ts - Session bootstrap → Encrypted sessions: reads fallback
mobile/hooks/useAuthBootstrap.ts - Session bootstrap → Supabase services: observes auth
mobile/hooks/useAuthBootstrap.ts - Encrypted sessions → Device storage: stores ciphertext
mobile/lib/sessionStorage.ts - Encrypted sessions → Supabase client: provides auth storage
- Query persistence → Device storage: persists queries
mobile/lib/queryClient.ts - Held-item review → Supabase client: calls review RPC
mobile/hooks/useReviewHeld.ts - Held-item review → Supabase services: submits decision
mobile/hooks/useReviewHeld.ts - Staff member → Staff sign-in: signs in
- Site visitor → Public information: visits
- Scheduled trigger → Cleanup worker: invokes nightly
supabase/functions/storage-cleanup/index.ts - Cleanup worker → Cleanup rules: uses rules
supabase/functions/storage-cleanup/index.ts - Cleanup worker → Supabase services: claims cleanup batches
supabase/functions/storage-cleanup/index.ts - Cleanup worker → Object storage: removes files
supabase/functions/storage-cleanup/index.ts - Review queues → Supabase services: manages review