stable

Clone or download

Read-only

refactor: Do not hardcode list of columns in FE

Since the list of columns will be configurable, it should not be hardcoded in the frontend. Now the backend sends the list of the columns to the frontend. No functional changes. Part of story #24197: search for Documents with criteria Change-Id: Ie2afcfd90c602f2be6ed6e4aebf61e617d9a4e85

Modified Files

Name
M plugins/document/include/Tree/DocumentTreeController.php +3 −0 Go to diff View file
M plugins/document/include/Tree/DocumentTreePresenter.php +7 −0 Go to diff View file
A plugins/document/include/Tree/Search/ListOfSearchColumnDefinitionPresenterBuilder.php +41 −0 Go to diff View file
A plugins/document/include/Tree/Search/SearchColumnDefinitionPresenter.php +30 −0 Go to diff View file
M plugins/document/include/documentPlugin.php +1 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellDescription.test.ts +66 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellDescription.vue +40 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellId.test.ts +68 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellId.vue +37 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellLocation.test.ts +66 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellLocation.vue +40 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellOwner.test.ts +69 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellOwner.vue +38 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellTitle.test.ts +180 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellTitle.vue +139 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellUpdateDate.test.ts +79 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/CellUpdateDate.vue +72 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/Cells/__snapshots__/CellUpdateDate.test.ts.snap +17 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/SearchResultTable.test.ts +29 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/SearchResultTable.vue +44 −33 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodyEmpty.vue +8 −4 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodyResultRow.test.ts +31 −226 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodyResultRow.vue +30 −169 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodyResults.vue +19 −11 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodySkeleton.test.ts +40 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/TableBodySkeleton.vue +29 −15 Go to diff View file
D plugins/document/scripts/document/components/AdvancedSearch/SearchResult/__snapshots__/TableBodyResultRow.test.ts.snap +0 −27 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/__snapshots__/TableBodySkeleton.test.ts.snap +240 −0 Go to diff View file
M plugins/document/scripts/document/index.js +2 −0 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +0 −6 Go to diff View file
M plugins/document/scripts/document/store/configuration/index.ts +2 −1 Go to diff View file
M plugins/document/scripts/document/type.ts +7 −0 Go to diff View file
M plugins/document/site-content/fr_FR/LC_MESSAGES/tuleap-document.po +15 −0 Go to diff View file
M plugins/document/templates/document-tree.mustache +1 −0 Go to diff View file