stable

Clone or download

Read-only

feat: Show more in error alert

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) - Fake an error in the retrieval of projects (for example throw a RestException in ProjectResource). - Click on the "Create a new artifact" button in the link selector dropdown. - An alert will be shown on top of the creation inline form. It will be scrolled into view. - When you click the "View details" button, the error message from the API will be prefixed by a translated message explaining that it happened while retrieving the list of projects. part of story #28823 [modal] create artifact Change-Id: I66ffacbb4105c58d03eb181879a337cda92c9c70

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +7 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/pt_BR.po +6 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/ArtifactCreatorElement.test.ts +51 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/ArtifactCreatorElement.ts +44 −15 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/FaultDisplayer.test.ts +53 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/FaultDisplayer.ts +36 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/creation/ArtifactCreatorController.test.ts +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/creation/ArtifactCreatorController.ts +2 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/creation/ProjectsRetrievalFault.ts +25 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts +4 −0 Go to diff View file