Commit Graph
73 Commits
Author SHA1 Message Date
David Lechner cc37548e36 pybricksMicropython/lib: replace parser
This replaces the Python parsing library. The python-ast package has
really poor performance (many seconds to parse a 500 line file). The
new package can parse a file about 100 times faster.
2022-10-24 15:29:17 -05:00
David Lechner a3a6e1bc6f CHANGELOG: fix link 2022-10-21 17:09:02 -05:00
David Lechner fcffef37d4 v2.0.0-beta.6 2022-10-21 16:26:43 -05:00
David Lechner 6692ab6fae CHANGELOG: update for dependencies and missed changes 2022-10-21 16:26:43 -05:00
David Lechner ce16d15ab0 CHANGELOG: update for 56630ef2 2022-10-14 16:21:18 -05:00
David Lechner 76462a0f4a python-worker: enable offline use
This makes the required changes to use Pyodide and Python packages
offline and use a fixed version of the Python packages instead of
fetching the latest from PyPI.

There were a number of issues encountered with Pyodide webpack
compatibility that were fixed using `yarn patch`:
- https://github.com/pyodide/pyodide/pull/3080
- https://github.com/pyodide/pyodide/pull/3085
- https://github.com/pyodide/pyodide/issues/3086
- https://github.com/pyodide/pyodide/issues/3087

Issue: https://github.com/pybricks/pybricks-code/issues/932
2022-09-08 13:43:00 -05:00
David Lechner 4e77efb34f installPybricksDialog: add feature to install custom firmware
This restores the ability to drag and drop a custom firmware file to
flash the firmware on the hub.

Fixes: https://github.com/pybricks/pybricks-code/issues/1020
2022-09-06 14:14:57 -05:00
David Lechner d59fe813e9 fix explorer import silently ignored when invalid file name
This finishes a TODO to handle allowing the user to rename a file
with an invalid file name when import files from the file system.

Fixes: https://github.com/pybricks/support/issues/717
2022-08-31 17:39:28 -05:00
David Lechner 122b37da29 firmware/sagas: handle usb error during dfu flash
Fixes: https://github.com/pybricks/pybricks-code/issues/1011
2022-08-12 18:00:57 -05:00
David Lechner 5b71c7314a app/App: move firmware flash dialogs from settings
The flash firmware dialog show action can be triggered even when the
settings panel is not mounted, so we need to move the dialogs up in
the tree to the app level.

Fixes: https://github.com/pybricks/support/issues/694
2022-08-12 18:00:57 -05:00
David Lechner 92431298b2 toolbar/RunButton: enable only when active file
Before multi-file support, it was not possible to have no open file.
So we need to change the state logic to only enable the button when
there is an active file rather than when the editor "is ready".

Fixes: https://github.com/pybricks/support/issues/691
2022-08-12 18:00:57 -05:00
David Lechner 3ac399e73c v2.0.0-beta.5 2022-07-28 11:47:18 -05:00
David Lechner 30314db086 webpack: fix main.[hash].js not cached
This caused updates to not work if main.js was not in the browser
cache since it was being excluded from the service worker.

Issue: https://github.com/pybricks/support/issues/689
2022-07-28 11:44:59 -05:00
David Lechner 2908ac358d v2.0.0-beta.4 2022-07-28 10:25:33 -05:00
David Lechner 90b459d5db firmware/restoreOfficialDialog: add new dialog 2022-07-27 18:17:20 -05:00
David Lechner bbd278b51e CHANGELOG: add link for dfu flash issue 2022-07-27 17:27:17 -05:00
David Lechner b2e7441a81 CHANGELOG: add entry for package updates 2022-07-27 17:20:53 -05:00
David Lechner 8bece7d957 tour: add new tour component 2022-07-27 15:19:36 -05:00
David Lechner 6d07713eb5 firmware: implement flashing via USB DFU 2022-07-21 18:36:32 -05:00
David Lechner 85deb42f76 firmware: add multi-step dialog 2022-07-20 12:32:17 -05:00
David Lechner 7232bf6153 add better error message when no files to backup
Instead of showing unexpected error, show message explaining that
there are no files to be backed up and how to fix it.

Fixes: https://github.com/pybricks/support/issues/681
2022-07-06 17:56:08 -05:00
David Lechner 1e0d44bbe4 Fixed deleting files that are not open in the editor. 2022-07-06 17:56:08 -05:00
David Lechner 7c623325c7 v2.0.0-beta.3 2022-07-06 14:40:37 -05:00
David Lechner d548c20062 update Pybricks firmware to v3.2.0b2 2022-07-06 13:23:34 -05:00
David Lechner fa315fa576 v2.0.0-beta.2 2022-06-24 19:21:43 -05:00
David Lechner 096eea7077 editor: add basic intellisense
This adds basic intellisense for code completion and function signatures
using the Python `jedi` package running in a Pyodide environment.
2022-06-24 19:15:32 -05:00
David Lechner e8facf949e v2.0.0-beta.1 2022-06-03 14:17:58 -05:00
David Lechner 2982ccb874 CHANGELOG: update for dependencies 2022-06-03 13:40:04 -05:00
David Lechner e43610f6ae CHANGELOG: add links for issues
Issue: https://github.com/pybricks/support/issues/418
Issue: https://github.com/pybricks/support/issues/465
2022-06-01 14:08:08 -05:00
David Lechner 64cf4821b1 CHANGELOG: update for multi-file support 2022-06-01 13:12:25 -05:00
David Lechner e4b7a9aec7 fileStorage: new file storage backend
This replaces the localStorage file storage with a new backend that uses
localForage (indexeddb) for storing the file contents. This will also
allow storing multiple files.
2022-02-24 16:59:49 -06:00
David Lechner fd09783a45 toolbar: work around tooltip bugs
This works around several bugs where tooltips don't close when expected.

Fixes: https://github.com/pybricks/pybricks-code/issues/275
2021-12-28 18:55:20 -06:00
David Lechner 291d60fba4 v1.2.0-beta.1 2021-12-27 18:23:07 -06:00
David Lechner 42051ba924 status-bar: add basic battery indicator
This adds a basic battery indicator that just shows green for OK and red
for low battery warning. This is all we can do for now since that is
the only information that the hub sends currently.

Fixes: https://github.com/pybricks/support/issues/559
2021-12-27 17:05:40 -06:00
David Lechner 8d4680ba82 status-bar: add connected hub indicator
This adds an indicator to the status bar that shows the hub name. When
clicked, a popover will be displayed that lists more detailed information
about the connected hub.
2021-12-27 13:04:13 -06:00
David Lechner 09b46ed5be toolbar: make buttons scale with screen size
This is very basic, just 2 sizes. But it makes things a bit better
on phones.

Fixes: https://github.com/pybricks/support/issues/300
2021-12-27 12:38:51 -06:00
David Lechner f704d4d612 editor: use file system api for save as
This makes use of the new web file system api for a better user
experience when saving a file. It now shows a proper save as dialog
instead of just downloading the file automatically.

Fixes: https://github.com/pybricks/support/issues/84
2021-12-27 12:38:51 -06:00
David Lechner 6dc4dcb2e5 toolbar: specify image width/height
This make the button the right size while waiting for the image to download.

Fixes: https://github.com/pybricks/support/issues/369
2021-12-27 12:38:50 -06:00
David Lechner 3544ca6557 v1.1.0 2021-12-16 16:14:56 -06:00
David Lechner 7091c2ce0f CHANGELOG: add entries for dep updates 2021-12-16 16:13:46 -06:00
David Lechner a1e3ffb814 v1.1.0-rc.1 2021-11-19 20:53:16 -06:00
David Lechner b945a0d0d8 CHANGELOG: copy changelog from docs 2021-11-19 20:48:07 -06:00
David Lechner d8179413ec CHANGELOG: copy from Pybricks MicroPython v3.1.0c1 2021-11-19 20:48:06 -06:00
David Lechner ae40c2f540 firmware: flash custom hub name
This adds support for customizing the hub name when flashing firmware.

Fixes: https://github.com/pybricks/support/issues/52
2021-11-19 20:48:06 -06:00
David Lechner 2ec42993e6 v1.1.0-beta.6 2021-09-21 11:06:44 -05:00
David Lechner fd2c9b4916 CHANGELOG: move links to sections
This is consistent with other Pybricks repos and makes copying/pasting
individual sections trivial.
2021-09-21 10:59:22 -05:00
David Lechner f34dd8e007 CHANGELOG: replace issue/pull with repo name
To be consistent with other Pybricks repos and to avoid conflicts
with copy/pasted changelogs from dependencies we are using the repo
name for all issue links like we are already doing with the support
repo issues.
2021-09-21 10:59:22 -05:00
David Lechner 90fbf6c303 CHANGELOG: update for dependencies 2021-09-21 10:59:22 -05:00
David Lechner 788b77fda0 notifications: add firmware version check
This adds a firmware version check that shows an error message if the
connected hub is running an older Pybricks firmware version.

Issue: https://github.com/pybricks/support/issues/482
2021-09-15 16:49:51 -05:00
David Lechner 7862c6f143 CHANGELOG: copy updates from firmware and docs 2021-08-30 14:36:33 -05:00