stable

Clone or download

Read-only

feat: Display newly added link and save it

part of story #24969 [modal] add and remove links (replace current artifact link) How to test: - Type an artifact id in the input - Select the artifact (if any is matching) - Click on "Add link" button - You should see a new row with slightly green background. It shows the same information as existing links. There is no button to remove new links yet. - When you submit the modal, the new links should be added to the artifact. - It should function correctly in creation mode (new artifact) and edition (existing). Change-Id: If136ce3323b0e9d7b1340493cf7d30104e71e6b1

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkField.test.ts +48 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkField.ts +11 −11 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts +7 −12 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.ts +16 −29 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/NewLinkTemplate.test.ts +101 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/NewLinkTemplate.ts +82 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/link-field-v2.scss +4 −0 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/FormattedLinkArtifactFactory.ts +0 −28 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkFieldValueFormat.ts +16 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkFieldValueFormatter.test.ts +89 −42 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkFieldValueFormatter.ts +9 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinksRetriever.test.ts +13 −4 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/LinkedArtifactStub.ts +7 −10 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/NewLinkStub.ts +7 −0 Go to diff View file