Repository navigation
Improve async checklist code. Follow-up to #27926 - #28678
Conversation
| this.props.track( 'calypso_checklist_banner_close', { | ||
| site_id: siteId, | ||
| } ); | ||
| } |
There was a problem hiding this comment.
The original author clearly had intent to send the calypso_checklist_banner_close tracks event, but then something went wrong 😄 Let's make the tracks call work great again.
It got broken in this commit: 29af3b0. Part of #26764 by @ockham and @sirreal.
That commit removes file my-sites/stats/checklist-banner/index.jsx which connected the track prop to recordTracksEvent action.
And creates a new file, my-sites/checklist/wpcom-checklist/checklist-banner/index.js, which still calls this.props.tracks, but doesn't do the connect. ⚡️💥
There was a problem hiding this comment.
Thanks for spotting this 🙇
Will note the affected period: 623-gh-tracks-events-validation-status
There was a problem hiding this comment.
I think the latest commit adds it back in correctly! :) Could one of you please double-check the code looks good?
There was a problem hiding this comment.
Thanks, @jsnajdr ! Also, by the way, excellent sleuthing work!
jsnajdr
left a comment
There was a problem hiding this comment.
Ready to 🚢 if the tracks prop gets fixed The Right Way™ Thanks for making the checklist code better!
Changes proposed in this Pull Request
Code improvements to async checklist merged in #27926 as per the review in that PR. It was decided these could be done after merging, to reduce the time the PR stayed open and generating merge conflicts.
Testing instructions
Try the various checklist variations and ensure that the behaviour remains the same.