David Lechner
709c3c554b
bump @pybricks/firmware to 5.0.0
...
This contains a breaking change where main.py is now optional so we
have to handle that case.
2022-07-20 18:01:35 -05:00
David Lechner
1d2c55eba6
ble/alerts: move old firmware from notifications
...
also add button to open new install firmware dialog
2022-07-20 17:26:08 -05:00
David Lechner
0721a24ef8
firmware/installPybricksDialog: fix some layout issues
2022-07-20 15:24:36 -05:00
David Lechner
af8a31d50c
firmware: add select picker for selecting custom main.py
2022-07-20 14:25:40 -05:00
David Lechner
85deb42f76
firmware: add multi-step dialog
2022-07-20 12:32:17 -05:00
David Lechner
b70777178c
editor/sagas: avoid console noise in tests
2022-07-18 14:54:44 -05:00
David Lechner
cabd53ac49
ble/actions: drop fail to connect reason
...
This is not longer used and can be removed.
2022-07-18 14:51:42 -05:00
David Lechner
c0215aa3ec
ble/sagas: move console logging to saga
2022-07-18 14:46:04 -05:00
David Lechner
d3be7775b2
ble/alerts: move missing service from notifications
2022-07-18 14:43:30 -05:00
David Lechner
5a77686e27
ble/alerts/NoGatt: move gatt message from notifications
2022-07-15 18:26:48 -05:00
David Lechner
bfdd7e728b
lwp3-bootloader/sagas-ble: remove obsolete comment
2022-07-15 18:05:48 -05:00
David Lechner
a86967573c
ble: add 1 second delay after connecting
...
This might help with some people that have connection issues where the
OS is still busy enumerating the device when we are trying to read
characteristics.
2022-07-15 18:05:48 -05:00
David Lechner
662a1ae097
ble/sagas: rework connect saga
...
This gets rid of a bunch of try/catch and repeated code.
2022-07-15 18:05:48 -05:00
David Lechner
bbe7eb4df3
ble: avoid aliases for UUID constants
2022-07-15 18:05:48 -05:00
David Lechner
15ecdf998d
ble/sagas: use alerts for unexpected error instead of notifications
2022-07-15 13:47:37 -05:00
David Lechner
ef0cd6507d
ble/alerts: move bluetooth not available from notifications
2022-07-15 13:19:31 -05:00
David Lechner
f86a9ad051
ble/alerts: move and improve no web bluetooth message
2022-07-15 13:16:53 -05:00
David Lechner
b2b173e103
utils/os: add Linux and iOS
...
Also update to navigator.userAgentData to avoid warnings from chromium.
2022-07-15 12:37:36 -05:00
David Lechner
e9f9aca3ef
ble/sagas: don't spam console in tests
2022-07-15 11:42:44 -05:00
David Lechner
ecd32e61b9
ble/actions: namespace actions
...
This way we don't have to use aliases when importing.
2022-07-15 11:16:23 -05:00
David Lechner
25e86c2f60
ble/sagas: flatten tests
...
This removes much of the nesting in tests to make the code easier to
read. Also we can now add more coverage for all of the skipped error
paths.
2022-07-14 20:44:24 -05:00
David Lechner
af2386178d
ble/sagas: add basic test
...
This gets about 50% coverage of the ble sagas.
2022-07-14 18:15:34 -05:00
David Lechner
c3fec0b779
app: drop last focused feature
...
This feature that keeps track of last focused item in the activities
panel broke child dialogs like the about dialog.
Fixes: https://github.com/pybricks/support/issues/682
2022-07-06 17:56:08 -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
2e555fb9fc
fix error message when flashing firmware
...
We missed a check for MPY ABI v6 compatibility.
2022-07-06 15:06:35 -05:00
David Lechner
ed0e6789b7
update to @pybricks/mpy-cross-v6@2.0.0
...
This fixes `mpy-cross.wasm` from the v6 package overwriting the same
file from the v5 package.
2022-07-06 14:34:48 -05:00
David Lechner
c4b0a9a781
add version to docs path
...
This adds the @pybricks/ide-docs package version to the static path.
This should ensure that we don't get a cached older version in the
browser when the ide-docs package is updated.
2022-07-06 14:17:53 -05:00
David Lechner
90cd4865e8
Add support for MPY ABI v6.
...
Pybricks firmware v3.2.0b2 has updated to MicroPython 1.19 which
includes breaking changes to the MPY binary file format.
2022-07-06 12:51:01 -05:00
Bert
ac86a829e7
Bump copyright year to 2022 in constants.ts ( #935 )
2022-06-26 09:59:57 -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
2686e0e5d3
use redux toolkit
...
Using redux directly has been deprecated. Using redux toolkit offers
some more safety checks (and could potientially replace some use of
sagas).
2022-06-15 12:03:29 -05:00
David Lechner
c2e38664dc
index: fix missing HotkeysProvider
2022-06-15 12:03:29 -05:00
David Lechner
a17cfbe4b8
app: use ref instead of state for last focused item
...
This prevents the full app from rendering when the last focused item
changes. This item doesn't have an effect on the rendered state so it
shouldn't be stored using state.
2022-06-15 12:03:29 -05:00
David Lechner
b6525ea95e
activities: don't render hidden activity panels
...
This improves performance by not rendering hidden tabs.
2022-06-15 12:03:29 -05:00
David Lechner
a835934028
explorer: render file toolbar on hover
...
This improves performance by only rendering the toolbar for each file
when it is actually shown.
2022-06-15 12:03:29 -05:00
David Lechner
d891d349f6
licenses: convert tree to list
...
This migrates the list of packages from using react-complex-tree to
react-aria since it is a list rather than a tree.
2022-06-15 12:03:29 -05:00
David Lechner
fc6d20f5e3
fix breaking change in react-complex-tree
2022-06-03 12:08:23 -05:00
David Lechner
48bd65c5b8
fix breaking changes for typescript 4.7
2022-06-03 11:32:36 -05:00
David Lechner
883807b4b4
fix breaking changes for user-event v14
2022-06-02 18:45:28 -05:00
dependabot[bot] and David Lechner
0149842803
build(deps): bump react-dropzone from 12.0.4 to 14.2.1 ( #843 )
...
* build(deps): bump react-dropzone from 12.0.4 to 14.2.1
Bumps [react-dropzone](https://github.com/react-dropzone/react-dropzone ) from 12.0.4 to 14.2.1.
- [Release notes](https://github.com/react-dropzone/react-dropzone/releases )
- [Commits](https://github.com/react-dropzone/react-dropzone/compare/v12.0.4...v14.2.1 )
---
updated-dependencies:
- dependency-name: react-dropzone
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* toolbar: update for breaking changes in ReactDropZone
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Lechner <david@pybricks.com >
2022-06-02 19:58:06 +00:00
David Lechner
1403dbb2f5
fix codeql recommendations
...
https://github.com/pybricks/pybricks-code/pull/823/checks?check_run_id=6695406302
2022-06-01 13:27:32 -05:00
David Lechner
c26a83f126
explorer/fileNameFormGroup: add "fix it" button
...
This adds a button on some errors to automatically fix the error.
2022-06-01 12:54:51 -05:00
David Lechner
41e826d73b
editor: save view state on change
...
Instead of trying to save the view state when a window "closes", which
is unreliable, we just save the state on every change.
2022-05-31 17:43:54 -05:00
David Lechner
818865462e
editor: handle files by uuid
...
This changes things up a bit so that files are handled by uuid instead
of path. The allows for files to be renamed without breaking things.
Also some improvements with persistence of the view state for each
file is made.
2022-05-31 17:21:29 -05:00
David Lechner
012d6b029e
explorer: fix toolbar buttons wrapping
...
This fixes the toolbar buttons wrapping when the text overflows.
2022-05-31 12:51:55 -05:00
David Lechner
56e1505f14
Revert "explorer: drop rename feature"
...
This reverts commit 30741b13ef .
2022-05-30 11:26:35 -05:00
David Lechner
e300aa7d64
explorer: explain how to fix error
2022-05-30 11:03:26 -05:00
David Lechner
d42b72f1a3
explorer: fix text input not getting focus when clicked
...
All user controls should stop propagation of events that are handled.
2022-05-30 11:01:29 -05:00
David Lechner
69ca51fbbb
explorer: fix broken layout
...
Applying this control tweak globally broke the explorer layout. So we
now apply it to settings only.
2022-05-30 10:15:10 -05:00