Commit Graph
1298 Commits
Author SHA1 Message Date
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
Laurens Valk 4c46f11722 pybricks firmware v3.0.0a3 2020-06-09 14:26:29 +02:00
dependabot-preview[bot] c67592a292 Bump @testing-library/react from 10.1.0 to 10.2.1
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 10.1.0 to 10.2.1.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v10.1.0...v10.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 21:02:09 -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
dependabot-preview[bot] f4ec78f5d6 Bump @shopify/react-i18n from 4.0.0 to 5.0.0
Bumps [@shopify/react-i18n](https://github.com/Shopify/quilt/tree/HEAD/packages/react-i18n) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/Shopify/quilt/releases)
- [Changelog](https://github.com/Shopify/quilt/blob/master/packages/react-i18n/CHANGELOG.md)
- [Commits](https://github.com/Shopify/quilt/commits/@shopify/react-i18n@5.0.0/packages/react-i18n)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 11:32:41 -05:00
dependabot-preview[bot] 51b0ff91bd Bump @testing-library/user-event from 11.0.1 to 11.2.1
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 11.0.1 to 11.2.1.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v11.0.1...v11.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 09:01:24 -05:00
dependabot-preview[bot] 839f33c539 Bump typescript from 3.9.3 to 3.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.3...v3.9.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 08:50:53 -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 100e8342cd pybricks frimware v3.0.0a2 2020-06-07 18:59:02 -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
dependabot-preview[bot] 8431e0b965 Bump @testing-library/user-event from 10.4.1 to 11.0.1
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 10.4.1 to 11.0.1.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v10.4.1...v11.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-04 11:40:48 -05:00
dependabot-preview[bot] 85ff2ed52d Bump @shopify/react-i18n from 3.0.2 to 4.0.0
Bumps [@shopify/react-i18n](https://github.com/Shopify/quilt/tree/HEAD/packages/react-i18n) from 3.0.2 to 4.0.0.
- [Release notes](https://github.com/Shopify/quilt/releases)
- [Changelog](https://github.com/Shopify/quilt/blob/master/packages/react-i18n/CHANGELOG.md)
- [Commits](https://github.com/Shopify/quilt/commits/@shopify/react-i18n@4.0.0/packages/react-i18n)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-04 11:34:31 -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 6b3d1464bb Update @pybricks/firmware to v2.0.0
This is compatible with mpy-cross ABI v5.
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
David Lechner d873ad2520 rename readme to contributing and expand it a bit 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
dependabot-preview[bot] f30b6a31c7 Bump @types/redux-logger from 3.0.7 to 3.0.8
Bumps [@types/redux-logger](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/redux-logger) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/redux-logger)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 11:28:20 -05:00
dependabot-preview[bot] 12643e3685 Bump @types/react-transition-group from 4.2.4 to 4.4.0
Bumps [@types/react-transition-group](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-transition-group) from 4.2.4 to 4.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-transition-group)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 11:06:59 -05: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