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
Add Launch Your Store settings section #45402
Conversation
Hi @adrianduffell, @rjchow, @woocommerce/ghidorah Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
Test Results SummaryCommit SHA: 438d631
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
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.
Thanks @moon0326 this is looking good.
There should be some consensus on the names of the options created here and the ones @chihsuan is creating in #45306. I like a combination of the two such as woocommerce_lys_coming_soon
.
I'm also working on a UI component that makes use of these options and thought a useLaunchYourStore
helper function would be useful. What do you think?
I've got it in the header but its better suited to the folders you created here, plugins/woocommerce-admin/client/launch-your-store
.
{ | ||
id: 'wc_settings_general_site_visibility_slotfill', | ||
scope: 'woocommerce-site-visibility-settings', | ||
}, |
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.
Nice to see this getting used!
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.
Nice! useLaunchYourStore looks fantastic! I'll update this PR to use it 👍
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.
@psealock Could you also return comingSoon, storePagesOnly, privateLink, and shareKey from the function?
Nice work on this @moon0326, I agree I think we just need to align on the names.
I'll throw in a suggestion for:
I think it might be better not to reference "Launch Your Store" in the option names. I see the site visibility / coming soon settings as a new platform feature for WooCommerce. The Launch Your Store task is just one feature that will utilize it. Potentially other features like CYS could make use of it in the future too. |
@psealock @adrianduffell Updated option names in 48fdf30 @psealock I think we can update the code to use useLaunchYourStore in a follow-up PR. What do you think? |
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.
Thanks @moon0326, this is great! With the updated option names it LGTM 🚀
I'll create new issues for the items you mentioned in the description.
- Add store pages link.
- Add Editor link
- Add Share your site with a private link feature.
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.
@psealock I think we can update the code to use useLaunchYourStore in a follow-up PR. What do you think?
Sounds good. Once this is merged I can move my compenent to the folder
@@ -18,6 +18,10 @@ export const possiblyRenderSettingsSlots = () => { | |||
}, | |||
{ id: 'wc_tax_settings_slotfill', scope: 'woocommerce-tax-settings' }, | |||
{ id: 'wc_settings_slotfill', scope: 'woocommerce-settings' }, | |||
{ | |||
id: 'wc_settings_general_site_visibility_slotfill', | |||
scope: 'woocommerce-site-visibility-settings', |
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 think we should use the same scope woocommerce-settings
here. The reason this exists is so that we're not loading all of the app's Fills, just the ones that match the current scope. woocommerce-settings
is already on the page so may as well use it
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.
Sounds good @psealock 👍 Updated in Use woocommerce-settings scope
* Support div setting type * Add wc_settings_general_site_visibility_slotfill slotfill * Add site visibility setting section * Add placeholder * Rename div to slotfill_placeholder * Add comment * Fix component name * Add changefile(s) from automation for the following project(s): woocommerce * Use unique id * Rename option names * Put LYS settings behind launch-your-store flag * Move Site Visibility header to component * Lint fixes * Lint fixes * Use woocommerce-settings scope * lint fix --------- Co-authored-by: github-actions <github-actions@github.com>
Submission Review Guidelines:
Changes proposed in this Pull Request:
Closes #45107
This PR adds a new setting section for Launch Your Store site visibility under WooCommerce -> Settings -> General.
Things to do -- these items can be updated in a separate PR once the values and requirements are ready.
store pages
link.Editor
linkShare your site with a private link
feature.How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
launch-your-store
feature flag.WooCommerce -> Settings
Site visibility
section loads.Save changes
button.Changelog entry
Significance
Type
Message
Add Launch Your Store settings section
Comment