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

As a content manager, I want to filter by Type and/or Subtype of content in the Content Dashboard

    Details

      Description

      Motivation

      As we've included blogs and documents in the content dashboard, we will need to modify the current filter "Subytpe" to add the previous level: "Type".

      Design

      https://www.figma.com/file/34z5GDX4SCkZoo1PdXaJnK/LPS-130698-filter-by-type-and-subtype-in-the-Content-Dashboard?node-id=1%3A8822

      Requirements

      1. There will be a filter “Type” in the “Filter by” section (the current “Subtype” filter will no longer be available at this first level)

      2. There will be a modal from where the user will be able to select the different criteria for the filter

      3. The user must be able to select as many subtypes s/he wants for each one of the available content types in the same action

      3.1. If the type node gets selected, then all the children get selected

      3.2. Once all children are selected, the user can deselect any of them and so the parent gets deselected. 

      3.3. If the parent gets deselected, then all the children get deselected too.

      4. The user will be able to search for any type or subtype’s name in the search bar:

      4.1. When looking for a type, not only the type (parent) but also the subtypes (children) must be retrieved and selectable

      4.2. User will be able to search also for Site or Asset library names, as their names show in the Type and Subtype names.

      4.3. Search terms can be cleared by hitting the times icon in the search bar

      5. Each one of the selected criteria will be represented by different labels in the filter bar (type when there’s no subtype, and one label per subtype when there are many)

      6. Once a type or a subtype is selected, the number of elements selected will show above the list.

       

      Acceptance Criteria

       

      Requirements
       
      Acceptance Criteria
       
      Test Strategy
       
      Covered by frontend test? (Yes/No)
       
      Covered by backend test? (Yes/No)
       
      There will be a filter “Type” in the “Filter by” section (the current “Subtype” filter will no longer be available at this first level)
      • Given The Content Dashboard
      • When the user opens the Filter and Order dropdown
      • Then the filter “Type” is shown
      Low  NO NO
      There will be a modal from where the user will be able to select the different criteria for the filter
      • Given The Filter and Order dropdown
      • When the user clicks on the Type filter option
      • Then a modal is displayed with a tree with all the content subtypes organized by type (Web Content and Document)
      Low  NO  NO
      The user must be able to select as many subtypes s/he wants for each one of the available content types in the same action
      • Given The Type filter modal
      • When the user selects one or more subtypes
      • Then the subtypes selected appear as filter boxes above the Content table in the Content Dashboard, with the format "Subtype: [subtypen_name]"
      Critical  NO  NO
      If the type node gets selected, then all the children get selected
      • Given The Type filter modal
      • When the user clicks on the type parent
      • Then all the children get selected
      High  YES  NO
      Once all children are selected, the user can deselect any of them and so the parent gets deselected. 
      • Given The Type filter modal
      • When any type have some children selected and the user clicks on one or more children selected
      • Then the child/s get deselected and the non-clicked selected children remain selected
      High  YES (in treeview component)  NO
      If the parent gets deselected, then all the children get deselected too.
      • Given The Type filter modal
      • When the user clicks on the type parent with some or all children already selected
      • Then all the children get deselected
      High   YES (in treeview component)  NO
      The user will be able to search for any type or subtype’s name in the search bar
      • Given The Type filter modal
      • When the user types any text in the search field
      • Then all the types and subtypes matching the text are shown
      High  YES  NO
       
      • Given The Type filter modal
      • When the text input matches to one type (but not to any children) and the user clicks on the type parent
      • Then all the children from that extension will be shown and selected, eventhought the children has not been "searched"
      Medium  YES  
       
      • Given The Type filter modal
      • When the text input does not match
      • Then none of the parent neither the children will be shown in the modal
      Medium  YES  
      User will be able to search also for Site or Asset library names, as their names show in the Type and Subtype names.
      • Given The Type filter modal
      • When the user types any text in the search field
      • Then all the types and subtypes matching the text are shown
      Low YES  NO
      Searched terms can be cleared by hitting the times icon in the search bar
      • Given The Type filter modal
      • When there's a search done within the modal
      • Then the search can ve cleared by clicking on the times icon in the search bar
      Low  YES  NO
      Once one or more subtypes are selected, the number of elements selected will show above the list.
      • Given The Type filter modal
      • When the user selects one or more subtypes
      • Then the number of file subtypes preselected will be shown as a text with the format "[number] Subtypes selected"
      Medium  YES  NO

      Enable FF

      echo "enabled=B\"true\"" > ../bundles/osgi/configs/com.liferay.content.dashboard.web.internal.configuration.FFContentDashboardDocumentConfiguration.config

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-qa Support QA
              Reporter:
              julia.molano Julia Molano
              Engineering Assignee:
              Clara Izquierdo
              Recent user:
              Julia Molano
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master