-
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
Added skip button to WP.com checklist #34420
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~85 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~197 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
Tests well, the changes LGTM.
I was a little surprised by the behaviour; that clicking skip marked the step as complete. I was expecting the skip button to just proceed to the next step and leave it unchecked. My knee jerk reaction was "now I've skipped it forever and I can't go back to it!" which of course isn't true.
In saying that I don't think it hurts to try it this way :) It'll be interesting to see if there's any feedback on it if there's more user testing coming up.
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.
Just need to wrap Skip in a translate
call
Thanks for the feedback @ramonjd, @Aurorum, and @p-jackson. I got the fixes in.
Good point. I think that bug I mentioned where the task stays opened might work in favour of this but you're right — it's something for us to keep an eye on. |
Looks like the mobile e2e tests are unrelated (or are they?) I don't have write permissions to rerun them, can anyone else? cc @p-jackson @ramonjd |
I kicked them off again. Normally you can also remove the Needs e2e testing label and re-add it to trigger a rerun of all the e2e tests. |
Thanks for the tip! |
On mobile right now, so I can't really test this PR, but did you verify that 'Skipped' state is persisted after a reload? AFAIK, the backend implementations differ for WP.com and Jetpack, with Jetpack not actually storing any 'skipped' state bool on the server side, so I'd imagine that it would be lost upon reload/coming back to the checklist. |
Thanks for checking @ockham. You're right that the implementations are different and for that reason, I didn't include the skip button for Jetpack. On the WP.com side, it is handled on the backend and the button basically replicates the existing checkmark next to each task. This means that the complete status is being honoured. |
e877c27
to
bfb7b2a
Compare
Test failures seem identical to what I saw in #34401 so seems unrelated and safe to merge. 👍 |
🤦♂️ Uh yeah, my bad. I glanced over the PR on my phone and somehow managed to miss the fact that it was about the non-Jetpack checklist. |
Changes proposed in this Pull Request
This PR introduces a skip button to the WP.com checklist. The Jetpack checklist currently doesn't offer a way to skip tasks so I added it in such a way that it should not impact Woo or Jetpack.
For the time being, we will have two ways to skip a task. I will be replace the circle next to the title with an icon in another PR in the future.
Before

After

Jetpack

Testing instructions
/checklist/[url]
Something to note, tasks don't automatically collapse when you mark them complete. Since this is the existing behaviour, and it's a little beyond my expertise, I'd suggest we tackle that in a separate PR.
cc @Automattic/zelda @simison, @jeffgolenski
Fixes # https://github.com/Automattic/zelda-private/issues/56