-
Notifications
You must be signed in to change notification settings - Fork 0
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 bundle #115
Open
Adamik10
wants to merge
50
commits into
main
Choose a base branch
from
DDFBRA-280-style-video-bundle-paragraph
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add video bundle #115
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This will be used in the video budle component
…gurations This division mimics the two different ways this component will be receiving data from Drupal backend.
…n VideoBundle.stories.tsx
A11y accessibility is having troubles seeing the proper colors of these texts.
In hopes to make our accessibility tests find accessibility issues
This was introduced to find out whether our accessibility tests work. (spoiler alert: they still don't. I am making a ticket for it)
33435ba
to
4be2848
Compare
Instead of depricated url prop.
To match the design
Instead of integrating WorkCard elements into videoBundle with a bunch of props, we use the WorkCardStacked component.
ThomasGross
requested changes
Feb 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a couple af suggestions and considerations. I think its way more clean but we can do some more iterations on this.
I think it could make sense to go through the my comments together on a day where we're both at the office. 😊
ThomasGross
reviewed
Feb 10, 2025
This folder has been commented out due to a codegenerating error that we in the team decided to proceed to fix once we work on the article page during a future sprint.
..and uncomment artcle.dpl-cms.graphql file because there's no reason to have the blueprint for the query commented out (plus also prettier didn't like it and we were getting linting errors due to the end of file for some reason)
We now just provide works to the parent component and render WorkCard as components inside WorkCardStacked
This is for the use case of no works to cycle through in the video bundle. Then the timer doesn't progress.
The color contrast wasn't good enough for the text.
& move the logic that alternates between the automatic version and manual version into parent components - VideoBundleAutomatic and VideoBundleManual This is a better structure - clears out the code and keep to the rule of one component does one thing. Also stories were edited to match.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to issue
https://reload.atlassian.net/browse/DDFBRA-280
Description
This PR adds support to the video bundle paragraph we can get from drupal.
This PR also adds new variants of the Font.stories.tsx in order to be able to check accessibility for fonts on various backgrounds.
Screenshot of the result
These are now a bit outdated screenshots. I aligned the stacked cards and buttons to the grid and each other since the screenshot was taken, but you get the gist.
![image](https://private-user-images.githubusercontent.com/28546954/409466304-91607690-7ff8-4f2c-a1dc-1220f8135982.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjkyMDEsIm5iZiI6MTczOTQyODkwMSwicGF0aCI6Ii8yODU0Njk1NC80MDk0NjYzMDQtOTE2MDc2OTAtN2ZmOC00ZjJjLWExZGMtMTIyMGY4MTM1OTgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA2NDE0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwMTQ2MmM1YjVjNzNmOTgyYmUxZDA3ODYwODFkNjIzNzY1ZjQyMWZhNGI1N2IwOWI5N2MxMDBlMjAzOGUwZmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QT2_V8QqpDbGDWowlvkaecaVWoi-a5CWA3sUNvdXt4I)
Mobile:
![image](https://private-user-images.githubusercontent.com/28546954/410365229-0bb1b4ed-2a5f-4fdf-8610-ab2f72e4a1aa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjkyMDEsIm5iZiI6MTczOTQyODkwMSwicGF0aCI6Ii8yODU0Njk1NC80MTAzNjUyMjktMGJiMWI0ZWQtMmE1Zi00ZmRmLTg2MTAtYWIyZjcyZTRhMWFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA2NDE0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2YTUwNTg3ZTExOGZiMmQ3ZjhmNmFmYmY4Nzc3MWJjMTJlMzAzMzZhODg1NmY0N2I5MDgwYzQ0Yzg1NzdkNzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7alfJ-T8iK7GrMgTTXWoXF4ym0sUYmq0lxM-ncEgQb4)
Additional comments or questions
We as of now can't properly show the Video Bundle stories in GH in order to Chromatic test them due to not mocking API calls in storybook yet. There is a separate task for it that will be solved in the future.