stable

Clone or download

Read-only

refactor: split useSectionEditor

We put all the editor code in one file, so I split it into smaller contexts. Now, we can identify the dependencies of each context and their states. The next steps might involve using a store to manage states and using pure functions. Part of story #38288: add a new section Change-Id: I48f4ae124a8059183e6d1e5a365ba4c2c4181423

Modified Files

Name
M plugins/artidoc/scripts/artidoc/src/components/OutdatedSectionWarning.vue +2 βˆ’2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionContent.vue +29 βˆ’41 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDescription.vue +2 βˆ’2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDescriptionEditor.vue +5 βˆ’6 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDropdown.test.ts +13 βˆ’1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDropdown.vue +2 βˆ’2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorSaveCancelButtons.vue +1 βˆ’1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionFooter.vue +4 βˆ’6 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionHeader.vue +2 βˆ’2 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/temporary-flag-duration.ts +22 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useEditorErrors.test.ts +77 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useEditorErrors.ts +74 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useEditorSectionContent.test.ts +66 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useEditorSectionContent.ts +64 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useRefreshSection.test.ts +106 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useRefreshSection.ts +76 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useSaveSection.test.ts +106 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useSaveSection.ts +229 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts +144 βˆ’660 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts +88 βˆ’301 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/SectionEditorStub.ts +65 βˆ’30 Go to diff View file