? NPM Resource Changed bug PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar GeraintEdwards
GeraintEdwards
13 Jul 2023

Please see equivalent PR for Joomla 5 at #40776

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

avatar joomla-cms-bot joomla-cms-bot - change - 13 Jul 2023
Category JavaScript Repository NPM Change
avatar GeraintEdwards GeraintEdwards - open - 13 Jul 2023
avatar GeraintEdwards GeraintEdwards - change - 13 Jul 2023
Status New Pending
avatar GeraintEdwards GeraintEdwards - change - 13 Jul 2023
The description was changed
avatar GeraintEdwards GeraintEdwards - edited - 13 Jul 2023
avatar sdwjoomla sdwjoomla - test_item - 14 Jul 2023 - Tested successfully
avatar sdwjoomla
sdwjoomla - comment - 14 Jul 2023

I have tested this item successfully on a40e388


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41155.
2023-07-14_16-20-48

avatar khu5h1 khu5h1 - test_item - 16 Jul 2023 - Tested successfully
avatar khu5h1
khu5h1 - comment - 16 Jul 2023

I have tested this item successfully on a40e388


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41155.

avatar richard67 richard67 - change - 16 Jul 2023
Status Pending Ready to Commit
Labels Added: NPM Resource Changed PR-4.3-dev
avatar richard67
richard67 - comment - 16 Jul 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41155.

avatar brianteeman
brianteeman - comment - 16 Jul 2023

What happens when you navigate backwards?

avatar richard67
richard67 - comment - 16 Jul 2023

What happens when you navigate backwards?

@brianteeman You mean with the „back“ button of the browser?

avatar brianteeman
brianteeman - comment - 16 Jul 2023

no I mean the back button in the tour

avatar GeraintEdwards
GeraintEdwards - comment - 17 Jul 2023

no I mean the back button in the tour

It is well behaved in my tests - did you see a problem? Can you should how to recreate it and I'll investigate.

p.s. Another of my PRs (for Joomla 5 at least) resolves the problem with orphan steps when you bit the browser back button e.g. in the middle of the article creation tour.

avatar GeraintEdwards GeraintEdwards - change - 17 Jul 2023
Labels Added: ? bug
avatar brianteeman
brianteeman - comment - 17 Jul 2023

It is well behaved in my tests - did you see a problem? Can you should how to recreate it and I'll investigate.

didnt test it just wanted to makie sure it was handled

avatar obuisard obuisard - change - 18 Jul 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-07-18 17:10:33
Closed_By obuisard
avatar obuisard obuisard - close - 18 Jul 2023
avatar obuisard obuisard - merge - 18 Jul 2023
avatar obuisard
obuisard - comment - 18 Jul 2023

Thanks Geraint @GeraintEdwards for the PR!

Add a Comment

Login with GitHub to post a comment