David Lechner
252c741180
add app install button
2021-01-28 20:21:20 -06:00
David Lechner
e59bfd4474
add UI to manually check for update
...
This adds a button to call the ServiceWorkerRegistration.update()
function. This button will be hidden if there is already an update
pending.
This also adds a button to restart the app to apply the update. This
is nice in case users accidentally close the notification that asks
to restart.
The about button is moved to the new app group in the setting menu.
2021-01-28 15:37:40 -06:00
David Lechner
447e7e901b
pass registration to reload action
2021-01-28 14:00:09 -06:00
David Lechner
64e6b3739e
add keyboard shortcut to toggle docs
...
this is useful for users with small screens
2021-01-27 11:48:51 -06:00
David Lechner
4f00c962e1
finish TODO for checking bluetooth availability
2021-01-27 10:25:08 -06:00
David Lechner
a9d827d21d
split didRequest and didFailToRequest
2021-01-23 19:34:49 -06:00
David Lechner
2049edf874
split didSend and didFailToSend actions
2021-01-23 19:22:02 -06:00
David Lechner
683cb02b5a
convert index sagas to typed-redux-saga/macro
2021-01-23 18:59:10 -06:00
David Lechner
3ba52e560d
convert terminal sagas to typed-redux-saga/macro
2021-01-23 18:58:26 -06:00
David Lechner
ca5bb8f2a5
convert mpy sagas to typed-redux-saga/macro
2021-01-23 18:52:43 -06:00
David Lechner
9f643f6a57
convert lwp3-bootloader-ble sagas to typed-redux-saga/macro
2021-01-23 18:51:22 -06:00
David Lechner
430643242e
convert hub sagas to typed-redux-saga/macro
2021-01-23 18:47:48 -06:00
David Lechner
cdea878e65
convert editor sagas to typed-redux-saga/macro
2021-01-23 18:35:44 -06:00
David Lechner
7be42b143a
convert ble-uart sagas to typed-redux-saga/macro
2021-01-23 18:34:02 -06:00
David Lechner
425390ef0b
convert lwp3-bootloader-protocol sagas to typed-redux-saga/macro
2021-01-23 18:30:55 -06:00
David Lechner
19d8f9ce3a
convert license sagas to typed-redux-saga/macro
2021-01-23 18:26:57 -06:00
David Lechner
97a2a6671b
convert error-log sagas to typed-redux-saga/macro
2021-01-23 18:25:17 -06:00
David Lechner
a862800dda
convert notification sagas to typed-redux-saga/macro
2021-01-23 18:24:23 -06:00
David Lechner
f51a0377a9
convert settings sagas to typed-redux-saga/macro
2021-01-23 18:21:15 -06:00
David Lechner
d578882031
convert app sagas to typed-redux-saga/macro
2021-01-23 18:19:15 -06:00
David Lechner
6e8629c838
ignore not-test code in coverage
2021-01-23 18:16:56 -06:00
David Lechner
467627dc75
flash-firmware: drop error on fail to connect
...
This error is already handled elsewhere.
2021-01-23 17:29:43 -06:00
David Lechner
dcaf9f6ff4
fix checksum verification
...
the checksum returned by the hub is only one byte, so the 4-byte
checksum used in the firmware can't be used
2021-01-23 15:28:38 -06:00
David Lechner
5d1311216c
add notifications for firmware flash errors
2021-01-23 15:27:36 -06:00
David Lechner
1a6f77ece3
remove disconnectMonitor()
...
This fixes multiple didFailToFinish() actions for a single flash
firmware request in certain cases.
Since 783f7e2 is fixed, waitForDidRequest() will always return with
success or error. So when used alone, waitForDidRequest() will process
the error. When using race(waitForDidRequest(), waitForResponse()),
waitForResponse() will handle the error if it wins the race and cancel
waitForResponse().
2021-01-23 13:46:54 -06:00
David Lechner
819810e52a
add workaround for bluez notification issue
...
https://crbug.com/1170085
2021-01-23 13:36:33 -06:00
David Lechner
783f7e2337
fix write function being cancelled on disconnect
2021-01-22 20:25:01 -06:00
David Lechner
bf6d64c211
fix unbound method call
2021-01-22 19:03:37 -06:00
David Lechner
b5d3fe17da
add proper error handling for checksum mismatch
2021-01-22 18:54:43 -06:00
David Lechner
768762347a
add proper error handling for firmware flash size
2021-01-22 18:29:47 -06:00
David Lechner
4bbd1efad5
add proper error handling for init command error
2021-01-22 18:23:59 -06:00
David Lechner
3208faa7e6
add proper error handling for fail to fetch
2021-01-22 17:44:10 -06:00
David Lechner
b1883a9d1c
make sure we are getting coverage of checksum messages
2021-01-22 16:51:42 -06:00
David Lechner
2f5d1fb976
add another test for mismatch device type
2021-01-22 16:39:41 -06:00
David Lechner
e984cffbb4
add try/catch for unexpected errors
2021-01-22 16:30:52 -06:00
David Lechner
e5d98cdd84
add proper error handling for bad device id
2021-01-22 16:22:54 -06:00
David Lechner
3ec067e930
add test for unknown bootloader command
2021-01-22 16:08:13 -06:00
David Lechner
8ad2b78d4c
add proper error handling for hub erase fail
2021-01-22 15:58:10 -06:00
David Lechner
c1c08e5ced
add state initializer in async saga constructor
2021-01-22 15:58:10 -06:00
David Lechner
08fea237c9
change setState() to updateState()
...
this way we don't wipe out state if we change a different value
2021-01-22 15:58:10 -06:00
David Lechner
79e06bcd51
add test for response timeout
2021-01-22 15:58:10 -06:00
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