Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templater Builder: Fixing Wrong Classes Deletion #25926

Closed
fmontes opened this issue Aug 28, 2023 · 5 comments · Fixed by #25928, #25935 or #25968
Closed

Templater Builder: Fixing Wrong Classes Deletion #25926

fmontes opened this issue Aug 28, 2023 · 5 comments · Fixed by #25928, #25935 or #25968

Comments

@fmontes
Copy link
Member

fmontes commented Aug 28, 2023

Problem Statement

In templater builder when remove classes from box and rows it remove the wrong one.

Steps to Reproduce

  1. Edit a template
  2. Add classes to box or row
  3. Edit the classes and remove the first one
  4. See the error how to delete the last one.
Kapture.2023-08-28.at.16.41.36.mp4

Acceptance Criteria

  1. User neends to be able to delete the clicked chip
  2. System should remove the correct class
  3. Remove the chip from the box or rows

External Links

N/A

Assumptions & Initiation Needs

N/A

Quality Assurance Notes & Workarounds

N/A

@fmontes fmontes moved this from New to Current Sprint Backlog in dotCMS - Product Planning Aug 28, 2023
@zJaaal zJaaal self-assigned this Aug 29, 2023
@zJaaal zJaaal moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planning Aug 29, 2023
@zJaaal zJaaal linked a pull request Aug 29, 2023 that will close this issue
@zJaaal zJaaal moved this from In Progress to In Review in dotCMS - Product Planning Aug 29, 2023
fmontes pushed a commit that referenced this issue Aug 29, 2023
* dev (add style classes module): refactor to support remove any class

* fix (template builder story): console error due to missing import
@github-project-automation github-project-automation bot moved this from In Review to Done in dotCMS - Product Planning Aug 29, 2023
@fmontes fmontes moved this from Done to Internal QA in dotCMS - Product Planning Aug 29, 2023
@fmontes fmontes linked a pull request Aug 29, 2023 that will close this issue
3 tasks
@rjvelazco
Copy link
Contributor

Faild Internal QA

  • Tested on master

Case 1: Deleting a duplicate class deletes all classes

Steps to Reproduce:

  1. Edit a template
  2. Add classes to box or row
  3. Add the following classes: class1, class2, class3, class1
  4. Deleted the last class1
  5. See how that action deletes all the classes.

Case 2: Hit delete deletes all classes instead of the last one.

Steps to Reproduce:

  1. Edit a template
  2. Add classes to box or row
  3. Add the following classes: class1, class2, class3
  4. Hit delete without saving or closing the dialog.
  5. See how that action deletes all the classes.
Screen.Recording.2023-08-29.at.4.05.20.PM.mov

@rjvelazco rjvelazco moved this from Internal QA to In Progress in dotCMS - Product Planning Aug 29, 2023
fmontes added a commit that referenced this issue Aug 30, 2023
* Reimplement the autocomplete component

* dev (add styles autocomplete): enhance functionality

* Fix filtering and styling.

* Fix the filtering and language messages

* Add tests for JsonClassesService

* Test are not running

* fix (add styles dialog): now tests are running

* Fix tests

* Update mocks

---------

Co-authored-by: Jalinson Diaz <zjaaaldev@gmail.com>
@fmontes fmontes moved this from In Progress to Internal QA in dotCMS - Product Planning Aug 30, 2023
@rjvelazco rjvelazco self-assigned this Aug 31, 2023
@rjvelazco
Copy link
Contributor

Faild Internal QA

  • Tested on master

Steps to Reproduce

  1. Go to Template > Select a Template > Edit
  2. Try to edit box/rowCSS class. Note: Make sure you have predefined css classes.
  3. Open the dropdown.
  4. Use the up/down keys to navigate the options and go down.
  5. See the error. We do not scroll when using the keyboard.
internal-qa-issue-25926-fix-class-selector.mov

@rjvelazco
Copy link
Contributor

Update

The "AutoComplete component is not scrolling on arrow down" is a known issue of PrimeNg. It should be fixed once we update to the last version.

@rjvelazco
Copy link
Contributor

Passed Internal QA

  • Tested on master

Case 1: Not suggestions

Screen.Recording.2023-08-31.at.12.44.58.PM.mov

Case 2: Suggestions/Autocomplete

Screen.Recording.2023-08-31.at.1.14.16.PM.mov

@rjvelazco rjvelazco moved this from Internal QA to QA - Backlog in dotCMS - Product Planning Aug 31, 2023
fmontes pushed a commit that referenced this issue Aug 31, 2023
* dev (add style classes module): refactor to support remove any class

* fix (template builder story): console error due to missing import
fmontes added a commit that referenced this issue Aug 31, 2023
* Reimplement the autocomplete component

* dev (add styles autocomplete): enhance functionality

* Fix filtering and styling.

* Fix the filtering and language messages

* Add tests for JsonClassesService

* Test are not running

* fix (add styles dialog): now tests are running

* Fix tests

* Update mocks

---------

Co-authored-by: Jalinson Diaz <zjaaaldev@gmail.com>
fmontes added a commit that referenced this issue Aug 31, 2023
* Fix #25917: Template Builder file containers were saving with Identifier instead of Path (#25920)

* dev (gridstack utils): add getContainerReference

* dev (template builder store): implement getContainerReference

* fix (palette content type module): add DotMessagePipe import

* feedback (template builder): moved getContainerReference from utils to box component

* feedback (template builder box test): enhance testing

* fix (containers mock): fix merge errors

* Fix #25937: Template Builder Enhancing error and request handling (#25942)

* fix (template save and publish): enhancing error and request handling

* feedback (dot templates service): delete old save and publish

* fix (gridstack utils): EMPTY_ROWS_VALUE was being modified by reference

* Fix #25926: Template Builder fixing wrong classes deletion (#25928)

* dev (add style classes module): refactor to support remove any class

* fix (template builder story): console error due to missing import

* Fix #25926 Reimplement the autocomplete component (#25935)

* Reimplement the autocomplete component

* dev (add styles autocomplete): enhance functionality

* Fix filtering and styling.

* Fix the filtering and language messages

* Add tests for JsonClassesService

* Test are not running

* fix (add styles dialog): now tests are running

* Fix tests

* Update mocks

---------

Co-authored-by: Jalinson Diaz <zjaaaldev@gmail.com>

* Fix #25926 Templater Builder: Fixing link target

* Fixing test (#25911)

---------

Co-authored-by: Jalinson Diaz <zjaaaldev@gmail.com>
Co-authored-by: Rafael Velazco <rjvelazco21@gmail.com>
Co-authored-by: Manuel Rojas <manuel.rojas.21@gmail.com>
@bryanboza
Copy link
Member

Fixed, tested on master // Docker // FF

Note: We need to doc how to add the prediction on CSS classes.

@bryanboza bryanboza moved this from QA - Backlog to Done in dotCMS - Product Planning Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment