-
Notifications
You must be signed in to change notification settings - Fork 69
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
Sync Maturity Levels - Create JSON parser #3905
Comments
Thanks, @Andrew565 . Great write-up. I think we might want to reconsider the filename. While I think it's a good idea to use the JSON format that matches the expected format, naming the file
With that said, what do you think of something like Also, for your reference, this is the current JSON structure in the Figma demo:
Using that format, this is how I mocked the demo JSON (only showing 3 components):
Lastly, while we have a little flexibility, we can't do any sort of text manipulation to the variable values. That's why you see actual string values in my demo. So for example, we can't directly change a "use_with_caution" value to be "USE WITH CAUTION" in a Figma component. However, there are a few ways we could get around that if it turns out to be difficult to construct a JSON this way. Or if there's a best practice to structure this sort of JSON, we should use that and see if we can rig Figma to use it. So, this is all to say, let's agree on the JSON structure before getting too far ahead of design/dev. :) |
Looks good, thanks Dan. |
Description
In order to facilitate syncing maturity levels across components, Figma, the Docs site, and Storybook, a parser needs to be created in order to take the
component-library/packages/web-components/components-docs.json
file and transform it into a format which can easily be read by Figma and the Docs site.Details
Ideally, the parser should generate a single file which can be read by Figma and the Docs site. This file should match the format expected by the Variables Import Figma plugin. It is recommended to name it
component-maturity-levels.json
as a potential file name.Once this file is generated, it will have to be tested in Figma, so loop in the help of one of the designers at that stage.
Making this file work with the Docs site will be taken care of in a separate ticket.
Tasks
Acceptance Criteria
The text was updated successfully, but these errors were encountered: