Problem/Motivation

Tree and Layers panels show similar information and differ mostly by the look:

Layers Tree
Type IslandType::View IslandType::View
Previews? No No
Dropzones? Yes No
Reorder by dragging? Yes #3529069: Make tree items draggable
Right click menu? Yes Yes
Trigger contextual panel? Yes No
Settings summaries? #3529070: [1.0.0-alpha1] Use PluginSettingsInterface::settingsSummary() #3529070: [1.0.0-alpha1] Use PluginSettingsInterface::settingsSummary()

Proposed resolution

Is it the opportunity to merge them?

If we add "Reorder by dragging", "Trigger contextual panel" and "Dropzones" to Tree panel, Layers panel will lose its relevance.

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

pdureau created an issue. See original summary.

mogtofu33’s picture

pdureau’s picture

Title: [1.0.0-alpha2] Do we merge Tree & Layers panels? » Do we merge Tree & Layers panels?
Issue tags: -display_builder-1.0.0-alpha2 +display_builder-1.0.0-beta
pdureau’s picture

mogtofu33’s picture

If done on beta we will probably need to introduce a hook_update, so should be done before.

mogtofu33’s picture

Issue tags: +beta blocker
mogtofu33’s picture

Category: Task » Feature request
mogtofu33’s picture

Title: Do we merge Tree & Layers panels? » Tree & Layers panels features
pdureau’s picture

Talked with Jean (@mogtofu33) today:

We keep both Tree & Layers, but Tree will be a minimal "quick access" tool to move the focus to the selected source on Buidler & Layers panels.

So, this will be enough for beta1:

  • we remove the 3 vertical dots menu from TreePanel, because it will not be used.

And we can add some follow-up for beta phase:

pdureau’s picture

Assigned: Unassigned » mogtofu33
Status: Active » Needs review

  • mogtofu33 committed 220990c4 on 1.0.x authored by pdureau
    [#3530856] task: remove the 3 vertical dots menu from TreePanel until #...
mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

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