How strikec71/movie-gallery works
React Movie Gallery is a film-discovery and personal catalog SPA. Users browse and filter the Kinopoisk catalog, inspect films, and manage favorites and watched lists; signed-in users’ lists are stored in Supabase. Admins can add or edit custom films, and the movie-page experience also offers an AI recommendation assistant. The graph shows documented capabilities and relationships evidenced by excerpts, the source index, or the README; unsampled implementation details and undocumented connections are omitted.
Main entry points: MovieContext.jsx Movie data and actions · App.jsx App routing · MoviesPage.jsx Movie discovery · AuthContext.jsx Authentication state
Components 28
Application experience
- App routing
src/App.jsx - Home page
src/pages/HomePage.jsx - Movie discovery
src/pages/MoviesPage.jsx - Favorites page
src/pages/FavoritesPage.jsx - Watched page
src/pages/WatchedPage.jsx - User profile
src/pages/ProfilePage.jsx - Custom movie form
src/pages/AddMoviePage.jsx
Catalog and discovery
- Movie data and actions
src/context/MovieContext.jsx - Filter controls
src/components/FilterBar.jsx - Genre mapping
src/constants/movieGenres.js - Movie card
src/components/MovieCard.jsx - Movie list
src/components/MovieList.jsx - Movie details
src/components/Modal.jsx - Movie roulette
src/components/RouletteModal.jsx - AI assistant
src/components/AiAssistant.jsx - AI request service
src/api/aiService.js
User collections and access
- Authentication state
src/context/AuthContext.jsx - Sign-in dialog
src/components/AuthModal.jsx - Access guard
src/hoc/withAuth.jsx
External services
- Supabase client
src/api/supabase.js - Supabase backend
- Kinopoisk API client
src/api/kinopoisk.js - Kinopoisk API
- Groq API
Shared application state
- Theme state
src/context/ThemeContext.jsx - Notifications
src/context/NotificationContext.jsx - Provider setup
src/main.jsx
Other components
- Moviegoer
Connections 41
- Moviegoer → App routing: uses
README.md - Provider setup → App routing: renders
src/main.jsx - Provider setup → Movie data and actions: provides state
src/main.jsx - Provider setup → Authentication state: provides state
src/main.jsx - Provider setup → Theme state: provides state
src/main.jsx - Provider setup → Notifications: provides state
src/main.jsx - App routing → Home page: routes to
src/App.jsx - App routing → Movie discovery: routes to
src/App.jsx - App routing → Favorites page: routes to
src/App.jsx - App routing → Watched page: routes to
src/App.jsx - App routing → User profile: routes to
src/App.jsx - App routing → Custom movie form: routes to
src/App.jsx - Movie discovery → Movie data and actions: reads state
src/pages/MoviesPage.jsx - Movie discovery → Filter controls: renders
src/pages/MoviesPage.jsx - Movie discovery → AI assistant: renders
src/pages/MoviesPage.jsx - Favorites page → Movie data and actions: reads state
src/pages/FavoritesPage.jsx - Favorites page → Filter controls: renders
src/pages/FavoritesPage.jsx - Watched page → Movie data and actions: reads state
src/pages/WatchedPage.jsx - User profile → Movie data and actions: reads state
src/pages/ProfilePage.jsx - User profile → Authentication state: checks access
src/pages/ProfilePage.jsx - Custom movie form → Movie data and actions: refreshes custom films
src/pages/AddMoviePage.jsx - Custom movie form → Supabase client: writes film
src/pages/AddMoviePage.jsx - Custom movie form → Authentication state: checks admin
src/pages/AddMoviePage.jsx - Movie data and actions → Kinopoisk API client: requests catalog
src/context/MovieContext.jsx - Kinopoisk API client → Kinopoisk API: fetches films
README.md - Movie data and actions → Supabase client: syncs collections
src/context/MovieContext.jsx - Authentication state → Supabase client: authenticates
src/context/AuthContext.jsx - Supabase client → Supabase backend: connects
README.md - Movie data and actions → Notifications: reports errors
src/context/MovieContext.jsx - Movie data and actions → Genre mapping: maps catalog genres
- Filter controls → Movie data and actions: updates filters
src/components/FilterBar.jsx - Filter controls → Movie roulette: opens
src/components/FilterBar.jsx - Movie discovery → Movie list: renders
src/pages/MoviesPage.jsx - Movie list → Movie card: renders
src/components/MovieList.jsx - Movie card → Movie data and actions: toggles lists
src/components/MovieCard.jsx - Movie discovery → Movie details: renders details
src/pages/MoviesPage.jsx - Movie details → Movie data and actions: requests trailer and actions
src/components/Modal.jsx - AI assistant → AI request service: sends prompts
src/components/AiAssistant.jsx - AI request service → Groq API: requests completion
src/api/aiService.js - Sign-in dialog → Authentication state: signs in
src/components/AuthModal.jsx - Access guard → Authentication state: checks access
src/hoc/withAuth.jsx