Problem/Motivation

  1. Install Drupal
  2. Edit a view - e.g. /admin/structure/views/view/content
  3. 'Advanced' section ('.details-wrapper') is always collapsed/hidden on initial page load unless there is an argument or relationship configured.

Motivation:

UX/DX, timesaving, specifically:

  • I find myself wasting a lot of clicks when editing views.
  • Avoid active settings being missed because they're not immediately visible
  • Is there real reason it needs to be collapsible at all? On desktop it saves no space, you just get an empty column area, and the content is always loaded in background.
  • Are the "advanced" settings really "advanced", i.e. more complicated than those in the first two columns. I'd argue relationships, contextual filters, machine name, admin comment and CSS class perhaps aren't. e.g The first two would work well in column two, and machine name and admin comment could go in (Page|Block|..) Settings. I'm wondering if the page has grown over time and the "advanced" column has turned more into "miscellaneous"?

Proposed resolution

Per #22 the Advanced Settings <details> wrapper should be removed. The ui.show.advanced_column setting will be removed.

Remaining tasks

Review

User interface changes

The third column of a view's settings will always be visible.

Before

After

API changes

None.

Data model changes

None.

Issue fork drupal-2843953

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

wturrell created an issue. See original summary.

wturrell’s picture

Category: Feature request » Bug report
Issue summary: View changes
Issue tags: +Usability

Add further ideas to issue summary.

dawehner’s picture

This was removed to simplify some of hthe code which had to be ported to Drupal 8.

Personally I'm using drush vd on every project and call it a day. It optimizes the UI for some usecase, of which one setting is to always show the advanced column.

wturrell’s picture

Thanks that's useful - I've also just discovered drush cedit views.settings

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

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now 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.

yoroy’s picture

I think the collapsed “Advanced” column was a rather brute-force way to reduce clutter in the Views UI. I wouldn't mind showing it expanded again.

dawehner’s picture

I think the collapsed “Advanced” column was a rather brute-force way to reduce clutter in the Views UI. I wouldn't mind showing it expanded again.

Do you want to still present the idea of it being advanced? At least for me the left to right hierarchy seems to communicate this information for me already.

yoroy’s picture

Issue tags: +Baltimore2017

Not sure what a better name could be. Shall we start with a patch to just keep this open?

dawehner’s picture

Issue tags: +Novice

This sounds like a good novice task to tackle.

vrwired’s picture

looking into this

dawehner’s picture

@vrwired
If you need help ping me on slack/IRC/in person during the codesprint.

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

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now 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.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now 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.

jmickela’s picture

Status: Active » Needs review
StatusFileSize
new2.17 KB

This is a partial fix for this issue. If the user has expanded the Advanced Settings form, this patch prevents the form from being closing due to interaction with the form.

neilb@ed’s picture

I've tested patch #14 and it does indeed seem to solve the problem of the modal windows closing an expanded Advanced section. I was using PHP 7.1.11

chr.fritsch’s picture

Status: Needs review » Needs work
+++ b/core/modules/views_ui/src/ViewEditForm.php
@@ -542,7 +542,15 @@ public function getDisplayDetails($view, $display) {
+    $request = \Drupal::request();

We have the requestStack as a class property here. So we should use that to get the request object.

yoroy’s picture

Thanks for reviving this!

leolandotan’s picture

Assigned: Unassigned » leolandotan

I'll work on this.

leolandotan’s picture

Assigned: leolandotan » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.21 KB
new623 bytes

I have used the `$this->requestStack->getCurrentRequest();` property over `\Drupal::request();`. I have tested the functionality of the Advanced pane and the value of the $request variable and both lines of code has the same value.

leolandotan’s picture

StatusFileSize
new623 bytes

My apologies, I created a wrong interdiff file in my previous comment. Here is the correct one.

dawehner’s picture

Reading #17 it reads like @yoroy would be cool with not making it toggleable overall. Do you mind clarifying?

yoroy’s picture

Yeah I think we could just go and remove the collapsible behaviour as a whole.

dawehner’s picture

Thank you for clarifying @yoroy!

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

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now 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.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.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.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). 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.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now 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.

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

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

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

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

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

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

deckblad’s picture

edit: oops, I'm realizing now it's in a current RC
Couldn't be too hard to kick this can into a release by now?

priyanka.sahni’s picture

Assigned: Unassigned » priyanka.sahni
priyanka.sahni’s picture

Assigned: priyanka.sahni » Unassigned
StatusFileSize
new5.54 MB
new15.36 MB

Verified and tested by applying the patch #19 on Drupal 8.6.x. Patch was successfully applied but the problem doesn't resolves. Collapse behaviour is there and also collapse/expand icon is not visible.

Before Patch -
Before Patch

After Patch -
After Patch

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

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now 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.

lendude’s picture

Status: Needs review » Needs work
Issue tags: -Needs subsystem maintainer review

Needs a reroll to start I think and not sure why this would need the js changes

narendra.rajwar27’s picture

Status: Needs work » Needs review
StatusFileSize
new2.21 KB

Adding re-rolled patch.

narendra.rajwar27’s picture

StatusFileSize
new2.23 KB

Updating patch for the failure.

narendra.rajwar27’s picture

StatusFileSize
new2.24 KB
narendra.rajwar27’s picture

StatusFileSize
new2.26 KB

:( :(
Seems like bot is not happy.. giving it a last try.

ranjith_kumar_k_u’s picture

StatusFileSize
new2.25 KB
new522 bytes
sonam.chaturvedi’s picture

StatusFileSize
new86.21 KB

Patch #40 applied successfully on 9.5.x-dev. Tried clearing cache but 'Advanced Options' tab is still collapsed/hidden on initial page load.
Attached screenshot for reference.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Sounds like this still needs work. Also test cases will be needed

kristen pol’s picture

Issue tags: +Bug Smash Initiative

Tagging for Bug Smash.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Issue tags: -Novice

The work here is longer suitable for a novice, in my opinion.

dcam made their first commit to this issue’s fork.

dcam’s picture

Issue summary: View changes
Issue tags: -Needs tests
dcam’s picture

Status: Needs work » Needs review

Based on #22 I removed the collapsible behavior entirely.

dcam’s picture

Title: Advanced settings in Views edit - preserve state or leave expanded? » Remove details wrapper from advanced settings
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs change record

Asking about that update hook number (small change if needed)

But we should have a CR for the configuration change. Mentioning why it's been removed.

dcam’s picture

Issue tags: -Needs change record

Change record added at https://www.drupal.org/node/3515212. Leaving status as Needs Work due to the question of what the update number should be. I checked Slack and no one has responded yet. I'll try to check back in a day or two.

dcam’s picture

Status: Needs work » Needs review

The update function number was updated per the discussion in Slack. I also rebased it against 11.x to get the latest changes.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Apologize for taking so long to get back to this one, even after posting it in slack lol

But feedback appears to be addressed.

nod_’s picture

Title: Remove details wrapper from advanced settings » Remove details wrapper from views ui advanced settings
catch’s picture

Status: Reviewed & tested by the community » Needs work

The change record should explicitly reference the config key that's being removed. There will be some cases like distributions with a full set of exported config that could end up with stale config after this change and will need to remove the key manually.

I'm confused by the update number here - left a comment on the MR.

dcam’s picture

Status: Needs work » Needs review

#57 feedback was addressed.

igorgoncalves’s picture

Hi guys

As the last feedback review was given by #41, i made another up-to-date check after all last commits and the changes seems to address the requests.
The advanced column "is gone" as the collapsible behavior.

Checked with Drupal 11.2.x-dev

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Feedback appears to be addressed for this one.

xjm’s picture

Title: Remove details wrapper from views ui advanced settings » Remove collapsible details wrapper from Views UI advanced settings
Issue tags: +Needs screenshots, +Needs subsystem maintainer review

The screenshots appear to be in #33, but they also don't actually seem to show the "after" case. It's probably best not to embed animated gifs in the IS in either case, but we would want to at least link them.

Tagging for new screenshots since it's been a few years and since it doesn't seem to match.

I disagree that this is a bug. It was a design behavior and was changed on purpose from a previous setup where the column was always shown, because we wanted to make the Views UI less overwhelming on page load. Therefore, I think this should have both usability and subsystem signoff. Once the screenshots are added and embedded in the IS, this can be tagged for usability review.

uesli’s picture

StatusFileSize
new144.24 KB
new145.91 KB
new141.55 KB
new132 KB
new123.92 KB

Hi, @xjm

Test summary

Drupal version: 11.2-dev

1 - Visited the views listing page.
Views listing page

2 - Edited one of the views (Content view).

3 - The Advanced column was visible and expanded in the first page load.
Views setting page

4 - Added a contextual filter and closed the modal window. The advanced settings column was visible and expanded.
Adding contextual filter
Closed modal

5 - Saved the settings. The advanced settings column was visible and expanded.
Views setting saved

uesli’s picture

xjm’s picture

@uesli, I think from the screenshots #62 is testing Drupal 11.2 without the merge request, correct?

igorgoncalves’s picture

StatusFileSize
new141.55 KB

I double check the changes, and achieve the same result as i found at #59
(Sorry that i didnt added the screenshots back then)
The advanced column "is gone" as the collapsible behavior.

So i will add the Before Screenshot that @uesli give to us to not flood the IS with duplicated images

Before - just checked with a clean D11.2-dev instalation.
Before the changes

----------------------------------

After - just checked with a clean D11.2-dev instalation + MR 11424.
After

lendude’s picture

Category: Bug report » Task
Issue tags: -Needs screenshots, -Needs subsystem maintainer review +Needs usability review

I agree with @xjm this isn't really a bug, so moved to task, might be a feature ¯\_(ツ)_/¯

@dawehner seemed to be in favour of this back in the day, and so am I, so removing the subsystem tag. I understand the initial thought behind not showing this, but I believe the Views UI is still plenty complicated without showing this column. And as people have pointed out in this issue this can lead to information being hidden. Also, it always felt a little arbitrary what was considered 'Advanced', since, lets be honest, the whole Views UI is pretty advanced :)

@yoroy has commented here so not sure if a usability review is needed, but happy to follow @xjm on this, so tagging for usability review

xjm’s picture

Ahh, thanks @lendude, I missed #6:

I think the collapsed “Advanced” column was a rather brute-force way to reduce clutter in the Views UI. I wouldn't mind showing it expanded again.

simohell’s picture

Usability review

We discussed this issue at #3541474: Drupal Usability Meeting 2025-08-29. That issue will have a link to a recording of the meeting.

For the record, the attendees at the usability meeting were @benjifisher, @rkoller, and @simohell.

There was a consensus that the proposed change is a relevant usability improvement. However we hope to see the issue summary updated - please add the latest screenshots to the isummary and we noted that point 3. of the problem/motivation seems to have been addressed already elsewhere. Maybe this issue or also ohters https://www.drupal.org/project/drupal/issues/3360442 - please check that current fix takes this into regard.

If you want more feedback from the usability team, a good way to reach out is in the #ux channel in Slack.

simohell’s picture

Issue tags: -Needs usability review
dcam’s picture

Issue summary: View changes

Updated the IS per #68.

quietone’s picture

Issue summary: View changes
StatusFileSize
new132.78 KB
new110.92 KB

In both the before and after screenshots the 'advanced' section is expanded. This does not show the change.

I made new screenshots as follows. On a fresh standard install of Drupal 11.x I navigated to "/admin/structure/views/view/who_s_online" and took the 'before' screenshot. I then applied the diff, re-installed, and navigated to "/admin/structure/views/view/who_s_online" and took the 'after' screenshot.

While here I updated credit.

  • catch committed 4d023751 on 11.x
    Issue #2843953 by wturrell, dawehner, yoroy, leolandotan, lendude,...
catch’s picture

Status: Reviewed & tested by the community » Fixed

I was struggling to understand the impact of the changes here and the updated screenshots really help. Thanks for the various reviews and sign-offs here, completely agreed that the empty column you have to expand doesn't really remove any complexity for people.

Committed/pushed to 11.x, thanks!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

  • catch committed 875f19af on 11.x
    Revert "Issue #2843953 by wturrell, dawehner, yoroy, leolandotan,...
catch’s picture

Status: Fixed » Needs work

The new test coverage needs to use phpunit attributes.. Reverted for now.

dcam’s picture

Status: Needs work » Needs review

Added test attributes.

godotislate’s picture

Status: Needs review » Reviewed & tested by the community

Tests are green, so LGTM

catch’s picture

Status: Reviewed & tested by the community » Needs work

Let's do @mondrake's suggestion with CoversFunction so that we don't need to change the @legacyCovers later.

dcam’s picture

Status: Needs work » Needs review

The feedback was addressed.

mondrake’s picture

Status: Needs review » Reviewed & tested by the community

  • catch committed 5c1956d6 on 11.x
    Issue #2843953 by wturrell, dawehner, yoroy, leolandotan, lendude,...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Thank you - committed/pushed to 11.x again!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

igorgoncalves’s picture

Thanks for the fix, @catch
I noticed in #73 that it was highlighted how much the screenshots helped clarify the problem. However, it looks like the contributors who tested and provided those screenshots didn’t receive issue credits yet.

Would you be able to review the credits for this issue and consider adding them for those testers who helped document and illustrate the problem? It would be a nice way to acknowledge their effort and support.

Thanks for your time and for keeping track of the community contributions!

catch’s picture

@igorgoncalves see @quietone's comment - the original screenshots here didn't show the change properly.

Status: Fixed » Closed (fixed)

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