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 bundle #115

Open
wants to merge 50 commits into
base: main
Choose a base branch
from
Open

Conversation

Adamik10
Copy link
Contributor

@Adamik10 Adamik10 commented Feb 3, 2025

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.

  • styling
  • functionality
  • stories
    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

Mobile:
image

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.

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.
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)
@Adamik10 Adamik10 force-pushed the DDFBRA-280-style-video-bundle-paragraph branch from 33435ba to 4be2848 Compare February 5, 2025 11:30
Copy link
Contributor

@ThomasGross ThomasGross left a 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. 😊

components/shared/workCard/WorkCardStacked.tsx Outdated Show resolved Hide resolved
components/paragraphs/VideoBundle/VideoBundle.tsx Outdated Show resolved Hide resolved
components/shared/fonts/Fonts.stories.tsx Outdated Show resolved Hide resolved
components/shared/workCard/WorkCard.tsx Show resolved Hide resolved
components/shared/workCard/WorkCard.tsx Show resolved Hide resolved
components/shared/timer/Timer.tsx Show resolved Hide resolved
components/shared/timer/Timer.tsx Outdated Show resolved Hide resolved
components/shared/timer/Timer.tsx Outdated Show resolved Hide resolved
components/shared/timer/Timer.tsx Show resolved Hide resolved
components/paragraphs/ParagraphResolver.tsx Outdated Show resolved Hide resolved
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants