stable

Clone or download

Read-only

feat: pre-select Parent type

part of story #28274: Auto select of parents How to test: - Go to the agiledashboard of a project - Open an existing story having a parent --> The selected type is "Linked to" - Open or create a user story having no parent yet --> The selected type is "Parent", unless it has no possible parent Change-Id: I35ac4edc05a43feb0e33e9c408bf5ae11c503fca

Modified Files

Name
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/AllowedLinksTypesCollection.test.ts +70 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/AllowedLinksTypesCollection.ts +47 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/CollectionOfAllowedLinksTypesPresenters.test.ts +11 −33 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/CollectionOfAllowedLinksTypesPresenters.ts +17 −21 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.test.ts +5 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.ts +6 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkFieldController.test.ts +53 −14 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkFieldController.ts +73 −72 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactTemplate.test.ts +5 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/NewLinkTemplate.test.ts +14 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/TypeSelectorTemplate.test.ts +17 −15 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/TypeSelectorTemplate.ts +8 −11 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/CollectAllowedLinksTypes.ts +25 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/ParentTracker.ts +22 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/TrackerInAHierarchyVerifier.ts +29 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/VerifyIsTrackerInAHierarchy.ts +22 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +5 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/VerifyIsTrackerInAHierarchyStub.ts +29 −0 Go to diff View file