? ? Pending

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
24 Oct 2015

New PR to solve Merge Conflict of PR #6959 "Smart Search - move Filters (3x) from left to [Search Tools] "

Please follow the testing procedure of PR #6959


This PR moves the Filter option of all three views of Smart Search to the [Search Tools] button.
(See Issue #6941 regarding the inconsistency with Filter options).

Test instructions

You have to enable the Content - Smart Search Plugin, and Index your test website
Please check the 3 different views before & after the patch:
test all the filters and search box, clear results, choose max amount of results on a page.

Smart Search: Manage Indexed Content

Check the current position of the Filters

In back-end > Components > Smart Search > Indexed Content
The Filters are on the left hand side

screen shot 2015-05-15 at 14 22 52

This PR changes moves the Filter

from the left to the middle column and will be visible when you click on the [Search Tools] button.

screen shot 2015-05-15 at 14 22 52

Smart Search: Manage Content Maps

Check the current position of the Filters

In back-end > Components > Smart Search > Content Maps
The Filters are on the left hand side

screen shot 2015-05-15 at 14 22 52

This PR changes moves the Filter

from the left to the middle column and will be visible when you click on the [Search Tools] button.

screen shot 2015-05-15 at 14 22 52

Smart Search: Manage Search Filters

Check the current position of the Filters

In back-end > Components > Smart Search > Search Filters
The Filters are on the left hand side

screen shot 2015-05-15 at 14 22 52

This PR changes moves the Filter

from the left to the middle column and will be visible when you click on the [Search Tools] button.

screen shot 2015-05-15 at 14 22 52

Note

To Clear the Filters / Search box, you can use the [Clear] button.
However, sometimes you have to press 2 times to clear the results.
I don't know the cause and how to solve it...

avatar pe7er pe7er - open - 24 Oct 2015
avatar pe7er pe7er - change - 24 Oct 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Oct 2015
Labels Added: ? ?
avatar jduerscheid jduerscheid - test_item - 24 Oct 2015 - Tested successfully
avatar jduerscheid
jduerscheid - comment - 24 Oct 2015

I have tested this item :white_check_mark: successfully on 9a763fb


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

avatar pe7er
pe7er - comment - 24 Oct 2015

@roland-d I think that JHtmlSidebar::setAction can be removed.
I've removed the clearfix in all three list views.

avatar zero-24 zero-24 - change - 24 Oct 2015
Milestone Added:
avatar zero-24 zero-24 - change - 24 Oct 2015
Category Administration UI/UX
avatar zero-24 zero-24 - change - 24 Oct 2015
The description was changed
Labels
Easy No Yes
avatar n9iels
n9iels - comment - 31 Oct 2015

I applied the patch before activating the content plugin. The message that tells me that is now very close to the search filters. Maybe we can add some padding there?
smart search message

I also noticed that the filter on "Content maps" are always visible, and for some reason the filter on the right is always marked as an active filter (There are blue lines around it).
On other places where we use this filters (com_content for example) the blue line only appears when we choose an option of the filter.

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

This PR has received new commits.

CC: @jduerscheid


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

avatar pe7er
pe7er - comment - 3 Nov 2015

Thanks @n9iels, I corrected the Branch filter on "Content maps".
Now it is not activated automatically anymore.

btw: I did not change the padding of the warning message...

avatar n9iels
n9iels - comment - 4 Nov 2015

Yes, that works for me! :smile: I see now the same problem appears for "indexed content", the search filter "Select type of content" is always active over there.

Also the search filter on "Content mapping" are always visible on that page. Or is that done by a certain reason?

avatar n9iels
n9iels - comment - 4 Nov 2015

About that padding and the message. Strange enough the message appears below the search filters. Other messages like "save" and "delete" appear above the messages.

Seems like all other message than "successfully saved", "successfully deleted" etc. appear below the filters. Not a problem for this PR I think so.
I will make a PR for that :+1: (after this PR and others are merged, otherwise that merge conflicts never solves :wink: )

avatar pe7er
pe7er - comment - 4 Nov 2015

Thanks for testing!

No, I did not set the filter to "always active" on purpose. I'll check if I can correct it.

If someone knows the cause of the problem, please correct it with a PR,
or tell me what to change & I'll do so...

avatar roland-d
roland-d - comment - 4 Nov 2015

@pe7er The "always active" happens because you have set a default value of 0 here: https://github.com/joomla/joomla-cms/pull/8140/files#diff-762a4c09ff9b1a26880f1391232575c2R23

The first option you give to the dropdown has a value of 0:
https://github.com/joomla/joomla-cms/pull/8140/files#diff-762a4c09ff9b1a26880f1391232575c2R29

that is why the first entry becomes an active one. I guess you can drop the default value setting.

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

This PR has received new commits.

CC: @jduerscheid


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

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

This PR has received new commits.

CC: @jduerscheid


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

avatar zero-24
zero-24 - comment - 4 Nov 2015

@pe7er Travis cry

FILE: ...d/joomla/joomla-cms/administrator/components/com_finder/models/maps.php
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
 176 | ERROR | Expected "if (...)\n...{...}\n...else\n"; found "if
     |       | (...)\n...{...}\n...else"
 184 | ERROR | Expected "if (...)\n...{...}\n...else\n"; found "if
     |       | (...)\n...{...}...else"
--------------------------------------------------------------------------------
UPGRADE TO PHP_CODESNIFFER 2.0 TO FIX ERRORS AUTOMATICALLY
--------------------------------------------------------------------------------
avatar roland-d
roland-d - comment - 4 Nov 2015

I don't think the last change is correct. In Joomla 3.4.5 the dropdown looks like this:
finder

Branches only as first option and I think we should keep that.

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

This PR has received new commits.

CC: @jduerscheid


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

avatar pe7er
pe7er - comment - 4 Nov 2015

I removed my previous PR "fixed Select Branch dropdown in Smart Search Content Maps"

avatar Kubik-Rubik Kubik-Rubik - test_item - 4 Nov 2015 - Tested successfully
avatar Kubik-Rubik
Kubik-Rubik - comment - 4 Nov 2015

I have tested this item :white_check_mark: successfully on 26670dd

Works as described. Thank you @pe7er!


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

avatar Kubik-Rubik
Kubik-Rubik - comment - 4 Nov 2015

Works but a small design problem:

2015-11-04 21_32_38-joomla-cms - administration - smart search_ indexed content

This can also be fixed after we've merged this PR!

avatar dgt41 dgt41 - test_item - 4 Nov 2015 - Tested successfully
avatar dgt41
dgt41 - comment - 4 Nov 2015

I have tested this item :white_check_mark: successfully on 26670dd


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

avatar dgt41
dgt41 - comment - 4 Nov 2015

To solve the problem Victor mentioned above just move the filters under the message
like this:

        <?php if (!$this->pluginState['plg_content_finder']->enabled) : ?>
            <div class="alert fade in">
                <button class="close" data-dismiss="alert">×</button>
                <?php echo JText::_('COM_FINDER_INDEX_PLUGIN_CONTENT_NOT_ENABLED'); ?>
            </div>
        <?php endif; ?>
        <?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
avatar n9iels
n9iels - comment - 4 Nov 2015

I spotted that design problem too. Maybe it is an idea to move that message to a JFactory::getApplication()->enqueueMessage There are more component with that problem, where the search filters will be add.

Can make a PR for that components, when this PR is merged (to prevent merge conflicts)

avatar zero-24 zero-24 - change - 4 Nov 2015
Status Pending Ready to Commit
Labels
avatar zero-24
zero-24 - comment - 4 Nov 2015

RTC lets merge here and @n9iels or @dgt41 can send a fix for the design problem. Thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2015
Labels Added: ?
avatar roland-d roland-d - change - 4 Nov 2015
Status Ready to Commit Pending
Labels
avatar roland-d
roland-d - comment - 4 Nov 2015

The branches dropdown needs to be checked. It is quite different from the current implementation.


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

avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2015
Labels Removed: ?
avatar zero-24
zero-24 - comment - 4 Nov 2015

Ah sorry overread this comment ;)

avatar dgt41
dgt41 - comment - 4 Nov 2015

Looks good to me:
screenshot 2015-11-04 23 36 38

avatar roland-d
roland-d - comment - 4 Nov 2015

@dgt41 Compare it to the implementation in J3.4.5, it is quite different. The current implementation uses it's own JHtml class, that is completely skipped now.

avatar dgt41
dgt41 - comment - 4 Nov 2015

ahh yeah, the finder way ????

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

This PR has received new commits.

CC: @dgt41, @jduerscheid, @Kubik-Rubik


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

avatar pe7er
pe7er - comment - 4 Nov 2015

I've removed the hardcoded SQL
query="SELECT id AS value, title AS branch FROM #__finder_taxonomy WHERE parent_id = 1"
from /administrator/components/com_finder/models/forms/filter_maps.xml and
added /administrator/components/com_finder/models/fields/branches.php
to retrieve the branches.

avatar dgt41
dgt41 - comment - 4 Nov 2015

@pe7er I am afraid that administrator/components/com_finder/models/fields/branches.php doesn;t cover all the functionality of the old JHtml class https://github.com/joomla/joomla-cms/blob/staging/components/com_finder/helpers/html/filter.php#L208-L394

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

This PR has received new commits.

CC: @dgt41, @jduerscheid, @Kubik-Rubik


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

avatar pe7er
pe7er - comment - 4 Nov 2015

Removed the SQL query from fields/branches.php & replaced with return JHtml::_('finder.mapslist');
Thanks for the tip @roland-d !

avatar dgt41
dgt41 - comment - 4 Nov 2015

@pe7er can you also implement this #8140 (comment)
so I can re-test this?

File administrator/components/com_finder/views/index/tmpl/default.php

avatar pe7er
pe7er - comment - 4 Nov 2015

@dgt41 yes, please!
I think that we should correct the layout issue with the message later because it might need to be corrected at other places as well...

avatar dgt41
dgt41 - comment - 4 Nov 2015

Works fine here, one small UX tho:
screenshot 2015-11-05 01 18 30

avatar designbengel
designbengel - comment - 4 Nov 2015

Small issue:

Before:
bildschirmfoto 2015-11-05 um 00 22 00

After patch:
bildschirmfoto 2015-11-05 um 00 22 41

avatar designbengel
designbengel - comment - 4 Nov 2015

I don´t know if this regards this PR but if i don´t have published filters there is a message that "No filters have been created yet. Create a filter." - that´s not true because there are filters but they are unpublished.
bildschirmfoto 2015-11-05 um 00 25 04

avatar pe7er
pe7er - comment - 4 Nov 2015

Thanks for testing @dgt41 & @designbengel !
Those UX issues need to be corrected, but I think that it could be done for beta2 in another PR.

avatar designbengel
designbengel - comment - 4 Nov 2015

There is a Message that no content has been indexed by filtering unpublished items?

bildschirmfoto 2015-11-05 um 00 27 24

avatar roland-d
roland-d - comment - 4 Nov 2015

@designbengel I think this is an existing issue, this PR only moves the buttons from the sidebur to the Search Tools bar. Perhaps raise a separate issue for that?

avatar designbengel designbengel - test_item - 4 Nov 2015 - Tested successfully
avatar designbengel
designbengel - comment - 4 Nov 2015

I have tested this item :white_check_mark: successfully on b14cbd4

Ok, so like @roland-d says it´s regarding just the location-change of filters - so test for this is ok :)


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

avatar roland-d roland-d - change - 4 Nov 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-11-04 23:34:49
Closed_By roland-d
avatar roland-d roland-d - close - 4 Nov 2015
avatar pe7er pe7er - head_ref_deleted - 5 Nov 2015
avatar infograf768
infograf768 - comment - 27 Nov 2015

Folks, I can't see
COM_FINDER_MAPS_SELECT_BRANCHE="- Select Branch -"
anywhere.

screen shot 2015-11-27 at 17 43 51

avatar infograf768
infograf768 - comment - 28 Nov 2015

@pe7er @roland-d

I have the feeling some new lang strings were merged here that should'nt have...

avatar infograf768 infograf768 - reference | dbc02cb - 28 Nov 15
avatar infograf768
infograf768 - comment - 28 Nov 2015

@pe7er @roland-d Please test
#8558

Add a Comment

Login with GitHub to post a comment