-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat(ia): setup wizard #3581
feat(ia): setup wizard #3581
Conversation
This isn't an official review, just one piece of feedback since I got a ping via Asana and I had looked into the setup wizard before... Just one needed tweak I saw:
This will make it so that the new dashboard slug (url) will redirect to setup if setup isn't complete yet. |
Thanks @ronchambers updated b466258 |
This comment was marked as resolved.
This comment was marked as resolved.
Thanks @ronchambers . Stepping through the code I'm unable to replicate the issue you've described, once I complete the setup |
Reverted the status of this PR to draft as I've picked up some issue with Audience Wizards. |
@jaredrethman - sorry, you're right. I can't reproduce the issue. I'll assume it had to do with cache of some sort. I retested on a clean site without cache and |
@ronchambers , I came across another significant bug, which required a change in approach. The Gist: During setup there are endpoints that are used which are tied to wizard components. Previously, until There were a number of other commits, including fixes to Newsletters & Network. |
FYI: I didn't get an email notification, but luckily I noticed it in https://github.com/notifications ) I'll review this afternoon. |
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.
@jaredrethman this looks great! I really like the menu.
What I saw before setup:
And after setup:
Looks good.
The only change I'd recommend are removing the now redundant / rolled back calls to the admin_menu/add_page hook. See the 2 places I marked via this review.
I did notice a couple possible "bugs" but they have to do more with the internal setup features and not this foundational PR. I'll share them with you separately for your review.
I really like this PR as it is so I say you should merge it then the bugs I'll share via Slack can be handled in their own PRs.
Thanks!
All Submissions:
Changes proposed in this Pull Request:
Add new IA wizards instantiations into
newspack_setup_complete
conditional. PR also includes minor fix for Newspack Dashboard slug.How to test the changes in this Pull Request:
git checkout origin/feat/ia-setup
newspack_setup_complete
from db i.e.wp option delete newspack_setup_complete
Other information: