Closed sldless closed 1 month ago
This pull request implements a new feature for displaying an episode list in a video player control interface. It adds functionality to show and hide an episode list for TV series, and includes a new EpisodeList component with a modal for displaying episode details.
journey
title User journey for displaying episode list in video player
section Video Player Controls
User clicks on episode list button: 5: User
Episode list is displayed: 5: System
User selects an episode: 5: User
Episode details are shown in modal: 5: System
User clicks play episode: 5: User
Episode starts playing: 5: System
classDiagram
class EpisodeList {
+string showId
+BaseItemDto selectedEpisode
+BottomSheetModal bottomSheetModalRef
+void handlePresentModalPress(BaseItemDto episode)
+void closeModal()
+void renderEpisode(BaseItemDto item)
}
class BaseItemDto {
<<interface>>
}
EpisodeList --> BaseItemDto
EpisodeList --> BottomSheetModal
EpisodeList --> BottomSheetBackdrop
EpisodeList --> BottomSheetView
EpisodeList --> Text
EpisodeList --> Button
EpisodeList --> EpisodeCard
EpisodeList --> toast
Change | Details | Files |
---|---|---|
Add episode list toggle functionality to video player controls |
|
components/video-player/Controls.tsx |
Create new EpisodeList component |
|
components/EpisodeList.tsx |
Summary by Sourcery
Add an EpisodeList component to display and interact with episodes within the video player, allowing users to toggle the episode list view and select episodes to play.
New Features: