RTC Language Change NPM Resource Changed PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar obuisard
obuisard
18 Jul 2024

Summary of Changes

When creating tours, media content is very limited with the size of the popup.
Shepherd forces a popup width to be 400px max.
This PR proposes to increase the width to 600px and a popup that resizes according to its content.
In the case of a popup positioned a the center of the window, the max width could be increased even more (up to 1200px).

Testing Instructions

Run a few tours and see if the popups resize properly with different window sizes.
Add an image to a tour, run the tour and look at the result, either in a central position or at a bottom position.

Actual result BEFORE applying this Pull Request

image

image

image

Expected result AFTER applying this Pull Request

The content dictates the width of the popups, up to 600px, except for the center popups, up to 1200px.

image

image

image

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar obuisard obuisard - open - 18 Jul 2024
avatar obuisard obuisard - change - 18 Jul 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jul 2024
Category Repository NPM Change
avatar obuisard obuisard - change - 18 Jul 2024
The description was changed
avatar obuisard obuisard - edited - 18 Jul 2024
avatar obuisard obuisard - change - 18 Jul 2024
Labels Added: NPM Resource Changed PR-5.2-dev
avatar brianteeman
brianteeman - comment - 19 Jul 2024

How do you add an image. Every time I insert an image into the description and then save it is removed

avatar obuisard
obuisard - comment - 19 Jul 2024

How do you add an image. Every time I insert an image into the description and then save it is removed

Hi Brian, I use
image

I have not seen the behavior you are experiencing so far.
I think the removal of the image tag could be an editor setting issue.

avatar brianteeman
brianteeman - comment - 19 Jul 2024

tried on two different installs on different servers and the image is removed on save
Even tried without any editor and still no luck

tour

avatar obuisard
obuisard - comment - 19 Jul 2024

tried on two different installs on different servers and the image is removed on save Even tried without any editor and still no luck

Thanks for the gif.
I believe that is because you left the language key in the content. Have you tried without it? The language key takes precedence over the rest.

avatar brianteeman
brianteeman - comment - 19 Jul 2024

yes that was it. strange that you can add text to the language key but not an image

avatar obuisard
obuisard - comment - 19 Jul 2024

yes that was it. strange that you can add text to the language key but not an image

Yes, it has to be improved...

avatar brianteeman brianteeman - test_item - 20 Jul 2024 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 20 Jul 2024

I have tested this item ? unsuccessfully on 3a99243


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

avatar brianteeman
brianteeman - comment - 20 Jul 2024

It works fine when using a landscape image as shown in your instructions. However if you have a large portrait image it causes problems. Not least of which is that you can not exit the tour as you cannot reach the buttons.

Before PR

image

After PR

image

avatar obuisard
obuisard - comment - 20 Jul 2024

It works fine when using a landscape image as shown in your instructions. However if you have a large portrait image it causes problems. Not least of which is that you can not exit the tour as you cannot reach the buttons.

Yes, we had the problem before, even before this PR. The PR increases the width, so it makes the behavior even worse.
So I have added a fix for the height, so every tall popup shows more 'elegantly'.

image

avatar brianteeman brianteeman - test_item - 21 Jul 2024 - Tested successfully
avatar brianteeman
brianteeman - comment - 21 Jul 2024

I have tested this item ✅ successfully on ed67f8d


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

avatar obuisard obuisard - change - 21 Jul 2024
Title
[5.2] [Guided tours] Increase the width of the popup
[5.2] [Guided tours] Increase the width and adjust the height of the popup
avatar obuisard obuisard - edited - 21 Jul 2024
avatar Kostelano
Kostelano - comment - 22 Jul 2024

It is not entirely clear what the width of the window depends on. I just used the basic greeting tour and the blocks with roughly the same amount of text were very different in width. In addition, the buttons also “stretched out”.

There is no indentation below from the main block to the buttons. Previously he was.

Screenshot_2

Screenshot_3

avatar obuisard
obuisard - comment - 22 Jul 2024

It is not entirely clear what the width of the window depends on. I just used the basic greeting tour and the blocks with roughly the same amount of text were very different in width. In addition, the buttons also “stretched out”.

The popup resizes according to its content with this PR.
When targeting an element on the page, the popup resizes and is not allowed to be bigger than 600px (going over 600px is problematic when the popup needs to show on the left or the right of an element, it can go out of space really fast).
When NOT targeting any element on the page (the popup is showing in the center of the page), the popup can resize up to 1200px (depending also on how large the viewport is).

This is meant to allow more verbose content, images and videos ('what's new' tours -coming soon - will be more verbose).

People creating tours can visually tweak the tours to show 'elegantly' with this new behavior. It really depends on how the step content is formatted.
All core tours show 'nicely' out of the box with this new change, except for the welcome tour which could use a couple <br /> tags in the content of the 1st and 3rd steps to avoid a long line and expand to full width.

As far as button stretch, we left the default behavior where buttons adapt to the popup width.

avatar obuisard
obuisard - comment - 22 Jul 2024

There is no indentation below from the main block to the buttons. Previously he was.

Screenshot_2

I put the padding back, even though it was fixed in PR #43809. Padding needs to be set in both PRs so that content shows as intended when PRs are run separately.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2024
Category Repository NPM Change Administration Language & Strings Repository NPM Change
avatar obuisard obuisard - change - 22 Jul 2024
Labels Added: Language Change
avatar webiedesign webiedesign - test_item - 29 Jul 2024 - Tested successfully
avatar webiedesign
webiedesign - comment - 29 Jul 2024

I have tested this item ✅ successfully on 479d165

I added images to 2 guided tours and they adapted to my screen resolution up to aprox 1200. Mobile display resized appropriately and the targets remained where they should have.


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

avatar AboutTimeIT AboutTimeIT - test_item - 8 Aug 2024 - Tested successfully
avatar AboutTimeIT
AboutTimeIT - comment - 8 Aug 2024

I have tested this item ✅ successfully on 4906557

Tested it in ‎5.2.0-alpha3 with a 1280x683 image and a 1070x4182.
The landscape image is resized within the instructionswindow. The portrait image eil get scrollbars on the side of the main window so that the buttons stay available.
The Guided Tours windows stay on their positions when the images are inserted.


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

avatar Quy Quy - alter_testresult - 8 Aug 2024 - webiedesign: Tested successfully
avatar Quy Quy - alter_testresult - 8 Aug 2024 - AboutTimeIT: Tested successfully
avatar Quy Quy - change - 8 Aug 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 8 Aug 2024

RTC


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

avatar pe7er pe7er - change - 9 Aug 2024
Labels Added: RTC
avatar pe7er pe7er - close - 9 Aug 2024
avatar pe7er pe7er - merge - 9 Aug 2024
avatar pe7er pe7er - change - 9 Aug 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-08-09 09:33:47
Closed_By pe7er
avatar pe7er
pe7er - comment - 9 Aug 2024

Thanks @obuisard !

Add a Comment

Login with GitHub to post a comment