-
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: Simplify and de-duplicate #25924
Closed
Closed
Conversation
This file contains 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
Note that both `onboardingChecklist.js` and `jetpack-checklist.js` (yes, we should harmonize filenames, too) had a function duplicated (named `onboardingTasks` and `jetpackTasks()`, respectively). At closer look, that function was essentially merging two objects, and sorting them by key according to an array. I've reshuffled that functionality so that it makes more sense now IMO.
This reverts commit bba06d7.
ockham
added
[Status] Needs Review
The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
and removed
[Status] In Progress
labels
Jul 9, 2018
This was referenced Jul 10, 2018
matticbot
removed
the
[Status] Needs Review
The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
label
Jul 10, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rationale: We're going to want to insert 'pending' state for individual checklist items for https://github.com/Automattic/wp-calypso/projects/70, so it helps to be able to inject those at
connect()
level. This PR untangles things somewhat to prepare for that.ChecklistTask
propstimes()
instead ofrange().map()
onboardingChecklist.js
andjetpack-checklist.js
(yes, we should harmonize filenames, too) had a function duplicated (namedonboardingTasks
andjetpackTasks()
, respectively). At closer look, that function was essentially merging two objects, and sorting them by key according to an array. I've reshuffled that functionality so that it makes more sense now IMO. Note this also means that we're using objects instead of arrays (theid
fields becoming the keys) which I find lend themselves better to what we're trying to do here (e.g._.merge()
things).merge
strategy. We are going to use this step to reflect VP installation status later.Testing Instructions
(mostly copied from #25901)
Verify that the checklist still works, both for WP.com, and JP sites
http://calypso.localhost:3000/checklist/:site
propType
warnings aren't a regression but also present onmaster
. Please verify for yourself 🙂Verify that the devdocs example still works
Verify that the
ChecklistBanner
component (in the stats section) still works:(WP.com only)
Apply the following patch below for easier testing
Navigate to
http://calypso.localhost:3000/stats/day/:site
Click the 'Do It' button, and verify that it takes you to the correct destination and starts a Guided Tour.
Click the 'View your checklist' link, and verify that it takes you to the checklist.
Verify that the Woo checklist still works:
http://calypso.localhost:3000/store/<site>