- Adjust code styling for newer pylint versions.
- Set go-to-beginning button to hidden for Screen Readers
- Unpin lxml constraint.
- Add Python 3.11 support.
- Add Python 3.12 support.
- Drop Django 3.2 support.
-
Remove Transifex calls and bundled translation files for the OEP-58 proposal.
BREAKING CHANGE: This version removes translations for Quince and earlier releases.
- XBlockI18NService js translations support
- Removed xblock-utils package
- Replace
xblockutils.*
imports withxblock.utils.*
. The old imports are used as a fallback for compatibility with older releases.
- Replace
- Removed bok-choy package along with all integration tests.
- Fix Safari focus when there are no draggables left.
- Added support for Django 4.2
- The command
make extract_translations
now usesmsgcat
instead oftail
to combinedjangojs-partial.po
intodjango.po
. This is to avoid the possibility of having message compilation failure because of duplicate strings (strings shared between both files)
-
Use the
replace_urls
service instead of a runtime property.BREAKING CHANGE: This version is no longer compatible with Maple.
- Prepare repository for upcoming changes related to openedx-translations.
conf/locale
directory is now the source of truth for translations.translations
directory is now a symbolic link for backwards compatibility.locale
symbolic link is deleted to avoid too many symbolic links.en
translations are now extracted intodjango.po
instead oftext.po
.en
text.po
is now a symbolic link todjango.po
for backwards compatibility.
- Upgrade to be compatible with
bleach==6.0.0
andbleach<6.0.0
- Make the dependency on the
css
extras explicit.
-
Sanitize HTML tags to prevent XSS vulnerabilities.
BREAKING CHANGE: Disallowed HTML tags (e.g.
<script>
) will no longer be rendered in LMS and Studio.
- Add option to drop decoy items from scores
- Add package publishing workflow.
- Make the "Show Answer" condition customizable (like in the Problem XBlock).
- Support HTML in explanations.
- Remove dots on feedback and moves final feedback to end and set bold text on assessment mode.
- Improve CSS styles for popup feedback.
- Remove special popup feedback styles for mobile.
- Improve feedback message when you reach the limit of elements on a zone.
- Fix the issue while dragging an image item on Safari mobile.
- Fix width issue for zone container on Safari mobile
- Update translations.
- Drop the support for Python 3.5 and Ubuntu 18.04.
- Use global (platform-wide) translations as a fallback when XBlock translations are missing.
This change also has an intended side effect - it allows overriding English text with comprehensive themes (by patching the default translation catalog).
- Add an optional "Explanation" field.
- Hide feedback div when there is no feedback content to display.
- Update translations.
- Fix draggable item width inconsistency while dragging.
- Do not move correctly placed items when showing the answer.
- Distribute items with multiple correct zones among these zones when showing the answer.
- Add item option to remove padding from images dropped on a zone.
- Add option to show zone border when dragging an item.
- Hides text when a draggable item is placed in a target zone and frontend wait for LMS response, this is done since the size of the item increases when the spinner is visible.
- Change containers and css classes to match those from edx-platform. The problem div now contains the drag container, buttons and feedback, css classes from submit button; submit answer and action buttons were also changed.
- Improve feedback styles, now only icons shows color related with feedback and text color remains the same also each feedback line doesn't show borders.
- Replaced
Travis
withGitHub CI
.
- Reduce drag delay on mobile devices.
- Add Portuguese translations.
- Updates supported language translations.
- Enable adding weighted problems and overriding the scores for learners. The score can be overridden in LMS using either staff debug information or Student Admin in instructor Tab.
- Fixed drag and drop editor not loading in the studio due to translation issue.
- Fix instance of
DeprecatedEdxPlatformImportWarning
.
- Better JS i18n language mapping.
- i18n source file updated in Transifex.
- i18n updated (not complete) support for languages: ar, de, es_419, fr, he, hi, it, ja, ko, nl, pl, pt_BR, ru, tr and zh_CN
- Make Drag and Drop Indexable.
- Drop Python 2 support.
- Fix bug where 'edx.drag_and_drop_v2.feedback.opened' event was sent to publish_event endpoint excessively on mouse move. (PR #238)
- Updated fragment import to remove deprecation warning which was causing extra logs in Splunk etc.
- Updated code to render custom zone title as HTML
- NOTE: This version was skipped / is not documented.
- Python3 compatible.
- This repository is now python3 compatible.
- Update the xblock-sdk hash which is python3 compatible also.
- Use InheritanceMixin for submission deadline checks (PR #219)
- Submit button behavior will change in Assessment Mode and will now be impacted by subsection due date, grace period and course pacing
- Fix dragging bug in mobile (PR #204)
- Add translation for Reset and Feedback strings (PR #196)
- Fix Loading message translation for Chinese & Spanish (PR #199)
- Fix JavaScript error when the XBlock is in an IFrame (PR #192)
- Revert change to travis.yml so it doesn't need to be updated with every version bump.
- Extend existing APIs to support native mobile (PR #158)
- Implement XBlock JavaScript i18n using i18n_tool and django-statici18n (PR #156)
- Expand static URLs in FeedbackMessage (PR #190)
- Use i18n runtime service to provide translations for HTML templates (PR #154)
- Ensures URLs are utf-8 encoded (PR #150)
- Correct load listener setup (PR #153)
- Improve image handling on mobile (PR #152)
- When dragging, scroll target image as needed.
- Making the code more robust to handle an edge case when a dict does not contain an key (PR #149)
- Make XBlock always emit
progress
event explicitly when it is marked as complete.
- Prevent target image from shrinking in mobile, and make it scrollable (PR #135)
- Ability to generate zones and background image automatically (PR #136)
- Enforce XBlock variable types (PR #104)
- Improvements for mobile (PRs #132, #133, #134)
- Various accessibility improvements (PRs #110, #111, #112)
- i18n improvements (PR #113)
- (#108) Grading updates:
- SOL-2030 Grade information is now displayed beneath the display name of the problem (similar to CAPA)
- SOL-2094 Fixed problem preventing DnDv2 blocks from being scored or graded.
- Highest grade achieved is now displayed in feedback area
- Renamed "Maximum score" field to "Problem Weight" to be in line with CAPA problems and avoid confusion.
- (#106) Don't delete misplaced items on final attempt
- (#97) Added "item" field to item.dropped event
- (#101) Implement "show answer" button
- (#103) Miscellaneous UI fixes
- (#105) Correct an issue with background image selection
- (#88) Cleaned up studio editor template: styling, help texts, accessibility attributes, classes instead of IDs, etc.
- (#95) Fixed flaky selenium tests
- (#85) Accessibility improvements for item feedback popup
- (#73) Accessibility improvements for item, zone and background image when using keyboard mode
- (#96) Decoy items are properly accounted for in grade calculation and problem completion condition
- (#98) Support for legacy item state
- (#92) Prevented overlapping item placement: option to keep dropped item where learner dropped it was removed; items always use automatic layouts (left/center/right)
- (#93) Per-item error feedback is shown in assessment mode when an attempt is submitted
- Numerical input feature removed
- Multiple drop zones per item
- Assessment mode - first version
- Translation fix: removed duplicate entries in translation files
- Accessibility fix: Removes role="application"
- Marked strings for translations (PR #66)
- Added the ability to specify automatic alignment of dropped items. (PR #57)
- Add a placeholder text to the input field to set the item image. (PR #65)
- Bugfix: When omitting the background image description in Studio, the red halo indicating the field with the error did not show in Safari. (PR #62)
- Bugfix: Make short URLs of the form /static/... to uploaded images work correctly for item background images. (PR #63)
- Bugfix: "Background description" was required, but if you filled it out and pressed "Continue", "Save", it would accept the new description but would not actually save it. (PR #55)
- Bugfix: When configuring the draggable items, the "Image Description" was always required, even if the "Image URL" was blank. (PR #55)
- Bugfix: When clicking certain action links in the dndv2 editor (e.g. "Add a Zone"), the browser would scroll to the top of the page (since the href="#" event was not prevented). (PR #55)
- Bugfix: When changing tabs in the dndv2 editor, the next tab would often be scrolled down halfway. (PR #55)
- Bugfix: In Studio, Newly added drag and drop components did not load properly, due to a Studio bug that affects Cypress and Dogwood. (Fixed in Studio post-Dogwood.) (PR #55)
- Fixed some flaky tests
- Bugfix: If zone labels are numbers, like "1", "2", etc., then the draggables would not match with that zone (you cannot drop the draggables onto that zone) (PR #54)
- Bugfix: If two zones had the same name/label, the block would not work properly. (PR #54)
- Bugfix: If the platform's locale is set to a language like "de" or "eo" that formats numbers like "3,14", then the "Maximum Score" field appears blank when editing a dndv2 exercise in Studio. Attempting to save the exercise with that field blank causes a 500. (PR #54)
A brand new release of the Drag and Drop XBlock, featuring major UX improvements, new features, and accessibility enhancements.