-
Notifications
You must be signed in to change notification settings - Fork 0
Convert MovieDetailPage Showtimes Section into a Component #1
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Refactor the hardcoded showtimes logic in MovieDetailPage.vue into a reusable, standalone component, improving maintainability and scalability.
Requirements:
-
Component Structure:
- Create
ShowtimePicker.vueinsrc/components/. - Accept props for showtimes, selectedShowtime, and ticketCount, with an optional maxTickets prop.
- Create
-
Display Behavior:
- Iterate over grouped showtimes by day.
- Render buttons with highlights for active slots and disabled states for expired ones.
- Include a numeric ticket count input after showtime selection.
-
Accessibility & Responsiveness:
- Ensure keyboard accessibility (Tab navigation).
- Ensure mobile responsiveness for buttons and input.
-
Emit Events:
- Emit
update:selectedShowtimeandupdate:ticketCounton user selection. - Optionally emit submit on the final "Continue" button.
- Emit
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request