Commit Graph
100 Commits
Author SHA1 Message Date
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 LechnerandGitHub 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
David Lechner b50a23969c add .gitattibutes 2021-05-17 14:45:35 -05:00
David LechnerandGitHub 4ace43709d Merge pull request #430 from pybricks/dlech
RC2
2021-05-17 14:26:25 -05:00
David Lechner a47dbc10b2 v1.0.0-rc.2 2021-05-17 14:16:16 -05:00
David Lechner deee6578f7 improved bluetooth adapter error message
Issue: https://github.com/pybricks/support/issues/338
2021-05-17 13:24:57 -05:00
David Lechner 12f3f40e36 use spinner when bluetooth is connecting
It can take a while (especially on Windows) before the connection is
ready and the other buttons become enabled. So use a spinner to let
the user know that we are working on it.

Issue: https://github.com/pybricks/support/issues/315
2021-05-17 13:03:32 -05:00
David Lechner 1279370fc8 Fix firmware flash button not disabled while connecting
We were using the wrong state variable to detect when BLE is disconnected.
We care about the BLE connection state, not the hub runtime state here.

Issue: https://github.com/pybricks/support/issues/315#issuecomment-841486591
2021-05-17 12:44:30 -05:00
David LechnerandGitHub 89968ab40e Merge pull request #428 from pybricks/dlech
firmware: add windows BLE hacks
2021-05-17 09:36:00 -05:00
David Lechner 956b6f3c96 firmware: add windows BLE hacks
This works around some issues that have been observed on a specific
Windows computer.

Issue: https://github.com/pybricks/support/issues/256
2021-05-16 16:18:34 -05:00
David LechnerandGitHub 1ae9befab8 Merge branch 'master' into dlech 2021-05-11 14:40:41 -05:00
David Lechner 4da6f7e368 use overflow: hidden on splitter panes
This fixes problems with double scroll bars showing up.

Fixes: https://github.com/pybricks/pybricks-code/issues/406
Fixes: https://github.com/pybricks/pybricks-code/issues/407
2021-05-11 14:38:04 -05:00
David Lechner c346498d78 github: update tag matching for rc 2021-05-11 13:08:15 -05:00
David Lechner 423f6c9a9c v1.0.0-rc.1 2021-05-11 13:03:44 -05:00
David Lechner fa57a5b7ba firmware v3.0.0c1 2021-05-11 12:48:07 -05:00
David Lechner ec6753c314 yarn lint
rules seem to have changed a bit after upgrading packages
2021-05-11 12:45:43 -05:00
David Lechner efb86b5a5c drop @types/jszip
upstream package now contains typings
2021-05-11 12:43:07 -05:00
David Lechner 9c007817b1 yarn update 2021-05-11 12:42:32 -05:00
David Lechner 73f583e144 bump linter version 2021-04-26 14:14:13 -05:00
David Lechner ed9eba8f72 v1.0.0-beta.15 2021-04-26 13:46:45 -05:00
David Lechner b10537678d update Pybricks docs 2021-04-26 13:46:20 -05:00
David Lechner ac73004fea yarn upgrade 2021-04-26 13:44:19 -05:00
David Lechner 9fe23d6d7b Update firmware to v3.0.0b6 2021-04-26 13:39:20 -05:00
David Lechner debd259df5 v1.0.0-beta.14 2021-04-12 16:46:33 -05:00
David Lechner e8c4472e50 Add progress bar for user program download. 2021-04-12 16:24:36 -05:00
David Lechner 0f56fa0b82 v1.0.0-beta.13 2021-04-12 13:49:58 -05:00
David Lechner aa6394fdc2 Pybricks firmware v3.0.0b5 2021-04-12 13:49:05 -05:00
David Lechner 1964c9c485 Add timeout while waiting for checksum
This adds a timeout while waiting for the checksum from the hub when
downloading and running a program. Without this, we can get stuck in
the "loading" state if the hub doesn't respond as expected. This can
happen, for example, if a program is started with the hub button at the
same time as the start button in Pybricks Code is pressed.

Issue: https://github.com/pybricks/support/issues/301
2021-04-12 13:24:10 -05:00
David Lechner 0d89f8daad Disable flash button when hub is connected.
Fixes: https://github.com/pybricks/support/issues/299
2021-04-12 10:34:59 -05:00
David Lechner f39dea36fe Fix <p> element on notification action
55e724e8d8 introduced <p> elements on
notifications. however this is undesirable on the notification action
text. This splits the Notification component into one that is pre change
and one that is post change.

Fixes #394
2021-04-07 13:19:52 -05:00
David Lechner 23c3190a13 v1.0.0-beta.12 2021-04-07 12:33:16 -05:00
David Lechner 7f9e6bd4db Fix download and run race condition
It was possible for a program to start and finish running before the
final checksum message was received, which resulted in a bad state
(run button disabled).

This fixes it by using proper didStart/didFinish/didFailToFinish
actions for the download saga and updates the reducer to handle all
cases.
2021-04-07 12:28:36 -05:00
David LechnerandGitHub c9dcf63475 Merge branch 'master' into dlech 2021-04-07 11:35:01 -05:00
David Lechner d75103c2a1 v1.0.0-beta.11 2021-04-07 11:29:22 -05:00
David Lechner a081c4a798 Fix download and run race condition
This fixes a race condition where the hub program running status flag
is received before the last checksum from the download process.

Issue: https://github.com/pybricks/support/issues/290
2021-04-07 11:27:40 -05:00
David Lechner 3b1f6eb555 yarn upgrade 2021-04-06 14:25:56 -05:00
David Lechner 8456450934 v1.0.0-beta.10 2021-04-06 13:50:59 -05:00
David Lechner 605a910746 Fix failing download and run
The firmware was changed to send status updates at a regular interval
which caused the hub state to change back to idle prematurely during
download and run. This caused any program more than one or two lines
long to fail.

Issue: https://github.com/pybricks/support/issues/290
2021-04-06 13:48:38 -05:00
David Lechner 76a5f8fe26 drop HubRuntimeStatusType Idle and Running
These are no longer used
2021-04-06 13:42:26 -05:00
David Lechner 21a6b902cc v1.0.0-beta.9 2021-04-05 16:11:14 -05:00
David Lechner d632d26b6a Pybricks firmware v3.0.0b4 2021-04-05 16:11:04 -05:00
David Lechner 8be950036e beta 8 2021-04-02 16:09:38 -05:00
David Lechner e441c8b36d Pybricks firmware v3.0.0b3 (2nd release)
This includes a fix for Move hub.
2021-04-02 16:08:38 -05:00
David Lechner bb9a89d7d9 prettier 2021-04-02 12:48:06 -05:00
David Lechner 829e47c75a Wrap long lines in compiler error
This way we don't overflow the toast.
2021-04-01 14:24:31 -05:00
David Lechner 09ba8bb035 Increase toast max-width
This makes it big enough to fit the compiler error message

    IndentationError: unindent doesn't match any outer indent level

If we still have problems with overflow we should probably look at
ways to wrap <pre> text instead of making this wider.
2021-04-01 14:13:25 -05:00
David Lechner 55e724e8d8 Allow splitting long notifications
This adds the ability to split notification messages in to multiple paragraphs.
2021-04-01 13:58:01 -05:00
David Lechner ca1ec0a64e Add Device Information Service support
The Pybricks firmware now includes the BLE Device Information Service
to provide firmware and Pybricks protocol versions.

For now, checking that the service is present is enough to know that the
firmware is up to date. But we will need to add additional checks as
soon as the protocol is changed.
2021-04-01 13:29:10 -05:00
David Lechner d50f1f840f Pybricks firmware v3.0.0b3 2021-03-30 13:56:25 -05:00
David Lechner 428aa326ba yarn upgrade 2021-03-30 13:53:50 -05:00
David LechnerandGitHub 9f6c9846bf Merge pull request #359 from pybricks/dependabot/npm_and_yarn/web-vitals-1.1.1
build(deps): bump web-vitals from 1.1.0 to 1.1.1
2021-03-15 10:33:53 -05:00
David LechnerandGitHub 6bb430009f Merge pull request #358 from pybricks/dependabot/npm_and_yarn/shopify/react-i18n-5.3.0
Bump @shopify/react-i18n from 5.2.4 to 5.3.0
2021-03-12 10:05:24 -06:00
David Lechner 64c75640ba ble-pybricks-service: add some tests 2021-03-12 08:54:20 -06:00
David Lechner 4a294f8b25 Merge remote-tracking branch 'origin/master' into dlech 2021-03-11 15:25:56 -06:00
David LechnerandGitHub 651040b47d Merge pull request #357 from pybricks/dependabot/npm_and_yarn/blueprintjs/core-3.41.0
Bump @blueprintjs/core from 3.40.1 to 3.41.0
2021-03-11 10:33:16 -06:00
David Lechner 56829a502c ble-pybricks-service/sagas: fix filtering of command send completions
Since didSend and didFailToSend are part of the same enum as the command
send actions types, we have to filter them out when subscribing to the
send actions.
2021-03-10 11:19:06 -06:00
David Lechner 684df491e0 ble-uart/sagas: use array to managed forked tasks
This simplifies keeping track of which tasks need to be canceled in the
error paths.
2021-03-10 11:00:54 -06:00
David Lechner 3db1cb9b9c yarn upgrade 2021-03-10 10:35:18 -06:00
David Lechner 4b3a6fea5e hub: fix missed notification when connecting
This fixes the first notification being missed due to the notification
handler not being started until after notifications are enabled.

It also fixes the DidConnect action changing the state to Unknown after
a notification was received that set the state to a known value.
2021-03-10 10:30:15 -06:00
David Lechner 430147487e implement Pybricks service stop command 2021-03-10 10:30:15 -06:00
David Lechner 61c34fc4b1 implement BLE Pybricks service status notifications
This is the beginning of the BLE Pybricks service implementation, so
changes are made to get a handle to the Pybricks control characteristic
and enable notifications.

Currently, only one event (the status report event) and no commands are
implemented on this characteristic.

The new status report event replaces monitoring the UART for >>>>
strings to get the current hub state.

Also includes some minor cleanup in the ble-uart/actions for consistency.
2021-03-10 10:30:15 -06:00
David Lechner 257b843f38 reduce duplicated command line args in coverage script 2021-03-10 10:30:15 -06:00
David LechnerandGitHub 9e34ec1de8 Merge pull request #354 from pybricks/dependabot/npm_and_yarn/xterm-4.11.0
Bump xterm from 4.10.0 to 4.11.0
2021-03-10 09:40:16 -06:00
David LechnerandGitHub 727aed708b Merge pull request #352 from pybricks/dependabot/npm_and_yarn/typescript-eslint/parser-4.17.0
Bump @typescript-eslint/parser from 4.16.1 to 4.17.0
2021-03-09 08:27:14 -06:00
David LechnerandGitHub d05aed4264 Merge pull request #348 from pybricks/dependabot/npm_and_yarn/testing-library/dom-7.30.0
Bump @testing-library/dom from 7.29.6 to 7.30.0
2021-03-08 09:47:17 -06:00
David LechnerandGitHub d1be0854ea Merge pull request #346 from pybricks/dependabot/npm_and_yarn/blueprintjs/core-3.40.0
Bump @blueprintjs/core from 3.39.0 to 3.40.0
2021-03-05 10:25:58 -06:00
David LechnerandGitHub 2f3d45139f Merge pull request #343 from pybricks/dependabot/npm_and_yarn/shopify/react-i18n-5.2.4
Bump @shopify/react-i18n from 5.2.3 to 5.2.4
2021-03-04 11:24:04 -06:00
David LechnerandGitHub 36f6e05316 Merge pull request #341 from pybricks/dependabot/npm_and_yarn/testing-library/user-event-12.8.1
Bump @testing-library/user-event from 12.8.0 to 12.8.1
2021-03-03 10:38:24 -06:00
David LechnerandGitHub 9349a922bd Merge pull request #340 from pybricks/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.16.1
Bump @typescript-eslint/eslint-plugin from 4.15.2 to 4.16.1
2021-03-02 10:10:34 -06:00
David LechnerandGitHub eb9fe4c2f3 Merge pull request #338 from pybricks/dependabot/npm_and_yarn/testing-library/user-event-12.8.0
Bump @testing-library/user-event from 12.7.3 to 12.8.0
2021-03-01 09:55:18 -06:00
David LechnerandGitHub 10faf8971a Merge pull request #334 from pybricks/dependabot/npm_and_yarn/testing-library/user-event-12.7.3
Bump @testing-library/user-event from 12.7.2 to 12.7.3
2021-02-24 09:53:58 -06:00
David LechnerandGitHub 39de067d21 Merge pull request #332 from pybricks/dependabot/npm_and_yarn/react-scripts-4.0.3
Bump react-scripts from 4.0.2 to 4.0.3
2021-02-23 08:40:59 -06:00
David LechnerandGitHub 4fe69ee347 Merge pull request #329 from pybricks/dependabot/npm_and_yarn/types/node-12.20.4
Bump @types/node from 12.20.3 to 12.20.4
2021-02-22 10:34:02 -06:00
David LechnerandGitHub 762c3d8428 Merge pull request #324 from pybricks/dlech
update to firmware v3.0.0b2
2021-02-19 15:04:32 -06:00
David Lechner 5d10954d3a v1.0.0-beta.7 2021-02-19 12:05:34 -06:00
David Lechner dc3ec9af5a update to firmware v3.0.0b2 2021-02-19 11:57:30 -06:00
David LechnerandGitHub 3ad5ce5e54 Merge pull request #323 from pybricks/dependabot/npm_and_yarn/types/node-12.20.3
Bump @types/node from 12.20.1 to 12.20.3
2021-02-19 11:06:57 -06:00
David LechnerandGitHub 24da58d6f5 Merge pull request #320 from pybricks/dependabot/npm_and_yarn/typescript-eslint/parser-4.15.1
Bump @typescript-eslint/parser from 4.15.0 to 4.15.1
2021-02-16 15:27:01 -06:00
David LechnerandGitHub 964b50c141 Merge pull request #317 from pybricks/dependabot/npm_and_yarn/eslint-7.20.0
Bump eslint from 7.19.0 to 7.20.0
2021-02-15 08:26:24 -06:00
David LechnerandGitHub 41dfafd9aa Merge pull request #312 from pybricks/docs
Bump @pybricks/ide-docs from 1.1.0 to 1.1.1
2021-02-14 13:18:22 -06:00
David LechnerandGitHub be2b91bb31 Merge pull request #311 from pybricks/dependabot/npm_and_yarn/license-webpack-plugin-2.3.12
Bump license-webpack-plugin from 2.3.11 to 2.3.12
2021-02-12 10:50:12 -06:00
David LechnerandGitHub 13aee74299 Merge pull request #310 from pybricks/dependabot/npm_and_yarn/typescript-4.1.5
Bump typescript from 4.1.4 to 4.1.5
2021-02-11 11:17:31 -06:00
David LechnerandGitHub aef4b130a7 Merge pull request #308 from pybricks/dependabot/npm_and_yarn/jszip-3.6.0
Bump jszip from 3.5.0 to 3.6.0
2021-02-10 10:45:08 -06:00
David LechnerandGitHub 47e5911722 Merge pull request #306 from pybricks/dependabot/npm_and_yarn/typescript-eslint/parser-4.15.0
Bump @typescript-eslint/parser from 4.14.2 to 4.15.0
2021-02-09 09:02:39 -06:00
David Lechner c1621d1bfa dependabot updates
- check daily (avoid weekly flood)
- update ignore patterns
2021-02-08 11:16:59 -06:00