Skip to content

Fix multiselect drag to backpack#3889

Merged
ewpatton merged 7 commits into
mit-cml:masterfrom
mjgallag:fix-multiselect-drag-to-backpack
May 5, 2026
Merged

Fix multiselect drag to backpack#3889
ewpatton merged 7 commits into
mit-cml:masterfrom
mjgallag:fix-multiselect-drag-to-backpack

Conversation

@mjgallag
Copy link
Copy Markdown
Contributor

What does this PR accomplish?

This PR addresses a regression caused by the update to Blockly 11.
This PR adds a similar headless workspace json/xml conversion workaround to dragging multiple blocks to the backpack that was used for paste all blocks from backpack. Additionally it fixes a few things so headless worksapces work with more block types. I don't know of any more right now that don't work but they could be out there. Important to note that all other backpack uses cases, including dragging a single block to it, do not make use of this workaround.

.Context for the changes

If this PR changes anything related to the companion make sure you have used the ucr branch. For all other changes use master or provide context for having used a different branch.
See a summary of git branches in the docs: App Inventor Developer Overview

If your code changes how something works on the device (i.e., it affects the companion):

  • I have made no changes that affect the companion

  • I branched from ucr

  • My pull request has ucr as the base

Further, if you've changed the blocks language or another user-facing designer/blocks API (added a SimpleProperty, etc.):

  • I have updated the corresponding version number in appinventor/components/src/.../common/YaVersion.java
  • I have updated the corresponding upgrader in appinventor/appengine/src/.../client/youngandroid/YoungAndroidFormUpgrader.java (components only)
  • I have updated the corresponding entries in appinventor/blocklyeditor/src/versioning.js

For all other changes:

  • I have made no changes that affect the master branch

  • I branched from master

  • My pull request has master as the base

General items:

  • I have updated the relevant documentation files under docs/
  • My code follows the:
  • ant tests passes on my machine

@mjgallag
Copy link
Copy Markdown
Contributor Author

mjgallag commented Apr 13, 2026

@ewpatton I think these commits should be merged individually. They are independent and each incrementally improve the situation. Will make reading the history better if we do more work to get headless working in the future for other more interesting purposes then a workaround. Also easier to revert if a particular one causes an issue. They do not build on or depend on each other.

Comment thread appinventor/blocklyeditor/src/blocks/procedures.js
Comment thread appinventor/blocklyeditor/src/block.js Outdated
Comment thread appinventor/blocklyeditor/src/block_svg.js
Copy link
Copy Markdown
Member

@josmas josmas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks. Approving but please make the suggested change.

@mjgallag
Copy link
Copy Markdown
Contributor Author

@ewpatton I'll rebase (since I don't think anyone has started reviewing it yet) #3768 after you merge this since 2fdccb9 will conflict.

@jisqyv jisqyv added the on ai2-test Code is deployed on ai2-test.appinventor.mit.edu label Apr 30, 2026
@mjgallag
Copy link
Copy Markdown
Contributor Author

works on ai2-test

@ewpatton ewpatton merged commit 281b889 into mit-cml:master May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects: master for-ai2-test on ai2-test Code is deployed on ai2-test.appinventor.mit.edu regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants