Support from Acquia helps fund testing for Drupal Acquia logo

Comments

irinaz’s picture

Issue summary: View changes

adding images and code for the view

tim.plunkett’s picture

Status: Postponed » Active

The default view has been added, we can customize it now!

irinaz’s picture

Filters for the title, author and content type are added

admin-content-view.png

irinaz’s picture

Status: Active » Needs review
dawehner’s picture

I guess we really need some css for the exposed form?

tim.plunkett’s picture

Yeah, we probably needed it anyway, but this just really really shows that we need some.

dawehner’s picture

AT least in d7 there has be some for that ... was that defractored?

dawehner’s picture

Status: Needs review » Needs work

But i guess adding special css should be done in a follow up. Let's make this patch more simple and don't chance items per page etc.

klonos’s picture

In #2020167: Add a name and email search field to the admin/people view (that was previously titled "Improve admin/people view") we decided to:

1. not add a "items per page" filter (we left it for #2020449: Provide a generic/reusable widget for configuring the number of displayed items per page in admin views listings.)
2. add a unified name/e-mail search field
3. change the status filter from 'yes'/'no' to 'active'/'blocked' (actually a follow-up: #2024893: Change status filter on admin/people to 'active'/'blocked')

For consistency sake, we should:

1. leave the "items per page" filter to #2020449: Provide a generic/reusable widget for configuring the number of displayed items per page in admin views listings.
2. add a unified title/body search field
3. was done in #2022127: Change status filter on admin/content to 'published'/'unpublished'

I specifically would like to see #2 implemented (we only search title currently).

tim.plunkett’s picture

Status: Needs work » Needs review
FileSize
4.88 KB

Here's a unified search field.

klonos’s picture

Just gave it a quick spin at simplytest.me and it works. Thanx!

Does anybody else think that we should throw an "Author" autocomplete field and perhaps a date/date-range one too? I mean, since date.module is in core now and all.

Also, should we list the filter widgets according to the order of their respective columns in the results table? Does that make sense?

tim.plunkett’s picture

Issue tags: +Needs tests

Until someone works on #1838242: Provide Views integration for datetime field, the Views/Datetime integration is all but useless.
Author would be a good idea.
I don't care about the order.

We also need to expand the existing test coverage for this.

dawehner’s picture

This adds potentially performance problems as it requires to search in a textfield.

irinaz’s picture

do you mean additional field "Author" - there is one included

dawehner’s picture

I care more about the body field.

irinaz’s picture

Views allow filtering in title field, but body field requires search and is much more "expensive" operation. Usually, if a user is looking for something in a body they will use full search option rather than using admin/content page.

saltednut’s picture

Status: Needs review » Needs work

Marking as 'needs work' since tests are still necessary

saltednut’s picture

Issue summary: View changes

text edits

klonos’s picture

dawehner’s picture

Status: Needs work » Needs review

9: node-2001922-9.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 9: node-2001922-9.patch, failed testing.

xjm’s picture

Component: node.module » node system

(Merging "node system" and "node.module" components for 8.x; disregard.)

dawehner’s picture

Component: node system » ajax system
Assigned: irinaz » Unassigned
Issue tags: -Needs tests +Needs reroll

We need an issue summary which also describes what this actually is about.

dawehner’s picture

Component: ajax system » node.module

.

irinaz’s picture

Issue summary: View changes
irinaz’s picture

@ dawehner

I have update description to "Change admin/content view to include node title as one of the filters and changing labels on filters to be more clear to end user . Should I add more details?

xjm’s picture

Component: node.module » node system

Sorry for the noise. Looks like the component is stored as a string value so we'll need to update these nodes programmatically before we rename the component.

webchick’s picture

Status: Needs work » Closed (duplicate)

I believe #1279652: Add title search feature on the node listing admin page going in renders this issue moot. Sorry, I didn't see it. :( In defense, that one is a bit older.

klonos’s picture

Issue summary: View changes
Status: Closed (duplicate) » Active

...not entirely moot. See updated issue summary.

irinaz’s picture

Ability to filter by node title is CRITICAL feature for content managers. Is there a way to add this feature?

klonos’s picture

@irinaz: please see my reply in #1279652-37: Add title search feature on the node listing admin page. The feature to search by title was added. What we are asking to be done here is to rearrange the fields in the form so that the title search field comes first and that all widgets and buttons are horizontally aligned instead of stacked vertically.

aaronott’s picture

Here is an attempt at aligning these. I've moved the title to be the first field and changed the css for the views.exposed_form to float the action buttons to the end of the fields.

aaronott’s picture

Status: Active » Needs review

Meant to mark this as needs review.

klonos’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
FileSize
18.86 KB

Works as expected. Updated the issue summary with before/after screenshot.

Xano’s picture

Issue tags: -Needs reroll
LewisNyman’s picture

Status: Reviewed & tested by the community » Needs review

We can improve the alignment of the button and the form items but using the ‘small’ button type.

I've also tweaked the rtl styling and wrapped the whole thing in a media query as things start to look pretty messy around 490px. Arguably we could set this higher as we start to get orphans around 750px;

LewisNyman’s picture

Status: Needs review » Needs work

The last submitted patch, 36: admin_content_view-2001922-35.patch, failed testing.

klonos’s picture

...yeah, sorry I tent to forget that we are responsive and only test on wide desktop screens. I'll try to remember to also test on mobile.

LewisNyman’s picture

Status: Needs work » Needs review
aspilicious’s picture

Status: Needs review » Needs work

When selecting a filter a reset button appears, that button is bigger than the filter one :). Not good.

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
720 bytes
6.2 KB

Ah good point.

LewisNyman’s picture

Issue tags: +Usability, +frontend, +CSS
idebr’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
  1. Patch no longer applies
  2. +++ b/core/modules/views/css/views.exposed_form.css
    @@ -2,19 +2,25 @@
    +  .views-exposed-form .form-item {
    ...
    +  [dir="rtl"] .views-exposed-form .form-item {
    ...
    +  .views-exposed-form .form-actions {
    ...
    +  [dir="rtl"] .views-exposed-form .form-actions {
    

    The .views-exposed-form class has been abstracted into .form--inline in #2333719: Abstract Views Exposed Form styling out into a reusable class

sudheeshps’s picture

Assigned: Unassigned » sudheeshps
tengoku’s picture

Status: Needs work » Needs review
Issue tags: +LatinAmerica2015
FileSize
3.93 KB

Hey.. this patch not longer applies to the current 8.0.x HEAD...

I'm uploading this patch that tries to do the mentioned thing.. but

filenames doesn't exists now so I found the moved files and applied the changes there.
css classes not exists now. So the button stays on a new line like in the before screenshot.

I don't think that making all the actions of the views exposed forms should have that css.. and stay the way it is, because maybe other modules add actions to this view and all the buttons in the same row as the exposed filters could not be nice...

So, please review and if not then return it back to needs review

Cheers!

LewisNyman’s picture

Issue summary: View changes
Issue tags: -Needs reroll
FileSize
5.05 KB
323.61 KB

I updated the styling of form--inline.

idebr’s picture

Issue summary: View changes
Status: Needs review » Needs work
FileSize
51.5 KB

Placing the title to the front works a lot better, thanks!

I'm not so sure about the small submit button however. Especially when the view has bulk operations, the submit button feels a bit too small compared to the bulk operation action. Let's at the least have a usability check before we implement this.

Either way, the form--actions margin should not apply for small viewports as it pushed the form action too far away from the form elements:

irinaz’s picture

Buttons - Filtering/searching content on this page[button FILTER] is more common operation than making changes [APPLY], but with the current design it seems that primary operation is Apply. I have seen many times how users make selection with filters and click button Apply, and do not see any changes. Better scenario is to have colored large (green) button Filter, and leave Apply as is. Now button Filter is hard to find.

irinaz’s picture

Fields and filters - it is better when order of filters is consistent with order of fields in the table.
- Moving Type filter in front of published filter would make more sense to me.
- Author filter is quite useful - can it be added?
- How important is Language filter? How many sites are multilingual?

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

komalk’s picture

Assigned: sudheeshps » Unassigned
Status: Needs work » Needs review
FileSize
5.11 KB
44.59 KB
31.05 KB

Attached screenshot for the reference, review the patch.

Abhijith S’s picture

Applied patch #58 .Now the filters are in same level
Attaching screenshots
desktop
Mobile view:
mobile

RTBC

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

vikashsoni’s picture

Unable to apply patch in drupal-9.3.x-dev Showing error
Needs to Re-roll

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Status: Needs review » Postponed (maintainer needs more info)
Issue tags: +Needs issue summary update

Not really sure what's trying to be accomplished here? If it's moving the filter button to be inline I think that should be reflected in the title. And this ticket should be moved to whatever theme it needs to be but this does not occur in the claro theme which is to be the new default.

Moving to PNMI for summary update.

irinaz’s picture

This is a very old issue, opened in 2013. I am changing it to closed, it is not relevant anymore

irinaz’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Filters work as designed in D9.