Skip to content
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

Fixes for LB page and readonly blockspace #35523

Merged
merged 6 commits into from Jun 29, 2020
Merged

Conversation

ajpal
Copy link
Contributor

@ajpal ajpal commented Jun 26, 2020

Relies on code-dot-org/blockly#233

Before:
image

After (not perfect, but at least not broken):
image

Also switches the default on the pointer blocks to be the long string, so that it renders properly in instructions:
Before:
image

After:
image

Links

Testing story

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@@ -1040,7 +1039,11 @@ exports.createJsWrapperBlockCreator = function(
});
}
});
if (appOptions.level.miniToolbox && !appOptions.readonlyWorkspace) {
if (
!window.appOptions ||
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't understand the addition of !window.appOptions here -- why do we init mini-toolbox if we don't have appOptions?

(out of curiosity) are we moving away from using /* global appOptions */ in favor of window.appOptions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for the levelbuilder block page which doesn't have appOptions but we do want to render the mini toolbox blocks.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, right, that makes sense!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(added a comment to the code for clarity)

@ajpal ajpal merged commit b392912 into staging Jun 29, 2020
@ajpal ajpal deleted the jun26-readonly-minitoolbox branch June 29, 2020 20:47
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.

None yet

2 participants