? ? Pending

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
20 Jan 2018

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Apply the patch and check the backend when saving an article or saving the global configuration

Expected result

Actual result

Documentation Changes Required

Nope

avatar dgt41 dgt41 - open - 20 Jan 2018
avatar dgt41 dgt41 - change - 20 Jan 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2018
Category JavaScript Repository Layout
avatar dgt41 dgt41 - change - 20 Jan 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2018
Category JavaScript Repository Layout JavaScript Repository
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2018
Category JavaScript Repository JavaScript Repository Layout
avatar Anu1601CS
Anu1601CS - comment - 20 Jan 2018

I have tested this item successfully on 1084d20


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

avatar Anu1601CS Anu1601CS - test_item - 20 Jan 2018 - Tested successfully
avatar astridx
astridx - comment - 20 Jan 2018

I have tested this item successfully on 1084d20


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

avatar astridx astridx - test_item - 20 Jan 2018 - Tested successfully
avatar Quy Quy - change - 21 Jan 2018
Status Pending Ready to Commit
avatar joomla-cms-bot joomla-cms-bot - edited - 21 Jan 2018
avatar Quy Quy - change - 21 Jan 2018
Status Ready to Commit Pending
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Jan 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Jan 2018

Ready to Commit after two successful tests.

avatar dgt41 dgt41 - change - 21 Jan 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jan 2018
Category JavaScript Repository Layout Layout JavaScript
avatar dgt41 dgt41 - change - 21 Jan 2018
Status Ready to Commit Pending
Labels
avatar dgt41
dgt41 - comment - 21 Jan 2018

I've removed the RTC label as I realised that I was pushing the wrong code here. This PR now restores the alert element to the state of pre Grunt kill PR. As a bonus the alerts on save are green instead of blue.

@Anu1601CS @astridx can you please test again?

avatar Anu1601CS
Anu1601CS - comment - 21 Jan 2018

@dgt41 yeah


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

avatar Anu1601CS
Anu1601CS - comment - 21 Jan 2018

Joomla statistics message still transparent.

screenshot from 2018-01-21 17-00-55

And Popular Articles and Recently Added Articles have no background color.
screenshot from 2018-01-21 17-07-31

avatar dgt41
dgt41 - comment - 21 Jan 2018

@Anu1601CS for popular and Recently there is a bug in the html, we pass type attribute but the alerts expect level: so this <joomla-alert type="warning"> will not work but this will <joomla-alert level="warning">.
Same for the plugin system/stats

avatar dgt41 dgt41 - change - 21 Jan 2018
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jan 2018
Category JavaScript Layout Installation Layout JavaScript
avatar Anu1601CS
Anu1601CS - comment - 21 Jan 2018

So , you change level to type .

avatar dgt41
dgt41 - comment - 21 Jan 2018

Yes, it seems that most entries were with attribute type not level so I reverted all the level to type

avatar Anu1601CS
Anu1601CS - comment - 21 Jan 2018

So, all changes are done?. If yes then I can test this patch.

avatar dgt41
dgt41 - comment - 21 Jan 2018

@Anu1601CS go ahead

avatar Anu1601CS
Anu1601CS - comment - 21 Jan 2018

I have tested this item successfully on 4c9325e


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

avatar Anu1601CS Anu1601CS - test_item - 21 Jan 2018 - Tested successfully
avatar astridx
astridx - comment - 21 Jan 2018

I have tested this item successfully on 4c9325e

After apply the path: When saving an article or saving the global configuration I see an message with a background that is is not transparent.


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

avatar astridx astridx - test_item - 21 Jan 2018 - Tested successfully
avatar Quy Quy - change - 21 Jan 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 21 Jan 2018

RTC


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

avatar C-Lodder
C-Lodder - comment - 21 Jan 2018

@dgt41 am I ever going to be able to pursuade you about that line of code? Lol

avatar dgt41
dgt41 - comment - 21 Jan 2018

not for the current codebase, this is already dead code! @ciar4n and me already working on the new design and the updated specs and I guess we can remove that there. Although alerts should strictly be info, warning, success and error, at least in my book...

avatar C-Lodder
C-Lodder - comment - 22 Jan 2018

Yes, I agree they should, but what I'm saying is, we should only check if a value doesn't exist exists:

if (!newValue) {

not check if it matches one of our predefined styles:

if (!newValue || newValue && ['info', 'warning', 'danger', 'success'].indexOf(newValue) === -1) {
avatar dgt41 dgt41 - change - 27 Jan 2018
Labels Added: ?
avatar infograf768
infograf768 - comment - 27 Jan 2018

@dgt41
Unsuccessful here for <joomla-alert type="info"> i.e. the text does not display.
we get a display:none;

I do get the text though if I use
<joomla-alert[type="info"]
but no colour, no background.

In the image below the blue colour comes from the highlighting

screen shot 2018-01-27 at 10 45 13

avatar C-Lodder
C-Lodder - comment - 27 Jan 2018

Looks like the JS isnt being loaded or there's a console log error then. Which view are you testing on?

avatar infograf768
infograf768 - comment - 27 Jan 2018

On a non-multilingual site, I display –as the screenshot shows– the multilangstatus module in its popup.
The js file is loaded
screen shot 2018-01-27 at 11 05 36

Console shows

Custom Elements: `Element#attachShadow` was not patched.
webcomponents-ce.min.js:1:7969

avatar dgt41
dgt41 - comment - 27 Jan 2018

@infograf768 can you check if the css is loaded? How did you applied the patch?

avatar dgt41
dgt41 - comment - 27 Jan 2018

The warning is ok and it’s coming from the polyfill, so you are testing this with Firefox

avatar infograf768
infograf768 - comment - 27 Jan 2018

Yes I use Firefox as usual

avatar C-Lodder
C-Lodder - comment - 27 Jan 2018

If it works with your alternate method then the custom element is defaulting to a span tag, which means the alert-es5.min.js file probably isnt being loaded at all. The console log notice you have comes frim the polyfill

avatar dgt41
dgt41 - comment - 27 Jan 2018

Firefox is not loading es5. The error is either wrong html code (he mentioned that there is a correct tag) or the css. So in this case should be css. Please probably caching (using the old css which expected level=“info” instead of type

avatar infograf768
infograf768 - comment - 27 Jan 2018

It does not work with the alternate method, it just barely displays the text.

alert-es5.min.js (whatever that is) is not loaded indeed
Here is what is loaded:
screen shot 2018-01-27 at 11 32 42

Same result with Safari and Chrome (both could not use a cache as there were used for the first time)

avatar dgt41
dgt41 - comment - 27 Jan 2018

Can you give me steps to replicate this, makes 0 sense trying to guess here

avatar infograf768
infograf768 - comment - 27 Jan 2018

Easy enough
Install a clean site (not multilingual.
In the Module Manager filter by administrator.
Publish the Multilingual Status module

Then click on its icon. It will trigger the popup
screen shot 2018-01-27 at 11 43 08

the code used is
https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_languages/tmpl/multilangstatus/default.php#L18-L23

FYI: these are the CSS loaded
screen shot 2018-01-27 at 11 42 54

avatar joomla-cms-bot joomla-cms-bot - change - 27 Jan 2018
Category JavaScript Layout Installation Administration Templates (admin) Installation Layout JavaScript
avatar dgt41
dgt41 - comment - 27 Jan 2018

@infograf768 there you go, apply latest commit:
before
screen shot 2018-01-27 at 11 47 06

after
screen shot 2018-01-27 at 12 00 52

PS the problem was that for the component.php we didn't load the alert element

avatar infograf768
infograf768 - comment - 27 Jan 2018

Works fine now.

avatar wilsonge wilsonge - change - 27 Jan 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-01-27 17:56:21
Closed_By wilsonge
avatar wilsonge wilsonge - close - 27 Jan 2018
avatar wilsonge wilsonge - merge - 27 Jan 2018
avatar wilsonge
wilsonge - comment - 27 Jan 2018

Nice work guys :)

Add a Comment

Login with GitHub to post a comment