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(PPDSC-2500): add storybook urls to component pages #449

Merged
merged 21 commits into from
Nov 10, 2022

Conversation

mstuartf
Copy link
Contributor

@mstuartf mstuartf commented Nov 2, 2022

PPDSC-2500

What

  1. Background - why this is needed
  2. What did you do
  • Build stories.json in storybook build (contains ids used in all story urls)
  • Make build_storybook a dependency of docsite e2e tests in pipeline
  • Add a docsite cypress test to extract all storybook urls from the build and check that they are valid using stories.json
  • Add storybook button to all component docsite pages
  • Correct default story names and override component page story id if component has no default
  1. What does the reviewers should expect

I have done:

  • Written unit tests against changes
  • Written functional tests against the component and/or NewsKit site
  • Updated relevant documentation

I have tested manually:

  • The feature's functionality is working as expected on Chrome, Firefox, Safari and Edge
  • The screen reader reads and flows through the elements as expected.
  • There are no new errors in the browser console coming from this PR.
  • When visual test is not added, it renders correctly on different browsers and mobile viewports (Safari, Firefox, small mobile viewport, tablet)
  • The Playground feature is working as expected

Before:

After:

Who should review this PR:

How to test:

- Build stories.json in storybook build (contains ids used in all story urls)
- Make build_storybook a dependency of docsite e2e tests in pipeline
- Add a docsite cypress test to extract all storybook urls from the build and check that they are valid using stories.json
@mstuartf mstuartf added draft This is a draft PR and not intended for formal review yet feature This change contains a new feature labels Nov 2, 2022
@newskit-engineering
Copy link
Collaborator

@mstuartf mstuartf changed the title feat(PPDSC-2500): check all storybook urls are valid feat(PPDSC-2500): add storybook urls to component pages Nov 3, 2022
@mstuartf mstuartf added ready for review Please assist in getting this reviewed and removed draft This is a draft PR and not intended for formal review yet labels Nov 3, 2022
@evgenitsn
Copy link
Contributor

Is it just me or the storybook icon does not load correctly?
image

evgenitsn
evgenitsn previously approved these changes Nov 7, 2022
mutebg
mutebg previously approved these changes Nov 8, 2022
@mstuartf mstuartf dismissed stale reviews from mutebg and evgenitsn via 776bf49 November 9, 2022 14:34
@mstuartf mstuartf merged commit fbf1529 into main Nov 10, 2022
@mstuartf mstuartf deleted the feat/PPDSC-2500-storybook-links branch November 10, 2022 10:02
@mstuartf mstuartf mentioned this pull request Nov 10, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This change contains a new feature ready for review Please assist in getting this reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants