stable

Clone or download

Read-only

feat: create section from existing artifacts

User can now insert a section from an existing artifact. A modal is displayed to allow to search for artifact, based on its title. Primary behavior for empty document is still to create new sections from scratch. The pending artifact section is still displayed as before. In a future contribution this pending artifact section will be removed if user decides to insert an existing one (if this pending section is still empty). For now if current user cannot create a new section, then current user cannot add an existing one as well. This will change in a future contribution as we want to allow them to be able to insert an existing section even if they cannot create new sections. They must have write permission on the document though. It is not possible to select more than one artifact to insert many sections in one shot. part of ??? Change-Id: I52763fd8d91bd7e042a84df49bc980543ac5af97

Modified Files

Name
M plugins/artidoc/scripts/artidoc/package.json +2 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/pnpm-lock.yaml +6 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +37 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/AddExistingSectionModal.test.ts +60 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/AddExistingSectionModal.vue +255 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/AddNewSectionButton.test.ts +110 −24 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/AddNewSectionButton.vue +96 −19 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentContent.vue +4 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentDropdown.test.ts +3 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentDropdown.vue +3 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/configuration/ConfigurationModal.vue +0 −19 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/configuration/ConfigurationModalTrigger.vue +56 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useOpenAddExistingSectionModalBus.test.ts +66 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useOpenAddExistingSectionModalBus.ts +55 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useOpenConfigurationModalBus.ts +1 −2 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/get-insertion-position-excluding-pending-sections.test.ts +77 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/get-insertion-position-excluding-pending-sections.ts +51 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/noop.ts +20 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/rest-querier.ts +2 −2 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/search-existing-artifacts-for-autocompleter.test.ts +314 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/search-existing-artifacts-for-autocompleter.ts +159 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/TrackerStub.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/index.ts +5 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/scss-shim.d.ts +23 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.test.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.ts +24 −11 Go to diff View file