stable

Clone or download

Read-only

Fix display of default tracker templates

After a little use of recent changes[0], it appears that the way to display default tracker templates in the middle of custom templates is wrong: default trackers are not customizable and should not be in a custom templates section. Furthermore Tasks, User Stories, Sprints, or Releases trackers are not really relevant on their own and should not be promoted as default templates. With this commit, when we want to create a tracker we have: 1. A section for custom templates This section lists all trackers in projects that have been flagged as "Template" by site administrator. On a new install, this list is empty, therefore the section is not displayed at all. 2. A section for Tuleap templates As of today only Bugs and Activity trackers are provided. Those trackers will benefit from dedicated icons, but it will come later. 3. A section for advanced users This section allows to create a tracker from another project, from xml, or from scratch (empty). [0]: git #tuleap/stable/16de5180e43c7df44b086cec9fdd7ed8b8bfe4de Part of request #14717: Cleanup of tracker templates Incidentaly fixes request #14758: Tracker creation doesn't show the right template Change-Id: I8d44debbc9af82294f0c27636a8eea0dac298e9c

Modified Files

Name
M plugins/agiledashboard/Makefile +0 −8 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.php +0 −9 Go to diff View file
M plugins/tracker/include/Tracker/Creation/DefaultTemplatesCollectionBuilder.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerCreationPresenterBuilder.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerTemplatesRepresentation.php +14 −8 Go to diff View file
M plugins/tracker/phpunit/Tracker/Creation/DefaultTemplatesCollectionTest.php +4 −4 Go to diff View file
M plugins/tracker/phpunit/Tracker/Creation/TrackerCreationPresenterBuilderTest.php +24 −18 Go to diff View file
M plugins/tracker/scripts/tracker-creation/po/fr_FR.po +7 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/layout/StepLayout.vue +1 −0 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/StepOne.test.ts +32 −4 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/StepOne.vue +24 −8 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/DefaultTemplate/DefaultTemplateCard.test.ts +38 −0 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/DefaultTemplate/DefaultTemplateCard.vue +53 −0 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/DefaultTemplate/DefaultTemplateSection.test.ts +38 −0 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/DefaultTemplate/DefaultTemplateSection.vue +46 −0 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/DefaultTemplate/__snapshots__/DefaultTemplateCard.test.ts.snap +35 −0 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/DefaultTemplate/__snapshots__/DefaultTemplateSection.test.ts.snap +14 −0 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerBaseCard.vue +3 −3 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerFromAnotherProject/TrackerFromAnotherProjectSelector.test.ts +15 −4 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerTemplate/TrackerTemplateSelector.test.ts +0 −24 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerTemplate/TrackerTemplateSelector.vue +0 −11 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/StepTwo.test.ts +17 −1 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/StepTwo.vue +15 −4 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldChosenTemplate.test.ts +4 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldChosenTemplate.vue +4 −4 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldDescription.vue +1 −1 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldName.vue +1 −1 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldTrackerTemplateId.test.ts +14 −3 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-two/creation-fields/FieldTrackerTemplateId.vue +4 −1 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/getters.test.ts +13 −0 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/getters.ts +8 −1 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/store/is-default-template-selected.test.ts +35 −0 Go to diff View file
A plugins/tracker/scripts/tracker-creation/src/store/is-default-template-selected.ts +24 −0 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/mutations.test.ts +43 −1 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/mutations.ts +7 −1 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/type.ts +2 −1 Go to diff View file