Problem/Motivation

There are the things in the Add blocks page (Block library listing) which are block plugins. Those hold the description and the body. (for custom block, basic block type). Then there are other things on the Blocks admin listing. Those are block instances of those block plugins. The dropdown buttons on the blocks in the UI on the site, in place in the regions, have items in the dropbutton list (there are also items in the dropbutton list on the block admin list). Some of those items deal with the block plugin: edit, delete. Some deal with the block (block instance): configure. This is confusing.

Proposed resolution

Use words to distinguish between the two.
a)
Change 'Edit' to 'Edit plugin'
Change 'Delete' to 'Delete plugin'
Keep 'Configure block'
or
b)
Change 'Edit' to 'Edit block'
Change 'Delete' to 'Delete block'
Keep 'Configure block instance'
or
c) ...

Ideally the name of the thing block/block instance would match something on the page or the title of the page of the block admin list admin/structure/block
and the thing that the other stuff is called: block plugin/block library item would match some words on the page or the title of the page there admin/structure/block/list/block_plugin_ui%253Abartik/add

Remaining tasks

  • Discuss. What are the things on the library listing called? Plugins? Block plugins? What can we call them in the UI? Block library items?
  • Create initial patch to change the dropbutton items.
  • more tasks to come later...

User interface changes

Yes. dropbutton action labels.

Before screenshot

inplace_dropbutton.png

API changes

No API changes.

Related Issues

CommentFileSizeAuthor
inplace_dropbutton.png47.04 KBYesCT
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

YesCT’s picture

Issue summary: View changes

linked related issue to add a delete instance link

xjm’s picture

Title: inplace dropbutton on block instance needs to identify which action effect block (block instance) vs plugin (block library item) » Custom block contextual links should differentiate between editing/deleting the block instance and the custom block entity

Definitely not the word "plugin". Both "plugin" and "block instance" are developer terminology that should not be exposed to the end user.

I mentioned this on #1956644: Add "edit" to dropbuttons on the block admin page, but for custom blocks I think that it should be "Edit block content," and maybe no delete op (as you suggest in another issue) because of the potential confusion. Another possibility would be to change "Delete block" (for the instance) to "Remove block".

Related: #1839516: Introduce entity operation providers

benjy’s picture

I agree with xjm here, if there is a consensus I can start on a patch.

Summary

  1. "Configure block" is fine
  2. "Edit" should be changed to "Edit block content"
  3. "Delete block" which currently deletes the block instance should be changed to "Remove block" which would set it's region to "None", eg Disabled
  4. I also think a more suitable order would be, "Edit block content", "Configure block", "Remove block".
klonos’s picture

Sometimes and for some languages the difference between "delete" and "remove" is very subtle a can often cause confusion. Do you think "Disable block" instead might be better?

benjy’s picture

If it's subtle in that language I guess that would be addressed in the translation? I don't mind either way, I quite like "Disable block" and "Remove block", they both work for me.

xjm’s picture

See also #1879370: Add test coverage for the "disabled" block status.. If the consensus is to keep the disabled block status, let's change the operation to "Disable block" and do as @benjy suggests and simply set its region to "None."

Bojhan’s picture

Issue tags: -Needs usability review

I thought we removed the concept of "disabling". Frankly this concept should be moved. Like clicking "Delete" could trigger a modal asking if they want to delete the block or just the instance?

Bojhan’s picture

Issue summary: View changes

removed unrelated issue about using block instance title on block listing. that issue had change to drop button split off to a yet unmade issue.

tutumlum’s picture

Priority: Normal » Major

There is no edit link for custom blocks. After you add a new custom block, you cannot do further changes on block content...

yoroy’s picture

In the mean time, I do see 'edit' in the contextual links for custom blocks.

It is correct that things are confusing here, and in a major way, so leaving that priority there.

- Quick edit on body fields that belong to the parent (plugin) makes no sense, it breaks the "in place" model. We should probably simply not provide quick edit on parent fields from contextual links
- Same for the delete link. Current implementation truly deletes the parent block. Again, probably best to not provide direct acces to such a destructive action from the contextual links.

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.

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.

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.

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

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should 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: 9.5.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. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.