Skip to content

Feature/merge feb 2017 #791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

rachel-fenichel
Copy link
Collaborator

Merge google/blockly develop into scratch-blocks develop.

rachel-fenichel and others added 30 commits November 8, 2016 16:45
…move_css

Move injected css to start of head
…/import_definitions

Add ability to define blocks with a json array
…aster_to_develop_nov_11_16

Merge master to develop nov 11 16
…controls_ifelse

Remove ifelse block and messages
…_to_master_nov_11_16

Develop to master nov 11 16
…scratchfoundation#732)

Improve performance of block dragging.  This is a backport of the block drag surface from scratch-blocks.  At the beginning of a block drag, blocks get moved to a drag surface which then translates using translate3d to avoid repainting the entire svg on every mouse move.  At the end of the drag, the blocks are dropped back in the svg in their new position.
@rachel-fenichel
Copy link
Collaborator Author

Unit tests fixed.

@rschamp there are some changes to package.json that may be wrong and/or blocking Travis, but I don't know enough to debug them.

Other than the RTL text input rendering, I think this is all good.

@rachel-fenichel
Copy link
Collaborator Author

RTL text inputs fixed.

@thisandagain
Copy link
Contributor

It looks like travis is unhappy due to eslint issues with the tests:
https://travis-ci.org/LLK/scratch-blocks/jobs/202054431

I think we could just make exceptions here to the no-undef and no-unused-vars rules to get things passing again.

@thisandagain
Copy link
Contributor

thisandagain commented Feb 16, 2017

Extremely minor, but I noticed that we now have a stroke around the insertion shadow.

@thisandagain
Copy link
Contributor

In the horizontal blocks:
If you edit a numeric field, the field will return to its original value on blur.

@rachel-fenichel
Copy link
Collaborator Author

"In the horizontal blocks:
If you edit a numeric field, the field will return to its original value on blur."
@picklesrus and I have both noticed this as well, but she has it on a version of scratch-blocks pre-merge. I don't think it's specific to this merge.

"Extremely minor, but I noticed that we now have a stroke around the insertion shadow."
Meaning there should be one and isn't, or shouldn't be one and is?

RE: no-undef: were those rules ever being applied to the unit tests, or is it just that the new unit tests aren't set up to be exceptions and the old ones were?

@thisandagain
Copy link
Contributor

thisandagain commented Feb 16, 2017

Horizontal Block Inputs

Ok! Happy to file an issue and follow-up after.

Insertion Shadow

There is no stroke on insertion shadows in develop (and design spec) and this PR introduces a stroke.

Lint Ignore

Looks like you found it. :-)

@rachel-fenichel
Copy link
Collaborator Author

Insertion shadow: Fixed, I think. Looks like that wasn't quite right before, but two bugs combined to become a feature, and I fixed one of those bugs in this PR.

I think I'm all set. If you're happy with this, please squash and merge it in. Then I can write some extension demos for you.

Copy link
Contributor

@thisandagain thisandagain left a comment

Choose a reason for hiding this comment

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

When testing in the VM playground, we get a fatal exception on the line:

var flyoutWorkspace = workspace.getFlyout().getWorkspace();
Uncaught TypeError: workspace.getFlyout is not a function
    at window.onload (playground.js:64)

Did the API for this change? @rschamp can you please review this as well?

@rschamp
Copy link
Contributor

rschamp commented Feb 20, 2017

I see the same thing. It looks like getFlyout was made private in workspace, and should be implemented by subclasses. getFlyout was removed from workspace_svg. I think we could just un-remove it from workspace_svg?

@rachel-fenichel
Copy link
Collaborator Author

Not quite--we failed at the merge last time and ended up with two versions of getFlyout_ in workspace_svg:
https://github.com/LLK/scratch-blocks/blob/develop/core/workspace_svg.js#L648
https://github.com/LLK/scratch-blocks/blob/develop/core/workspace_svg.js#L528

I removed one to dedupe it.

I can fix this for y'all by making workspace:getFlyout and workspace_svg:getFlyout public, though that's out of sync with mainline blockly. Is that the fix you want?

@thisandagain
Copy link
Contributor

@thisandagain thisandagain merged commit 57c3666 into scratchfoundation:develop Feb 21, 2017
@rachel-fenichel rachel-fenichel deleted the feature/merge_feb_2017 branch February 21, 2017 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.