Commit Graph
1352 Commits
Author SHA1 Message Date
dependabot[bot]andDavid Lechner 09c07affa3 build(deps): bump jest and @types/jest (#835)
* build(deps): bump jest and @types/jest

Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) and [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest). These dependencies needed to be updated together.

Updates `jest` from 27.5.1 to 28.1.0
- [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/v28.1.0/packages/jest)

Updates `@types/jest` from 27.4.1 to 28.1.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

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

* fix breaking changes in jest 28

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Lechner <david@pybricks.com>
2022-06-02 18:53:21 +00:00
dependabot[bot]anddependabot-fix e7fd76edb2 build(deps): bump postcss-loader from 6.2.1 to 7.0.0 (#840)
* build(deps): bump postcss-loader from 6.2.1 to 7.0.0

Bumps [postcss-loader](https://github.com/webpack-contrib/postcss-loader) from 6.2.1 to 7.0.0.
- [Release notes](https://github.com/webpack-contrib/postcss-loader/releases)
- [Changelog](https://github.com/webpack-contrib/postcss-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/postcss-loader/compare/v6.2.1...v7.0.0)

---
updated-dependencies:
- dependency-name: postcss-loader
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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-06-02 16:56:12 +00:00
dependabot[bot]anddependabot-fix a829745589 build(deps): bump postcss-preset-env from 7.5.0 to 7.7.0 (#841)
* build(deps): bump postcss-preset-env from 7.5.0 to 7.7.0

Bumps [postcss-preset-env](https://github.com/csstools/postcss-plugins/tree/HEAD/plugin-packs/postcss-preset-env) from 7.5.0 to 7.7.0.
- [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-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-06-02 16:42:00 +00:00
dependabot[bot]anddependabot-fix 208df60b55 build(deps): bump sass-loader from 12.6.0 to 13.0.0 (#842)
* build(deps): bump sass-loader from 12.6.0 to 13.0.0

Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 12.6.0 to 13.0.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/v12.6.0...v13.0.0)

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

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-06-02 11:29:17 -05:00
dependabot[bot]anddependabot-fix 30f62aca9a build(deps): bump webpack from 5.72.1 to 5.73.0 (#839)
* build(deps): bump webpack from 5.72.1 to 5.73.0

Bumps [webpack](https://github.com/webpack/webpack) from 5.72.1 to 5.73.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.72.1...v5.73.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-06-02 16:18:48 +00:00
dependabot[bot]anddependabot-fix 33401a0901 build(deps): bump jest-mock-extended from 2.0.4 to 2.0.6 (#838)
* build(deps): bump jest-mock-extended from 2.0.4 to 2.0.6

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

---
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-06-02 16:05:47 +00:00
dependabot[bot]anddependabot-fix 285d6cdd07 build(deps): bump @babel/core from 7.17.10 to 7.18.2 (#836)
* build(deps): bump @babel/core from 7.17.10 to 7.18.2

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.17.10 to 7.18.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.18.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>

* [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-06-02 00:55:53 +00:00
dependabot[bot]anddependabot-fix e8446e880b build(deps): bump usehooks-ts from 2.4.2 to 2.5.4 (#837)
* build(deps): bump usehooks-ts from 2.4.2 to 2.5.4

Bumps [usehooks-ts](https://github.com/juliencrn/usehooks-ts) from 2.4.2 to 2.5.4.
- [Release notes](https://github.com/juliencrn/usehooks-ts/releases)
- [Changelog](https://github.com/juliencrn/usehooks-ts/blob/master/CHANGELOG.md)
- [Commits](https://github.com/juliencrn/usehooks-ts/compare/usehooks-ts@2.4.2...usehooks-ts@2.5.4)

---
updated-dependencies:
- dependency-name: usehooks-ts
  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-06-02 00:29:58 +00:00
dependabot[bot]anddependabot-fix 8eee623a34 build(deps): bump sass from 1.51.0 to 1.52.1 (#834)
* build(deps): bump sass from 1.51.0 to 1.52.1

Bumps [sass](https://github.com/sass/dart-sass) from 1.51.0 to 1.52.1.
- [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.51.0...1.52.1)

---
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-06-02 00:06:20 +00:00
dependabot[bot] 51fa97b55c Merge pull request #833 from pybricks/dependabot/npm_and_yarn/shopify/react-i18n-7.1.2
build(deps): bump @shopify/react-i18n from 6.3.13 to 7.1.2
2022-06-01 18:54:31 -05:00
dependabot[bot]anddependabot-fix 5ad0da8c14 build(deps): bump dotenv from 10.0.0 to 16.0.1 (#832)
* build(deps): bump dotenv from 10.0.0 to 16.0.1

Bumps [dotenv](https://github.com/motdotla/dotenv) from 10.0.0 to 16.0.1.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v10.0.0...v16.0.1)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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-06-01 23:53:09 +00:00
4b38363b79 build(deps): bump react-redux from 7.2.6 to 8.0.2 (#831)
* build(deps): bump react-redux from 7.2.6 to 8.0.2

Bumps [react-redux](https://github.com/reduxjs/react-redux) from 7.2.6 to 8.0.2.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/react-redux/compare/v7.2.6...v8.0.2)

---
updated-dependencies:
- dependency-name: react-redux
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* [dependabot skip] Fix yarn.lock

* yarn: remove @types/react-redux

This is no longer needed since react-redux 8.

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@lechnology.com>
2022-06-01 23:31:48 +00:00
David Lechner 0362857c0d webpack: drop eslilnt baseConfig
This causes building with webpack to behave differently than building
without. Also since updating eslint packages, this now causes a build
error because it conflicts with the .eslintrc.js file with regard to
the "react" plugin.
2022-06-01 18:03:15 -05:00
David Lechner 83132ad34b package.json: restore browserList
This reverts a workaround from long ago that should no longer be needed.
2022-06-01 18:03:15 -05:00
David Lechner 691783e3f8 yarn: update linters 2022-06-01 18:03:15 -05:00
David Lechner b57e716f9f yarn: fix duplicate eslint dep 2022-06-01 18:03:15 -05:00
David Lechner f67aa19e6c github: specify directory for codecov 2022-06-01 18:03:15 -05:00
David Lechner cbdbaf7903 github: switch to codecov 2022-06-01 16:00:24 -05:00
dependabot[bot] b342daa0d6 Merge pull request #799 from pybricks/dependabot/npm_and_yarn/testing-library/jest-dom-5.16.4
build(deps): bump @testing-library/jest-dom from 5.16.3 to 5.16.4
2022-06-01 15:01:43 -05:00
David Lechner 9e15927fa4 README: add link to CI status badge 2022-06-01 15:00:43 -05:00
dependabot[bot]anddependabot-fix b40a02fa02 build(deps): bump @blueprintjs/popover2 from 0.13.0 to 1.3.0 (#821)
* build(deps): bump @blueprintjs/popover2 from 0.13.0 to 1.3.0

Bumps [@blueprintjs/popover2](https://github.com/palantir/blueprint/tree/HEAD/packages/core) from 0.13.0 to 1.3.0.
- [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.3.0/packages/core)

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

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-06-01 19:59:31 +00:00
dependabot[bot] 0dbfb4cd5e Merge pull request #822 from pybricks/dependabot/npm_and_yarn/blueprintjs/core-4.4.0
build(deps): bump @blueprintjs/core from 3.53.0 to 4.4.0
2022-06-01 14:44:06 -05:00
David Lechner 1931912450 github: don't run CodeQL on depedenabot 2022-06-01 14:37:25 -05:00
dependabot[bot]anddependabot-fix 3b691d0985 build(deps): bump dexie from 3.2.1 to 3.2.2 (#824)
* build(deps): bump dexie from 3.2.1 to 3.2.2

Bumps [dexie](https://github.com/dfahlander/Dexie.js) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/dfahlander/Dexie.js/releases)
- [Commits](https://github.com/dfahlander/Dexie.js/compare/v3.2.1...v3.2.2)

---
updated-dependencies:
- dependency-name: dexie
  dependency-type: direct:production
...

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-06-01 14:27:56 -05:00
David Lechner 35b60be7d7 github: add workaround for yarn v2+ and dependabot
dependabot only supports yarn v1, so updates are broken
2022-06-01 14:08:08 -05:00
David Lechner e43610f6ae CHANGELOG: add links for issues
Issue: https://github.com/pybricks/support/issues/418
Issue: https://github.com/pybricks/support/issues/465
2022-06-01 14:08:08 -05:00
David Lechner b9465d8dac Merge pull request #823 from pybricks/dlech
multi-file support
2022-06-01 13:34:54 -05: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 64cf4821b1 CHANGELOG: update for multi-file support 2022-06-01 13:12:25 -05:00
David Lechner f0fbd6fa96 Merge branch 'master' into dlech 2022-06-01 13:02:44 -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 9cdd102477 webpack: ignore warning about main.js size 2022-06-01 11:20:12 -05:00
David Lechner 6386c90068 yarn: add source map explorer
https://create-react-app.dev/docs/analyzing-the-bundle-size/
2022-06-01 10:15:30 -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
David Lechner 0a89198f5c activities: fix potential control overflow 2022-05-21 14:16:55 -05:00
David Lechner a3e55c828a move useI18n to i18n.ts
Since we are using the react-i18n babel loader plugin, useI18n can only
be used once per file. Also we have to remember to add the istanbul
ignore next comment each time we use it. By moving this to a common
file, it can be easily copied and pasted when a new submodule is
created and we don't have to remember the rules when calling it.
2022-05-21 13:57:58 -05:00
David Lechner e7366c8afd rework alerts
This starts moving alerts to the same subsystem where they are relevant
instead of putting everything in notifications.

So far, only the explorer file in use error is handled like this.
2022-05-20 19:25:18 -05:00
David Lechner 4e88605b16 utils/customError: narrow type of name property
The name property is inherited from Error and has a type of string.
But our CustomError ensures that the name is restricted to the type
of T. This causes compiler errors, so we had to enable a babel plugin
to support it.
2022-05-20 16:46:17 -05:00
David Lechner 348d6e90d9 add CustomError class
This will be used for throwing errors that can be caught and handled without having to parse the message.
2022-05-20 11:13:55 -05:00
David Lechner 8b6939a983 utils: extract acquireLock function from fileStorage 2022-05-19 12:03:10 -05:00
David Lechner 3dc03f3879 editor: save file to correct path
previously, all files were being saved as main.py
2022-05-19 10:44:31 -05:00
David Lechner 057ba4bab9 spelling 2022-05-18 18:21:01 -05:00
David Lechner d02e38795b editor/sagas: fix error creating model on hot reload 2022-05-18 17:47:29 -05:00
David Lechner 325562996b replace useUniqueId() with useId()
there should only be one way to do a thing...
2022-05-18 17:16:32 -05:00