-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Checklist: rollout to other goal types. #26721
Conversation
return null; | ||
} | ||
|
||
return get( site, 'options.design_type', '' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leverage getSiteOption
like this:
const siteDesignType = getSiteOption( state, siteId, [ 'design_type' ] ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove the file in favor of getSiteOption
. Thanks. :)
65f5113
to
da7957a
Compare
Rebased |
I tested this with the other options and the checklist shows for me. The copy could use some work but we could leave that for another PR. |
da7957a
to
7de13a4
Compare
7de13a4
to
32d172d
Compare
Rebased |
Tested this again and it works as expected. 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to see some kind of consolidation of checking if the design type supports the checklist rather than the manual checks in several different places, but I don't consider that a blocker.
Otherwise this does what it's supposed to, looks good.
I usually do code in that way too. :) But I leave them for now since we're going to roll out the checklist to all users, which means the type checking will be removed in the near future. Thanks for your review! 👍 |
The checklist is currently available only for a blog type site. This PR will roll out it to other goal types so our customers have a more unified experience.
How to test
store
.