Commit Graph
100 Commits
Author SHA1 Message Date
David Lechner c9894de95e hub: convert StopButton to function 2021-12-27 12:38:50 -06:00
David Lechner f57bbdf8e2 hub: convert RunButton to function 2021-12-27 12:38:50 -06:00
David Lechner dbda94c33f hub: convert BluetoothButton to function 2021-12-27 12:38:50 -06:00
David Lechner f1f6b2076d firmware: convert FlashButton to function 2021-12-27 12:38:50 -06:00
David Lechner 0738046ab1 editor: conver SaveAsButton to function 2021-12-27 12:38:49 -06:00
David Lechner 384cb78a74 editor: convert OpenButton to function 2021-12-27 12:38:49 -06:00
David Lechner 476998030c editor: convert Editor to function component 2021-12-27 12:38:46 -06:00
David Lechner c29f879086 app: use lambda style for App function 2021-12-27 12:36:38 -06:00
David Lechner 650413d1fb about: convert AboutDialog to function 2021-12-27 12:36:38 -06:00
David Lechner e8a3026c43 settings: convert SettingsButton to function 2021-12-27 12:36:38 -06:00
David Lechner a1db455a66 settings: convert SettingsDrawer to function
This reduces boilerplate code.
2021-12-27 12:36:38 -06:00
David Lechner 797982e185 Merge pull request #689 from pybricks/dlech
v1.1.0
2021-12-16 16:34:35 -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 2c2705c988 Merge pull request #672 from pybricks/dlech
v1.1.0-rc.1
2021-11-19 20:58:54 -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 97c5a3bfb8 settings: add hub name tooltip 2021-11-19 20:48:06 -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 86c0e933f3 settings: add new hubName setting
This setting will be used to customize the hub name when flashing
firmware. This commit just implements the setting.

Some changes needed to be made to the existing settings infrastructure
since previously it only allowed boolean settings.
2021-11-19 20:48:06 -06:00
David Lechner 61a24f1d99 fix docs after breaking package change 2021-11-19 20:22:30 -06:00
David Lechner 39c66eb98c yarn: add monaco-editor
react-monaco-editor changed to include monaco-editor as a peer dependency.

Also fix breakage for updated monaco-editor version.
2021-11-17 16:06:28 -06:00
David Lechner c9605fa846 github: automatically merge dependabot PRs 2021-11-17 11:33:53 -06:00
David Lechner 2983602994 Merge pull request #595 from pybricks/dlech
1.1.0-beta.6
2021-09-21 11:11:45 -05: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 5e602d20e7 v1.1.0-beta.5 2021-08-30 14:36:33 -05:00
David Lechner a12e8a3660 CONTRIBUTING: add section about tools/serve.py 2021-08-30 14:36:33 -05:00
David Lechner 6aa4de37ce CONTRIBUTING: spelling 2021-08-30 14:36:33 -05:00
David Lechner 7862c6f143 CHANGELOG: copy updates from firmware and docs 2021-08-30 14:36:33 -05:00
David Lechner e7d44ea9a9 src/utils: add ensureError() function
Typescript v4.4 no longer assumes that the error in catch is an Error
object [1]. This adds a helper function to ensure that caught errors
at least match the Error interface. If not, it creates a new Error
object with the value as the message.

[1]: https://devblogs.microsoft.com/typescript/announcing-typescript-4-4-beta/#using-unknown-in-catch-variables
2021-08-30 13:06:01 -05:00
David Lechner 13f73bc1db Merge pull request #524 from pybricks/dlech
v1.1.0-beta.4
2021-08-13 12:33:41 -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 7b5b966fe6 README: add link to beta website 2021-08-13 12:13:05 -05:00
David Lechner 0854750cd7 grammar 2021-08-13 12:13:05 -05:00
David Lechner 7779c8dbf4 Merge pull request #520 from pybricks/dlech
firmware checksum validation
2021-08-13 11:01:11 -05:00
David Lechner b7b3522f78 Merge remote-tracking branch 'origin/master' into dlech 2021-08-13 10:46:01 -05:00
David Lechner 7ddeed58b7 firmware: validate checksum while flashing
Since we are using the checksum message for throttling flash speed
anyway, we can validate the checksum during the flash process to
catch errors earlier.

Issue: https://github.com/pybricks/support/issues/433
2021-08-13 10:40:49 -05:00
David Lechner 59db5f4036 tools: add https server script
In order to test on Android, we must serve the local build directory
with https, otherwise Web Bluetooth doesn't work.
2021-08-13 10:07:52 -05:00
David Lechner a0130ada99 yarn upgrade 2021-08-12 15:55:24 -05:00
David Lechner ce8f59e0c2 firmware: fix flashing on Android
Hubs that don't use the minimum chunk size will fail on Android since
it defaults to the smallest possible MTU.

Issue: https://github.com/pybricks/support/issues/403
2021-08-12 15:55:24 -05:00
David Lechner 2dfd7e9d42 CHANGELOG: start unreleased section 2021-08-12 15:55:24 -05:00
David Lechner 56c739fa08 os: add isAndroid() function
This will be used to test if the app is running on Android.
2021-08-12 15:55:24 -05:00
David Lechner b0b15e1bbe CHANGELOG: fix typo 2021-08-12 15:55:24 -05:00
David Lechner f402071d38 Merge pull request #496 from pybricks/dlech
v1.1.0-beta.3
2021-07-20 12:48:30 -05:00
David Lechner 980af3edeb v1.1.0-beta.3 2021-07-20 12:42:49 -05:00
David Lechner 7ba87db98b Merge remote-tracking branch 'origin/master' into dlech 2021-07-20 12:38:53 -05:00
David Lechner a876a7a43c update changelog for firmware v3.1.0a3 2021-07-19 17:06:39 -05:00
David Lechner 6e48b5e1e3 Merge pull request #476 from pybricks/dlech
Updates
2021-07-08 17:03:48 -05:00
David Lechner 39b6e4b985 Merge branch 'master' into dlech 2021-07-08 16:58:26 -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 9ee2d1f102 editor: clean up keywords and builtins
- remove python 2 stuff
- separate builtins from keywords
2021-07-08 15:56:27 -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 4e2902730a hub: fix buttons not enabled after connection
A previous commit broke buttons after connecting since state all state
transitions were changed to be ignored if the current state was
"disconnected". This made it impossible to get into any other state.

This brings back use of the "unknown" state upon initial connection
to provide a path out of the "disconnected" state.

Fixes: 7a5aa75894
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 c3851e7139 tests: use matchMedia polyfill
This makes testing code that uses window.matchMedia() work better since
it mocks it globally.
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 4aba07b1cd Merge pull request #453 from pybricks/dlech
fix run button when hub disconnects during download
2021-07-01 12:05:16 -05:00
David Lechner 7a5aa75894 hub: fix bad hub runtime state when disconnected
This fixes a bad hub runtime state when the hub disconnects during a
download. This caused the run button in the UI to be enabled when the
hub was disconnected.

Issue: https://github.com/pybricks/support/issues/378
2021-07-01 11:58:04 -05:00
David Lechner 99166abb96 Merge branch 'master' of github.com:pybricks/pybricks-code into dlech 2021-06-24 12:03:19 -05:00
David Lechner 9f4a41de3b Merge pull request #447 from pybricks/dependabot/npm_and_yarn/node-sass-6.0.1
build(deps): bump node-sass from 6.0.0 to 6.0.1
2021-06-24 11:14:24 -05:00
David Lechner ed361a48e9 Merge pull request #445 from pybricks/dependabot/npm_and_yarn/testing-library/react-12.0.0
build(deps): bump @testing-library/react from 11.2.7 to 12.0.0
2021-06-23 16:42:02 -05:00
David Lechner f09e3bcaf2 Merge pull request #426 from pybricks/dependabot/npm_and_yarn/testing-library/user-event-13.1.9
build(deps): bump @testing-library/user-event from 12.8.3 to 13.1.9
2021-06-23 16:34:28 -05:00
David Lechner af5b1e7af7 Merge pull request #446 from pybricks/dependabot/npm_and_yarn/typescript-4.3.4
build(deps): bump typescript from 4.2.4 to 4.3.4
2021-06-23 16:25:56 -05:00
David Lechner 0e77791e90 Merge pull request #444 from pybricks/dependabot/npm_and_yarn/shopify/react-i18n-6.0.3
build(deps): bump @shopify/react-i18n from 5.4.0 to 6.0.3
2021-06-23 16:12:03 -05:00
David Lechner 5af34884ce Merge pull request #441 from pybricks/dependabot/npm_and_yarn/testing-library/dom-8.0.0
build(deps): bump @testing-library/dom from 7.31.2 to 8.0.0
2021-06-23 16:02:59 -05:00
David Lechner 1c30726086 Merge pull request #443 from pybricks/dependabot/npm_and_yarn/web-vitals-2.0.1
build(deps): bump web-vitals from 1.1.2 to 2.0.1
2021-06-23 15:56:40 -05:00
David Lechner a555725523 Merge pull request #422 from pybricks/dependabot/npm_and_yarn/node-sass-6.0.0
build(deps): bump node-sass from 4.14.1 to 6.0.0
2021-06-23 15:46:38 -05:00
David Lechner ab0ddd04b5 about/AboutDialog: fix failing test when $REACT_APP_NAME set
When the `REACT_APP_NAME` environment variable is set to something other
that "Pybricks Code", it caused the test to fail.
2021-06-23 15:12:07 -05:00
David Lechner 518b6d930c Merge pull request #440 from pybricks/dlech
v1.1.0-beta.1
2021-06-23 15:03:31 -05:00
David Lechner c108fe8ecc v1.1.0-beta.1 2021-06-23 14:59:33 -05:00
David Lechner 6d9ce8f1e2 github: override app name for beta releases
Also upload everything to beta subdomain (beta subdomain will be used as
"staging" for stable release as well).
2021-06-23 14:57:00 -05:00
David Lechner 944770fa98 public/manifest: use variables for program name
This requires a craco hack due to https://github.com/facebook/create-react-app/issues/7953
2021-06-23 14:28:59 -05:00
David Lechner 411e8e64d5 CHANGELOG: update for 7cfd362 2021-06-23 13:16:44 -05:00
David Lechner 98809eff8e yarn upgrade 2021-06-23 12:40:56 -05:00
David Lechner 7cfd362efb firmware: update to v3.1.0a1 2021-06-23 12:38:09 -05:00
David Lechner 70de0d0323 github: drop if success()
This is implicit, so we don't need it explicitly.
2021-06-23 12:36:14 -05:00
David Lechner 10148fa9cf ble-uart: decode PnP ID if it exists 2021-06-23 12:31:19 -05:00
David Lechner ec4160dbab yarn upgrade 2021-06-14 12:35:23 -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 5ec220ae5f github: exclude .well-known when uploading
The web hosting provider automatically creates this directory.
2021-06-08 15:31:18 -05:00
David Lechner a3bda0411f github: update action for release 2021-06-08 15:23:43 -05:00
David Lechner cab8ee254b Merge pull request #436 from pybricks/dlech
v1.0.0 release
2021-06-08 15:03:15 -05:00
David Lechner 65b199a1c4 v1.0.0 2021-06-08 14:56:43 -05:00
David Lechner 20876ec388 start a changelog 2021-06-08 14:52:44 -05:00
David Lechner 6c692a7e95 fix wrapping on external link buttons 2021-06-08 14:52:44 -05:00
David Lechner 205937fdc3 add changelog link to about dialog 2021-06-08 14:52:44 -05:00
David Lechner 38fc062214 firmware v3.0.0 2021-06-08 14:10:48 -05:00