Automattic / sensei

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

"Edit Lesson" toolbar option not working with tour #7625

Closed donnapep closed 3 weeks ago

donnapep commented 1 month ago

Steps to Reproduce

See https://github.com/Automattic/sensei/issues/7625#issuecomment-2232251775. We should try to reproduce this user-reported issue.

~Please note that I didn't try these steps, but it should theoretically highlight the bug:~

~- Add the following code to functions.php of the active theme:~

function example_allowed_block_types( $allowed_block_types, $block_editor_context ) {

    $allowed_block_types = array(
        'core/heading',
        'core/image',
        'core/paragraph',
    );

    return $allowed_block_types;
}
add_filter( 'allowed_block_types_all', 'example_allowed_block_types', 10, 2 );

Context / Source

From https://x.com/carolinapoena/status/1806837840031928323?s=46&t=tLqu-4WGyvBs1cDTKpVGSg:

Next, the steps in the interactive tour does not match the options that are available for the custom blocks on the screen, so I can't use the tutorial to create and edit my first course anyway.

donnapep commented 1 month ago

Tried the filter given in the PR description but wasn't able to reproduce. The tour was not displayed at all in this case.

@carolinan Any insight you could provide into this Sensei issue as reported by you on Twitter would be appreciated. 🙏🏻

carolinan commented 1 month ago

The main problem I had was when the tutorial / wizard suggested that I should edit the lesson, the button in the block toolbar did nothing. It said it would take me to the "lesson editor", but nothing happened. So I was never able to edit the lesson.

donnapep commented 1 month ago

For whoever picks this one up, I wasn't able to reproduce but we should spend some time trying to.