? ? Success

User tests: Successful: Unsuccessful:

avatar n9iels
n9iels
5 Nov 2015

With the move of all the filter from the left sidebar to joomla.serachtools some component messages has a small layout issue. The messages are stick to the serachtools, without padding.

This PR moves all messages like "Enable this plugin", "This option is enabled" to a JFactory::getApplication()->enqueueMessage(). So they will be displayed above the serachtools. All messages like "There are no item available` stay below the searchtools.

Test instructions

Compare the following screenshots
1) Go to Components -> Smart Search
Before the patch:
com_finder before

After the patch:
com_finder after

2) Go to Extensions -> Manage -> Database
Before the patch:
com_installer database before

After the patch:
com_install database after

3) Go to Extensions -> Install
Before patch:
com_install before

After patch:
com_install after

4) Go to Extensions -> update
Before patch:
com_install update before

After patch:
com_install update after

5) Go to Components -> Redirect
Before the patch:
com_redirect before

After the patch:
com_redirect after

6) Go to components -> Search
Before the patch:
com_search before

After the patch:
com_search after

7) Disable the plugin, and enable/disable the Gathering statistics options. Confirm the messages are the same before and after the patch

Question

Does anybody know if the remove of administrator/manifests/packages/pkg_weblinks.xml in this PR is something I should care about?

avatar n9iels n9iels - open - 5 Nov 2015
avatar n9iels n9iels - change - 5 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Nov 2015
Labels Added: ? ?
avatar wilsonge
wilsonge - comment - 5 Nov 2015

Answer

The weblinks package is required to help people who previously had weblinks as part of core to transition to the new core supported version. If weblinks doesn't exist when you update Joomla then the file is removed (https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/script.php#L1435-L1443)

avatar n9iels
n9iels - comment - 5 Nov 2015

@wilsonge thx for the explanation, I re-add that file :)

avatar brianteeman
brianteeman - comment - 5 Nov 2015

Looks like there are some language changes here that are unrelated

avatar n9iels
n9iels - comment - 5 Nov 2015

That language change is correct. The new message for com_cache has the text "Warning" by default and is generated by Factory::getApplication()->enqueueMessage(). Without that language change, it say something like:
Warning
WARNING: This can be resource intensive on sites with a large number of items!

avatar brianteeman
brianteeman - comment - 5 Nov 2015

OK

avatar Bakual
Bakual - comment - 5 Nov 2015

The one for the expired cache looks a bit wrong afterwards. Because the message relates to the other text. With this PR you first get the warning and only afterwards for what the warning actually is.
I would revert that as it makes more sense when the warning comes right AFTER the text it is tied to.

On a general note, I think the message generation (enqueueMessage) should be done in the view class and not in the layouts. Reason is mainly because the output isn't part of the layout anymore now and you want to show the message regardless of layout. In the view, you often also have the application object already available.

Other than that, I think it makes sense to use the API to show such warnings/notices.

avatar n9iels
n9iels - comment - 5 Nov 2015

@Bakual agree with that.
I move the enqueueMessage to the view.html.php of the components. Better?

avatar Bakual
Bakual - comment - 5 Nov 2015

Yep, looks better to me now.
I see you also moved CSS to the template. If you really want to do that, you need to do it in the LESS file (https://github.com/joomla/joomla-cms/blob/staging/administrator/templates/isis/less/template.less) and run https://github.com/joomla/joomla-cms/blob/staging/build/generatecss.php afterwards.
However I don't really see why we even have the CSS in place. The difference is only minor. Imho, we could remove the CSS and also the special class j-jed-message. Or does anyone know why that is there?

avatar n9iels
n9iels - comment - 6 Nov 2015

I can't find why and when that class and css were add. My only guess is that the colour is done for usability, so you can see the difference between the links and the normal text. For the line-height I have no idea...
The other css class for that view is for the loader. I think that class can stay there, because the loader is not used for many page. So we don't have to load that images every time.

And yes off course, make the changes in LESS. How could I forget that.... :sweat_smile:

avatar datredweb datredweb - test_item - 6 Nov 2015 - Tested unsuccessfully
avatar datredweb
datredweb - comment - 6 Nov 2015

I have tested this item :red_circle: unsuccessfully on 379b513

after clicking on Smart Search, there is error shown up:

JForm::getInstance could not load file


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

avatar n9iels
n9iels - comment - 6 Nov 2015

@datredweb I cannot reproduce that error. Also, this PR didn't change anything for JForm objects. So I think this an error on you side

avatar zero-24 zero-24 - change - 7 Nov 2015
Category Administration Templates (admin) UI/UX
avatar zero-24 zero-24 - change - 7 Nov 2015
Labels
Easy No Yes
avatar 810
810 - comment - 7 Nov 2015

@test +1

avatar zero-24 zero-24 - alter_testresult - 7 Nov 2015 - 810: Tested successfully
avatar infograf768
infograf768 - comment - 8 Nov 2015

The new css in Isis

+.j-jed-message {
+   line-height: 2em;
+   color:#333333;
+}

should be added in the less file and then cli generatecss has to be used.

avatar joomla-cms-bot
joomla-cms-bot - comment - 8 Nov 2015

This PR has received new commits.

CC: @810, @datredweb


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 8 Nov 2015

This PR has received new commits.

CC: @810, @datredweb


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

avatar n9iels
n9iels - comment - 8 Nov 2015

I add the css tot the less file. The change in the template.css less of protostar is someting from #7776. Seems like I made a mistake over there.

I will solve that merge conflicts later

avatar infograf768 infograf768 - test_item - 8 Nov 2015 - Tested successfully
avatar infograf768
infograf768 - comment - 8 Nov 2015

I have tested this item :white_check_mark: successfully on e615b73


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 11 Nov 2015

This PR has received new commits.

CC: @810, @datredweb, @infograf768


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

avatar n9iels n9iels - change - 11 Nov 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-11-11 11:43:06
Closed_By n9iels
avatar n9iels n9iels - close - 11 Nov 2015
avatar joomla-cms-bot
joomla-cms-bot - comment - 11 Nov 2015

This PR has received new commits.

CC: @810, @datredweb, @infograf768


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 11 Nov 2015

This PR has received new commits.

CC: @810, @datredweb, @infograf768


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

avatar n9iels
n9iels - comment - 11 Nov 2015

uhm.... can anyone tell me what just happened?...
I tried to solve the merge conflicts and now it seems like I deleted all my changes for this branch :cry:

avatar zero-24
zero-24 - comment - 11 Nov 2015

yes. there are no changes now here. And the PR is closed. maybe you can revert the last commit and see what happens?

avatar n9iels
n9iels - comment - 11 Nov 2015

well, that is exactly what I did. I tried to solve the merge conflicts, but the whole staging came up with it. So I revert that commit, and this happened.

I think I have a copy of the branch on my pc (working from a laptop now). I hope so....

avatar Bakual
Bakual - comment - 11 Nov 2015

If you have the old state somewhere, just force push it, replacing the code on GitHub completely.

avatar infograf768
infograf768 - comment - 11 Nov 2015

And please post here the # of the new PR

avatar n9iels
n9iels - comment - 12 Nov 2015

Please see #8399

Add a Comment

Login with GitHub to post a comment