How aew261/css37w1-project-marvel-dev-ops works
ResHub is a student off-campus residence discovery and review application. Students authenticate, search or browse residences, inspect residence details and images, and submit structured reviews; administrators manage residence uploads, listings, and administrator access. The graph includes the documented dashboard and helpful-review capabilities where represented by available modules. Source excerpts show routing, review submission, and API endpoint definitions; several component interactions are supported only by the SOURCE INDEX, so unsampled behavior is not inferred.
Main entry points: App.jsx Route map · app_api.js Residence API · Residence_Info.jsx Residence details · auth_api.js Auth API
Components 26
Application shell
- App entry
web_app/res_hub/src/main.jsx - Route map
web_app/res_hub/src/App.jsx - Site layout
web_app/res_hub/components/layout/Layout.jsx
Identity and access
- Auth provider
web_app/res_hub/authentication/AuthProvider.jsx - Protected route
web_app/res_hub/authentication/ProtectedRoute.jsx - Account access
web_app/res_hub/components/pages/Login.jsx - Student signup
web_app/res_hub/components/pages/Signup.jsx
Student residence journey
- Residence browsing
web_app/res_hub/components/pages/Home.jsx - Residence search
web_app/res_hub/components/pages/Search.jsx - Residence card
web_app/res_hub/components/common/ResidenceCard.jsx - Residence details
web_app/res_hub/components/pages/Residence_Info.jsx - Residence images
web_app/res_hub/composites/components/ResImages.jsx - Image viewer
web_app/res_hub/components/modal/ImagesOverlay.jsx - Review submission
web_app/res_hub/components/pages/ResidenceReview.jsx
Administration
- Admin dashboard
web_app/res_hub/components/admin/AdminDashboard.jsx - Admin listing data
web_app/res_hub/components/admin/adminData.js - Admin search
web_app/res_hub/components/admin/AdminSearch.jsx - Residence upload
web_app/res_hub/components/admin/UploadResidence.jsx - Add administrator
web_app/res_hub/components/admin/AddAdmin.jsx
Data and state
- Auth API
web_app/res_hub/api/auth_api.js - Review state
web_app/res_hub/redux/reviews.js - Residence API
web_app/res_hub/api/app_api.js - Supabase client
web_app/res_hub/lib/supabase.js - Supabase services
Other components
- Student
- Administrator
Connections 37
- Student → App entry: opens app
web_app/res_hub/src/main.jsx - Administrator → App entry: opens app
web_app/res_hub/src/main.jsx - App entry → Route map: renders
web_app/res_hub/src/main.jsx - Route map → Auth provider: uses auth
web_app/res_hub/src/App.jsx - Route map → Protected route: guards pages
web_app/res_hub/src/App.jsx - Route map → Site layout: routes through
web_app/res_hub/src/App.jsx - Route map → Account access: routes to
web_app/res_hub/src/App.jsx - Route map → Student signup: routes to
web_app/res_hub/src/App.jsx - Route map → Residence browsing: redirects to
- Route map → Residence search: routes to
web_app/res_hub/src/App.jsx - Route map → Residence details: routes to
web_app/res_hub/src/App.jsx - Route map → Review submission: routes to
web_app/res_hub/src/App.jsx - Route map → Admin dashboard: routes to
web_app/res_hub/src/App.jsx - Route map → Residence upload: routes to
web_app/res_hub/src/App.jsx - Route map → Add administrator: routes to
web_app/res_hub/src/App.jsx - Auth provider → Supabase client: loads session
web_app/res_hub/authentication/AuthProvider.jsx - Account access → Auth API: authenticates
web_app/res_hub/components/pages/Login.jsx - Student signup → Auth API: registers
web_app/res_hub/components/pages/Signup.jsx - Auth API → Supabase client: gets auth token
web_app/res_hub/api/auth_api.js - Auth API → Supabase services: sends auth requests
web_app/res_hub/api/auth_api.js - Residence browsing → Residence API: fetches listings
web_app/res_hub/components/pages/Home.jsx - Residence browsing → Residence card: renders
web_app/res_hub/components/pages/Home.jsx - Residence search → Residence API: requests suggestions
web_app/res_hub/components/pages/Search.jsx - Residence search → Residence card: renders
web_app/res_hub/components/pages/Search.jsx - Residence details → Residence API: fetches details
web_app/res_hub/components/pages/Residence_Info.jsx - Residence details → Review state: uses review state
web_app/res_hub/components/pages/Residence_Info.jsx - Residence details → Residence images: renders
web_app/res_hub/components/pages/Residence_Info.jsx - Residence details → Image viewer: opens viewer
web_app/res_hub/components/pages/Residence_Info.jsx - Review submission → Residence API: submits review
web_app/res_hub/components/pages/ResidenceReview.jsx - Admin dashboard → Residence API: fetches statistics
web_app/res_hub/components/admin/AdminDashboard.jsx - Admin dashboard → Admin listing data: uses listing data
web_app/res_hub/components/admin/AdminDashboard.jsx - Admin search → Admin listing data: searches data
web_app/res_hub/components/admin/AdminSearch.jsx - Residence upload → Residence API: uploads residence
web_app/res_hub/components/admin/UploadResidence.jsx - Add administrator → Residence API: adds administrator
web_app/res_hub/components/admin/AddAdmin.jsx - Residence API → Supabase client: gets auth token
web_app/res_hub/api/app_api.js - Residence API → Supabase services: calls functions
web_app/res_hub/api/app_api.js - Image viewer → Review state: uses modal state