David Lechner
818e7867ee
globally handle no-unused-vars
2020-06-10 21:59:34 -05:00
David Lechner
292f2d83d2
convert error log from service to saga
2020-06-10 21:59:34 -05:00
David Lechner
17cb5a32d5
convert editor service to saga
2020-06-10 21:59:34 -05:00
David Lechner
5c3ec89e3b
add test for editor saga
2020-06-10 21:59:34 -05:00
David Lechner
31c3e2b52e
refactor common test helpers into test/
...
This way we can share them with multiple tests
2020-06-10 21:59:34 -05:00
David Lechner
8ba4143fa7
Throttle BLE messages from terminal
...
This makes the terminal more efficient by combining individual characters into a single message. Also (mostly) fixes overring the hub and locking it up.
2020-06-10 21:59:34 -05:00
David Lechner
a411bfc92d
improve serialization of BLE writes
2020-06-10 21:59:34 -05:00
David Lechner
e09fd8713f
convert terminal from epic to saga
2020-06-10 21:59:34 -05:00
David Lechner
314904605c
drop bootloader flash state
...
this was not being used anywhere
2020-06-09 23:51:32 -05:00
David Lechner
07d0b5ef39
split firmware flashing from lwp3-bootloader
...
BLE won't always be the only way to flash firmware
2020-06-09 23:51:32 -05:00
David Lechner
6d81da0df0
Show notification when program is changed in another window
2020-06-09 23:51:32 -05:00
David Lechner
f721f959f0
do soft reset after connecting
...
When we first connect, we don't know what state the hub is in. This adds
a new state for that called Unknown and sends a stop request as soon
as we connect to try to get to a known state.
2020-06-09 23:51:32 -05:00
David Lechner
67f9202fb6
use session storage instead of local storage
...
This will allow use of multiple tabs/windows
2020-06-08 20:56:00 -05:00
David Lechner
b6be163ccb
refactor lookup function
2020-06-08 20:56:00 -05:00
David Lechner
e8ddf09323
add context menu
2020-06-08 20:56:00 -05:00
David Lechner
89f93b0faf
add i18n to editor
2020-06-08 20:56:00 -05:00
David Lechner
2a3e9caa90
Add some missing license headers
2020-06-07 21:39:58 -05:00
David Lechner
0940226a4d
use utility classes
...
similar to how bootstrap works
2020-06-07 21:39:58 -05:00
David Lechner
f4692d4134
style tweaks
...
making it looks a bit more like before the UI toolkit change
2020-06-07 19:24:25 -05:00
David Lechner
d9211b5b10
switch to blueprintjs UI toolkit
2020-06-07 18:59:02 -05:00
Laurens Valk
d0f5a42c85
app: allow doc videos to be full screen
...
Without this, the videos can be somewhat hard to see.
2020-06-05 16:47:38 +02:00
David Lechner
6c849b50f0
show notification on compile error
2020-06-04 12:55:34 -05:00
David Lechner
16b8f71d81
Fix MPY ABI version check
...
fixes: 6b3d1464bb
2020-06-04 11:53:59 -05:00
David Lechner
ff1747df51
disable serviceWorker
...
This is just temporary, but making it work is not a priority right now.
2020-06-04 11:28:13 -05:00
David Lechner
c975613e1c
rename bootloader to lwp3-bootloader
...
we will probably have DFU bootloader in the future
2020-06-04 11:28:13 -05:00
Laurens Valk
bbad88a502
Bump @pybricks/mpy-cross to v5
2020-06-04 13:21:18 +02:00
Laurens Valk
5190ee3878
app: fix docs not hiding on small viewports
...
This broke when the nested containers were dropped.
Also change breakpoint from medium to large, so that docs only show in large viewports.
2020-06-01 13:20:30 +02:00
Laurens Valk
aa334c2d82
app: drop nested container
...
This achives the responsive editor height without a nested container.
2020-06-01 13:07:14 +02:00
Laurens Valk
2ee64e3711
app: update button icons
2020-05-29 10:24:05 -05:00
Laurens Valk
d04958bb01
app: configure environment color
...
Blue will be reserved for the buttons, not the borders
2020-05-29 10:24:05 -05:00
Laurens Valk
c302b8aa91
app: remove duplicate padding due nested row/col
2020-05-29 10:24:05 -05:00
Laurens Valk
f8fa09d866
app: show docs
...
Show only on large viewports, hide it on small viewports.
2020-05-29 10:24:05 -05:00
Laurens Valk
67de6c3af9
app: fill vertically & horizontally
...
Do not use a fixed height for the editor, but responsively scale to the remaining available height.
Also fill horizontally for a responsive layout. This gives us room to add left or right columns with docs or settings.
2020-05-29 10:24:05 -05:00
David Lechner
297faafc27
convert mpy to saga
...
- unit tests depend on bug fix in @pybricks/mpy-cross-v4
- removes last use of redux-thunk
2020-05-27 20:57:22 -05:00
David Lechner
0d30e113da
use i18n for buttons
2020-05-27 20:57:22 -05:00
David Lechner
24acab901c
remove use of thunk action in ble and hub
...
This is a step towards moving these to sagas
2020-05-27 20:57:22 -05:00
David Lechner
99fd62100d
rename open and save as buttons
2020-05-27 20:57:22 -05:00
David Lechner
9d789c13e1
add test for util.assert
2020-05-27 20:57:22 -05:00
David Lechner
59c14a3ad7
add test for util.hex
2020-05-27 20:57:22 -05:00
David Lechner
5da915851c
strongly type MessageId
...
This way we can add tests to ensure proper mapping in .json
2020-05-27 20:57:22 -05:00
David Lechner
c373b3abc5
begin rework of notifications
...
The notification reducer should decide when to display notifications rather than having notifications scattered throughout the code.
Also start using translations so that user-visible strings are not scattered in code.
2020-05-26 21:20:08 -05:00
David Lechner
ec05ad38aa
Add error logger service
2020-05-26 21:20:08 -05:00
David Lechner
6e4b22f841
Add common top-level Action type
...
This makes for better type inference.
2020-05-26 21:20:08 -05:00
David Lechner
6713afe198
Add util funciton to format as hex
2020-05-26 21:20:08 -05:00
David Lechner
7a7eba407f
add tests for bootloader protocol errors
2020-05-26 21:20:08 -05:00
David Lechner
3e4ea382e5
move images out of public/static folder
...
This way, we get compile error if there problem with images. Also allows
images to be optimized.
2020-05-26 21:20:08 -05:00
David Lechner
8045332dde
remove react logo
2020-05-26 21:20:08 -05:00
David Lechner
a8f959c6eb
Show popup notifications for serviceWorker
...
These need more user-friendly handling, but this will suffice for now.
2020-05-26 21:20:08 -05:00
David Lechner
33861d970b
Package firmware in app
...
- includes firmware .zip for movehub and cplushub
- firmware flash button no longer opens file dialog
- now connects first, then choses firmware based on connected device
- drag and drop of custom firmware still works
2020-05-25 21:31:35 -05:00
David Lechner
5160d29c7e
change to @pybricks/mpy-cross-v4
...
This package is associated with the pybricks/pybricks-micropython repository.
2020-05-25 21:31:35 -05:00