David Lechner
9f538490e5
toolbar: remove OpenFileButton
...
This is no longer used.
2022-11-23 17:20:45 -06:00
David Lechner
d323db4d1b
toolbar/ActionButton: only disable using style
...
This removes use of the button disable property since it removes the
button from the accessibility tree and also makes tooltips not work.
The styling is kept the same by manually including the disable style.
2022-11-23 17:20:45 -06:00
David Lechner
bb8015eae5
test: finish TODO for escape key hack
...
Fix was merged upstream so we can remove the hack.
2022-11-22 15:56:56 -06:00
David Lechner
9fe62467d5
alerts: use shorthand return
2022-11-22 15:56:56 -06:00
David Lechner
95199e44c1
hub/alerts/UserProgramSize: add alert for program too big
...
This finishes the TODO about adding a proper message.
Fixes: https://github.com/pybricks/support/issues/810
2022-11-22 15:56:56 -06:00
David Lechner
db438be40b
editor: finish remove hack TODO
...
The upstream fix was merged, so the workaround is no longer needed.
2022-11-22 15:56:56 -06:00
David Lechner
764083e6be
monaco-extension: finish TODO
...
code was merged upstream, so we no longer need the workaround
2022-11-22 15:56:56 -06:00
David Lechner
004667b80b
webpack: finish TODO about avif file types
...
was fixed in https://github.com/jshttp/mime-db/commit/65f65eda094a8ec206f9144584657ff14fd597ab
2022-11-22 15:56:56 -06:00
David Lechner
efec127b8e
webpack: precache oss-licenses.json
...
This works around the oss-licenses.json file not being picked up by
the workbox plugin.
Closes: https://github.com/pybricks/pybricks-code/issues/1245
2022-11-19 16:58:27 -06:00
David Lechner
61098453c7
webpack: move monoaco editor js into static/js folder
...
All other js files are there already.
2022-11-19 16:58:27 -06:00
David Lechner
0d1bc4c9fa
index.html: fix apple-touch-icon for beta
...
Beta uses a different icon, so we need to account for that.
2022-11-19 16:58:27 -06:00
David Lechner
ea84c48159
service-worker: fix caching of app icons
...
The application icons, like favicon.ico were not being cached properly
and were missing when the app was used offline.
Changing the strategy to CacheFirst and changing the test to include
all images fixes the problem.
2022-11-19 16:58:27 -06:00
David Lechner
7850a505e4
about: fix icon not working offline
...
Issue: https://github.com/pybricks/pybricks-code/issues/1245
2022-11-18 19:28:00 -06:00
David Lechner
b5b857bca5
firmware/sagas: implement restoring official firmware
...
Closes: https://github.com/pybricks/pybricks-code/issues/1104
2022-11-18 19:28:00 -06:00
David Lechner
cf99ab223d
firmware/sagas: refactor firmwareFlashUsbDfu
...
This allows the firmwareFlashUsbDfu to take an arbitrary binary blob
instead of a Pybricks firmware.zip file. This will allow it to be used
to restore the official LEGO firmware as well.
2022-11-18 19:28:00 -06:00
David Lechner
71c8605773
firmware/restoreOfficialDialog: change to multistep dialog
...
This gives instructions on how to put the hub in bootloader mode like
the install Pybricks dialog and sets the stage for doing the DFU restore
without going to another website.
Issue: https://github.com/pybricks/pybricks-code/issues/1104
2022-11-18 19:28:00 -06:00
David Lechner
44169bd178
firmware/bootloaderInstructions: extract component
...
This extracts the instructions for placing a hub in bootloader mode to
a separate component so that it can be shared.
2022-11-18 19:28:00 -06:00
David Lechner
f167f168ee
fix missing icons
...
Warning sign was missed in 90b04f8 . 20px error and info are added just
in case.
2022-11-18 19:28:00 -06:00
David Lechner
745d09df7a
constants: add LEGO registered trademark
...
This shouldn't be translated so we make a constant to ensure that. Also
makes it easy to get the registered trademark symbol which isn't
trivial to type on the keyboard.
2022-11-18 19:28:00 -06:00
David Lechner
f944948a44
yarn: update to v3.3.0
2022-11-18 19:28:00 -06:00
David Lechner
597419be47
ble/alerts/BluetoothNotAvailable: add browser support paragraph
...
Browsers such as Brave and Opera are based on Chromium but disable
Web Bluetooth. In this case, we can't tell the difference between the
browser not supporting it or the Bluetooth adapter not being present.
So we make the error message cover all possibilities.
Issue: https://github.com/pybricks/support/discussions/804
Issue: https://github.com/pybricks/support/issues/635
2022-11-18 19:28:00 -06:00
David Lechner
bdf9f3c850
github: update auto-merge workflow
...
Don't restrict action version. Hopefully fixes warnings about `set-output`.
2022-11-18 19:28:00 -06:00
David Lechner
d48734b513
ble-pybricks-service/protocol: add CommandType.ResetInUpdateMode
2022-11-18 19:28:00 -06:00
dependabot[bot] and David Lechner
fd6957eb3f
build(deps): bump @babel/core from 7.19.6 to 7.20.2 ( #1311 )
...
* build(deps): bump @babel/core from 7.19.6 to 7.20.2
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.19.6 to 7.20.2.
- [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.20.2/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* yarn dedupe
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Lechner <david@pybricks.com >
2022-11-18 18:33:17 +00:00
dependabot[bot]
b4311c5f89
build(deps): bump jest-watch-typeahead from 2.2.0 to 2.2.1 ( #1318 )
...
Bumps [jest-watch-typeahead](https://github.com/jest-community/jest-watch-typeahead ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/jest-community/jest-watch-typeahead/releases )
- [Changelog](https://github.com/jest-community/jest-watch-typeahead/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jest-community/jest-watch-typeahead/compare/v2.2.0...v2.2.1 )
---
updated-dependencies:
- dependency-name: jest-watch-typeahead
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 07:32:26 +00:00
dependabot[bot]
29d2f867bc
build(deps): bump react-aria from 3.20.0 to 3.21.0 ( #1317 )
...
Bumps [react-aria](https://github.com/adobe/react-spectrum ) from 3.20.0 to 3.21.0.
- [Release notes](https://github.com/adobe/react-spectrum/releases )
- [Commits](https://github.com/adobe/react-spectrum/compare/react-aria@3.20.0...react-aria@3.21.0 )
---
updated-dependencies:
- dependency-name: react-aria
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 07:18:25 +00:00
dependabot[bot]
99487b4984
build(deps): bump @blueprintjs/popover2 from 1.8.1 to 1.10.1 ( #1315 )
...
Bumps [@blueprintjs/popover2](https://github.com/palantir/blueprint/tree/HEAD/packages/core ) from 1.8.1 to 1.10.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/popover2@1.10.1/packages/core )
---
updated-dependencies:
- dependency-name: "@blueprintjs/popover2"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 07:06:10 +00:00
dependabot[bot]
2f007402dc
build(deps): bump monaco-themes from 0.4.2 to 0.4.3 ( #1316 )
...
Bumps monaco-themes from 0.4.2 to 0.4.3.
---
updated-dependencies:
- dependency-name: monaco-themes
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 06:54:54 +00:00
dependabot[bot]
70a6380418
build(deps): bump typescript from 4.8.4 to 4.9.3 ( #1314 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.8.4 to 4.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.4...v4.9.3 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 06:43:50 +00:00
dependabot[bot]
0b0e708cc0
build(deps): bump @shopify/react-i18n from 7.3.0 to 7.4.0 ( #1313 )
...
Bumps [@shopify/react-i18n](https://github.com/Shopify/quilt/tree/HEAD/packages/react-i18n ) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/Shopify/quilt/releases )
- [Changelog](https://github.com/Shopify/quilt/blob/main/packages/react-i18n/CHANGELOG.md )
- [Commits](https://github.com/Shopify/quilt/commits/@shopify/react-i18n@7.4.0/packages/react-i18n )
---
updated-dependencies:
- dependency-name: "@shopify/react-i18n"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 06:32:39 +00:00
dependabot[bot]
2b11102f85
build(deps): bump jest-resolve from 29.2.2 to 29.3.1 ( #1312 )
...
Bumps [jest-resolve](https://github.com/facebook/jest/tree/HEAD/packages/jest-resolve ) from 29.2.2 to 29.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest-resolve )
---
updated-dependencies:
- dependency-name: jest-resolve
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 06:23:02 +00:00
dependabot[bot]
5c06e90bf8
build(deps): bump loader-utils from 2.0.3 to 2.0.4
...
Bumps [loader-utils](https://github.com/webpack/loader-utils ) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases )
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md )
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4 )
---
updated-dependencies:
- dependency-name: loader-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-16 09:43:27 -06:00
dependabot[bot]
191ef1f5a5
bump jest and @types/jest ( #1310 )
...
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: "@types/jest"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 06:40:28 +00:00
dependabot[bot]
273d572959
build(deps): bump jest-environment-jsdom from 29.2.2 to 29.3.1 ( #1302 )
...
Bumps [jest-environment-jsdom](https://github.com/facebook/jest/tree/HEAD/packages/jest-environment-jsdom ) from 29.2.2 to 29.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest-environment-jsdom )
---
updated-dependencies:
- dependency-name: jest-environment-jsdom
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 07:43:24 +00:00
dependabot[bot]
2ce656ed55
build(deps): bump @blueprintjs/select from 4.8.6 to 4.8.11 ( #1307 )
...
Bumps [@blueprintjs/select](https://github.com/palantir/blueprint/tree/HEAD/packages/select ) from 4.8.6 to 4.8.11.
- [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.8.11/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 >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 07:30:41 +00:00
dependabot[bot]
c751ab21f3
build(deps): bump babel-jest from 29.2.2 to 29.3.1 ( #1308 )
...
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest ) from 29.2.2 to 29.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/babel-jest )
---
updated-dependencies:
- dependency-name: babel-jest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 07:19:58 +00:00
dependabot[bot]
05c24ae1d2
build(deps): bump tailwindcss from 3.2.2 to 3.2.4 ( #1306 )
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.2.2 to 3.2.4.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.2.2...v3.2.4 )
---
updated-dependencies:
- dependency-name: tailwindcss
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 06:59:45 +00:00
dependabot[bot]
9182493901
build(deps): bump css-loader from 6.7.1 to 6.7.2 ( #1305 )
...
Bumps [css-loader](https://github.com/webpack-contrib/css-loader ) from 6.7.1 to 6.7.2.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases )
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v6.7.1...v6.7.2 )
---
updated-dependencies:
- dependency-name: css-loader
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 06:45:42 +00:00
dependabot[bot]
654b657c9c
build(deps): bump webpack from 5.74.0 to 5.75.0 ( #1304 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.74.0 to 5.75.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.75.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 06:33:53 +00:00
dependabot[bot]
12c404f343
build(deps): bump postcss-preset-env from 7.8.2 to 7.8.3 ( #1303 )
...
Bumps [postcss-preset-env](https://github.com/csstools/postcss-plugins/tree/HEAD/plugin-packs/postcss-preset-env ) from 7.8.2 to 7.8.3.
- [Release notes](https://github.com/csstools/postcss-plugins/releases )
- [Changelog](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/CHANGELOG.md )
- [Commits](https://github.com/csstools/postcss-plugins/commits/HEAD/plugin-packs/postcss-preset-env )
---
updated-dependencies:
- dependency-name: postcss-preset-env
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 06:22:53 +00:00
dependabot[bot]
b83c007eac
build(deps): bump @pmmmwh/react-refresh-webpack-plugin ( #1301 )
...
Bumps [@pmmmwh/react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin ) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/pmmmwh/react-refresh-webpack-plugin/releases )
- [Changelog](https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pmmmwh/react-refresh-webpack-plugin/compare/v0.5.8...v0.5.9 )
---
updated-dependencies:
- dependency-name: "@pmmmwh/react-refresh-webpack-plugin"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 06:29:28 +00:00
David Lechner
06936aa0e6
Merge pull request #1300 from pybricks/dlech
...
fixes
2022-11-11 13:16:24 -06:00
David Lechner
abb4578450
v2.0.0-beta.11
v2.0.0-beta.11
2022-11-11 13:00:40 -06:00
David Lechner
6f91c57743
firmware/sagas: add delay after connecting
...
This adds a delay after connecting to a hub when flashing firmware via
BLE before sending any commands. This gives the OS Bluetooth stack time
to finish enumerating the Bluetooth device before we start trying to
interact with the device. Hopefully this fixes issues for some people
who are seeing problems while flashing firmware.
Issue: https://github.com/orgs/pybricks/discussions/792
2022-11-11 13:00:40 -06:00
David Lechner
b2e098f2dd
app: catch error when checking for updates
...
ServiceWorkerRegistration.update() can raise exceptions, so we need to
catch and handle them, otherwise it will crash redux sagas and the app
will stop responding.
Fixes: https://github.com/pybricks/pybricks-code/issues/1299
2022-11-11 13:00:40 -06:00
David Lechner
6c906c9cec
Merge pull request #1298 from pybricks/dlech
...
v2.0.0-beta.10
2022-11-11 12:09:18 -06:00
David Lechner
e31a567f93
vv2.0.0-beta.10
v2.0.0-beta.10
2022-11-11 12:02:59 -06:00
David Lechner
11d3a81426
update @pybricks dependencies
2022-11-11 11:59:51 -06:00
dependabot[bot]
1bb642eec7
build(deps): bump sass-loader from 13.1.0 to 13.2.0 ( #1296 )
...
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases )
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v13.1.0...v13.2.0 )
---
updated-dependencies:
- dependency-name: sass-loader
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-11 07:00:18 +00:00
David Lechner
992923bf15
SponsorDialog: make team link inline
...
Also buttons cannot be inside of `<p>` tags.
2022-11-10 13:47:16 -06:00