Repository navigation
Draw extension booleans and menus correctly in script previews - #225
Merged
Merged
Conversation
Deploying scratch-gui with
|
| Latest commit: |
d110a6a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ced167f7.scratch-gui.pages.dev |
| Branch Preview URL: | https://scratchblocks-extension-bloc.scratch-gui.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit pages drew some scripts wrongly. This fixes how scripts are translated to scratchblocks:
lmsLooksPlus_menu_spriteMenuwere treated as a block ("menu spriteMenu [Field to type in]"). They now render as a dropdown,[Field to type in v]. Only a single-field call whose name contains_menu_counts as a menu, so extension reporters with "menu" in their name stay reporters.and/oroperands, andif,repeat untilandwhileconditions) rendered round, or as<(...)>, which scratchblocks draws as a red hexagon. They now render as hexagons.x ?? "a") rendered as(...). They now show the visible value, for example(PASSWORD).when [enter v] key pressed. They now read "when enter key pressed", the same as the changes view. Colour annotations (:: #277a59) are stripped too.Screenshots
All are from commit 36650af6 of
p1790295130360345000J3JZRS, the commit that was reported.Before (live mistwarp.org): a round "spriteVisible" reporter with a "menu spriteMenu" block inside.

After (Chromium): a hexagonal "sprite visible" with a dropdown.

Headings, before and after (the after shot is Firefox).


The structured changes view from #223, with its real

/changesresponse routed in. It marks added and removed blocks once api #80 is deployed to production.Checks
The
node.js.ymlsteps were run locally:check-conventions --base=origin/develop;i18n:editor:checkandi18n:community:check;check:community-cssanddeps:check;test:unit:ci(4096 passed);build:deployandvalidate-deploy.New tests cover extension booleans, menus, hidden defaults, extension reporters named
_menu_, and colour-annotated titles. An independent review found no must-fix items, and its should-fix (the_menu_reporter case) is fixed.Version: 3.8.0 → 3.8.1 (a fix).