stable
Clone or download
Read-only
part of story #24969 [modal] add and remove links (replace current artifact link) No functional change in new link field. Notes: using a memory adapter lets us read the currently selected type in the autocompleter callback. We need to know it to return another group of items (possible parents) when the current type is "Parent". Change-Id: Ifac88c9ed53eb233e2db513008df6fc681ed449b
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/SelectedLinkTypeStore.test.ts | +43 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/SelectedLinkTypeStore.ts | +33 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkedArtifactProxy.test.ts | +2 | −6 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts | +2 | −5 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/AddLinkButtonTemplate.test.ts | +5 | −27 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/AddLinkButtonTemplate.ts | +3 | −19 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkField.ts | +3 | −6 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.test.ts | +56 | −11 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts | +39 | −5 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkTypeProxy.test.ts | +0 | −12 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkTypeProxy.ts | +0 | −8 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts | +4 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/NewLinkTemplate.test.ts | +4 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/TypeSelectorTemplate.test.ts | +53 | −9 | 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/fields/link-field-v2/LinkType.test.ts | +30 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkType.ts | +10 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrieveSelectedLinkType.ts | +24 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/SetSelectedLinkType.ts | +24 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js | +4 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveSelectedLinkTypeStub.ts | +43 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/SetSelectedLinkTypeStub.ts | +26 | −0 | Go to diff View file |