stable

Clone or download

Read-only

Add `Recently viewed artifact` empty section in link selector

Part of story #24971 [modal] search for artifacts How to test: - Go to the artifact modal of an artifact with the artifact link field. - Make sure to test whith each enabled link type. - Click on the selector: 1. If the `Parent` type is selected => The `Recently viewed artifacts` should not be displayed 2. Else, the `Recently viewed artifacts` should be displayed - Type something in the autocompleter: 1. If the `Parent` type is selected => The `Recently viewed artifacts` should not be displayed 2. Else, the `Recently viewed artifacts` should be displayed 3. In any case others section should be displayed with the right result Change-Id: I75e04f4857deb5d3333fee00932e154d16655192

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +3 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/pt_BR.po +3 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/ArtifactLinkSelectorAutoCompleter.test.ts +41 −15 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/ArtifactLinkSelectorAutoCompleter.ts +21 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.test.ts +7 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.ts +5 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkFieldController.test.ts +6 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkFieldController.ts +9 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactTemplate.test.ts +6 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/NewLinkTemplate.test.ts +5 −2 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/RecentlyViewedArtifactGroup.ts +41 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/TypeSelectorTemplate.test.ts +5 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/LinkType.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +4 −6 Go to diff View file