? ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
2 Oct 2020

Summary of Changes

Follow up on #30813 and #30859
Warning: these 2 PR have to be present in your test site to test the Clear button.

npm ci has to be applied

Changes:
Normalises the table display
Adds a Title Search Filter, Filter and Clear buttons.
a11y legend and scope added
Modified the search placeholder (it is also used in Contact List but I forgot to modify it there)
Used Title instead of Name for column heading, as in Contact list

Testing Instructions

Create some contacts and set them to featured.
Create a Featured Contacts menu item.
Display in frontend.

After patch, test that the Filter and the Clear button work as should

Actual result BEFORE applying this Pull Request

Screen Shot 2020-10-02 at 11 50 02

Expected result AFTER applying this Pull Request

Screen Shot 2020-10-02 at 12 14 04

NOTE

No idea why we display the NUM in the first column.
If nobody knows why, we can get rid of it.

Meaanwhile, I kept in the code

					<tr class="<?php echo ($i % 2) ? 'odd' : 'even'; ?>" itemscope itemtype="https://schema.org/Person">
						<td class="item-num">
							<?php echo $i; ?>
						</td>
avatar infograf768 infograf768 - open - 2 Oct 2020
avatar infograf768 infograf768 - change - 2 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Oct 2020
Category Front End com_contact Language & Strings
avatar chmst
chmst - comment - 2 Oct 2020

I'd like to get rid of the Number!

avatar infograf768
infograf768 - comment - 2 Oct 2020

I'd like to get rid of the Number!

Me too, if it is BC.

avatar brianteeman
brianteeman - comment - 2 Oct 2020

There is no b/c issue

avatar chmst
chmst - comment - 2 Oct 2020

Tested with success. If you remove the number column, I'll re-test.


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

avatar infograf768
infograf768 - comment - 2 Oct 2020

There is no b/c issue

@brianteeman
Do you mean I can get rid of that column?

Any idea about this very specific <tr>
<tr class="<?php echo ($i % 2) ? 'odd' : 'even'; ?>" itemscope itemtype="https://schema.org/Person">

Should I replace it with the same stuff we have in the category list?

						<?php if ($this->items[$i]->published == 0) : ?>
							<tr class="system-unpublished featured-list-row<?php echo $i % 2; ?>">
						<?php else : ?>
							<tr class="featured-list-row<?php echo $i % 2; ?>" >
						<?php endif; ?>
avatar brianteeman
brianteeman - comment - 2 Oct 2020
  1. yes - its just a display you are not removing data

  2. that css is/was to create "stripes"

avatar infograf768 infograf768 - change - 3 Oct 2020
Labels Added: ? ?
avatar infograf768
infograf768 - comment - 3 Oct 2020

@chmst @brianteeman
please test again
also moved Unpublished badge below contact title (log to see)
Screen Shot 2020-10-03 at 09 19 16

avatar chmst
chmst - comment - 3 Oct 2020

The list is a big improvement.

For the filter, I have some doubts.

  • The form is only the filter, not the whole list
  • Search field and list limit are no fieldset, they don't belong together
  • The clear button does not clear the input.
avatar infograf768
infograf768 - comment - 3 Oct 2020

The clear button works if

Follow up on #30813 and #30859
Warning: these 2 PR have to be present in your test site to test the Clear button.

npm ci has to be applied

avatar infograf768
infograf768 - comment - 3 Oct 2020

@chmst
I replied to your concerns above, I guess.

avatar brianteeman
brianteeman - comment - 3 Oct 2020

The point was that it's not a fiedset

On Sat, 3 Oct 2020, 15:44 infograf768, notifications@github.com wrote:

@infograf768 commented on this pull request.

In components/com_contact/tmpl/featured/default_items.php
#30868 (comment):

<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
  • <?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
    <fieldset class="com-contact-featured__filters filters">
    

Please look at similar code for
components/com_content/tmpl/category/default_articles.php


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#30868 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJ4P4OKGAWNTD2WLT4DYN3SI42DRANCNFSM4SBRDOUQ
.

avatar infograf768
infograf768 - comment - 3 Oct 2020

The point was that it's not a fiedset

Then you may have to change the code for articles in 3.x and for articles and contacts lists in 4.0-dev, which you tested OK

https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/category/tmpl/default_articles.php#L67-L104

avatar brianteeman
brianteeman - comment - 3 Oct 2020

I have no opinion on if it should be a fieldset or not. I was merely explaining why @chmst said that you should not have the legend.

avatar infograf768
infograf768 - comment - 3 Oct 2020

Animated gif concerning the Clear filter.
limitbox_contacts-list-animated

avatar infograf768
infograf768 - comment - 3 Oct 2020

I obviously can take off the part concerning fieldset, here and in List Contacts in a Category, if desired.

avatar infograf768
infograf768 - comment - 4 Oct 2020

I am asking @zwiastunsw to please help on this decision as we have only one input (the searchfield)
One aspect is sure: if we keep the fieldset, it must have a legend.

avatar infograf768
infograf768 - comment - 5 Oct 2020

After discussing with @chmst and @zwiastunsw fieldset is not necessary.
Reworked the tmpl.

Please test.

Note

Another PR will follow for contacts list and articles list.

avatar chmst chmst - test_item - 6 Oct 2020 - Tested successfully
avatar chmst
chmst - comment - 6 Oct 2020

I have tested this item successfully on 510dc5f


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

avatar richard67 richard67 - test_item - 6 Oct 2020 - Tested successfully
avatar richard67
richard67 - comment - 6 Oct 2020

I have tested this item successfully on 510dc5f


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

avatar richard67 richard67 - change - 6 Oct 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 6 Oct 2020

RTC


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

avatar infograf768 infograf768 - change - 7 Oct 2020
Labels Added: ?
avatar infograf768
infograf768 - comment - 7 Oct 2020

title removed as requested.
I guess no need to test again.

avatar HLeithner HLeithner - change - 7 Oct 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-10-07 08:16:26
Closed_By HLeithner
avatar HLeithner HLeithner - close - 7 Oct 2020
avatar HLeithner HLeithner - merge - 7 Oct 2020
avatar HLeithner
HLeithner - comment - 7 Oct 2020

Thanks

avatar infograf768
infograf768 - comment - 7 Oct 2020

Similar PR for articles
#30981

Add a Comment

Login with GitHub to post a comment