[xwiki-contrib/application-releasenotes] 0bd8aa: RN-9: Make it simpler to add/modify screenshots di...
Branch: refs/heads/RN-9 Home: https://github.com/xwiki-contrib/application-releasenotes Commit: 0bd8aac531b408c8548df53a4b6403c40e6b158f https://github.com/xwiki-contrib/application-releasenotes/commit/0bd8aac531b... Author: Vincent Massol <vincent@massol.net> Date: 2026-08-30 (Sun, 30 Aug 2026) Changed paths: M application-releasenotes-test/application-releasenotes-test-docker/src/test/it/org/xwiki/releasenotes/test/ui/ReleaseNotesIT.java M application-releasenotes-ui/pom.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/ChangeClass.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/ChangeSheet.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/ChangeTemplate.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Translations.xml A application-releasenotes-ui/src/test/java/org/xwiki/releasenotes/ChangeScreenshotsPageTest.java Log Message: ----------- RN-9: Make it simpler to add/modify screenshots directly when editing a change * Give the "screenshots" property of ChangeClass a custom display built on the platform's #attachmentPicker macro: the field becomes a multi-value attachment picker that suggests the media already attached to the change, searches the whole wiki on demand, and uploads local files (drag and drop included) without leaving the form. * Keep the stored format untouched (a comma separated list of attachment names, or of Space.Page@file references for media held elsewhere), so no data migration is needed and the containsScreenshots filter of getChanges keeps working. * Carry the property value in a hidden input kept in sync with the picker by a JavaScript extension on the class, since the picker is a multiple SELECT while the property is a String, for which XWiki only keeps the first submitted value. Without JavaScript the stored value is submitted back unchanged rather than lost. * Restrict the suggestions and the upload to the media the displayers know how to render: images, and mp4 or webm videos. * Link the change edit form to the change page, which was otherwise only reachable from the release note. The link is left out while the change is being created, as there is nothing to view yet. * Add the two new strings to the translation bundle. * Cover the custom display with a page test, and the whole edit round trip (preselection, picking a second attachment, saving, reopening) with a functional test. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/application-releasenotes/settings/notificat...
participants (1)
-
XWiki Notifications