Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
530 stars 197 forks source link

"Skip Onboarding" should also create pages required for Sensei usage #7187

Closed fjorgemota closed 8 months ago

fjorgemota commented 11 months ago

Is your feature request related to a problem? Please describe

I found out that, when you activate Sensei LMS on a clear WP installation, and click on the "Skip onboarding" link on the setup wizard that appears, Sensei does not create any pages that are required for the setup of the plugin, like the pages "My Courses", "Courses" and "Course Completed".

Describe the solution you'd like

We should probably create these pages even if the user chooses to "Skip Onboarding".

Describe alternatives you've considered

Documenting the correct structure/blocks expected for these pages, but honestly, this looks too technical for most users.

Additional context

I found this by working on the ticket 6905168-zd-a8c, which shows that the user struggled with creating the required pages given that apparently the setup wizard "didn't run".

github-actions[bot] commented 11 months ago

Support References

This comment is automatically generated. Please do not edit it.

fjorgemota commented 11 months ago

I think the user from the 6939862-zd-a8c is also affected by this.

Sensei didn't create the base pages automatically.

Maybe we should create the pages as soon as the plugin is activated? :thinking:

m1r0 commented 11 months ago

This is a good suggestion and I agree that creating the pages automatically will improve the UX. I can see how this could be a problem for many people. 👍

renatho commented 11 months ago

@fjorgemota did an initial exploration on his P2 post, and I'm adding it here since it can be helpful when working on that.

It should mostly involve changing this method to call this method, and then removing the call to that method here.