-
Notifications
You must be signed in to change notification settings - Fork 52
Feat: [UEPR-165] merge native into develop with platform #220
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
Closed
Bogomil-Stoyanov
wants to merge
122
commits into
scratchfoundation:develop
from
Bogomil-Stoyanov:feat/uepr-165-merge-native-into-develop-with-platform
Closed
Changes from 118 commits
Commits
Show all changes
122 commits
Select commit
Hold shift + click to select a range
10f688e
Allow GUI consumer to receive a function for triggering saves.
paulkaplan 76561b6
Remove file menu
paulkaplan 1b9aefe
Add home to scratch logo
paulkaplan 7cbea8a
Bring back the library loading through storage.
paulkaplan 1de993d
WIP for library perf
paulkaplan a663182
add vm init fn
paulkaplan ea04d0c
Show spinner before loading library content
paulkaplan 75602cf
Update scratch-vm to get scratch link config updates
paulkaplan 5b19e60
Fix proptype sorting
paulkaplan 928854c
Fixup spinner
paulkaplan 0351d0f
Merge branch 'develop' into native
paulkaplan 9ce5be1
Merge branch 'develop' into native
paulkaplan 19d0a69
Merge from develop
paulkaplan 054349e
Add onNewSpriteClick override
paulkaplan 98e7747
Provide overrides for triggering costume and backdrop libraries
paulkaplan 6d683d0
Merge branch 'develop' into native
paulkaplan 3d9c2ef
Merge branch 'develop' into native
paulkaplan a12c358
Remove spanish gifs for now
paulkaplan a189324
Fix perf by avoiding defaultsDeep in mergeProps
paulkaplan 678aa01
Emit projectDidSave for server saves, not just file exports
paulkaplan 8b07431
Use a larger buffer size for recording to prevent glitching
paulkaplan 3107da7
Force meter and waveform to separate paint layer
paulkaplan 72b480a
Use single setState call instead of two
paulkaplan 9832cf0
Merge branch 'develop' into native
paulkaplan 19481c7
Merge branch 'develop' into native
paulkaplan ce6cce2
Allow Android to request a thumbnail generated on load
chrisgarrity b64cf80
Merge branch 'develop' into native
paulkaplan 2d6ca11
Merge remote-tracking branch 'upstream/native' into native
paulkaplan 6b556df
store project thumbnail after project loaded with id for android
chrisgarrity b33ed44
Merge branch 'native' of github.com:LLK/scratch-gui into native
paulkaplan 05d6624
Merge branch 'develop' into native
paulkaplan 26dd868
Merge branch 'develop' into native
paulkaplan a9a7f5c
Do not include src in npmignore
paulkaplan 0f5dc4e
Merge branch 'native' into 0.1.0-prerelease.20200109172023
paulkaplan c2b0c10
Merge pull request #5383 from LLK/0.1.0-prerelease.20200109172023
paulkaplan 47f9ef8
Merge pull request #5387 from LLK/0.1.0-prerelease.20200113203847
paulkaplan dc36717
Merge tag '0.1.0-prerelease.20200213175628' into native
paulkaplan 2e8d854
Merge tag '0.1.0-prerelease.20200319183521' into native
chrisgarrity c7cfca8
Fix lint errors
chrisgarrity 398eb57
Merge tag '0.1.0-prerelease.20200423001702' into native
chrisgarrity 859fd31
Merge tag '0.1.0-prerelease.20200527204130' into native
chrisgarrity ce24356
Pull revert from VM
68c4c5a
Merge tag '0.1.0-prerelease.20200618175748' into native
chrisgarrity f481636
Merge tag '0.1.0-prerelease.20200722032238' into native
chrisgarrity 6d66534
Handle user picked peripheral
eff9a11
Merge branch 'latest' into native
221abef
Merge branch 'native' into useCdm
f97c0e5
Merge pull request #6273 from fsih/useCdm
fsih 23486df
Fix merge
78242f7
Merge branch 'native' of github.com:LLK/scratch-gui into native
060f472
bump scratch-vm for CDM support
cwillisf 6ff76dc
Merge release 1/7/2021
caa4b30
Fix lint
6c7b980
Fix integration tests
dd3bbd7
Merge pull request #6553 from fsih/mergeDevelop
fsih 837ed10
Fix audio context not starting
paulkaplan 7630a76
Merge tag '0.1.0-prerelease.20210224115226' into native
7b7cb7f
Merge pull request #6851 from fsih/mergeTag
cwillisf 6ec60aa
Merge branch 'fix-telemetry-dialog-selection' into native
cwillisf 6c184ad
build(deps): bump scratch-paint
dependabot-preview[bot] b8ef333
Merge tag '0.1.0-prerelease.20210425034539' into native
cwillisf c092de2
Merge tag '0.1.0-prerelease.20210526041028' into native
cwillisf c3f7a8b
Merge tag '0.1.0-prerelease.20210621040041' into native
cwillisf ecf262a
fix lint error introduced by merging 8a774a2aa10c9209d852549d70f50ebd…
cwillisf 00ffb1b
Merge tag '0.1.0-prerelease.20210727132145' into native
cwillisf 17bb21d
fix BOOST & CDM combo
cwillisf 3fb6833
explain USER_PICKED_PERIPHERAL and remove bad bind
cwillisf 0ba1cc7
Merge pull request #7565 from cwillisf/fix-boost-cdm
cwillisf ac8e04e
Merge tag '0.1.0-prerelease.20210908105639' into native
cwillisf 48bb276
add flag to enable 'CDM mode', force autoscan
cwillisf c93a035
allow extension to override prescan & pressbutton messages
cwillisf 97901d9
add prescanMessage and scanMeginMessage for WeDo 2.0 and BOOST
cwillisf 4b97ddb
Merge pull request #7745 from cwillisf/cdm-connection-flow-updates
cwillisf ab513b9
Merge tag '0.1.0-prerelease.20211103150403' into native
cwillisf 3e52a4c
Merge tag '0.1.0-prerelease.20220118124756' into native
cwillisf 4379dbb
Merge tag '0.1.0-prerelease.20220303152318' into native
cwillisf e7d6d9e
Merge tag 'v1.8.6' into native
cwillisf bc08006
ci: configure commitlint for native branch
cwillisf b076ef4
Merge branch 'develop' into tmp/native
06549c5
Merge branch 'develop' into native
ff31e32
Merge branch 'develop' into native
d149860
chore: update native branch with monorepo-integration branch
MiroslavDionisiev 1dfd99a
chore: updated scratch-webpack-configuration and setup-node versions
MiroslavDionisiev dd61879
Merge pull request #9624 from MiroslavDionisiev/native-develop-merge
MiroslavDionisiev d6df22a
Revert "chore: updated scratch-webpack-configuration and setup-node v…
MiroslavDionisiev f42dbae
Revert "chore: update native branch with monorepo-integration branch"
MiroslavDionisiev e4eaf70
chore: merge develop in native
MiroslavDionisiev e0d8448
Revert "ci: reduce package size"
MiroslavDionisiev 4285521
chore: resolve conflicts
MiroslavDionisiev 4e35630
Merge pull request #9633 from MiroslavDionisiev/native-develop-merge
MiroslavDionisiev 29f13d5
chore(deps): add scratch-gui#native as packages/scratch-gui
MiroslavDionisiev 3c72884
chore(deps): add scratch-render#develop as packages/scratch-render
MiroslavDionisiev bf99f01
chore(deps): add scratch-svg-renderer#develop as packages/scratch-svg…
MiroslavDionisiev 8de3aff
chore(deps): add scratch-vm#develop as packages/scratch-vm
MiroslavDionisiev 0a369c2
chore: remove repo-level configuration and deps from packages/*
MiroslavDionisiev fe7c3e1
chore(deps): use workspace versions of all local packages
MiroslavDionisiev a46d0b3
refactor: fixed paths to work with new project structure
MiroslavDionisiev c2acb60
Merge pull request #14 from MiroslavDionisiev/scratch-android
MiroslavDionisiev f818fa8
Merge branch 'develop' into feat/uepr-165-merging-native
Bogomil-Stoyanov 2ed8b64
fix: return inclusion of /src files
Bogomil-Stoyanov e90a5ca
feat: [UEPR-165] WIP fixing tutorial icons
Bogomil-Stoyanov 5a86b0e
feat: [UEPR-165] Images in android work, broke browser images
Bogomil-Stoyanov ef66390
feat: [UEPR-165] Added check if android -> shows file from assets in …
Bogomil-Stoyanov f05671f
feat: [UEPR-163] Added platform reducer
Bogomil-Stoyanov c3185ec
feat: [UEPR-163] updates state from platform prop
Bogomil-Stoyanov 9112f4f
feat: [UEPR-163] Added platform prop to gui component
Bogomil-Stoyanov ac59664
feat: [UEPR-163] Added own props
Bogomil-Stoyanov 18d7eae
Merge branch 'feat/uepr-165-merging-native' into feat/uepr-165-merge-…
Bogomil-Stoyanov a3f53fd
feat: [UEPR-165] added checks for platfrom in Cards and Scratch Image
Bogomil-Stoyanov 7c8c292
feat: [UEPR-165] Added back part of commented out test
Bogomil-Stoyanov 156030e
feat: [UEPR-165] Changes to platfrom prop
Bogomil-Stoyanov c4a1775
feat: [UEPR-165] Changes to platfrom prop in Cards
Bogomil-Stoyanov dd6ba82
feat: [UEPR-165] Removed console log
Bogomil-Stoyanov 51dcf15
feat: [UEPR-165] Removed ci-cd.yml from gui
Bogomil-Stoyanov c8edd74
feat: [UEPR-165] Omit setPlatform from props passed to DOM elements
Bogomil-Stoyanov f5bfce2
feat: [UEPR-165] Image translation - platform condition
Bogomil-Stoyanov e189ec0
feat: [UEPR-165] Removed a test, added android specific prop and chan…
Bogomil-Stoyanov ebd54a2
feat: [UEPR-165] Reverted change in newSpriteClick
Bogomil-Stoyanov dcc285b
feat: [UEPR-165] Added platfrom to Scratch img, changed shoVideos in …
Bogomil-Stoyanov bd723db
feat: [UEPR-165] Added onNewLibraryBackdropClick to props
Bogomil-Stoyanov a2dbb44
feat: [UEPR-165] Fixed cards test
Bogomil-Stoyanov 44f4d66
feat: [UEPR-165] Removed console.log
Bogomil-Stoyanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
npm-* | ||
|
||
# Double copies of all the static assets and tutorial gifs | ||
/src | ||
# /src | ||
|
||
# Testing | ||
/.nyc_output | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,23 @@ const PHASES = keyMirror({ | |
updatePeripheral: null | ||
}); | ||
|
||
const ConnectionModalComponent = props => ( | ||
<Modal | ||
const ConnectionModalComponent = props => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @MarshTheTester, we'll need to specifically check hardware extensions for the next Android release. We should include both new (CDM) and old (non-CDM) tablets. |
||
// ScanningStep allows the user to choose a peripheral from a list. | ||
// AutoScanningStep connects to the first peripheral found. | ||
// Also, AutoScanningStep adds "prescan" and "pressbutton" phases before the actual scan. | ||
// When useExternalPeripheralList is true, force the use of AutoScanningStep: | ||
// - We want to automatically connect to the first peripheral "found" since it's actually the one selected by the | ||
// user from the external list. | ||
// - We want to show the "prescan" phase to inform the user before the external list appears. | ||
// - The "pressbutton" phase doesn't hurt: it might be hidden behind the external list (especially with Android | ||
// CDM) or it might help the user to keep the peripheral device awake. | ||
// TODO: does forcing AutoScanningStep mean we can eliminate the `USER_PICKED_PERIPHERAL` message? | ||
const ScanningStepContainer = ( | ||
(props.useAutoScan || props.useExternalPeripheralList) ? | ||
AutoScanningStep : | ||
ScanningStep | ||
); | ||
return (<Modal | ||
className={styles.modalContent} | ||
contentLabel={props.name} | ||
headerClassName={styles.header} | ||
|
@@ -35,27 +50,30 @@ const ConnectionModalComponent = props => ( | |
onRequestClose={props.onCancel} | ||
> | ||
<Box className={styles.body}> | ||
{props.phase === PHASES.scanning && !props.useAutoScan && <ScanningStep {...props} />} | ||
{props.phase === PHASES.scanning && props.useAutoScan && <AutoScanningStep {...props} />} | ||
{props.phase === PHASES.scanning && <ScanningStepContainer {...props} />} | ||
{props.phase === PHASES.connecting && <ConnectingStep {...props} />} | ||
{props.phase === PHASES.connected && <ConnectedStep {...props} />} | ||
{props.phase === PHASES.error && <ErrorStep {...props} />} | ||
{props.phase === PHASES.unavailable && <UnavailableStep {...props} />} | ||
{props.phase === PHASES.updatePeripheral && <UpdatePeripheralStep {...props} />} | ||
</Box> | ||
</Modal> | ||
); | ||
</Modal>); | ||
}; | ||
|
||
ConnectionModalComponent.propTypes = { | ||
connectingMessage: PropTypes.node.isRequired, | ||
connectionIconURL: PropTypes.string, | ||
connectionSmallIconURL: PropTypes.string, | ||
connectionTipIconURL: PropTypes.string, | ||
name: PropTypes.node, | ||
onCancel: PropTypes.func.isRequired, | ||
onHelp: PropTypes.func.isRequired, | ||
phase: PropTypes.oneOf(Object.keys(PHASES)).isRequired, | ||
prescanMessage: PropTypes.node, | ||
scanBeginMessage: PropTypes.node, | ||
title: PropTypes.string.isRequired, | ||
useAutoScan: PropTypes.bool.isRequired | ||
useAutoScan: PropTypes.bool.isRequired, | ||
useExternalPeripheralList: PropTypes.bool | ||
}; | ||
|
||
ConnectionModalComponent.defaultProps = { | ||
|
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.