Problem/Motivation
We need documentation to onboard people to the Starshot Demo Design System project.
This issue is focused on the validation guide.
Note: Validation is at the code level whereas the testing doc will focus on testing in UI.
Steps to reproduce
Proposed resolution
Info to include:
- Coding Standards
- SDC Validation
- Twig Validation
Remaining tasks
- Gather info and links
- Create draft in Google docs
- Port to community initiative guides
Comments
Comment #2
kristen polFix parent.
Comment #3
kristen polAlthough this is not done, moving to needs review for feedback.
In particular, would love if people have thoughts on other types of validation that would be helpful at the theme/code level.
Comment #4
kristen polDoc is here:
https://www.drupal.org/community-initiatives/starshot-demo-design-system...
Comment #5
sea2709 commentedI'm thinking it's probably helpful if we leverage some UI functions that UI Patterns provides to have an overview about components on the site. When we navigate to this page https://starshot.ddev.site/admin/reports/ui-components , it provides us a list of SDC components, and we can go to an individual component to see what errors and warnings of this component.
Comment #6
sea2709 commentedCL Devel module provides similar feature to list all components and their props and slots info at https://starshot.ddev.site/admin/config/user-interface/sdc/registry , it looks like UI Patterns provides more info.
Comment #8
kristen polGotcha. I thought that the UI Patterns page only picked up ones that were using UI Patterns (which SDDS+CivicTheme are not) so I'll take a look because more info is better :)
Also Jacob found some issues with this page (using wrong linter) so I need to update for that too.
Comment #9
kristen polI may yank out the CL Devel stuff but leaving it for now.
The full validation guide has been updated and is ready for review.
Comment #10
kristen pol@sea2709 Do you want to take a stab at updating the doc to use
/admin/reports/ui-componentsfrom #5? We can still leave the CL Devel stuff for now.Comment #11
kristen polI've updated to move ui patterns and cl devel stuff to the "ignore" section. This is "done" for now.