David Lechner
7a5e344b66
add helper function to disconnect and cancel
2021-01-22 15:58:10 -06:00
David Lechner
a88fa3d425
consolidate firmware fail to start and finish
...
they had too much overlap
2021-01-22 15:58:10 -06:00
David Lechner
f3eef68131
add proper error handling of BLE send error
2021-01-22 15:58:10 -06:00
David Lechner
18edc7870e
add disconnect monitor to firmware flash sagas
2021-01-22 15:58:10 -06:00
David Lechner
2d44705112
proper error handling for failure to connect
2021-01-22 15:58:10 -06:00
David Lechner
d38ae70ab2
proper error handling for bad checksum algorithm
2021-01-22 15:58:10 -06:00
David Lechner
9261b8743c
proper error handling for firmware too big
2021-01-22 15:58:10 -06:00
David Lechner
4707b77135
proper error handling for compiler error
2021-01-22 15:58:10 -06:00
David Lechner
e229f08ffd
switch to inline snapshots in tests
2021-01-22 15:58:10 -06:00
David Lechner
b1efa04947
proper error handling for mpy-cross ABI version
2021-01-22 15:58:10 -06:00
David Lechner
95652a5eb2
Merge pull request #253 from pybricks/dlech
...
UI and firmware updates
2021-01-22 10:40:19 -06:00
David Lechner
9551bdc7f0
Pybricks firmware v3.0.0b1
2021-01-22 10:35:11 -06:00
David Lechner
caacaad341
use recursive partial so we don't have to use "as"
2021-01-22 10:35:11 -06:00
David Lechner
e1932febb2
drop CurrentEditSession type
...
It is better to not hide the nullability.
2021-01-21 22:25:13 -06:00
David Lechner
218dda4d0b
use typed-redux-saga in flash-firmware sagas
...
This make things a bit more type safe and a bit easier to read.
2021-01-21 22:22:46 -06:00
David Lechner
ab0c850b80
add proper error handling for firmware zip error
2021-01-21 19:49:53 -06:00
David Lechner
a7ae66021b
add firmware flash failure reasons
2021-01-21 19:45:24 -06:00
David Lechner
3b31412186
minor code improvements in flash-firmware
2021-01-21 12:37:29 -06:00
David Lechner
6f6bf26854
add basic flash-firmware sagas tests
...
So far just testing the success paths, no errors.
2021-01-21 12:37:29 -06:00
David Lechner
9d7845237c
rename waitForDidSend to waitForDidRequest
...
This better reflects what the function actually does.
2021-01-21 12:37:29 -06:00
David Lechner
f186e6414d
decouple message id counter from actions
...
Actions should be pure functions for ease of testing.
2021-01-21 12:37:29 -06:00
David Lechner
0333fa51c0
add developer settings with pseudolocalization
...
This is currently broken due to https://github.com/Shopify/quilt/pull/1725
2021-01-21 12:37:29 -06:00
David Lechner
91938e34d9
add special notification for unexpected errors
...
Since these errors are not expected, we want to make it really easy to
report them.
2021-01-21 12:37:29 -06:00
David Lechner
2659c064fa
make bootloader failure reasons more strongly typed
...
This way we don't have to do extra null checks elsewhere.
2021-01-21 12:37:29 -06:00
David Lechner
904de515c0
fix missing newlines in compiler error
2021-01-21 12:37:29 -06:00
David Lechner
647985906d
add test for app sagas
2021-01-19 17:20:56 -06:00
David Lechner
bab35e8c45
move progress from status bar to firmware button
2021-01-19 17:20:56 -06:00
David Lechner
816053ba7c
don't expect response on disconnect commands
...
The LWP3 bootloader disconnect and reboot commands cause the device
to disconnect before sending a response, so we must always use
write without response for these, otherwise the program can hang
waiting for a response.
2021-01-19 17:20:56 -06:00
David Lechner
2ff5ce9852
dismiss compile error notification on successful compile
...
If we got a successful compile, then the error is no longer applicable.
2021-01-19 17:20:56 -06:00
David Lechner
9033659c76
Merge pull request #252 from pybricks/dlech
...
updates
2021-01-18 19:05:14 -06:00
David Lechner
3e2194a497
simplify about description
2021-01-18 18:59:31 -06:00
David Lechner
f87f9b1b89
associate related programChanged translations
2021-01-18 18:56:02 -06:00
David Lechner
5a66f041f2
update new version experience
...
This changes the new version message to be more user-friendly and allows
using the new version without restarting the browser or clearing the
cache.
2021-01-18 18:51:38 -06:00
David Lechner
c8d499e979
drop notification for service worker success action
...
This isn't particularly useful information.
2021-01-18 17:44:26 -06:00
David Lechner
da298ab565
add some tests for notification sagas
2021-01-18 17:29:04 -06:00
David Lechner
f72c6ad5de
rename app startup action using do/did pattern
2021-01-18 17:29:03 -06:00
David Lechner
54439a4cbc
convert notifications to static API
...
This converts notifications from a reducer to a saga. This way, our
state doesn't get bogged down with a bunch of notifications.
2021-01-18 17:29:03 -06:00
David Lechner
fc6ee4ff78
disable selecting (outside of editor and terminal)
2021-01-18 17:29:03 -06:00
David Lechner
43cc1bce1c
make "BETA" watermark depend on app version
2021-01-18 17:29:03 -06:00
David Lechner
ff34e5b01b
Add version in about dialog
2021-01-18 17:29:03 -06:00
David Lechner
aa234eb3a6
Merge pull request #250 from pybricks/projects
...
add link to example projects
2021-01-18 10:38:29 -06:00
David Lechner
c14eac8cac
Merge branch 'master' into projects
2021-01-18 10:35:04 -06:00
David Lechner
228ae446a4
Merge pull request #249 from pybricks/yarn
...
update yarn
2021-01-18 09:43:15 -06:00
Laurens Valk
8246bad1e8
add link to example projects
2021-01-18 15:10:02 +01:00
Laurens Valk
bc294686ec
update yarn
2021-01-18 14:59:01 +01:00
David Lechner
659f74c2e2
Merge pull request #244 from pybricks/dlech
...
add help
2021-01-17 15:04:25 -06:00
David Lechner
8c1e9a8273
implement license saga tests
2021-01-17 14:59:03 -06:00
David Lechner
deac69fdab
switch to license-webpack-plugin
...
This package is a bit more versatile. For example, it lets us include
the app's package too.
webpack-license-plugin had a bug that made it unusable anyway.
2021-01-17 13:11:47 -06:00
David Lechner
3a22b19f83
bump copyright year
2021-01-17 12:46:08 -06:00
David Lechner
1626533cca
add license dialog
2021-01-17 10:39:38 -06:00