-
Notifications
You must be signed in to change notification settings - Fork 22
Free Listings + Paid Ads: Combine the audience and shipping steps #1616
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
Merged
eason9487
merged 10 commits into
feature/1610-streamlined-onboarding
from
update/1610-merge-audience-shipping-step-2-3
Aug 15, 2022
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4881f34
Move SetupFreeListings component of editing free listings to the shar…
eason9487 93249e6
Change the shared ChooseAudience to ChooseAudienceSection and merge i…
eason9487 79911f8
Add validations for merged audience values in the shared SetupFreeLis…
eason9487 55e2c09
Replace SetupFreeListings with the shared one for the onboarding flow
eason9487 193ab56
Catch errors when saving data in the SavedSetupStepper of onboarding …
eason9487 20e758f
Remove unused files
eason9487 fdf10dc
Remove an unused npm package use-debounce
eason9487 159bd2d
Add the CountryCode type back to SetupFreeListings
eason9487 43a2f76
Add auto-saving for MC settings to fall back with the original implem…
eason9487 d8ecc08
Add JSDoc for the `handleFormChange` function in SavedSetupStepper co…
eason9487 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
js/src/components/free-listings/choose-audience-section/choose-audience-section.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.gla-choose-audience-section { | ||
&__language-helper, | ||
.wcdl-radio-helper-text { | ||
font-style: normal; | ||
color: $gray-700; | ||
} | ||
|
||
.wcdl-subsection-helper-text { | ||
margin-bottom: calc(var(--main-gap) / 3 * 2); | ||
} | ||
|
||
.woocommerce-tree-select-control__help { | ||
margin-top: $grid-unit-10; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
js/src/components/free-listings/choose-audience-section/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './choose-audience-section'; |
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
js/src/components/free-listings/choose-audience/index.scss
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...omponents/free-listings/configure-product-listings/__snapshots__/checkErrors.test.js.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💅 Out of this PR and opinionated
Maybe to consider migration to unit testing?
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.
Do you mean replacing
expect( errors.countries ).toBe( 'Please select at least one country.' );
withexpect( errors.countries ).toMatchSnapshot();
? If so, some related discussions can be found in #893 (comment) and #927 (comment).