stable

Clone or download

Read-only

feat: display cross-ref in link selector badge

part of story #24969 [modal] add and remove links (replace current artifact link) When you write a number matching an artifact id in the link field, the retrieved artifact will show a cross-reference badge with its tracker color. Change-Id: I08f878152a13e8cd651c8f2abc4685ccbaa33e21

Modified Files

Name
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/ArtifactCrossReferenceProxy.test.ts +34 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/ArtifactCrossReferenceProxy.ts +28 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkableArtifactProxy.test.ts +44 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkableArtifactProxy.ts +30 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +9 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +5 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.test.ts +7 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.ts +11 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts +4 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/ArtifactCrossReference.test.ts +7 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/ArtifactCrossReference.ts +10 −4 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/domain/Artifact.ts Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrieveMatchingArtifact.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +2 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/ArtifactCrossReferenceStub.ts +7 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkableArtifactStub.ts +41 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveMatchingArtifactStub.ts +4 −4 Go to diff View file