stable

Clone or download

Read-only

Take in account the color decorator option from a select in the List Picker in atifact view

Part of story #16648 have decorators on SelectX fields At the edition or creation of an artifact, if there is a color decorator in the option from the select, then the list picker will use the same color. Change-Id: Ie6234011160bc6784fedb8ddd012e6fd9bd91a96

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.php +9 −6 Go to diff View file
M plugins/tracker/scripts/artifact/list-pickers-creator.ts +0 −4 Go to diff View file
A src/scripts/list-picker/src/helpers/color-helper.test.ts +41 −0 Go to diff View file
A src/scripts/list-picker/src/helpers/color-helper.ts +36 −0 Go to diff View file
A src/scripts/list-picker/src/helpers/option-label-helper.test.ts +39 −0 Go to diff View file
A src/scripts/list-picker/src/helpers/option-label-helper.ts +25 −0 Go to diff View file
A src/scripts/list-picker/src/helpers/templates/list-picker-element-badge-creator.test.ts +100 −0 Go to diff View file
A src/scripts/list-picker/src/helpers/templates/list-picker-element-badge-creator.ts +109 −0 Go to diff View file
A src/scripts/list-picker/src/helpers/templates/predefined-item-template-retriever-helper.test.ts +87 −0 Go to diff View file
A src/scripts/list-picker/src/helpers/templates/predefined-item-template-retriever-helper.ts +71 −0 Go to diff View file
M src/scripts/list-picker/src/items/ListItemMapBuilder.test.ts +1 −37 Go to diff View file
M src/scripts/list-picker/src/items/ListItemMapBuilder.ts +10 −14 Go to diff View file
M src/scripts/list-picker/src/renderers/DropdownContentRenderer.test.ts +1 −1 Go to diff View file
M src/scripts/list-picker/src/renderers/__snapshots__/DropdownContentRenderer.test.ts.snap +25 −2 Go to diff View file
M src/scripts/list-picker/src/selection/MultipleSelectionManager.test.ts +18 −4 Go to diff View file
M src/scripts/list-picker/src/selection/MultipleSelectionManager.ts +3 −23 Go to diff View file
M src/scripts/list-picker/src/test-helpers/select-box-options-generator.ts +21 −0 Go to diff View file
M src/scripts/list-picker/src/type.ts +6 −0 Go to diff View file
M src/themes/FlamingParrot/css/utils/_list-picker.scss +26 −0 Go to diff View file