Commit Graph
43 Commits
Author SHA1 Message Date
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
David Lechner 4ee042cacb v1.1.0-beta.4 2021-08-13 12:18:09 -05:00
David Lechner af89c0b80b about: add firmware version as main version
Since the firmware version is the most important version, make it the
primary version. (We still need the Pybricks Code version since not
every update includes a firmware update.)
2021-08-13 12:13:05 -05:00
David Lechner 0854750cd7 grammar 2021-08-13 12:13:05 -05:00
David Lechner b7b3522f78 Merge remote-tracking branch 'origin/master' into dlech 2021-08-13 10:46:01 -05:00
David Lechner 2dfd7e9d42 CHANGELOG: start unreleased section 2021-08-12 15:55:24 -05:00
David Lechner b0b15e1bbe CHANGELOG: fix typo 2021-08-12 15:55:24 -05:00
David Lechner 980af3edeb v1.1.0-beta.3 2021-07-20 12:42:49 -05:00
David Lechner a876a7a43c update changelog for firmware v3.1.0a3 2021-07-19 17:06:39 -05:00
David Lechner a0467aed4c public: add icons with beta badge
This makes it easier to tell versions apart when beta and non-beta are
installed at the same time.

Fixes: https://github.com/pybricks/support/issues/375
2021-07-08 16:46:36 -05:00
David Lechner 2ba6d88c49 editor: remove gutter background override
This was carried over from the Ace editor, but doesn't work well with
the Monaco editor.

Fixes: https://github.com/pybricks/pybricks-code/issues/472
2021-07-08 15:57:16 -05:00
David Lechner ad948dc152 editor: copy python language configuration
This copies the language configuration from https://github.com/microsoft/monaco-languages/blob/d7cc098c481059f63d51ce3753975c8ca8ab6030/src/python/python.ts

This fixes a number of editor features, like auto-indent.

Fixes: https://github.com/pybricks/pybricks-code/issues/470
2021-07-08 15:55:50 -05:00
David Lechner 4b0dc90e8d editor: improve template snippets
- fix always being suggested
- add more imports
- reduce duplicated code

Fixes https://github.com/pybricks/pybricks-code/issues/471
2021-07-08 15:55:03 -05:00
David Lechner f9d354e988 CHANGELOG: fix typo 2021-07-06 11:03:48 -05:00
David Lechner fcb68901cb v1.1.0-beta.2 2021-07-06 10:53:56 -05:00
David Lechner 3d6383ae49 Pybricks firmware v3.1.0a2 2021-07-06 10:53:56 -05:00
David Lechner d95c550248 editor: change from ace to monaco
This replaces the ace editor with the monaco editor. It fixes quite a
few small paper-cut bugs and should be easier to add code completion
to in the future.

Many of the snippets are omitted but can be added back later if needed.
Otherwise, we have tried to preserve the existing look and feel as much
as possible.
2021-07-02 20:59:09 -05:00
David Lechner fab6085e87 CHANGELOG: update for previous release
Apparently forgot to do this at release time.
2021-07-01 12:31:55 -05:00
David Lechner 00712e5c72 CHANGELOG: add entry for 7a5aa75 2021-07-01 12:31:55 -05:00
David Lechner 411e8e64d5 CHANGELOG: update for 7cfd362 2021-06-23 13:16:44 -05:00
Laurens Valk 10b2db2cb2 Bump @pybricks/ide-docs from 1.3.3 to 1.4.0
Includes 3.X doc features for next beta release.
2021-06-23 13:15:34 -05:00
David Lechner 9fca17fbac update projects URL to point to Pybricks website 2021-06-08 16:21:48 -05:00
David Lechner 09b614bcc4 CHANGELOG: fix broken links 2021-06-08 15:56:14 -05:00
David Lechner 20876ec388 start a changelog 2021-06-08 14:52:44 -05:00