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

Not allowing the user to move input-fragments outside a form container

Details

    Description

      Currently we are allowing to drop Form Fragments out of a Form Container, or directly adding them outside. This does not make sense as these fragments need to be placed inside a mapped form container to work properly. We have created this story to:

      • Provide interaction on drag - Visual indicator to inform that the action is not allowed. (Red line + cursor with forbidden icon + fragment card with red stroke)
      • Provide interaction on drop:
        • When trying to drop a form component outside a Form Container: Alert "Error: Form components can only be placed inside a mapped Form Container."
        • When trying to drop a form component or a normal fragment inside an unmapped Form Container: Alert "Error: Fragments cannot be placed inside an unmapped form container."
        • Additional: When trying to drop a form component or a normal fragment inside an unmapped Collection Display Fragment: Alert "Error: Fragments cannot be placed inside an unmapped collection display fragment."

       

      Figma

      Acceptance Criteria

      1. When the user tries to drop a form fragment out of the form container, then an alert will show: "Error: Form components can only be placed inside a mapped Form Container."
      2. When the user tries to drop a fragment on a form container that is still not mapped, then an alert will show: "Error: Fragments cannot be placed inside an unmapped form container."
      3. When the user tries to drop a fragment on a collection display fragment that is still not mapped, then an alert will show: "Error: Fragments cannot be placed inside an unmapped collection display."

      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?
      The page creator can only drop Form fragments inside a mapped Form Container on content page. HIGH Manual No No Yes
      The page creator can only drop Form fragments inside a mapped Form Container on content page in staging site. HIGH Manual No No Yes
      The page creator can only drop Form fragments inside a mapped Form Container on display page template. HIGH Manual No No Yes
      View error message when dropping a fragment to unmmpade Collection Display fragment. MEDIUM Manual No No Yes

      Attachments

        Issue Links

          Activity

            People

              david.gutierrez David Gutiérrez Mesa
              julia.molano Julia Molano
              Victor Galan Victor Galan
              Kiyoshi Lee Kiyoshi Lee
              Oziel Souza (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  Master