stable

Clone or download

Read-only

feat: search artifacts to link by id

part of: story #24969 [modal] add and remove links (replace current artifact link) How to test: - In the link selector, type some letters --> Nothing happens - Erase the content of the search field - type an id --> If found, the artifact is displayed and can be selected --> If not, a placeholder is displayed Change-Id: I2ded7a8f6c92b5e5e6ca89b37ce13f0288a10052

Modified Files

Name
M lib/frontend/link-selector/src/index.ts +2 −2 Go to diff View file
M lib/frontend/link-selector/themes/style.scss +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/package.json +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +10 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +15 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ModalFeedback.test.ts +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ParentFeedbackController.test.ts +5 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.test.ts +99 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.ts +89 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkField.ts +22 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.test.ts +13 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts +8 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkableArtifactIdentifierProxy.test.ts +36 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkableArtifactIdentifierProxy.ts +38 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts +6 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/link-field-v2.scss +6 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/Artifact.ts +1 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkableArtifactIdentifier.ts +23 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrieveMatchingArtifact.ts +29 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/ParentRetriever.test.ts +5 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts +3 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/rest/rest-service.ts +7 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +2 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkableArtifactIdentifierStub.ts +27 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveMatchingArtifactStub.ts +34 −0 Go to diff View file