Introduce client side remove, with confirmation? and undo

Created on 8 December 2016, almost 8 years ago
Updated 15 November 2023, about 1 year ago

Problem/Motivation

With the the fix in #2831409: Remove Confirm Deletion / restore actions for paragraphs it is now very easy and quick to remove a paragraph which is generally a good thing and much preferred to the previous behaviour. However since in some cases a user might accidentally remove a paragraph and loose a lot of her work, I suggest that we look into a solution that has a JS confirmation state with a small footprint.

Proposed resolution

After clicking the delete button show a little overlay in place with two buttons, one to confirm deletion and one to cancel the deletion. We need to see if we can implement this in a way that one can delete the paragraph with two consecutive clicks without moving the mouse too much, but also prevent a double-click that would skip the confirmation entirely.

A wireframe that was created during UX reviews for the thunder distribution (see related issue):

Screenshots of the current implementation:

Remaining tasks

  • Create a patch as a proof of concept and to be able to review that
  • Create JS tests to make sure this is working as expected

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

1.0

Component

User interface

Created by

🇩🇪Germany pixelmord

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024