forked from microbit-foundation/cctd-ml-machine
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Handle radio connect/ reconnect error scenarios #281
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a8770b3
Allow skip flashing of radio remote micro:bit when developing
microbit-grace e1ccb32
Store radio remote device id in local storage
microbit-grace b1a6424
Show gesture data when it exists
microbit-grace dce743d
WIP
microbit-grace 8f33c6f
WIP
microbit-grace 6eaf473
Get next connection state and tests and other teaks
microbit-grace 7b79afd
Add disconnect test scenarios for getNextConnectionState
microbit-grace 0744591
Revert changes in ConnectProvider
microbit-grace fe0a59d
Remove ConnectStatusProvider debugging logging
microbit-grace 9bdf6f9
Fix live graph panel use of status and tweak comments
microbit-grace afac8dc
Upgrade microbit-connection lib to v0.0.0-alpha.15
microbit-grace 0c50724
Close start over warning dialog when start new session is clicked
microbit-grace 169535f
Do not show connecting dialog when reconnecting
microbit-grace d23f238
Close start over warning dialog when start new session is clicked
microbit-grace 62f7dbf
Implement reconnecting UI differently depending on if reconnecting ex…
microbit-grace 1cd00cc
Add connection fail dialogs for radio and bluetooth
microbit-grace 4b2236e
Remove debug console log
microbit-grace 3e6d01a
Merge branch 'react' of https://github.com/microbit-foundation/ml-tra…
microbit-grace 3fa059c
Refactor useConnectStatus hooks
microbit-grace a650f4e
Fix use of connect status hook in merging
microbit-grace c43f73f
Ignore USB when radio connection is disconnected
microbit-grace e5467d2
Update get next connection state and test
microbit-grace cbbfcb5
Add comments to get next connection state
microbit-grace 023642d
Upgrade connection lib to 0.0.0-alpha.18
microbit-grace 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -22,13 +22,20 @@ const StartResumeActions = ({ ...props }: Partial<StackProps>) => { | |
}, [navigate]); | ||
|
||
const handleStartNewSession = useCallback(() => { | ||
startOverWarningDialogDisclosure.onClose(); | ||
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. Small fix: Close start over session warning dialog when new session is selected |
||
gestureActions.deleteAllGestures(); | ||
if (isConnected) { | ||
handleNavigateToAddData(); | ||
} else { | ||
connStageActions.start(); | ||
} | ||
}, [gestureActions, connStageActions, handleNavigateToAddData, isConnected]); | ||
}, [ | ||
startOverWarningDialogDisclosure, | ||
gestureActions, | ||
isConnected, | ||
handleNavigateToAddData, | ||
connStageActions, | ||
]); | ||
|
||
const onClickStartNewSession = useCallback(() => { | ||
if (hasExistingSession) { | ||
|
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For radio connection dev purposes, when locally developing, a skip button is visible for micro:bit 1 and the device Id is stored in the local storage.