Commit Graph
1580 Commits
Author SHA1 Message Date
David Lechner c84afea181 style: make use of more blueprint styles
https://blueprintjs.com/docs/#core/typography

Also fix wrapping license text while we are touching this.
2022-07-27 16:55:46 -05:00
David Lechner e6609b9054 firmware/installPybricksDialog: fix <div> inside <p>
fixes:

    Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

Also some other style tweaks while we are touching this.
2022-07-27 16:22:46 -05:00
David Lechner 89892476a5 Merge pull request #1008 from pybricks/dlech
Pybricks tour
2022-07-27 15:41:40 -05:00
David Lechner ad774e0f7c suppress redux non-serializable error for error objects 2022-07-27 15:34:39 -05:00
David Lechner 3953816350 components/hubPicker: back state with localStorage
This saves the selected hub in localStorage. This will "remember" the
state between app launches and also synchronize the state between
various users of the component. Both of these should mean fewer clicks
required by the user.
2022-07-27 15:30:39 -05:00
David Lechner 8bece7d957 tour: add new tour component 2022-07-27 15:19:36 -05:00
David Lechner 0414e08e4f drop blueprints-icons
we no longer override the styles, so this is no longer needed
2022-07-27 15:19:36 -05:00
David Lechner 2b7f1b1cbf firmware/sagas: show progress for BLE flashing 2022-07-27 15:19:36 -05:00
David Lechner 1148b169d5 firmware: add progress indication for DFU USB flash 2022-07-27 15:19:36 -05:00
David Lechner 8dadc8826c firmware/installPybricksDialog: increase height
This ensures the dialog doesn't change size when clicking next even
with longer translations.
2022-07-27 15:19:36 -05:00
David Lechner 4e85b5c1b8 firmware/installPybricksDialog: rename flash button
This makes it clear there are two steps, connect and then flash.
2022-07-27 15:19:36 -05:00
David Lechner 76444c032c firmware/installPybricksDialog: add warning for windows/linux usb
This warns the user before failure. Otherwise they will click the flash
button and no devices will appear in the scan dialog.
2022-07-27 15:19:36 -05:00
dependabot[bot]anddependabot-fix 5c74ad3c97 build(deps-dev): bump @typescript-eslint/eslint-plugin from 5.30.7 to 5.31.0 (#1006)
* build(deps-dev): bump @typescript-eslint/eslint-plugin

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.30.7 to 5.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.31.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-27 16:55:33 +00:00
dependabot[bot]anddependabot-fix 2f8446024d build(deps): bump browserslist from 4.21.2 to 4.21.3 (#1007)
* build(deps): bump browserslist from 4.21.2 to 4.21.3

Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.21.2 to 4.21.3.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.21.2...4.21.3)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-27 16:42:16 +00:00
dependabot[bot]anddependabot-fix 6592625324 build(deps-dev): bump @typescript-eslint/parser from 5.30.7 to 5.31.0 (#1005)
* build(deps-dev): bump @typescript-eslint/parser from 5.30.7 to 5.31.0

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.7 to 5.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.31.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-26 16:24:51 +00:00
dependabot[bot]anddependabot-fix dc669edcce build(deps): bump sass from 1.53.0 to 1.54.0 (#1004)
* build(deps): bump sass from 1.53.0 to 1.54.0

Bumps [sass](https://github.com/sass/dart-sass) from 1.53.0 to 1.54.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.53.0...1.54.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-25 17:09:35 +00:00
268131922d build(deps): bump @blueprintjs/select from 4.5.0 to 4.5.1 (#1003)
* build(deps): bump @blueprintjs/select from 4.5.0 to 4.5.1

Bumps [@blueprintjs/select](https://github.com/palantir/blueprint/tree/HEAD/packages/select) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/palantir/blueprint/releases)
- [Changelog](https://github.com/palantir/blueprint/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/palantir/blueprint/commits/@blueprintjs/select@4.5.1/packages/select)

---
updated-dependencies:
- dependency-name: "@blueprintjs/select"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
Co-authored-by: David Lechner <david@pybricks.com>
2022-07-25 16:55:19 +00:00
dependabot[bot]anddependabot-fix c8e22ee770 build(deps): bump webpack from 5.73.0 to 5.74.0 (#1002)
* build(deps): bump webpack from 5.73.0 to 5.74.0

Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.74.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.74.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-25 16:19:45 +00:00
David Lechner de6c58ed77 Merge pull request #1001 from pybricks/dlech
small fixes
2022-07-22 16:31:06 -05:00
David Lechner 934330272f alerts/sagas: avoid reentrancy for dismiss
This fixes react complaining about calling setState from an invalid
context.
2022-07-22 15:29:11 -05:00
David Lechner e6782cb291 index: avoid more non-serializable dev tool errors 2022-07-22 15:07:10 -05:00
David Lechner 9d1f3651c5 alerts/actions: fix alertsShowAlert action with props 2022-07-22 14:45:47 -05:00
David Lechner e3430260f9 firmware/alerts/NoDfuHub: fix translation key 2022-07-22 14:03:33 -05:00
David Lechner 958a79b2ea Merge pull request #1000 from pybricks/dlech
i18n: use automatic type inference of translation keys
2022-07-22 13:54:44 -05:00
David Lechner d6df128860 i18n: use automatic type inference of translation keys
Finally figured out a way to make typescript strongly type translation
keys so we can avoid the tedium of creating enums of translation keys.
2022-07-22 13:48:50 -05:00
dependabot[bot]anddependabot-fix 3e10096b6e build(deps-dev): bump eslint-plugin-functional from 4.2.1 to 4.2.2 (#999)
* build(deps-dev): bump eslint-plugin-functional from 4.2.1 to 4.2.2

Bumps [eslint-plugin-functional](https://github.com/jonaskello/eslint-plugin-functional) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/jonaskello/eslint-plugin-functional/releases)
- [Changelog](https://github.com/jonaskello/eslint-plugin-functional/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jonaskello/eslint-plugin-functional/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-functional
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-22 16:37:12 +00:00
dependabot[bot]anddependabot-fix 74be608b28 build(deps): bump @svgr/webpack from 6.3.0 to 6.3.1 (#998)
* build(deps): bump @svgr/webpack from 6.3.0 to 6.3.1

Bumps [@svgr/webpack](https://github.com/gregberge/svgr) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gregberge/svgr/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: "@svgr/webpack"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-22 16:22:20 +00:00
David Lechner d357aade44 Merge pull request #997 from pybricks/dlech
dfu firmware flashing
2022-07-22 10:57:33 -05:00
David Lechner 61a3f58e54 Merge remote-tracking branch 'origin/master' into dlech 2022-07-22 10:51:12 -05:00
David Lechner e063627c73 yarn: update blueprints packages 2022-07-22 10:50:39 -05:00
David Lechner 6d07713eb5 firmware: implement flashing via USB DFU 2022-07-21 18:36:32 -05:00
David Lechner 28f63d5d85 utils/math: add crc32 function
This matches the STM32 hardware CRC.
2022-07-21 14:27:27 -05:00
dependabot[bot]anddependabot-fix c105deea39 build(deps): bump @blueprintjs/popover2 from 1.4.2 to 1.4.3 (#994)
* build(deps): bump @blueprintjs/popover2 from 1.4.2 to 1.4.3

Bumps [@blueprintjs/popover2](https://github.com/palantir/blueprint/tree/HEAD/packages/core) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/palantir/blueprint/releases)
- [Changelog](https://github.com/palantir/blueprint/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/palantir/blueprint/commits/@blueprintjs/popover2@1.4.3/packages/core)

---
updated-dependencies:
- dependency-name: "@blueprintjs/popover2"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-21 16:22:36 +00:00
David Lechner bb6f86ff18 firmware/installPybricksDialog: add bootloader discrimination
Also fix license not showing for newer hubs.
2022-07-20 18:51:45 -05:00
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 25a0ce7633 Merge remote-tracking branch 'origin/master' into dlech 2022-07-20 17:25:32 -05:00
dependabot[bot]anddependabot-fix 9642a1f1b5 build(deps): bump @pybricks/firmware from 4.16.1 to 4.17.0 (#993)
* build(deps): bump @pybricks/firmware from 4.16.1 to 4.17.0

Bumps [@pybricks/firmware](https://github.com/pybricks/pybricks-micropython/tree/HEAD/npm/firmware) from 4.16.1 to 4.17.0.
- [Release notes](https://github.com/pybricks/pybricks-micropython/releases)
- [Changelog](https://github.com/pybricks/pybricks-micropython/blob/master/npm/firmware/CHANGELOG.md)
- [Commits](https://github.com/pybricks/pybricks-micropython/commits/HEAD/npm/firmware)

---
updated-dependencies:
- dependency-name: "@pybricks/firmware"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-20 21:31:41 +00: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
dependabot[bot]anddependabot-fix d7dedf1d41 build(deps): bump @types/web-bluetooth from 0.0.14 to 0.0.15 (#992)
* build(deps): bump @types/web-bluetooth from 0.0.14 to 0.0.15

Bumps [@types/web-bluetooth](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/web-bluetooth) from 0.0.14 to 0.0.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/web-bluetooth)

---
updated-dependencies:
- dependency-name: "@types/web-bluetooth"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-20 16:39:27 +00:00
360f0acb0a build(deps): bump @svgr/webpack from 6.2.1 to 6.3.0 (#988)
* build(deps): bump @svgr/webpack from 6.2.1 to 6.3.0

Bumps [@svgr/webpack](https://github.com/gregberge/svgr) from 6.2.1 to 6.3.0.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gregberge/svgr/compare/v6.2.1...v6.3.0)

---
updated-dependencies:
- dependency-name: "@svgr/webpack"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
Co-authored-by: David Lechner <david@pybricks.com>
2022-07-19 18:15:04 +00:00
dependabot[bot]anddependabot-fix 9edd6a9f60 build(deps): bump @types/jest from 28.1.5 to 28.1.6 (#989)
* build(deps): bump @types/jest from 28.1.5 to 28.1.6

Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 28.1.5 to 28.1.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-19 17:34:45 +00:00
dependabot[bot]anddependabot-fix 6717d6f22e build(deps): bump @babel/core from 7.18.6 to 7.18.9 (#991)
* build(deps): bump @babel/core from 7.18.6 to 7.18.9

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.18.6 to 7.18.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.9/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-19 17:21:27 +00:00
dependabot[bot]anddependabot-fix 0a4c734578 build(deps): bump @testing-library/user-event from 14.2.6 to 14.3.0 (#990)
* build(deps): bump @testing-library/user-event from 14.2.6 to 14.3.0

Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 14.2.6 to 14.3.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v14.2.6...v14.3)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-19 17:09:12 +00:00
dependabot[bot]anddependabot-fix 09ee09be18 build(deps-dev): bump @typescript-eslint/parser from 5.30.6 to 5.30.7 (#987)
* build(deps-dev): bump @typescript-eslint/parser from 5.30.6 to 5.30.7

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.6 to 5.30.7.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.7/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-19 16:55:33 +00:00
dependabot[bot]anddependabot-fix 8fa0b67412 build(deps): bump jest-mock-extended from 2.0.6 to 2.0.7 (#986)
* build(deps): bump jest-mock-extended from 2.0.6 to 2.0.7

Bumps [jest-mock-extended](https://github.com/marchaos/jest-mock-extended) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/marchaos/jest-mock-extended/releases)
- [Commits](https://github.com/marchaos/jest-mock-extended/compare/2.0.6...2.0.7)

---
updated-dependencies:
- dependency-name: jest-mock-extended
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-19 16:42:30 +00:00
dependabot[bot]anddependabot-fix 15ca362f45 build(deps-dev): bump @typescript-eslint/eslint-plugin from 5.30.6 to 5.30.7 (#985)
* build(deps-dev): bump @typescript-eslint/eslint-plugin

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.30.6 to 5.30.7.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.7/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [dependabot skip] Fix yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-fix <dependabot-fix@example.com>
2022-07-19 16:29:45 +00:00
David Lechner b70777178c editor/sagas: avoid console noise in tests 2022-07-18 14:54:44 -05:00