? ? Pending
Referenced as Pull Request for: # 10274

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
23 Apr 2016

Pull Request for New Issues/Improvements.

Summary of Changes

This PR normalizes this view by adding the ordering to the searchtools in com_finder maps view.

Also:

  • Corrects some bugs in the searchtools (for instance, #10061).
  • Some code style improvements.
  • Some code improvements.
  • Normalizes layout with other views.
  • Added max level filter.
Before PR

image

After PR

image

Testing Instructions

  1. Use latest staging and apply patch
  2. Go to Components -> Smart Search -> Filters (Create some index)
  3. Go to Components -> Smart Search -> Content Maps
  4. Test if search, filters, ordering and page limit (aka searchtools) are working properly.
  5. Test also if the toolsbar buttons work properly.

@chrisdavenport to normalize this view with other views, i created two levels of content (branches/childs). Can you confirm there can exist more levels in the finder content maps? thanks

The levels are obtined from this query.

avatar andrepereiradasilva andrepereiradasilva - open - 23 Apr 2016
avatar andrepereiradasilva andrepereiradasilva - change - 23 Apr 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Apr 2016
Labels Added: ? ?
avatar andrepereiradasilva andrepereiradasilva - change - 23 Apr 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 23 Apr 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 23 Apr 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 23 Apr 2016
The description was changed
avatar chrisdavenport chrisdavenport - test_item - 23 Apr 2016 - Tested successfully
avatar chrisdavenport
chrisdavenport - comment - 23 Apr 2016

I have tested this item :white_check_mark: successfully on cb080d9

Content maps are intended to be "flat" and we have no immediate plans to make them hierarchical. So Max Levels cannot be greater than 2.


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 23 Apr 2016

nice thanks!

avatar brianteeman brianteeman - change - 24 Apr 2016
Labels
avatar brianteeman brianteeman - change - 24 Apr 2016
Category Components UI/UX
avatar brianteeman
brianteeman - comment - 24 Apr 2016

You have made a language string change but I didnt find yet where that is used

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Apr 2016
# egrep -R "COM_FINDER_ITEM_X_ONLY" /path/to/joomla-staging/
/path/to/joomla-staging/administrator/language/en-GB/en-GB.com_finder.ini:COM_FINDER_ITEM_X_ONLY="%s Only"
/path/to/joomla-staging/administrator/components/com_finder/helpers/html/finder.php:                       $string = JText::sprintf('COM_FINDER                                                    _ITEM_X_ONLY', JText::_($key));
/path/to/joomla-staging/administrator/components/com_finder/helpers/html/finder.php:                       $string = JText::sprintf('COM_FINDER                                                    _ITEM_X_ONLY', JText::_($key));
/path/to/joomla-staging/administrator/components/com_finder/helpers/html/finder.php:               $options[] = JHtml::_('select.option', '1',                                                     JText::sprintf('COM_FINDER_ITEM_X_ONLY', JText::_('JPUBLISHED')));
/path/to/joomla-staging/administrator/components/com_finder/helpers/html/finder.php:               $options[] = JHtml::_('select.option', '0',                                                     JText::sprintf('COM_FINDER_ITEM_X_ONLY', JText::_('JUNPUBLISHED')));

The Branches filter

UPDATE: Actually now that i see it it's better no not chnage it and not use it at all...

avatar brianteeman
brianteeman - comment - 24 Apr 2016

I know how to use grep ;)

I am looking for the real world example of the strong being used


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Apr 2016

eheheh

The "[...] Only" is used at least here:
image

avatar brianteeman
brianteeman - comment - 24 Apr 2016

Thanks - I see it now. Which brings the question why is that a plural. The branch is singular isnt it? @chrisdavenport


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

avatar chrisdavenport
chrisdavenport - comment - 24 Apr 2016

The top-level branch name should be the singular form since that is used in the query "language" where it makes sense. For consistency, I agree that it would make sense for the drop-down to also use the singular forms.

I've been giving this a little thought and I think that "map group" would be a better term than "branch" in this context. We already refer to the page as "Content Maps" so I think we should reinforce that term rather than introducing any new ones.

I'm thinking that the page should show a list with columns "Status", "Title", "Maps" and "Content items". The drop-down "Select branch" becomes "Select map group". The column "Maps" contains the number of maps within the map groups (this is something that was dropped in this PR, but is actually quite useful). The column "Content items" replaces "Nodes".

avatar brianteeman
brianteeman - comment - 24 Apr 2016

Can you post that in the en-gb issues and I will take a look at it there.
Shouldn't effect this PR.
On 24 Apr 2016 5:31 pm, "Chris Davenport" notifications@github.com wrote:

The top-level branch name should be the singular form since that is used
in the query "language" where it makes sense. For consistency, I agree that
it would make sense for the drop-down to also use the singular forms.

I've been giving this a little thought and I think that "map group" would
be a better term than "branch" in this context. We already refer to the
page as "Content Maps" so I think we should reinforce that term rather than
introducing any new ones.

I'm thinking that the page should show a list with columns "Status",
"Title", "Maps" and "Content items". The drop-down "Select branch" becomes
"Select map group". The column "Maps" contains the number of maps within
the map groups (this is something that was dropped in this PR, but is
actually quite useful). The column "Content items" replaces "Nodes".


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#10068 (comment)

avatar chrisdavenport
chrisdavenport - comment - 24 Apr 2016

Good idea, although I'd like to see the maps count re-introduced in the PR.

avatar brianteeman
brianteeman - comment - 24 Apr 2016

OK @andrepereiradasilva please put the count back and we will discuss the language strings in the user interface group

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Apr 2016

put the count back

What count?

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Apr 2016

by "count" do you mean the level 1 count?

image

I remvoed it because this way is more in line with other views (don't have tree subitems count).

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Apr 2016

but ok i will put it. and put singular forms in the filters.
The rest will leave for discussion in joomla/user-interface-text#58 for another PR perhaps.

avatar chrisdavenport
chrisdavenport - comment - 24 Apr 2016

@andrepereiradasilva Thanks. That count can be quite useful, especially when debugging a search plugin. Sometimes the number can be in the hundreds so it would be a bit tedious to count them by hand. ;-)

avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Apr 2016

This PR has received new commits.

CC: @chrisdavenport


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Apr 2016

This PR has received new commits.

CC: @chrisdavenport


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Apr 2016

done

image

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Apr 2016

BTW @chrisdavenport i don't understand much of the com_finder. never used it myself.
Can you enlighten me? why does exist a branch "Category" and then a "Category" inside the branch "Type"?

avatar brianteeman brianteeman - change - 27 Apr 2016
Labels
avatar brianteeman brianteeman - change - 27 Apr 2016
Category Components UI/UX Components Language & Strings UI/UX
avatar andrepereiradasilva andrepereiradasilva - change - 2 May 2016
Labels
avatar joomla-cms-bot
joomla-cms-bot - comment - 2 May 2016

This PR has received new commits.

CC: @chrisdavenport


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 2 May 2016

This PR has received new commits.

CC: @chrisdavenport


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 2 May 2016

This PR has received new commits.

CC: @chrisdavenport


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 2 May 2016

conflicts fixed.

@chrisdavenport @brianteeman Please retest so we finish the com_finder searchtools review (this is the only one missing).

The terms we can change in another PR when decided.

avatar chrisdavenport chrisdavenport - test_item - 2 May 2016 - Tested successfully
avatar chrisdavenport
chrisdavenport - comment - 2 May 2016

I have tested this item :white_check_mark: successfully on 1b99d5a

This is fine for now, but as noted, the terminology should be reviewed.

Good work.


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

avatar brianteeman brianteeman - change - 4 May 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 4 May 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 4 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 4 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 4 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-04 14:30:59
Closed_By rdeutz
avatar brianteeman brianteeman - change - 11 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment