stable

Clone or download

Read-only

Display xRefs in Tracker with its own mustache

This is part of story #17180 take into account gitlab commits /!\ For the moment, there aren'nt any changes to cross refs displayed Mustache and presenters are equivalent to those in /tuleap/src/common/reference/Presenters That can be repetitive, but mustache in /tuleap/src/common/reference/ is used by many plugins and shouldn't change This patch aims to integrate a new mustache template in plugin tracker to display cross references field. In next patchs, these mustache and presenters will be changed to be compliant with figma [0] How to test: - Have some xRefs in artifact Expected results: - No functionnal changes - You can still delete xRefs - If you don't have rights to delete a cross reference, there is no delete icon [0] https://www.figma.com/proto/FJQMRxPdtgPrF2SJlbZm72/References-in-Artifact-view?node-id=1%3A3&viewport=480%2C338%2C0.5&scaling=scale-down Change-Id: I63a408361dd3dc7530cd338f82dee697f3ad27b4

Modified Files

Name
A plugins/tracker/include/Tracker/FormElement/Field/CrossReference/CrossReferenceFieldRenderer.php +76 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.class.php +18 −9 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceByNaturePresenter.php +47 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceByNaturePresenterBuilder.php +77 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceFieldPresenter.php +49 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceFieldPresenterBuilder.php +56 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceLinkListPresenter.php +61 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceLinkListPresenterBuilder.php +57 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceLinkPresenter.php +95 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/View/Reference/CrossReferenceLinkPresenterCollectionBuilder.php +69 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +15 −0 Go to diff View file
A plugins/tracker/templates/form-element/reference/cross_reference.mustache +44 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/FormElement/View/Reference/CrossReferenceByNaturePresenterBuilderTest.php +232 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/FormElement/View/Reference/CrossReferenceFieldPresenterBuilderTest.php +103 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/FormElement/View/Reference/CrossReferenceLinkPresenterCollectionBuilderTest.php +154 −0 Go to diff View file
M src/common/reference/CrossReferenceFactory.class.php +13 −7 Go to diff View file