stable

Clone or download

Read-only

chore: step 3 - hybrids: 8.2.2 -> 9.0.0 artifact-modal

Closes request #38309 hybrids: 8.2.2 -> 9.0.0 No functional change expected in the artifact modal. You can still: - edit all fields - switch the format of text fields - upload an image in a text field or new follow-up comment - add / remove new files - mark for deletion existing files - add / remove new artifact links - mark for removal existing links - create a new artifact directly from the links field - add a new follow-up comment - see that submitting is blocked while loading artifact links - see REST error messages - have a warning when you change something, before closing the modal. - list field dependencies still work - list workflow still works Co-authored-by: Thomas Gorka <thomas.gorka@enalean.com> Co-authored-by: Joris Masson <joris.masson@enalean.com> Change-Id: Ie21e19d5e9804817aa38d7aceec92ed224421caa

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/package.json +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/pnpm-lock.yaml +4 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/CommonmarkPreviewButton.test.ts +4 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/CommonmarkPreviewButton.ts +21 −17 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/CommonmarkSyntaxHelper.test.ts +3 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/CommonmarkSyntaxHelper.ts +133 −130 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/FormatSelector.test.ts +6 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/FormatSelector.ts +53 −52 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/RichTextEditor.test.ts +7 −11 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/RichTextEditor.ts +27 −35 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/comments/FollowupEditor.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/comments/FollowupEditor.ts +14 −13 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/comments/ModalCommentsSection.ts +15 −18 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ModalFeedback.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ModalFeedback.ts +26 −29 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/artifact-id-field/ArtifactIdField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/artifact-id-field/ArtifactIdField.ts +12 −11 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/burndown-field/BurndownField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/burndown-field/BurndownField.ts +16 −14 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/checkbox-field/CheckboxField.ts +3 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/computed-field/ComputedField.test.ts +5 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/computed-field/ComputedField.ts +14 −12 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/computed-field/__snapshots__/ComputedField.test.ts.snap +7 −7 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/cross-references-field/CrossReferencesField.test.ts +3 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/cross-references-field/CrossReferencesField.ts +41 −37 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/date-field/DateField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/date-field/DateField.ts +43 −38 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/date-readonly-field/DateReadonlyField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/date-readonly-field/DateReadonlyField.ts +13 −13 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/file-field/FileField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/file-field/FileField.ts +41 −49 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/file-field/NewFileToAttachElement.test.ts +6 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/file-field/NewFileToAttachElement.ts +45 −43 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/float-field/FloatField.test.ts +3 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/float-field/FloatField.ts +27 −25 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/int-field/IntField.test.ts +3 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/int-field/IntField.ts +23 −24 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.test.ts +82 −95 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.ts +77 −88 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkTypeSelectorElement.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkTypeSelectorElement.ts +29 −25 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactTemplate.test.ts +7 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/NewLinkTemplate.test.ts +5 −7 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/NewLinkTemplate.ts +2 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/ArtifactCreatorElement.test.ts +5 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/creation/ArtifactCreatorElement.ts +96 −104 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/open-list-field/static/StaticOpenListField.ts +8 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/open-list-field/static/StaticOpenListFieldController.test.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/open-list-field/static/StaticOpenListFieldController.ts +11 −11 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/open-list-field/user-groups/UserGroupOpenListField.ts +8 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/open-list-field/user-groups/UserGroupOpenListFieldController.test.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/open-list-field/user-groups/UserGroupOpenListFieldController.ts +9 −10 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/permission-field/PermissionField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/permission-field/PermissionField.ts +18 −19 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/priority-field/PriorityField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/priority-field/PriorityField.ts +10 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/radio-buttons-field/RadioButtonsField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/radio-buttons-field/RadioButtonsField.ts +47 −43 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/select-box-field/SelectBoxField.test.ts +3 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/select-box-field/SelectBoxField.ts +27 −20 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/select-box-field/SelectBoxHighlighter.test.ts +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/select-box-field/SelectBoxHighlighter.ts +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/string-field/StringField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/string-field/StringField.ts +23 −18 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/text-field/TextField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/text-field/TextField.ts +16 −15 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/user-avatar-field/UserAvatarField.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/user-avatar-field/UserAvatarField.ts +26 −22 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/footer/FileUploadQuota.ts +18 −13 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/text-and-format.test.ts +11 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/LinkFieldController.test.ts +77 −14 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/LinkFieldController.ts +123 −102 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/ParentLinkVerifier.test.ts +0 −89 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/ParentLinkVerifier.ts +0 −45 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +1 −3 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/tests/stubs/VerifyHasParentLinkStub.ts +0 −26 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/webpack.common.js +1 −0 Go to diff View file