stable

Clone or download

Read-only

feat: Select current project at init

How to test: - In your web container, enable the feature flag: `tuleap config-set feature_flag_create_artifact 1` - Edit an artifact with an artifact link field with the modal (kanban, TTM or planning view) - Click on the "Create a new artifact" button in the link selector dropdown. - The current project should be selected in the projects list. - The trackers of the current project should be immediately loaded. - If you select another project, its trackers should still be loaded. It is then memorized: if you close the creation section and reopen it (without closing the whole modal), it will be remembered. - The trackers list-picker is not filterable (as in the mock-up). - The link type selectors should be aligned vertically. - The creation form should no longer wrap. - The error feedback should still take the whole width of the link field. part of story #28823 [modal] create artifact Change-Id: I699034f8e38024118929b76ad31b420bd5c94dd4

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/ArtifactCreatorElement.test.ts +70 −45 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/ArtifactCreatorElement.ts +88 −69 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/_artifact-creator.scss +12 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/link-field.scss +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/ProjectIdentifier.ts +10 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/creation/ArtifactCreatorController.test.ts +38 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/creation/ArtifactCreatorController.ts +14 −7 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +7 −1 Go to diff View file