Skip to content

List view should show up after changing the preferences to "Always open list view" #50017

Closed

Description

@hanneslsm

Description

One of the first things I do when explaining Gutenberg to clients is to change the preferences "Always open list view".

When changing the preferences to "Always open list view" you'd expect that this will also toggle the list view. It doesn't. After closing the preferences you have to open the view manually or reload the browser. This is an unnecessary extra step.

Considering the help text saying "Opens the block list view sidebar by default." I'd label this as a bug. Because after exiting the preferences you'd expect the editor to be in the default mode.

Step-by-step reproduction instructions

  1. Open preferences
  2. Enable "Always open list view".
  3. You'd expect that this will also trigger to open the list view. It doesn't. You have to reload the browser.

Screenshots, screen recording, code snippet

Screen.Recording.2023-04-23.at.20.58.56.mp4

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. jameskoster commented on Apr 27, 2023

    @jameskoster
    Contributor

    This seems to be more of an issue with the copy than the functionality.

    "Always open list view" as the main label could be interpreted as a toggle to make list view permanently open. The help text is a bit unclear too "by default" has no context.

  2. hanneslsm commented on Apr 27, 2023

    @hanneslsm
    Author

    This seems to be more of an issue with the copy than the functionality.

    I don't understand. What should the copy say instead?

    "Always open list view" as the main label could be interpreted as a toggle to make list view permanently open.

    Yes, this is what I'd expect. I want to have list view open permanently, the same as I have the layers always open in Figma. And for that, I change the preferences. There might be situations where the list view is "overlayed" by something like the block inserter. But nonetheless, I want to have the list view (or let's be more generic and let's say left sidebar) always open.

  3. hanneslsm commented on Apr 27, 2023

    @hanneslsm
    Author

    Comment deleted. I created a separate issue: #50141

  4. jameskoster commented on Apr 27, 2023

    @jameskoster
    Contributor

    What should the copy say instead?

    I'm not sure, we need to figure that out :)

    Thank you for opening that separate issue 👍

  5. hanneslsm commented on Apr 27, 2023

    @hanneslsm
    Author

    I'm not sure, we need to figure that out :)

    I still don't understand. Are you referring to #49837, so it's about the wording and how the left sidebar is called?
    This shouldn't impact the functionality as described above that when the toggle switch in the preferences is used, the list view (or sidebar or whatever it's called) should automatically be toggled.

  6. added
    [Type] Bug
    [Package] Preferences
    [Feature] List View
    on Apr 28, 2023
  7. jameskoster commented on Apr 28, 2023

    @jameskoster
    Contributor

    Perhaps it helps to give context around why this option was originally added. It simply satisfies a need to have the List View panel open automatically when the Editor was loaded. It was never intended to permanently lock the visibility of the panel, which seems to be your interpretation.

    So what I am saying is that we should update the copy to better describe the resulting functionality and (hopefully) eliminate that confusion.

  8. richtabor commented on Apr 28, 2023

    @richtabor
    Member

    It was never intended to permanently lock the visibility of the panel, which seems to be your interpretation.

    Why's that? It does seem a bit of an odd preference to be an initial state configuration. I would expect the preference to maintain either the List or Inserter views.

  9. jameskoster commented on Apr 28, 2023

    @jameskoster
    Contributor

    Here's the original PR: #40757.

    Now that I think about it, does this even need to be a preference? Could/should list view remember whether it's open or not?

  10. richtabor commented on Apr 28, 2023

    @richtabor
    Member

    Could/should list view remember whether it's open or not?

    Probably should.

  11. hanneslsm commented on Apr 28, 2023

    @hanneslsm
    Author

    It was never intended to permanently lock the visibility of the panel, which seems to be your interpretation.

    Absolutely - this is my interpretation.

    Perhaps it helps to give context around why this option was originally added. It simply satisfies a need to have the List View panel open automatically when the Editor was loaded.

    Okay, makes sense. So the copy - if there is any if it's not automatically done - should be say something like: "Have the list view open when opening the editor" or so. Not beautiful, but you get the idea. Then, though, the issue that came up above (#50141) becomes even more relevant because people will complain that their list view disappeared, because they will think the same as I did: that the opening the list view is the equivalent to always have the left sidebar open (same behaviour as right)

    How to continue? Can this issue be closed then and we open another one for saving the open/close-state of the list view?

  12. moved this to Needs development in Polishon May 1, 2023
  13. jameskoster commented on May 2, 2023

    @jameskoster
    Contributor

    Can this issue be closed then and we open another one for saving the open/close-state of the list view?

    That sounds like a good idea. If/when it gets implemented we can consider removing the current preference.

  14. added
    [Status] In Progress
    on May 12, 2023
  15. moved this from Needs development to In progress in Polishon May 12, 2023
  16. glendaviesnz commented on May 12, 2023

    @glendaviesnz
    Contributor

    I have a PR here that removes the preferences and instead just remembers that last state of the panel.

  17. hanneslsm commented on May 12, 2023

    @hanneslsm
    Author

    Oh! Totally missed creating the new issue as described above. Thanks @glendaviesnz, looks good!

    Noobish questions on the workflow with issues in this repository - this issue gets closed automatically when the PR is merged, right? What's the housekeeping process? Can anyone point me to a documentation on how issues gets closed, triaged, planned, etc.?

  18. youknowriad commented on Oct 19, 2026

    @youknowriad
    Contributor

    Thanks for raising this, @hanneslsm. As @jameskoster explained, "Always open List View" sets the initial state when the editor loads; it isn't a live toggle. #82119 now applies it deliberately only when entering the editor, so changing preferences mid-session doesn't override what you have open. That's still the behaviour on WordPress 7.1.2 with Gutenberg trunk (built 2026-10-16). The request to keep the left sidebar open is tracked in #50141, so closing this one as agreed earlier in the thread.

  19. moved this from In progress to Done in Polishon Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] List View[Package] Preferences[Status] In Progress[Type] Bug

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions