Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-147705

When I try to delete portal items that cannot be recovered, I want to receive a warning message that alerts me on the criticity of the action.

    Description

    Intro/Context

    There is a proposal from Lexicon to remove the action "Move to Recycle Bin" and "times-circle" icon, and start using in a unified way "Delete" action instead. 

    This delete action is divided in 2 scenarios:

    1. Soft removal (Covered by LPS-146835)
    2. Mid removal (covered by LPS-146835)
    3. Strong removal. scenarios in which the entity to be removed has high interest. When recycly bin is not active.

     

    In the case 2, strong removal when the recycle bin is not active, it has become necessary to reinforce the warning message to let the users know about the criticity of the delete action.

    For this, a new modal alert has been designed.

    Requirements

    1) Implement a the warning modal message to confirm the "delete" action.

    2) Implementing this by adding it to the tablig so that this new level of delete criticity is available globally:

    <liferay-ui:icon-delete label="<%= true %>" trash="<%= trashHelper.isTrashEnabled(scopeGroupId) %>" url="<%= deletePageURL.toString() %>" />

    3) Add the new critical warning in the following critical actions that depend on Echo team:

    • Delete site. Copy: Deleting a site is an action impossible to revert. All content will be removed and it will not be possible to recover it.
    • Delete page on a site: <the same message we already have>
    • Delete Collection: Deleting a collection is an action impossible to revert. 
    • Delete style book: Deleting a style book is an action impossible to revert. All Style Book tokens and values will be removed and it will not be possible to recover it. Watch out for critical impact on the site's look & feel.
    • Delete Fragment: Deleting a fragment is an action impossible to revert. It will be removed from the fragments set and it will not be possible to recover it.
    • Delete Fragments set (old fragments library): Deleting a fragment set is an action impossible to revert. All the fragments in the set will be removed and it will not be possible to recover them.

    4. For the rest of the delete scenarios in which there is no recycle bin option, implement the warning modal with the default message already existing.

    5. Implement this warning modal when deleting an element in the recycle bin, since this delete is also irreversible.

     

     Design

     

    Figma

    Acceptance Criteria

    Given a site I have created,

    When I perform the "Delete" action for that site,

    Then I receive a "Critical Delete" warning modal to let me know about the impact of this delete action.

    Given a page on a site I have created,

    When I perform the "Delete" action for that page on a site,

    Then I receive a "Critical Delete" warning modal to let me know about the impact of this delete action.

    Given a Collection I have created,

    When I perform the "Delete" action for that Collection,

    Then I receive a "Critical Delete" warning modal to let me know about the impact of this delete action.

    Given a style book I have created,

    When I perform the "Delete" action for that style book,

    Then I receive a "Critical Delete" warning modal to let me know about the impact of this delete action.

    Given a Fragment I have created,

    When I perform the "Delete" action for that Fragment,

    Then I receive a "Critical Delete" warning modal to let me know about the impact of this delete action.

    Given a Fragments set I have created,

    When I perform the "Delete" action for that Fragments set,

    Then I receive a "Critical Delete" warning modal to let me know about the impact of this delete action.

     

    Given a site in which the recycle bin option is not active,

    And a Web Content I have created,

    When I perform the delete action for that Web Content,

    Then I receive a "Critical Delete" warning modal to let me know about the impact of this delete action.

     

     h3. Test Scenarios

    Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd ? (unit or integration) Could it be covered by POSHI?
    A warning message appears when we try to delete a site High Manual No No Yes
    A warning message appears when we try to delete a page Medium Manual No No Yes
    A warning message appears when we try to delete a collection Medium Manual No No Yes
    A warning message appears when we try to delete a style book Medium Manual No No Yes
    A warning message appears when we try to delete a fragment Medium Manual No No Yes
    A warning message appears when we try to delete a fragment set Medium Manual No No Yes
    A warning message appears when we try to delete a Web Content only when recycle bin is not active High Manual No No Yes

     

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            david.gutierrez David Gutiérrez Mesa
            Reporter:
            mateo.hermosin Mateo Hermosin
            Engineering Assignee:
            Victor Galan
            Recent user:
            David Gutiérrez Mesa
            Participants of an Issue:
            Product Designer(s) Assigned:
            Carolina Rodriguez, Maria Arce
            Frontend Developer(s) Assigned:
            Victor Galan
            QA Engineer(s) Assigned:
            David Gutiérrez Mesa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master