Skip to content

Conversation

@marissahuysentruyt
Copy link
Collaborator

@marissahuysentruyt marissahuysentruyt commented Jul 2, 2024

Description

This PR continues migrating documentation from the docs site into Storybook. The focus is on inlinealert, link, logicbutton and miller. All variants of the component should now be displayed on the Storybook Docs page. Additionally, Chromatic coverage was added to inlinealert, link, and logicbutton.

  • inlinealert: new stories and enhanced chromatic coverage
  • link: new stories and added chromatic coverage
  • logicbutton: enhanced chromatic coverage
  • miller: new story descriptions

This PR doesn't need a changeset since it's docs only.

How and where has this been tested?

Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.

Validation steps

Regression testing

Validate:

  1. The documentation pages for at least two other components are still loading, including:
  • The pages render correctly, are accessible, and are responsive.
  1. If components have been modified, VRTs have been run on this branch:
  • VRTs have been run and looked at.
  • Any VRT changes have been accepted (by reviewer and/or PR author), or there are no changes.

Screenshots

To-do list

  • I have read the contribution guidelines.
  • I have updated relevant storybook stories and templates.
  • I have tested these changes in Windows High Contrast mode.
  • If my change impacts other components, I have tested to make sure they don't break.
  • If my change impacts documentation, I have updated the documentation accordingly.
  • ✨ This pull request is ready to merge. ✨

@changeset-bot
Copy link

changeset-bot bot commented Jul 2, 2024

⚠️ No Changeset found

Latest commit: ca10df5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2024

🚀 Deployed on https://pr-2884--spectrum-css.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2024

File metrics

Summary

Total size: 4.63 MB*

🎉 No changes detected in any packages

* Size determined by adding together the size of the main file for all packages in the library.
* Results are not gzipped or minified.
* An ASCII character in UTF-8 is 8 bits or 1 byte.

@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch from 37cda5f to e5b9eea Compare July 2, 2024 16:05
@marissahuysentruyt marissahuysentruyt added run_vrt For use on PRs looking to kick off VRT documentation Because documentation is important and shouldn't be broken storybook labels Jul 2, 2024
@marissahuysentruyt marissahuysentruyt marked this pull request as ready for review July 2, 2024 16:32
@marissahuysentruyt marissahuysentruyt removed the run_vrt For use on PRs looking to kick off VRT label Jul 2, 2024
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch from e5b9eea to f7e87fd Compare July 2, 2024 18:53
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch 2 times, most recently from f870d04 to 66a0656 Compare July 15, 2024 18:09
Copy link
Collaborator

@rise-erpelding rise-erpelding left a comment

Choose a reason for hiding this comment

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

Hi! This was all pretty straightforward and all the stories here look good! The only comments I made here were thoughts I had on how we could organize/display the content on the docs pages a little better and a link that might help for getting those static stories into Chromatic. Happy to hear your thoughts and take another look anytime!

Copy link
Collaborator

@jawinn jawinn left a comment

Choose a reason for hiding this comment

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

I think Rise covered most of it! I just have one suggestion for Link, to reduce the amount of vertical space between all of the stories on its Docs page.

I also noticed that Miller columns shows an empty message for the ArgTypes doc block "Args table with interactive controls couldn't be auto-generated", because it has no controls. There doesn't appear to be a way to hide that in Storybook at the moment. There was a merged Storybook PR that closed the issue for the <Controls/> doc block, but I think another issue would need to be created with Storybook to also hide this for <ArgTypes/>. I think we can leave that for now, rather than creating a custom MDX template.
Screenshot 2024-07-17 at 5 47 02 PM

@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch from 66a0656 to 93cad16 Compare July 18, 2024 17:12
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch 2 times, most recently from f4a7871 to a40a449 Compare July 22, 2024 13:49
Copy link
Collaborator

@rise-erpelding rise-erpelding left a comment

Choose a reason for hiding this comment

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

I think this one is good to go now! Thanks, @marissahuysentruyt!

@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch from a40a449 to 0893c29 Compare July 23, 2024 14:31
@marissahuysentruyt marissahuysentruyt added the run_vrt For use on PRs looking to kick off VRT label Jul 23, 2024
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch from 0893c29 to 2f3e58a Compare August 21, 2024 16:43
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch 3 times, most recently from 0fabca3 to 0128946 Compare August 23, 2024 17:53
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch from 80bd1b3 to 411c456 Compare August 23, 2024 18:41
Copy link
Contributor

@castastrophe castastrophe left a comment

Choose a reason for hiding this comment

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

Just one last update then I think this one is ready to go

Comment on lines 66 to 68
${when(headerText, () =>
headerText.charAt(0).toUpperCase() + headerText.slice(1)
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
${when(headerText, () =>
headerText.charAt(0).toUpperCase() + headerText.slice(1)
)}
${headerText}

Since this is a string, we don't need a when wrapper and I'm not sure we should be altering the format of the string. Thanks for making this update!

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh and a note to double check the *.test.js file too - it looks like it lost the modifiers in the header text.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh wait- did those need that ${variant.charAt(0).toUpperCase() + variant.slice(1)} in the test file instead of the template file? Is that what you mean as modifiers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

- adds headerText modifier for test cases
- simplifies header text in template
- adds "Neutral" to default header text arg
@pfulton pfulton merged commit 1c04192 into main Aug 23, 2024
@pfulton pfulton deleted the marissahuysentruyt/css-759-docs-to-storybook-pt-9 branch August 23, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Because documentation is important and shouldn't be broken ready-for-review run_vrt For use on PRs looking to kick off VRT storybook

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants