Commit Graph
177 Commits
Author SHA1 Message Date
David Lechner baaa9a7920 terminal/sagas: fix handling multibyte unicode
Enable the stream option on the text decode for the stdout and uart
stream handlers that pipe data to the terminal. This fixes improperly
printing multibyte unicode characters that get split across multiple
data packets.

A new decode is added for each different stream in case both are used
at the same time.

Fixes: https://github.com/pybricks/support/issues/1743
2024-09-08 17:52:12 -05:00
David Lechner 236ad56148 firmware/sagas: reduce BLE firmware burst size
Mac users have recently been reporting failed firmware updates due to
the hub disconnecting during the update process. This is likely due to
the Mac sending packets faster than the hub can handle. This changes
the arbitrary BLE firmware burst size from 10 to 8 to reduce the chance
of the hub getting overwhelmed.

Fixes: https://github.com/pybricks/support/issues/1787
2024-09-08 17:10:14 -05:00
Laurens Valk acf2373591 v2.3.0-beta.1 2023-11-24 13:02:31 +01:00
Laurens Valk 816645a806 v2.2.0 2023-11-24 11:59:03 +01:00
Laurens Valk 058b98896f v2.2.0-rc.1 2023-11-20 14:39:13 +01:00
David Lechner 6bd73fe53a update xterm to beta version
Fixes: https://github.com/pybricks/support/issues/1271
2023-11-18 17:21:44 -06:00
David Lechner 5cd0873148 fix centering of logo
For some reason, two is now using the last item in the svg group for
centering, which was one of the eyes. The changes the order so that the
body is not the last item and centering works again.
2023-11-18 17:21:44 -06:00
David Lechner 9644fb483c revert overlay size hack
This broke other stuff by making the overlay present even when there
was no content.
2023-11-12 14:44:00 -06:00
David Lechner 7924810b23 fix dialogs on android
Dialogs were off of the screen due to the overlays being bigger than
the view port. This is fixed by adding some style to limit the size.

Also multi-step dialogs are hard-coded to have min-width of 800px in
blueprints.js, so we need to override this on smaller screens.

Fixes: https://github.com/pybricks/support/issues/1271
2023-11-11 18:01:33 -06:00
Laurens Valk 9eba6c46c7 v2.2.0-beta.9 2023-10-26 22:20:16 +02:00
Laurens Valk 595a17ac4a build(deps): Bump firmware, docs, jedi to v3.3.0b9. 2023-10-26 22:19:53 +02:00
David Lechner 7bf108087f firmware: disable buttons when DFU in progress
This avoids trying to perform two DFU operations on the same device
at one time. Flashing is so fast, this seems the better option than
trying to support flashing more than one device at a time.

Fixes: https://github.com/pybricks/support/issues/1146
2023-07-12 11:42:53 -05:00
David Lechner 39d72b2814 v2.2.0-beta.8 2023-07-07 10:43:09 -05:00
David Lechner 69b3ba21f3 pybricks frimware v3.3.0b8 2023-07-07 10:41:40 -05:00
David Lechner a50f471e88 v2.2.0-beta.7 2023-07-01 11:09:50 -05:00
David Lechner 3ce7003f10 fix terminal not working
Fixes: https://github.com/pybricks/support/issues/1130
2023-07-01 11:09:08 -05:00
David Lechner 0d73a37fce v2.2.0-beta.6 2023-06-30 10:55:16 -05:00
David Lechner 32fe69e8fd Pybricks firmware v3.3.0b7 2023-06-30 10:54:24 -05:00
David Lechner 343fa917eb v2.2.0-beta.5 2023-06-02 10:49:07 -05:00
David Lechner dd55d8d76b Pybricks firmware v3.3.0b5 2023-06-02 10:40:24 -05:00
David Lechner fc89c7b329 explorer: active file after duplicating
When duplicating a file users expect the file to be opened as in other
applications.

Fixes: https://github.com/pybricks/support/issues/1084
2023-05-26 11:13:31 -05:00
David Lechner 7351dfb95c editor: fix replacing file when open in editor
When we import/replace a file that is open in an editor, instead of
modifying the file in storage, we need to modify the file in the editor.
This allows the modification to be pushed on the undo stack so that
the user can undo the change in case it wrote over any of their recent
changes.

Issue: https://github.com/pybricks/support/issues/975
2023-05-18 17:06:31 -05:00
David Lechner 2edfc7e127 v2.2.0-beta.4 2023-05-16 15:51:28 -05:00
David Lechner 945657d465 update pybricks packages
new firmware + api and docs
2023-05-16 15:49:20 -05:00
David Lechner e4b6ea0960 editor: don't paste on middle click to close tab
To avoid the Linux feature of pasting on middle click, we need to
consume the mouse up event in the browser on middle click instead of
mouse down.

This also sets the `selectionClipboard` editor option to false which
should disable the feature altogether in the monaco editor but the
setting seems to be broken in the browser[1].

[1]: https://github.com/microsoft/vscode/issues/181050

Fixes: https://github.com/pybricks/support/issues/1046
2023-04-27 12:12:08 -05:00
David Lechner 1219a377d4 ble/sagas: show alert when Pybricks Profile is newer
If the user sideloads a firmware that has communication features that
are newer than what is supported by the app, then show a warning message.
2023-04-24 17:38:53 -05:00
David Lechner 56aab66047 CHANGELOG: fix link 2023-04-24 12:08:33 -05:00
David Lechner 8ac59f3d8d v2.2.0-beta.3 2023-04-24 11:18:03 -05:00
David Lechner 0a33c6a24b CHANGELOG: fix copy/pasted firmware version 2023-04-21 16:59:51 -05:00
David Lechner 62c4ba013c update to Pybricks firmware v3.3.0b4 2023-04-21 16:59:51 -05:00
David Lechner 337209744c add support for Pybricks Profile v1.3.0 2023-04-19 13:03:48 -05:00
David Lechner be3afa167a hub/sagas: fix error message not shown when starting repl
- Add check for repl start command success/fail.
- Show error message on fail.
- Rename start repl action.
- Add new did start/did fail to start repl actions.
- Change terminal saga to use did start repl action to focus terminal.
- Add more tests.
2023-04-01 13:38:19 -05:00
David Lechner 70020275a7 ble/alerts/Disconnected: better error message for disconnected
WebBluetooth generally uses DomException with name NetworkError to mean
that Bluetooth is disconnected, so we can use that to provide a helpful
error message.
2023-04-01 13:38:19 -05:00
David Lechner 19f6862bb5 hub/reducers: change hub runtime state when disconnecting
When disconnect is requested, we should not longer allow interacting
with the hub, so we say the runtime state is unknown until it is
confirmed to be disconnected.

Fixes: https://github.com/pybricks/support/issues/1021
2023-04-01 13:38:19 -05:00
David Lechner 91b82ab737 v2.2.0-beta.2 2023-03-31 13:19:36 -05:00
David Lechner 7cd986dbd8 Pybricks firmware v3.3.0b3 2023-03-28 10:44:23 -05:00
David Lechner be32c37f18 editor/sagas: focus editor when activated
When a file is activated, it is an indication that the user wants to
edit the file right now, so the editor should be focused.
2023-03-28 10:44:23 -05:00
David Lechner 77ba67a38e v2.2.0-beta.1 2023-03-08 18:12:51 -06:00
David Lechner eee8bff17b update Pybricks firmware to v3.3.0b2 2023-03-08 17:49:20 -06:00
David Lechner 6a9405e653 explorer: add support for importing ZIP
Also add a new dialog to get user input when file names conflict.

Previously, we were not supplying a list of existing files, so existing
files were silently written over.

Fixes: https://github.com/pybricks/support/issues/833
2023-03-07 14:31:12 -06:00
David Lechner c2d4974a0e v2.1.1 2023-02-17 16:00:55 -06:00
David Lechner 41763c2f9f package.json: update Pybricks firmware to v3.2.3 2023-02-17 15:59:54 -06:00
David Lechner 0d3447a0b6 editor: show error message on fail to activate
When gotoError fails to activate a file, we need to show an error
message, otherwise it just appears to the user that the button is
broken.

Fixes: https://github.com/pybricks/support/issues/924
2023-02-13 16:13:58 -06:00
David Lechner 4551280544 v2.1.0 2023-01-06 15:49:03 -06:00
David Lechner b24bd6a03b package: update firmware to v3.2.2 2023-01-06 15:45:47 -06:00
David Lechner 2de7803c77 v2.1.0-beta.4 2022-12-30 16:10:49 -06:00
David Lechner 62d7fdff36 editor/sagas: disable code completion trigger on space
This gets in the way when typing comments and often results in
accepting a completion that was not intended.

Fixes: https://github.com/pybricks/support/issues/894
2022-12-30 16:07:52 -06:00
David Lechner 7d5c9710e5 editor/sagas: fix signature trigger characters
The intended behavior is that comma should trigger signature help when
it is not showing. retrigger only triggers if already showing.
2022-12-30 16:04:48 -06:00
David Lechner d119cb564e editor: fix find widget z-index
When open, the find widget was visible above modal dialogs because
of z-index.
2022-12-30 14:08:36 -06:00
David Lechner ca50d60b2c app: fix vertical resizing issues
Some new issues with layout when resizing the browser window vertically
were caused either by recent xterm updates or other recent style changes.

This works around those issues.
2022-12-30 14:08:36 -06:00