stable
Clone or download
part of story #24969 [modal] add and remove links (replace current artifact link) How to test: - Edit or create an artifact that can have possible parents (either in a Team linked to a Program or in a Tracker Hierarchy) - When you choose the "Parent" link type, the link-selector dropdown will show a "Possible parents" group with a spinner - when the parents are loaded, it will show the possible parents in the group - if you type a number in the link-selector field, you will get two groups: first the matching artifacts, then the possible parents - if there is an API error, it will be shown at the top of the modal - if your tracker cannot have possible parents, an empty state message will be shown Change-Id: If6fb57ea7f207ddc8a0b3f3e8bcef729c1ae6dfa
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po | +10 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/po/pt_BR.po | +9 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/Caller/CurrentTrackerIdentifierProxy.test.ts | +29 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/Caller/CurrentTrackerIdentifierProxy.ts | +27 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/PossibleParentsCache.test.ts | +64 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/PossibleParentsCache.ts | +43 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkFieldValueFormatter.ts | +2 | −7 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts | +38 | −5 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts | +17 | −4 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/FaultFeedbackPresenter.test.ts | +13 | −16 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/FaultFeedbackPresenter.ts | +6 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/AddLinkButtonTemplate.test.ts | +17 | −5 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.test.ts | +113 | −4 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.ts | +67 | −24 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.test.ts | +104 | −5 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts | +34 | −6 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts | +17 | −3 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/NewLinkTemplate.test.ts | +17 | −3 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/PossibleParentsGroup.test.ts | +55 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/PossibleParentsGroup.ts | +45 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/TypeSelectorTemplate.test.ts | +18 | −3 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/TypeSelectorTemplate.ts | +1 | −1 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/CurrentTrackerIdentifier.ts | +23 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkType.test.ts | +12 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkType.ts | +4 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/ParentLinkVerifier.ts | +3 | −9 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/PossibleParentsRetrievalFault.ts | +25 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrievePossibleParents.ts | +29 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts | +5 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js | +13 | −1 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/CurrentTrackerIdentifierStub.ts | +24 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkSelectorStub.ts | +9 | −6 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrievePossibleParentsStub.ts | +57 | −0 | Go to diff View file |