dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
826 stars 464 forks source link

Limit the Amount of Selected Categories and Add Show More/Show Less Functionality #29183

Closed oidacra closed 1 month ago

oidacra commented 1 month ago

Parent Issue

28493

User Story

As a user, I need to see a maximum of two lines of selected categories in the input field, with a text button to show more if there are additional categories. When clicked, the button should display the hidden categories and change to "Show Less" to allow collapsing the view back to two lines.

Acceptance Criteria

Proposed Objective

User Experience Enhancement

Proposed Priority

Priority 2 - Important

dotCMS Version

master

External Links

Collapsed

Screenshot 2024-07-10 at 12 12 05 PM

Expanded

Screenshot 2024-07-10 at 12 12 17 PM

Assumptions & Initiation Needs

Quality Assurance Notes & Workarounds

oidacra commented 1 month ago

IQA Passed

bryanboza commented 1 month ago

We need some work here, tested on trunk [ trunk_20af29a ] // Docker // FF

We are getting an error in console here and we are unable to see the changes

Image

oidacra commented 1 month ago

Sorry for not specifying, this is only for the new Edit Contentlet @dsilvam @bryanboza

Screenshot 2024-07-12 at 5 58 52 PM
josemejias11 commented 1 month ago

Failed: Tested on trunk_430f4c7, Docker, macOS 14.5, FF v126.0.1

  1. After selecting all of the parent cats and removing them from the list line, the cats remains selected on the column categories selector.

  2. Removing the cats one by one should move the text to the far left side of the line and not leave padding.

https://github.com/user-attachments/assets/d6011724-e1af-4a53-8117-2c0781034748

  1. Line should be removed after deleting all the cats Screenshot 2024-07-15 at 3 47 18 PM
dsilvam commented 1 month ago

@josemejias11 the remove is out of the scope of this card and actually part of another card. This is about the "Show More / Show Less" based on the number of lines.

josemejias11 commented 1 month ago

Approved: Tested on master_d501a60, Docker, macOS 14.5, FF v126.0.1