stable

Clone or download

Read-only

Use Pinia in project registration

part of request #36882 convert project registration app into vue3 Why? Vuex is badly supported with jest and composition API, migrating the store is a pre-requisite to migrate the app to vue3 No functional changes Note: I did not kept the dedicated configuration store as all variables declared as readonly in RootState will be converted as inject/provide mechansim once app will be in vue3 Change-Id: I37a9c05f0f084ba379c84db0c5850c5709f46ae2

Modified Files

Name
M src/scripts/project-registration/package.json +2 −0 Go to diff View file
M src/scripts/project-registration/pnpm-lock.yaml +54 −0 Go to diff View file
M src/scripts/project-registration/src/components/Approval/ProjectApproval.test.ts +24 −23 Go to diff View file
M src/scripts/project-registration/src/components/Approval/ProjectApproval.vue +3 −4 Go to diff View file
M src/scripts/project-registration/src/components/Information/Fields/FieldDescription.test.ts +19 −23 Go to diff View file
M src/scripts/project-registration/src/components/Information/Fields/FieldDescription.vue +4 −6 Go to diff View file
M src/scripts/project-registration/src/components/Information/Input/ProjectInformationInputPrivacyList.test.ts +26 −115 Go to diff View file
M src/scripts/project-registration/src/components/Information/Input/ProjectInformationInputPrivacyList.vue +6 −8 Go to diff View file
M src/scripts/project-registration/src/components/Information/Input/ProjectShortName.test.ts +10 −9 Go to diff View file
M src/scripts/project-registration/src/components/Information/Input/ProjectShortName.vue +7 −8 Go to diff View file
M src/scripts/project-registration/src/components/Information/ProjectInformation.test.ts +44 −45 Go to diff View file
M src/scripts/project-registration/src/components/Information/ProjectInformation.vue +22 −53 Go to diff View file
M src/scripts/project-registration/src/components/Information/ProjectInformationFooter.test.ts +37 −27 Go to diff View file
M src/scripts/project-registration/src/components/Information/ProjectInformationFooter.vue +5 −13 Go to diff View file
M src/scripts/project-registration/src/components/Template/Advanced/FromUserExistingProject/FromExistingUserProjectTemplateCard.test.ts +26 −14 Go to diff View file
M src/scripts/project-registration/src/components/Template/Advanced/FromUserExistingProject/FromExistingUserProjectTemplateCard.vue +17 −25 Go to diff View file
M src/scripts/project-registration/src/components/Template/Advanced/FromUserExistingProject/UserProjectList.test.ts +34 −36 Go to diff View file
M src/scripts/project-registration/src/components/Template/Advanced/FromUserExistingProject/UserProjectList.vue +6 −1 Go to diff View file
M src/scripts/project-registration/src/components/Template/CategorisedExternalTemplates/CategorisedExternalTemplatesList.test.ts +0 −4 Go to diff View file
M src/scripts/project-registration/src/components/Template/Company/CompanyTemplateList.test.ts +12 −13 Go to diff View file
M src/scripts/project-registration/src/components/Template/Company/CompanyTemplateList.vue +4 −7 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateCard.test.ts +28 −12 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateCard.vue +5 −10 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateFooter.test.ts +28 −44 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateFooter.vue +4 −5 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateSelection.test.ts +26 −167 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateSelection.vue +14 −30 Go to diff View file
M src/scripts/project-registration/src/components/Template/Tuleap/TuleapTemplateList.test.ts +11 −12 Go to diff View file
M src/scripts/project-registration/src/components/Template/Tuleap/TuleapTemplateList.vue +4 −7 Go to diff View file
M src/scripts/project-registration/src/helpers/local-vue-for-tests.ts +2 −2 Go to diff View file
M src/scripts/project-registration/src/index.ts +13 −10 Go to diff View file
D src/scripts/project-registration/src/store/actions.ts +0 −57 Go to diff View file
D src/scripts/project-registration/src/store/getters.test.ts +0 −120 Go to diff View file
D src/scripts/project-registration/src/store/getters.ts +0 −47 Go to diff View file
D src/scripts/project-registration/src/store/index.ts +0 −47 Go to diff View file
D src/scripts/project-registration/src/store/mutations.ts +0 −79 Go to diff View file
D src/scripts/project-registration/src/store/state.ts +0 −32 Go to diff View file
D src/scripts/project-registration/src/store/type.ts +0 −44 Go to diff View file
A src/scripts/project-registration/src/stores/getters.test.ts +118 −0 Go to diff View file
R src/scripts/project-registration/src/store/mutations.test.ts Go to diff View file
A src/scripts/project-registration/src/stores/root.ts +149 −0 Go to diff View file
R src/scripts/project-registration/src/store/configuration/index.ts Go to diff View file