# wahbyabdelrahman770/final-project-itsharks architecture

> Architecture diagram of the GitHub repository wahbyabdelrahman770/final-project-itsharks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wahbyabdelrahman770/final-project-itsharks
- Repository: https://github.com/wahbyabdelrahman770/final-project-itsharks

## Overview

This is a React movie-and-series discovery frontend backed by The Movie Database (TMDB). Users browse a home page or paginated, genre-filtered movie and series collections, then explore title details, cast, recommendations, seasons, and media. The graph captures these documented product areas and the sampled context-provider/API layer; several pages and providers are represented from the source index, so their internal calls are not inferred where excerpts do not show them.

Main entry points: [`src/App.jsx`](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/App.jsx) (Route shell), [`src/contexts/Series/SeriesDetailsProvider.jsx`](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Series/SeriesDetailsProvider.jsx) (Series detail data), [`src/pages/home/Home.jsx`](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/home/Home.jsx) (Home page), [`src/pages/movies/Movies.jsx`](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/movies/Movies.jsx) (Movie browsing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_app["Route shell<br/>[App.jsx]"]
  node_nav["Navigation<br/>[Nav.jsx]"]
  node_theme["Theme state<br/>[ThemeProvider.jsx]"]
end

subgraph group_discovery["Discovery"]
  node_home["Home page<br/>[Home.jsx]"]
  node_home_data["Home data<br/>[HomeContext.jsx]"]
  node_home_features["Home features"]
  node_movie_list["Movie browsing<br/>[Movies.jsx]"]
  node_movie_data["Movie listings<br/>[MovieContext.jsx]"]
  node_series_list["Series browsing<br/>[Series.jsx]"]
  node_series_data["Series listings<br/>[SeriesContext.jsx]"]
end

subgraph group_catalog["Title catalog"]
  node_movie_details["Movie details"]
  node_movie_detail_data["Movie detail data"]
  node_series_details["Series details"]
  node_series_detail_data["Series detail data"]
  node_season["Season details<br/>[Season.jsx]"]
  node_season_data["Season data"]
  node_media["Media galleries"]
  node_actor["Actor details<br/>[ActorDetails.jsx]"]
  node_actor_data["Actor data<br/>[ActorContext.jsx]"]
end

subgraph group_shared["Shared UI and data"]
  node_cards["Title cards<br/>[MovieCard.jsx]"]
  node_series_card["Series cards<br/>[SeriesCard.jsx]"]
  node_genre_data["Genre mappings<br/>[genres.js]"]
  node_language_data["Language mappings<br/>[languages.js]"]
end

node_visitor(("Visitor"))
node_tmdb{{"TMDB API"}}

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_nav
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_movie_list
node_app -->|"routes to"| node_series_list
node_app -->|"routes to"| node_movie_details
node_app -->|"routes to"| node_series_details
node_app -.->|"provides"| node_theme
node_home -.->|"reads"| node_home_data
node_home_data -->|"fetches"| node_tmdb
node_home -.->|"renders"| node_home_features
node_movie_list -->|"reads"| node_movie_data
node_movie_data -->|"fetches"| node_tmdb
node_movie_data -->|"maps genres"| node_genre_data
node_movie_list -->|"renders"| node_cards
node_series_list -->|"reads"| node_series_data
node_series_data -->|"fetches"| node_tmdb
node_series_data -->|"maps genres"| node_genre_data
node_series_list -->|"renders"| node_series_card
node_app -->|"wraps routes"| node_movie_detail_data
node_app -->|"wraps routes"| node_series_detail_data
node_movie_detail_data -.->|"fetches"| node_tmdb
node_series_detail_data -->|"fetches"| node_tmdb
node_series_detail_data -->|"looks up language"| node_language_data
node_series_details -.->|"reads"| node_series_detail_data
node_app -->|"wraps routes"| node_season_data
node_season -->|"reads"| node_season_data
node_season -->|"renders"| node_media
node_movie_details -.->|"uses"| node_media
node_actor -->|"reads"| node_actor_data
node_nav -->|"reads"| node_theme
node_movie_detail_data -->|"uses"| node_language_data

click node_app "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/App.jsx"
click node_nav "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/Nav.jsx"
click node_theme "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/ThemeProvider.jsx"
click node_home "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/home/Home.jsx"
click node_home_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Home/HomeContext.jsx"
click node_home_features "https://github.com/wahbyabdelrahman770/final-project-itsharks/tree/master/src/components/home"
click node_movie_list "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/movies/Movies.jsx"
click node_movie_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Movie/MovieContext.jsx"
click node_series_list "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/series/Series.jsx"
click node_series_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Series/SeriesContext.jsx"
click node_movie_details "https://github.com/wahbyabdelrahman770/final-project-itsharks/tree/master/src/pages/MoviesDeatils"
click node_movie_detail_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Movie/MovieDetailsProvider.jsx"
click node_series_details "https://github.com/wahbyabdelrahman770/final-project-itsharks/tree/master/src/pages/SeriesDetails"
click node_series_detail_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Series/SeriesDetailsProvider.jsx"
click node_season "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/SeriesSeason/Season.jsx"
click node_season_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Series/SeriesSeasonProvider.jsx"
click node_media "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/Movie-And-Series-Media-Page-Components/MovieAndSeriesMediaComponents.jsx"
click node_actor "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/ActorDetails/ActorDetails.jsx"
click node_actor_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Actor/ActorContext.jsx"
click node_cards "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/MovieCard.jsx"
click node_series_card "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/SeriesCard.jsx"
click node_genre_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/utils/genres.js"
click node_language_data "https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/utils/languages.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_nav,node_theme toneBlue
class node_home,node_home_data,node_home_features,node_movie_list,node_movie_data,node_series_list,node_series_data toneAmber
class node_movie_details,node_movie_detail_data,node_series_details,node_series_detail_data,node_season,node_season_data,node_media,node_actor,node_actor_data,node_tmdb toneMint
class node_cards,node_series_card,node_genre_data,node_language_data toneRose
class node_visitor toneIndigo
```

## Components

### App and navigation

- [Route shell](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/App.jsx): `src/App.jsx`
- [Navigation](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/Nav.jsx): `src/components/Nav.jsx`
- [Theme state](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/ThemeProvider.jsx): `src/contexts/ThemeProvider.jsx`

### Discovery

- [Home page](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/home/Home.jsx): `src/pages/home/Home.jsx`
- [Home data](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Home/HomeContext.jsx): `src/contexts/Home/HomeContext.jsx`
- [Home features](https://github.com/wahbyabdelrahman770/final-project-itsharks/tree/master/src/components/home): `src/components/home`
- [Movie browsing](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/movies/Movies.jsx): `src/pages/movies/Movies.jsx`
- [Movie listings](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Movie/MovieContext.jsx): `src/contexts/Movie/MovieContext.jsx`
- [Series browsing](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/series/Series.jsx): `src/pages/series/Series.jsx`
- [Series listings](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Series/SeriesContext.jsx): `src/contexts/Series/SeriesContext.jsx`

### Title catalog

- [Movie details](https://github.com/wahbyabdelrahman770/final-project-itsharks/tree/master/src/pages/MoviesDeatils): `src/pages/MoviesDeatils`
- [Movie detail data](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Movie/MovieDetailsProvider.jsx): `src/contexts/Movie/MovieDetailsProvider.jsx`
- [Series details](https://github.com/wahbyabdelrahman770/final-project-itsharks/tree/master/src/pages/SeriesDetails): `src/pages/SeriesDetails`
- [Series detail data](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Series/SeriesDetailsProvider.jsx): `src/contexts/Series/SeriesDetailsProvider.jsx`
- [Season details](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/SeriesSeason/Season.jsx): `src/pages/SeriesSeason/Season.jsx`
- [Season data](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Series/SeriesSeasonProvider.jsx): `src/contexts/Series/SeriesSeasonProvider.jsx`
- [Media galleries](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/Movie-And-Series-Media-Page-Components/MovieAndSeriesMediaComponents.jsx): `src/components/Movie-And-Series-Media-Page-Components/MovieAndSeriesMediaComponents.jsx`
- [Actor details](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/pages/ActorDetails/ActorDetails.jsx): `src/pages/ActorDetails/ActorDetails.jsx`
- [Actor data](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/contexts/Actor/ActorContext.jsx): `src/contexts/Actor/ActorContext.jsx`

### Shared UI and data

- [Title cards](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/MovieCard.jsx): `src/components/MovieCard.jsx`
- [Series cards](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/components/SeriesCard.jsx): `src/components/SeriesCard.jsx`
- [Genre mappings](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/utils/genres.js): `src/utils/genres.js`
- [Language mappings](https://github.com/wahbyabdelrahman770/final-project-itsharks/blob/master/src/utils/languages.js): `src/utils/languages.js`

### Other components

- **Visitor**
- **TMDB API**

## Connections

- Visitor → Route shell: opens (evidence: `src/App.jsx`)
- Route shell → Navigation: renders (evidence: `src/App.jsx`)
- Route shell → Home page: routes to (evidence: `src/App.jsx`)
- Route shell → Movie browsing: routes to (evidence: `src/App.jsx`)
- Route shell → Series browsing: routes to (evidence: `src/App.jsx`)
- Route shell → Movie details: routes to (evidence: `src/App.jsx`)
- Route shell → Series details: routes to (evidence: `src/App.jsx`)
- Route shell → Theme state: provides (evidence: `src/App.jsx`)
- Home page → Home data: reads
- Home data → TMDB API: fetches (evidence: `src/contexts/Home/HomeContext.jsx`)
- Home page → Home features: renders
- Movie browsing → Movie listings: reads (evidence: `src/pages/movies/Movies.jsx`)
- Movie listings → TMDB API: fetches (evidence: `src/contexts/Movie/MovieContext.jsx`)
- Movie listings → Genre mappings: maps genres (evidence: `src/contexts/Movie/MovieContext.jsx`)
- Movie browsing → Title cards: renders (evidence: `src/pages/movies/Movies.jsx`)
- Series browsing → Series listings: reads (evidence: `src/pages/series/Series.jsx`)
- Series listings → TMDB API: fetches (evidence: `src/contexts/Series/SeriesContext.jsx`)
- Series listings → Genre mappings: maps genres (evidence: `src/contexts/Series/SeriesContext.jsx`)
- Series browsing → Series cards: renders (evidence: `src/pages/series/Series.jsx`)
- Route shell → Movie detail data: wraps routes (evidence: `src/App.jsx`)
- Route shell → Series detail data: wraps routes (evidence: `src/App.jsx`)
- Movie detail data → TMDB API: fetches
- Series detail data → TMDB API: fetches (evidence: `src/contexts/Series/SeriesDetailsProvider.jsx`)
- Series detail data → Language mappings: looks up language (evidence: `src/contexts/Series/SeriesDetailsProvider.jsx`)
- Series details → Series detail data: reads (evidence: `src/pages/SeriesDetails/Overview.jsx`)
- Route shell → Season data: wraps routes (evidence: `src/App.jsx`)
- Season details → Season data: reads (evidence: `src/pages/SeriesSeason/Season.jsx`)
- Season details → Media galleries: renders (evidence: `src/pages/SeriesSeason/Season.jsx`)
- Movie details → Media galleries: uses
- Actor details → Actor data: reads (evidence: `src/pages/ActorDetails/ActorDetails.jsx`)
- Navigation → Theme state: reads (evidence: `src/components/Nav.jsx`)
- Movie detail data → Language mappings: uses (evidence: `src/contexts/Movie/MovieDetailsProvider.jsx`)
