stable

Clone or download

Read-only

feat: Display versions for File items

Versions now get their own dedicated view. History displays only log of the item (access, update, …) while Versions displays the past version of the item. Since this new view is not complete, it is hidden from regular browsing. You can access it via URL: /plugins/document/<project-name>/history/<item-id> History is kept hidden for now (you can switch from History to Versions but not from Versions to History). REST routes are missing for embedded files and links, therefore their versions table are displayed in loading state. They will be managed in a dedicated contribution. Files version are displayed in readonly, delete button will come later. Part of story #28263: edit office document stored in Document Change-Id: I8fbafd0df432fc3cdeedd240e05677d6c763745e

Modified Files

Name
M plugins/docman/include/ApprovalTable/FactoriesFactory.class.php +6 −1 Go to diff View file
A plugins/docman/include/ApprovalTable/TableFactoryForFileBuilder.php +28 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +9 −2 Go to diff View file
M plugins/docman/include/REST/v1/Files/FileVersionRepresentation.php +58 −12 Go to diff View file
M plugins/docman/include/REST/v1/VersionRepresentationCollectionBuilder.php +44 −5 Go to diff View file
M plugins/docman/include/Version/VersionDao.php +2 −2 Go to diff View file
M plugins/docman/tests/unit/REST/v1/VersionRepresentationCollectionBuilderTest.php +70 −9 Go to diff View file
A plugins/docman/tests/unit/Stubs/TableFactoryForFileBuilderStub.php +44 −0 Go to diff View file
M plugins/document/scripts/document/api/version-rest-querier.ts +8 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/History/FileVersionHistory.test.ts +2 −2 Go to diff View file
M plugins/document/scripts/document/components/History/DisplayHistory.test.ts +45 −12 Go to diff View file
M plugins/document/scripts/document/components/History/DisplayHistory.vue +7 −2 Go to diff View file
D plugins/document/scripts/document/components/History/HistoryVersions.vue +0 −47 Go to diff View file
A plugins/document/scripts/document/components/Versions/DisplayVersions.test.ts +82 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/DisplayVersions.vue +62 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersions.test.ts +106 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersions.vue +78 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersionsContent.test.ts +64 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersionsContent.vue +82 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersionsEmptyState.vue +33 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersionsErrorState.vue +33 −0 Go to diff View file
A plugins/document/scripts/document/components/Versions/HistoryVersionsLoadingState.vue +60 −0 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +6 −0 Go to diff View file
M plugins/document/scripts/document/po/pt_BR.po +6 −0 Go to diff View file
M plugins/document/scripts/document/router/index.js +6 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +5 −0 Go to diff View file
M plugins/document/themes/_history.scss +1 −1 Go to diff View file