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

Add video thumbnails to the reciple display pages #377

Merged
merged 4 commits into from
Dec 27, 2024

Conversation

jlucaspains
Copy link
Owner

This pull request includes multiple changes to the codebase, focusing on removing GitVersion setup, updating the data service, and adding new functionalities for handling video URLs. The most important changes are listed below:

Removal of GitVersion Setup:

Data Service Updates:

  • src/services/dataService.ts: Added a new function getRecipeMediaUrl to fetch the media URL and updated the existing getRecipeMedia function to remove filtering by type.

Handling Video URLs:

  • src/helpers/videoHelpers.ts: Added a new function getThumbnail to generate YouTube video thumbnails and refactored prepareUrlForEmbed to use the getVideoId helper function. [1] [2]

Component Updates:

Test Updates:

  • tests/edit.spec.ts: Added a new test to verify that video media shows the correct thumbnail.

Issues

Closes #369

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-flower-0c3edd710-377.centralus.2.azurestaticapps.net

Copy link

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-flower-0c3edd710-377.centralus.2.azurestaticapps.net

@jlucaspains jlucaspains merged commit 2f4b331 into main Dec 27, 2024
9 checks passed
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.

Use YouTube thumbnail when the first media item is a video
1 participant