Problem/Motivation

The search box is often missed, even when its not hidden by scrolling. This is because its not a common pattern to put it in the top of the modal dialog and that it currently kinda blends in because of the intense data below.

Proposed resolution

We should probably figure out if we can attach it to the top of the modal. Rather than having it in the scrollable area.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lisarex’s picture

+1 for moving the Search and Filter out of the scrollable area. I would also like to see Filter renamed to Type, since the word Filter in this UI already has another meaning.

Hydra’s picture

How about a css solution like this one. There is still a problem with the width of the filterarea but I think this goes where we want it.
(Patch is for D7, sry for that)

dead_arm’s picture

Assigned: Unassigned » dead_arm
FileSize
89.02 KB
88.65 KB

Screenshots from my patch in progress, including requested label change from 'Filter' to 'Type'. Assigning to myself to finish up.

Pre-scroll

views-modal-initial.png

Scrolled

views-modal-scroll.png

yoroy’s picture

We can also add emphasis by removing other stuff. Can we remove the 'For [select list]' widget and instead transform the 'Apply' button at the bottom into a dropbutton? Maybe the search and filter options could then be made part of the header area:

arbel’s picture

Can we add a sub option for the specific content type, so in the type dropdown you'd have

Node
Content
->page
->blog post
->artcile
->...
Taxonomy

I think that would really help on large sites with multiple content types.
another option would be to add a second dropdown, allow the search field to filter according to the content type.

Idan

yoroy’s picture

@arbel: that may well be a good idea, but that is a feature request where this particular issue focusses on fixing a usability issue found with the current interface. Your idea would be better off in a new issue.

dead_arm’s picture

Status: Active » Needs work
FileSize
38.22 KB
37.81 KB
3.42 KB

Patch attached gets this some of the way, but with a bit of nasty styling with CSS ( .views-ui-dialog .scroll { max-height: 439px !important; } in views-admin.css) that should be removed in favor of changing how the js calculates heights most likely. Also these changes work great for modals that utilize the scroll, like when adding fields, filters, or sort criteria, but not when adding a header or footer.

When adding a header or footer, 'Apply all displays' and 'Cancel' button section is pushed too far down

Header

broken-header.png

Footer

broken-footer.png

dead_arm’s picture

The idea to simply move the controls group seems much simpler than what I was working on, the screen shot for how that looks below. It also would not require any CSS to be added or js changes. A bit of CSS that is applied to #views-filterable-options-controls in views-admin.theme.css could be removed then since it adds too much space.

Screen Shot 2012-11-26 at 10.28.57 AM.png

dawehner’s picture

This is looking great!

Maybe you should also post the patch :)

dead_arm’s picture

Assigned: dead_arm » Unassigned
FileSize
3.93 KB

Everything looks right visually but I broke the actual filtering. I think someone who has php skills should take over from here :)

dawehner’s picture

FileSize
40.09 KB

Well ... the actual filtering, so both the textfield as select field works fine for me,
but the actual output feels a bit wrong ;)

mh.png

This happens on both FF and chrome with cleared cache and a forced reload.

tim.plunkett’s picture

Status: Needs work » Needs review
FileSize
3.02 KB

Here's another approach.

I don't have FF installed, can someone check it and post screenshots?

dead_arm’s picture

Works in FF:
Screen Shot 2012-12-03 at 1.58.59 PM.png

Also re-rolling with the label change from filter to type.

When minimizing the window, the fields stack badly in both browsers, but this behavior isn't caused by this patch, it just adds to it. Would consider opening a follow up issue for the CSS.

Without patch in Chrome:

Screen Shot 2012-12-03 at 2.06.34 PM.png

With patch in Chrome:

Screen Shot 2012-12-03 at 2.07.17 PM.png

dawehner’s picture

FileSize
3.39 KB
498 bytes

Just in general, this is a huge huge improvement!

This fixes the issue mentioned in http://drupal.org/node/1832872#comment-6778364 for me
The rest of the patch is RTBC for me.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Ah! That is an interesting glitch + fix, and it doesn't negatively affect the behavior for me, so RTBC.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

dawehner’s picture

Status: Fixed » Needs work
FileSize
740 bytes
43.81 KB

Sadly the javascript wasn't adapted so searching doesn't work anymore. once you fix that the listing looks odd :(

dawehner’s picture

Category: task » bug
Priority: Normal » Major
Status: Needs work » Needs review

Let's at least fix the javascript bug first.

Status: Needs review » Needs work
Issue tags: -Usability, -VDC, -BADCamp2012UX

The last submitted patch, drupal-1832872-17.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#17: drupal-1832872-17.patch queued for re-testing.

dawehner’s picture

Issue tags: +Usability, +VDC, +BADCamp2012UX

#17: drupal-1832872-17.patch queued for re-testing.

dawehner’s picture

Anyone want to remove this annoyance?

aspilicious’s picture

Status: Fixed » Reviewed & tested by the community

Views UI is kinda broken without this patch. I have no idea why, but this bug triggers a lot of js errors all around the place :s.
When this gets in it will be easier to test views properly.

webchick’s picture

Status: Needs review » Fixed

Committed and pushed that fix to 8.x. Thanks!

tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs review

I have no idea what happened here, it was working for me as of #16, and the *new* patch broke it for me.
But apparently it was the opposite for @dawehner?

When I go to add a new field or filter, and I inspect the search box, I get this

<input type="text" id="edit-override-controls-options-search" name="override[controls][options_search]" value="" size="60" maxlength="128" class="form-text">

Which clearly needs the original selector, not the one from #17.

dawehner’s picture

FileSize
1.46 KB

So we finally figured out that '#tree' changes depending on the amount of displays you have (1 or more)

dawehner’s picture

FileSize
2.28 KB

This also correct the visual appearance of master only views.

Status: Needs review » Needs work

The last submitted patch, drupal-1832872-27.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
1.4 KB
2.26 KB

This time with a fix which actually works.

damiankloip’s picture

Status: Needs review » Needs work
+++ b/core/modules/views/views_ui/admin.incundefined
@@ -418,6 +418,14 @@ function views_ui_standard_display_dropdown(&$form, &$form_state, $section) {
+  // Always put

Fix looks good, not sure about this comment though :)

dawehner’s picture

Status: Needs work » Needs review
FileSize
2.56 KB
1.13 KB

Ups right, here we go.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Let's get this in, the UI is unbearable at the moment.

tim.plunkett’s picture

Title: Add visual emphasis on search box/filtering » Fix broken Views UI search box/filtering

Changing the title for a better commit message.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Third time's a charm? :D

Committed and pushed to 8.x, with a tiny comment fix. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

klonos’s picture

Issue summary: View changes
Parent issue: » #1832862: Make views add field scannable