stable

Clone or download

Read-only

feat: add upload global store and multiple progress bars

When you're uploading a bunch of files, a list of progress bars is displayed on top of the page as temporary alerts. To do that, I had to refactor the state managment for upload. The state was stored by section, and now it has to be in a global store. This new approach fixed the bug when the save button was enabled between uploads. part of story #38627 : Choice of a new Rich Text Editor Change-Id: I9bb697669d9ae085e277e0465ce4f3c926dd7566

Modified Files

Name
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/helpers/progress-computation-helper.test.ts +6 −6 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/helpers/progress-computation-helper.ts +6 −6 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/helpers/upload-file-helper.ts +5 −4 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/plugin-drop-file.ts +14 −15 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/types/file-upload-options.ts +2 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.test.ts +34 −10 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.ts +13 −10 Go to diff View file
M lib/frontend/prose-mirror-editor/src/use-editor.ts +3 −3 Go to diff View file
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +0 −3 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/App.vue +2 −0 Go to diff View file
R plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.test.ts Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/NotificationContainer.vue +52 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/SectionContent.vue +1 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/NotificationBar.test.ts +21 −18 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/NotificationBar.vue +12 −15 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.vue +2 −11 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts +21 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts +5 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useUploadFile.test.ts +127 −19 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useUploadFile.ts +39 −14 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/stubs/UploadFileStoreStub.ts +58 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/UploadFileStub.ts +2 −13 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/index.ts +4 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/stores/upload-file-store-injection-key.ts +23 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/stores/useUploadFileStore.ts +71 −0 Go to diff View file