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

feat(gallery): Component updates, new video and audio icons - FRONT-3887 #2793

Merged
merged 35 commits into from
Mar 30, 2023

Conversation

planctus
Copy link
Collaborator

@planctus planctus commented Mar 8, 2023

No description provided.

@github-actions
Copy link

github-actions bot commented Mar 8, 2023

@planctus planctus changed the title feat(gallery): Design iteration - FRONT-3887 feat(gallery): Component updates - FRONT-3887 Mar 9, 2023
Copy link
Contributor

@emeryro emeryro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done here!
Just a few remarks:

@@ -16,6 +16,7 @@ npm install --save @ecl/twig-component-gallery
- "download" (object) (default: {}): object of type link
- "share" (object) (default: {}): object of type link
- **"items"** (array) (default: [])
- "playable" (boolean) (default: false) Activate the play icon on the thumbnail
Copy link
Contributor

@emeryro emeryro Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we detect this is parameter video or embedded_video is filled?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the current check we have:
{% if (_item.playable is not empty or _item.video is not empty or _item.embedded_video is not empty)

The parameter is meant to give the chance to manually "trigger" the play icon, could be removed in case we don't expect any use case where this would be used

Copy link
Contributor

@emeryro emeryro Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really see a case where we would want to have this play icon if this is not a video.
We could keep it, but I fear that it may be confusing for users (we should at least make it clear in the comment/readme)

Copy link
Collaborator Author

@planctus planctus Mar 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is foreseen for the audio files as well, but in the end this would still be an "embedded_video" so i think we can safely remove this parameter...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change of icon may affect other components or pages
we should at least highlight it in the pr description

@planctus planctus changed the title feat(gallery): Component updates - FRONT-3887 feat(gallery): Component updates, new video and audio icons - FRONT-3887 Mar 28, 2023
@planctus planctus removed the Question label Mar 28, 2023
@emeryro emeryro merged commit 979634b into v3.8.0-dev Mar 30, 2023
@emeryro emeryro deleted the FRONT-3887-Gallery-updates branch March 30, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants