stable
Clone or download
As we don't really want to touch the legacy history page in Docman, a new view is added in Document. To not clutter too much the review, only the Logs part is implemented. An empty table for versions is displayed for relevant items (link, file, embedded). Display of versions, and removal action will be contributed later. 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> In order to not reinvent the wheel, the existing display has been refactored so that we can retrieve item logs from both the legacy docman and document front-end. There should not be any functional changes in legacy docman. This serie of changes is a preliminary step to be able to distinguish changes coming from ONLYOFFICE. Mockup design for this interface can be found at: https://www.figma.com/file/5C1seStjHJicg42JQUDFxg/Documents?node-id=904%3A9516 Part of story #28263: edit office document stored in Document Change-Id: Ic912f23cb080e8445b4883cc6e3be270b2d93c6f
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/composer.json | +1 | −0 | Go to diff View file |
M | plugins/docman/include/Docman_Log.class.php | +52 | −150 | Go to diff View file |
M | plugins/docman/include/Docman_LogDao.class.php | +0 | −21 | Go to diff View file |
A | plugins/docman/include/Log/IRetrieveStoredLog.php | +38 | −0 | Go to diff View file |
A | plugins/docman/include/Log/LogDao.php | +62 | −0 | Go to diff View file |
A | plugins/docman/include/Log/LogEntry.php | +62 | −0 | Go to diff View file |
A | plugins/docman/include/Log/LogEntryPage.php | +53 | −0 | Go to diff View file |
A | plugins/docman/include/Log/LogRetriever.php | +228 | −0 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemsResource.php | +66 | −2 | Go to diff View file |
A | plugins/docman/include/REST/v1/Log/LogEntryRepresentation.php | +55 | −0 | Go to diff View file |
M | plugins/docman/include/view/Docman_View_ItemDetailsSectionHistory.class.php | +1 | −1 | Go to diff View file |
M | plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po | +2 | −5 | Go to diff View file |
M | plugins/docman/site-content/pt_BR/LC_MESSAGES/tuleap-docman.po | +1 | −4 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTest.php | +28 | −0 | Go to diff View file |
A | plugins/docman/tests/unit/Log/LogEntryPageTest.php | +47 | −0 | Go to diff View file |
A | plugins/docman/tests/unit/Log/LogEntryTestBuilder.php | +74 | −0 | Go to diff View file |
A | plugins/docman/tests/unit/Log/LogRetrieverTest.php | +83 | −0 | Go to diff View file |
A | plugins/docman/tests/unit/Stubs/StoredLogStub.php | +77 | −0 | Go to diff View file |
A | plugins/document/scripts/document/api/log-rest-querier.ts | +39 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/DisplayHistory.test.ts | +89 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/DisplayHistory.vue | +61 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryLogs.test.ts | +108 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryLogs.vue | +73 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryLogsContent.test.ts | +198 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryLogsContent.vue | +96 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryLogsEmptyState.vue | +33 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryLogsErrorState.vue | +33 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryLogsLoadingState.vue | +54 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/HistoryVersions.vue | +47 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/History/__snapshots__/HistoryLogsContent.test.ts.snap | +233 | −0 | Go to diff View file |
M | plugins/document/scripts/document/po/fr_FR.po | +45 | −0 | Go to diff View file |
M | plugins/document/scripts/document/po/pt_BR.po | +45 | −0 | Go to diff View file |
M | plugins/document/scripts/document/router/index.js | +6 | −0 | Go to diff View file |
A | plugins/document/themes/_history.scss | +46 | −0 | Go to diff View file |
M | plugins/document/themes/document.scss | +1 | −0 | Go to diff View file |