stable

Clone or download

Read-only

Toggle removal of link in UI

part of story #24969 [modal] add and remove links without types How to test: There is a button at the right of the links table that allows to mark a link for removal. When clicked, it will add a "strike-through" effect on the link's row. When clicked again, it will remove the "strike-through" effect. Marking a link for removal will not actually remove it yet, it only affects display for now. Change-Id: Ie6007848626d0081f57a0cbc640446448f39118e

Modified Files

Name
M .eslintrc.js +7 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +3 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/LinksMarkedForRemovalStore.test.ts +38 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/LinksMarkedForRemovalStore.ts +49 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/LinksStore.test.ts +42 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/LinksStore.ts +38 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkedArtifactProxy.test.ts +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkedArtifactProxy.ts +6 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkField.test.ts +1 −92 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkField.ts +7 −57 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.test.ts +78 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts +53 −17 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldPresenter.test.ts +10 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldPresenter.ts +4 −4 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactPresenter.test.ts +63 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactPresenter.ts +34 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts +178 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.ts +121 −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
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/AddLinkMarkedForRemoval.ts +24 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/AddLinkedArtifactCollection.ts +24 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/DeleteLinkMarkedForRemoval.ts +24 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkedArtifact.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinksRetriever.test.ts +7 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinksRetriever.ts +8 −2 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrieveLinkedArtifactsSync.ts +24 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/VerifyLinkIsMarkedForRemoval.ts +24 −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 +9 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/AddLinkMarkedForRemovalStub.ts +36 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/AddLinkedArtifactCollectionStub.ts +36 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/DeleteLinkMarkedForRemovalStub.ts +36 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkedArtifactStub.ts +39 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveAllLinkedArtifactsStub.ts +8 −6 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveLinkedArtifactsSyncStub.ts +34 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/VerifyLinkIsMarkedForRemovalStub.ts +29 −0 Go to diff View file