stable

Clone or download

Read-only

refactor: Transform Type search criteria to generic type "list"

This will help to be able to add other list filter (like status) without having to repeat ourselves. No functional changes. Part of story #24197: search for Documents with criteria Change-Id: If3e778d3bc73cb9150185b683bd29f96514db290

Modified Files

Name
M plugins/document/include/Tree/DocumentTreeController.php +1 −1 Go to diff View file
M plugins/document/include/Tree/ListOfSearchCriterionPresenterBuilder.php +24 −3 Go to diff View file
A plugins/document/include/Tree/SearchCriterionListOptionPresenter.php +35 −0 Go to diff View file
A plugins/document/include/Tree/SearchCriterionListPresenter.php +41 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionDate.test.ts +16 −8 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionDate.vue +4 −7 Go to diff View file
R plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionType.test.ts Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionList.vue +60 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionText.test.ts +8 −4 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionText.vue +4 −6 Go to diff View file
D plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionType.vue +0 −79 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/Criteria/__snapshots__/CriterionList.test.ts.snap +44 −0 Go to diff View file
D plugins/document/scripts/document/components/AdvancedSearch/Criteria/__snapshots__/CriterionType.test.ts.snap +0 −94 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchCriteriaPanel.test.ts +2 −3 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchCriteriaPanel.vue +4 −5 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +0 −15 Go to diff View file
M plugins/document/scripts/document/type.ts +22 −3 Go to diff View file
M plugins/document/site-content/fr_FR/LC_MESSAGES/tuleap-document.po +12 −0 Go to diff View file
R plugins/document/include/Tree/ListOfSearchCriterionPresenterBuilderTest.php Go to diff View file