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