How boudihamed/urconnection works
UrConnection is a social platform for discovering and creating interest-based groups, with authenticated profiles and avatar management. The main user journey is browsing and filtering groups, opening a group, or signing in to create one; signed-in users can also edit their profile and manage their avatar. The graph captures documented profile, storage, and server-state capabilities. Some group hooks and UI internals were not excerpted, so their links rely on SOURCE INDEX references rather than inspected implementations.
Main entry points: App.jsx Router and guards · ProfilePage.jsx Profile management · GroupList.jsx Group list · auth.service.js Auth service
Components 26
Application shell
- Router and guards
src/App.jsx - Main layout
src/GenealComponents/MainLayout.jsx - Query cache
src/lib/queryClient.js
Group discovery
- Group list
src/features/groups/components/GroupList.jsx - Filter controls
src/features/groups/components/FilterBar.jsx - Filter cache
src/features/groups/hooks/useFilterCache.js - Location detection
src/features/groups/hooks/useUserLocation.js - Group card
src/features/groups/components/GroupCard.jsx - Group detail
src/features/groups/components/GroupDetail.jsx - Create group form
src/features/groups/components/CreateGroupForm.jsx - Group data hooks
src/features/groups/hooks - Groups API
src/features/groups/api/groupsApi.js
Identity and profiles
- Sign-in and signup
src/features/auth/components/AuthPage.jsx - Session state
src/features/auth/hooks/useUser.js - Auth service
src/services/auth.service.js - Profile management
src/features/profile/components/ProfilePage.jsx - Profile updates
src/features/profile/hooks/useUpdateProfile.js - Avatar interface
src/features/profile/components/ProfileAvatar.jsx - Avatar operations
src/features/profile/hooks/useAvatar.js
Backend services
- Image compression and storage
src/services/storage.service.js - Country and city data
src/lib/countries.js - Platform definitions
src/lib/platforms.js - Supabase client
src/lib/supabase.js
Other components
- Visitor
- Supabase Auth, Storage, PostgreSQL
- IP geolocation API
Connections 42
- Visitor → Router and guards: opens app
src/App.jsx - Router and guards → Main layout: routes through
src/App.jsx - Router and guards → Group list: routes to
src/App.jsx - Router and guards → Group detail: routes to
src/App.jsx - Router and guards → Create group form: guards route
src/App.jsx - Router and guards → Profile management: guards route
src/App.jsx - Router and guards → Sign-in and signup: routes to
src/App.jsx - Router and guards → Query cache: reads cache
src/App.jsx - Group list → Group data hooks: loads groups
src/features/groups/components/GroupList.jsx - Group list → Filter controls: renders
src/features/groups/components/GroupList.jsx - Group list → Group card: renders
src/features/groups/components/GroupList.jsx - Group list → Location detection: detects location
src/features/groups/components/GroupList.jsx - Group list → Filter cache: restores filters
src/features/groups/components/GroupList.jsx - Filter controls → Country and city data: uses locations
src/features/groups/components/FilterBar.jsx - Filter controls → Platform definitions: uses options
src/features/groups/components/FilterBar.jsx - Location detection → Country and city data: matches names
src/features/groups/hooks/useUserLocation.js - Location detection → IP geolocation API: fetches location
src/features/groups/hooks/useUserLocation.js - Create group form → Group data hooks: creates group
src/features/groups/components/CreateGroupForm.jsx - Create group form → Country and city data: uses locations
src/features/groups/components/CreateGroupForm.jsx - Create group form → Platform definitions: uses options
src/features/groups/components/CreateGroupForm.jsx - Group card → Platform definitions: uses options
src/features/groups/components/GroupCard.jsx - Group detail → Platform definitions: uses options
src/features/groups/components/GroupDetail.jsx - Group data hooks → Groups API: calls data API
src/features/groups/hooks/useCreateGroup.js - Groups API → Supabase client: queries client
src/features/groups/api/groupsApi.js - Group data hooks → Query cache: uses server cache
- Sign-in and signup → Auth service: performs auth
src/features/auth/components/AuthPage.jsx - Session state → Auth service: loads session
src/features/auth/hooks/useUser.js - Main layout → Session state: reads user state
src/GenealComponents/MainLayout.jsx - Profile management → Session state: reads session
src/features/profile/components/ProfilePage.jsx - Profile management → Group data hooks: loads user groups
src/features/profile/components/ProfilePage.jsx - Profile management → Profile updates: updates profile
src/features/profile/components/ProfilePage.jsx - Profile management → Auth service: signs out
src/features/profile/components/ProfilePage.jsx - Profile management → Avatar interface: renders
src/features/profile/components/ProfilePage.jsx - Profile management → Group card: renders groups
src/features/profile/components/ProfilePage.jsx - Avatar interface → Avatar operations: manages avatar
src/features/profile/components/ProfileAvatar.jsx - Avatar operations → Image compression and storage: calls storage
src/features/profile/hooks/useAvatar.js - Profile updates → Auth service: updates metadata
src/features/profile/hooks/useUpdateProfile.js - Auth service → Supabase client: uses client
src/services/auth.service.js - Image compression and storage → Supabase client: uploads and updates
src/services/storage.service.js - Supabase client → Supabase Auth, Storage, PostgreSQL: connects to
src/lib/supabase.js - Auth service → Filter cache: clears on signout
src/services/auth.service.js - Profile management → Country and city data: uses locations
src/features/profile/components/ProfilePage.jsx