Used the Storybook built in IconGallery and IconItem components paired with an iterating function to build out a grid of all our icons and insert it into the Docs page for the Icon component story section.
It was decided against, but I committed a prototype method of coercing the icon gallery into being a story with this commit, modeled on this comment from a discussion of the error I was encountering.
Doc pages do not presently appear in iOS/Android, but spot checked nothing seemed amiss.
[x] Tested on iOS
[x] Tested on Android
[x] Tested on Web
PR Checklist
Code reviewer validation:
General
[x] PR is linked to ticket(s)
[x] PR has changelog label applied if it's to be included in the changelog
[x] Acceptance criteria:
All satisfied or
Documented reason for not being performed or
Split to separate ticket and ticket is linked by relevant AC(s)
[x] Above PR sections adequately filled out
[x] If any breaking changes, in accordance with the pre-1.0.0 versioning guidelines: a CU ticket has been created for the VA Mobile App detailing necessary adjustments with the package version that will be published by this ticket
Code
[x] Tests are included if appropriate (or split to separate ticket)
Description of Change
Used the Storybook built in IconGallery and IconItem components paired with an iterating function to build out a grid of all our icons and insert it into the Docs page for the Icon component story section.
It was decided against, but I committed a prototype method of coercing the icon gallery into being a story with this commit, modeled on this comment from a discussion of the error I was encountering.
Screenshots/Video
https://github.com/department-of-veterans-affairs/va-mobile-library/assets/8690976/4b1c9312-0bc4-45b1-b657-6bbdf43bc37c
Testing
Validated appeared in Web as expected. Minor bug with (5) long icon names being cut off, but it is a known bug with Storybook and Jessica thought it was acceptable.
Doc pages do not presently appear in iOS/Android, but spot checked nothing seemed amiss.
PR Checklist
Code reviewer validation:
changelog
label applied if it's to be included in the changelogPublish
Changes do not warrant a new version per the versioning guidelines as they are purely Storybook/documentation.