Skip to content
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

[5.0] Guided Tours - Record currentStepId in sessionStorage when responding to an interact… #40776

Closed
wants to merge 8 commits into from

Conversation

GeraintEdwards
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

Change handling of 'button' interactive type to respond to the button click rather than immediately executing.

This execution happens at the start of the tour and not when the step has actually been reached and so the modal setup ends up being called twice. As a result other steps with interactive actions e.g. checkboxes or text input fields cannot be interacted with.

Testing Instructions

Create a tour as per following screenshots - a JSON import is attached if you have implemented the tours import/export PR #40645

backdropProblemTour.zip

Screenshot 2023-06-15 at 13-01-58 Guided Tours Edit Tour - Joomla Tours - Administration

Screenshot 2023-06-15 at 13-02-20 Guided Tours Edit Step - Joomla Tours - Administration

Screenshot 2023-06-15 at 13-02-29 Guided Tours Edit Step - Joomla Tours - Administration

Screenshot 2023-06-15 at 13-02-38 Guided Tours Edit Step - Joomla Tours - Administration

Screenshot 2023-06-15 at 13-02-46 Guided Tours Edit Step - Joomla Tours - Administration

Screenshot 2023-06-15 at 13-02-56 Guided Tours Edit Step - Joomla Tours - Administration

Unpublish steps 3 and 4 so that you have this as an overview

Screenshot 2023-06-15 at 13-11-57 Guided Tour Guided Tours Modal Backdrop Problem - Joomla Tours - Administration

Now run the tour

Actual result BEFORE applying this Pull Request

At step 2 you have a double backdrop and can't interact with the checkbox

Screenshot 2023-06-15 at 13-12-36 Articles Categories - Joomla Tours - Administration

If you enable steps 3 and 4 it behaves even worse

Screenshot 2023-06-15 at 13-13-54 Articles Categories - Joomla Tours - Administration

and if you proceed with clicking the rebuild button you get stuck in a loop.

Expected result AFTER applying this Pull Request

Screenshot 2023-06-15 at 13-14-59 Articles Categories - Joomla Tours - Administration

You also don't get a loop on the rebuild button action step

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • [x ] No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • [ x] No documentation changes for manual.joomla.org needed

…ive button - the button may cause a page redirect or form submission

Progree to next step when the button is clicked and not immediately - otherwise then the tour is being set up you can end up with a double modal back drop being created
@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.0-dev labels Jun 15, 2023
@obuisard obuisard added the bug label Jun 15, 2023
@GeraintEdwards GeraintEdwards changed the title [5.0] Record currentStepId in sessionStorage when responding to an interact… [5.0] Guided Tours - Record currentStepId in sessionStorage when responding to an interact… Jun 21, 2023
@HLeithner
Copy link
Member

@sdwjoomla since you create some guided tours could you please test this pr

@GeraintEdwards
Copy link
Contributor Author

Reissued as PR for Joomla 4.3 #41155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.0-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants