J4 Issue ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
16 Nov 2018

Replaces and complete #23061 (for what concerns Joomla Update).

Implement NOTE in #23061 (comment)

Summary of Changes

  1. Adding Joomla Version
  2. Change icon color to warning when an update is available as danger is used in case of error.
  3. Place the Update Now and View Updates buttons to the bottom right of the Message, centering the rest of the message.
  4. Adapt Atum CSS concerned to RTL, including the joomla-alert
  5. Correct unnecessary , and : in the language strings
  6. Correct Text::script to false by default to let single quotes in language strings to display unescaped instead of \'

Testing Instructions

To test on 4.0-dev branch

Concerning joomlaupdate:
Modify version.php line 63 to const EXTRA_VERSION = 'alpha4-dev';
Go to database and Fix database.
Then in JoomlaUpdate Options choose Custom URL and add this link (Thanks Tobias) :
https://update.joomla.org/core/nightlies/next_major_list.xml
Save Options.
Display Control Panel.

Concerning extensions update:
Install an older language pack in order to get a warning for an update.
fr-FR_joomla_lang_full_3.9.0v1.zip

in both cases, test also RTL by installing and switching to Persian language.

Test before patch, then run npm ci

Expected result

screen shot 2018-11-16 at 11 22 24

screen shot 2018-11-16 at 09 31 19

screen shot 2018-11-16 at 09 30 00

screen shot 2018-11-16 at 11 45 28

@tuum @wilsonge

avatar infograf768 infograf768 - open - 16 Nov 2018
avatar infograf768 infograf768 - change - 16 Nov 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Nov 2018
Category Administration Language & Strings Templates (admin) JavaScript Repository Front End Plugins
avatar infograf768 infograf768 - change - 16 Nov 2018
Labels Added: J4 Issue ? ?
avatar richard67
richard67 - comment - 17 Nov 2018

I have tested this item successfully on a419403


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

avatar richard67 richard67 - test_item - 17 Nov 2018 - Tested successfully
avatar infograf768
infograf768 - comment - 18 Nov 2018

Note: furher PR will correct RTL for the J version

avatar infograf768
infograf768 - comment - 18 Nov 2018

@richard67
I need to update this now for RTL version but also for another js issue.
Please test again after I updated.

avatar infograf768
infograf768 - comment - 18 Nov 2018

@richard67
OK, you can test again now.
The modifications concern the version in RTL (Test by using Persian), as well as showing the Joomlaupdate Quickicon in Green when there is no Update available.

screen shot 2018-11-18 at 11 40 31

screen shot 2018-11-18 at 11 48 41

avatar richard67
richard67 - comment - 18 Nov 2018

@infograf768 I don't see any difference in the Persian screenshots. What has changed?


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

avatar infograf768
infograf768 - comment - 18 Nov 2018

formerly (see on top), the version read alpha6-dev etc.
it now displays correctly 4.0.0-alpha etc, i.e. the version is ltr in a rtl lang string

avatar richard67
richard67 - comment - 18 Nov 2018

I see now.


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

avatar richard67
richard67 - comment - 18 Nov 2018

@infograf768 Now I tested and it seemed ok. But after switching back the Joomla update channel to "Default" and changing back Version.php and fixing the database, I get a javascript error from the Joomla update check, and the update check does not finish:
screen shot 2018-11-18 at 11 55 18
Reverting the PR and running "npm ci" does not fix that, so I am not sure if related to this PR or not.


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

avatar richard67
richard67 - comment - 18 Nov 2018

@infograf768 I've started again with clean 4.0-dev, installed patch tester, applied your patch, run "npm ci", switched on system debugging in global settings so uncompressed js is used.
The js error is in jupdatecheck.js, row 32, column 11, which is statement "if (updateInfo.version === options.version) {", and sais "TypeError: updateInfo is undefined".
This seems to come from your last change.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23095.
avatar richard67
richard67 - comment - 18 Nov 2018

@infograf768 It seems that the "if (updateInfoList.length === 0) {" you've removed with your last change was not there for no reason.

avatar infograf768
infograf768 - comment - 18 Nov 2018

on ipad now. will look later. the issue was to get the ‘success’ class instead of only ‘pulse’. we may have to define as var and empty the ‘updateinfo.version’ first.

avatar richard67
richard67 - comment - 18 Nov 2018

@infograf768 Can you check if my PR infograf768#50 against your branch is the right thing to correct it and get what you want with the success class? Unfortunately I made a mistake in title of the commit so it contains "warning" instead of "success", which is misleading. So you better just check it and if ok do the same change yourself.

avatar richard67
richard67 - comment - 18 Nov 2018

@infograf768 I've just tested my changes from infograf768#50, applied to this PR here, and it works. Javascript error is gone, and Joomla Update is green.

avatar infograf768
infograf768 - comment - 18 Nov 2018

Thanks @richard67
I mark your test Ok again.

avatar infograf768 infograf768 - alter_testresult - 18 Nov 2018 - richard67: Tested successfully
avatar richard67
richard67 - comment - 18 Nov 2018

Yes, I've just tested again, works all well.


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

avatar infograf768
infograf768 - comment - 23 Nov 2018

RTL can now be tested fully as alert has been updated.
One has to use present 4.0.0-dev branch, patch and run npm ci.

Result:
screen shot 2018-11-23 at 10 12 00

@richard67

avatar richard67
richard67 - comment - 24 Nov 2018

I have tested this item successfully on 4ed7a1b


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

avatar richard67 richard67 - test_item - 24 Nov 2018 - Tested successfully
avatar infograf768
infograf768 - comment - 24 Nov 2018

@wilsonge
same comment as in the other PR.
RTL testers are a rare category... ;)

avatar wilsonge wilsonge - change - 28 Nov 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-11-28 11:45:18
Closed_By wilsonge
avatar wilsonge wilsonge - close - 28 Nov 2018
avatar wilsonge wilsonge - merge - 28 Nov 2018
avatar wilsonge
wilsonge - comment - 28 Nov 2018

Thanks JM!

avatar infograf768
infograf768 - comment - 28 Nov 2018

and @richard67 ;)

Add a Comment

Login with GitHub to post a comment