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

Move sample forms out of test folder #1452

Merged
merged 4 commits into from
Oct 11, 2022
Merged

Move sample forms out of test folder #1452

merged 4 commits into from
Oct 11, 2022

Conversation

steves
Copy link
Contributor

@steves steves commented Oct 5, 2022

In #1404 preview files were moved out of test and into their own top level directory. We later discovered that form previews reference form classes that are defined in test/forms. Because they're in the test folder they don't get included in the gem and the previews that use them don't work.

Because these sample forms are only used in the previews, and not in any tests that I could find, I moved them into app/forms. This lets us autoload them in the local Lookbook as well as bundle them into the gem for use in our github/github Lookbook instance.

@steves steves requested review from a team and jonrohan October 5, 2022 19:51
@changeset-bot
Copy link

changeset-bot bot commented Oct 5, 2022

🦋 Changeset detected

Latest commit: 991e0ca

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

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

@camertron
Copy link
Contributor

Hey @steves, thanks for taking this on. I don't remember if this is the case for all of them, but I know some of those forms are indeed used in tests. As long as tests are passing though we should be ok.

@steves steves temporarily deployed to review-pr-1452 October 6, 2022 16:31 Inactive
@steves steves temporarily deployed to github-pages October 6, 2022 16:36 Inactive
@jonrohan jonrohan temporarily deployed to github-pages October 11, 2022 19:26 Inactive
@jonrohan jonrohan merged commit 9252a12 into main Oct 11, 2022
@jonrohan jonrohan deleted the steves-move-forms branch October 11, 2022 19:26
@primer-css primer-css mentioned this pull request Oct 11, 2022
jonrohan added a commit that referenced this pull request Oct 11, 2022
* Move sample forms out of test folder

* Add nodoc to form samples

* Add missing tests for form previews

* Create thirty-forks-hope.md

Co-authored-by: Jon Rohan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants