stable

Clone or download

Read-only

Display color picker

part of: story #14640 Complete tracker creation Please note: The color is not yet saved when you submit your new tracker How to test: - On step 2 - [Template] --> The color picker pre-selects the color defined by the selected tracker template - [Template from another project] --> same - [XML File] --> Pre-selects the color based on the color name extracted from the file --> Pre-selects inca-silver if the color name is not a valid normalized tlp-color name - [Empty] --> Pre-selects inca-silver - Go back, select another option/template/file/whatever --> On step 2, the color picker shows the right color Change-Id: Ic9abf0fc0c4e119c4513ea1c835f342b78d65a86

Modified Files

Name
M plugins/tracker/include/Tracker/Creation/TrackerCreationPresenter.php +7 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerCreationPresenterBuilder.php +10 −2 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerTemplatesRepresentation.php +12 −5 Go to diff View file
M plugins/tracker/package-lock.json +41 −0 Go to diff View file
M plugins/tracker/package.json +5 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/Creation/TrackerCreationPresenterBuilderTest.php +22 −5 Go to diff View file
M plugins/tracker/scripts/tracker-creation/index.ts +15 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/po/fr_FR.po +3 −0 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerFromAnotherProject/TrackerFromAnotherProjectSelector.test.ts +8 −8 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/StepTwo.test.ts +2 −1 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/StepTwo.vue +9 −4 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldTrackerColor.test.ts +87 −0 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldTrackerColor.vue +118 −0 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/helpers/xml-data-extractor.test.ts +47 −6 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/helpers/xml-data-extractor.ts +14 −3 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/getters.test.ts +10 −4 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/mutations.test.ts +22 −12 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/mutations.ts +6 −3 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/type.ts +9 −0 Go to diff View file
M plugins/tracker/templates/tracker-creation/tracker-creation-app.mustache +1 −0 Go to diff View file
A plugins/tracker/themes/BurningParrot/css/tracker-creation/includes/_creation-color-selector.scss +52 −0 Go to diff View file
M plugins/tracker/themes/BurningParrot/css/tracker-creation/includes/_creation-step-layout.scss +13 −0 Go to diff View file
M plugins/tracker/themes/BurningParrot/css/tracker-creation/tracker-creation.scss +1 −0 Go to diff View file