Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#61] Notify video is not embeddable #75

Merged
merged 4 commits into from
Dec 1, 2024

Conversation

mauriciofierrom
Copy link
Owner

Closes #61

On Lesson creation, disable the form if the video fails to load and show an informative error message.

Ths controller is in charge of coordinating the state of the form
depending on the interactions with the Player Stimulus Controller.

- Update the YoutubePlayer class to account for load errors by taking a
  callback as a new parameter
- Update the Dummy Player to account for load errors. They are triggered
  by the presence of a data attribute called error and matched on the
  name of the error we want to simulate. For now only load errors. The
  data attribute must exist -before- the load method is called on the
  dummy player.
- Update player controller to trigger events on video load/failure
- Lesson controller disables all other elements but the video link field
  if the video failed to load. Overriding its value with an url that
  ends in a succesful video load enables all the fields and the submit
  button
- Add e2e test
@mauriciofierrom mauriciofierrom force-pushed the 61-notify-video-not-embeddable branch from bf79699 to 6e49131 Compare December 1, 2024 02:18
Oh the flakines
@mauriciofierrom mauriciofierrom merged commit e5a86b2 into main Dec 1, 2024
1 check passed
@mauriciofierrom mauriciofierrom deleted the 61-notify-video-not-embeddable branch December 1, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notify when video is not embeddable
1 participant