Commit Graph
2162 Commits
Author SHA1 Message Date
dependabot[bot] 263488ae18 build(deps): bump react-complex-tree from 2.0.1 to 2.0.2 (#1417)
Bumps [react-complex-tree](https://github.com/lukasbach/react-complex-tree/tree/HEAD/packages/core) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/lukasbach/react-complex-tree/releases)
- [Commits](https://github.com/lukasbach/react-complex-tree/commits/2.0.2/packages/core)

---
updated-dependencies:
- dependency-name: react-complex-tree
  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>
2023-01-02 06:34:23 +00:00
dependabot[bot] 6801a1bc5c build(deps): bump @types/jest from 29.2.4 to 29.2.5 (#1416)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.2.4 to 29.2.5.
- [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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 06:24:26 +00:00
dependabot[bot] 3cb859983b build(deps-dev): bump eslint from 8.30.0 to 8.31.0 (#1415)
Bumps [eslint](https://github.com/eslint/eslint) from 8.30.0 to 8.31.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.30.0...v8.31.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  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>
2023-01-02 06:14:08 +00:00
David Lechner b18bb5e18a Merge pull request #1414 from pybricks/dlech
v2.1.0-beta.4
2022-12-30 16:21:46 -06:00
David Lechner 2de7803c77 v2.1.0-beta.4 v2.1.0-beta.4 2022-12-30 16:10:49 -06:00
David Lechner 62d7fdff36 editor/sagas: disable code completion trigger on space
This gets in the way when typing comments and often results in
accepting a completion that was not intended.

Fixes: https://github.com/pybricks/support/issues/894
2022-12-30 16:07:52 -06:00
David Lechner 7d5c9710e5 editor/sagas: fix signature trigger characters
The intended behavior is that comma should trigger signature help when
it is not showing. retrigger only triggers if already showing.
2022-12-30 16:04:48 -06:00
David Lechner d119cb564e editor: fix find widget z-index
When open, the find widget was visible above modal dialogs because
of z-index.
2022-12-30 14:08:36 -06:00
David Lechner ca50d60b2c app: fix vertical resizing issues
Some new issues with layout when resizing the browser window vertically
were caused either by recent xterm updates or other recent style changes.

This works around those issues.
2022-12-30 14:08:36 -06:00
David Lechner 594bd0495c Merge pull request #1412 from pybricks/dlech
2.1.0-beta.3
2022-12-28 17:34:34 -06:00
David Lechner 810ee362c6 editor/sagas: maintain jedi sort order
Now that jedi returns names that start with `_`, we need to make sure
they don't end up at the top of the list for completions.
v2.1.0-beta.3
2022-12-28 17:23:59 -06:00
David Lechner dfe1d3b721 v2.1.0-beta.3 2022-12-28 17:07:29 -06:00
David Lechner e153ffe295 pybricksMicropython: fix import completion for user module
The pybricks_jedi package was filtering on only pybricks modules but
now has a feature to amend the filter to include user modules.

Fixes: https://github.com/pybricks/support/issues/759
2022-12-28 17:04:23 -06:00
David Lechner a981bcbda2 editor/pybricksMicroPython: fix numeric literal highlighting
This was picking up leading underscores, e.g. the first `__` in
`__name__`.
2022-12-28 16:40:43 -06:00
David Lechner 2f14fde584 package: update @pybricks/jedi to v1.7.0 2022-12-28 16:20:03 -06:00
David Lechner 74f1619eb3 app: fix clipping of editor popups
Editor popups like the ones for code completion were getting clipped
by the layout pane containers.
2022-12-27 17:35:11 -06:00
David Lechner 1482e9f197 editor/pybricksMicroPython: add constant formatting 2022-12-27 17:35:11 -06:00
David Lechner 098c8e60ab editor/pybricksMicroPython: add Side to hub template
This is included in pybricks.parameters on all hubs.
2022-12-27 17:35:11 -06:00
David Lechner 43a6f63eaf editor/pybricksMicroPython: improve f-string highlighting
Fixes: https://github.com/pybricks/support/issues/875
2022-12-27 17:35:11 -06:00
David Lechner 5bef7e2637 editor/pybricksMicroPython: improve operator highlighting
This handles newer things like the := operator better.
2022-12-27 17:35:11 -06:00
David Lechner 1db0c48844 editor/pybricksMicroPython: improve numeric literal highlighting
- Drop Python 2.x "L" suffix.
- Add support for underscores.
- Drop including leading minus sign.
- Add support for binary.
- Add support for octal.
2022-12-27 17:35:11 -06:00
dependabot[bot] ac2d06204c build(deps-dev): bump @typescript-eslint/eslint-plugin (#1410)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.47.0 to 5.47.1.
- [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.47.1/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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-27 06:21:38 +00:00
dependabot[bot] 5a46ff6834 build(deps-dev): bump @typescript-eslint/parser from 5.47.0 to 5.47.1 (#1409)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.47.0 to 5.47.1.
- [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.47.1/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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-27 06:11:14 +00:00
David Lechner 8dd0cb8c54 Merge pull request #1408 from pybricks/dlech
v2.1.0-beta.2
2022-12-26 09:49:26 -06:00
David Lechner e5154013c3 v2.1.0-beta.2 v2.1.0-beta.2 2022-12-26 09:39:06 -06:00
David Lechner 212a3c85ff package.json: update @pybricks/firmware@6.6.0 2022-12-26 09:36:24 -06:00
dependabot[bot] 6071bfe59d build(deps): bump @testing-library/dom from 8.19.0 to 8.19.1 (#1407)
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library) from 8.19.0 to 8.19.1.
- [Release notes](https://github.com/testing-library/dom-testing-library/releases)
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v8.19.0...v8.19.1)

---
updated-dependencies:
- dependency-name: "@testing-library/dom"
  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-12-26 06:15:06 +00:00
David Lechner 578a6afeab Merge pull request #1406 from pybricks/dlech
v2.1.0-beta.1
2022-12-23 11:10:32 -06:00
David Lechner 90b7c2256e v2.1.0-beta.1 v2.1.0-beta.1 2022-12-23 10:54:04 -06:00
dependabot[bot]andDavid Lechner b33677a162 build(deps): bump @babel/core from 7.20.5 to 7.20.7 (#1405)
* build(deps): bump @babel/core from 7.20.5 to 7.20.7

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

* 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-12-23 16:17:35 +00:00
dependabot[bot] fc395415c7 build(deps): bump canvas from 2.10.2 to 2.11.0 (#1404)
Bumps [canvas](https://github.com/Automattic/node-canvas) from 2.10.2 to 2.11.0.
- [Release notes](https://github.com/Automattic/node-canvas/releases)
- [Changelog](https://github.com/Automattic/node-canvas/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/node-canvas/compare/v2.10.2...v2.11.0)

---
updated-dependencies:
- dependency-name: canvas
  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-12-23 06:12:36 +00:00
David Lechner d5bcb8c758 package: bump @pybricks/python-program-analysis to v2.0.0
This includes fixes for parsing additional Python syntax features
added since Python 3.4 that are implemented by MicroPython.
2022-12-22 18:01:27 -06:00
David Lechner bb2fa3ae1d package: switch to @pybricks/python-program-analysis
The package we were using was only for Python 3.4 and didn't include
async/await which broke imports in any script that used async/await.

Fixes: https://github.com/pybricks/support/issues/873
2022-12-22 13:21:02 -06:00
David Lechner a77acc1001 firmware/bootloaderInstructions: hide video from tests
The video element makes a bunch of noise (console.error) in tests.
2022-12-22 13:21:02 -06:00
David Lechner f083ad84ef pybricksMicropython/lib: log parser errors
This makes it easier for users to diagnose errors.

Issue: https://github.com/pybricks/support/issues/873
2022-12-22 13:21:02 -06:00
Laurens Valk 44512c9533 firmware/bootloaderInstructions: Clarify hold button text. 2022-12-22 10:20:37 -06:00
David Lechner 48b99cb3a5 public/manifest: change display to "standalone"
"fullscreen" is for immersive apps like games (and is only available
on Android currently which is why we didn't notice the app going
fullscreen on desktop).

Fixes: https://github.com/pybricks/support/issues/867
2022-12-21 20:27:21 -06:00
David Lechner b255a145e3 components/ViewHeightSensor: remove view height sensor
This appears to no longer be necessary for correct app height on Android.
2022-12-21 19:44:11 -06:00
David Lechner 27b8b1e428 editor: fix iOS keyboard button position 2022-12-21 19:44:11 -06:00
David Lechner fc695b5b88 package: update xterm to v5.1.0
This updates xterm and the fit addon. (the dependabot update for v5.1.0
alone broke scrolling but it seems to be fixed with the fit addon update).
2022-12-21 16:28:17 -06:00
David Lechner 64b6251c1a terminal: add audio/visual feedback when no user program
Characters typed into the terminal are only sent to the hub when a user
program is running. This provides audio and visual feedback to indicate
to the user that keystrokes have no effect when the user program is not
running.
2022-12-21 16:28:17 -06:00
David Lechner 808e6c0e85 firmware/bootloaderInstructions: use ol count attribute
Using styles for changing list starting numbers doesn't have good
cross-browser support. We can set the start count using the start
attribute of the ol element instead.

Issue: https://github.com/pybricks/support/issues/868
2022-12-21 16:28:17 -06:00
David Lechner 8c801adda5 Merge pull request #1397 from pybricks/dlech
v2.0.1
2022-12-21 13:43:44 -06:00
David Lechner ef81bb2341 v2.0.1 v2.0.1 2022-12-21 13:27:33 -06:00
David Lechner 23db8f4d9b terminal: fix input handler loop getting stuck
When no hub is connected, the terminal input handler loop would get
stuck waiting for didWrite or didFailToWrite which would never come
because handleWriteUart in ble/sagas only runs when a hub is connected.

This is fixed by only dispatching a write action if a user program is
running on the hub. By using this state, it also fixes characters being
buffered before the user program starts, e.g.

- connect hub
- type into terminal - no echo
- start the repl
- previously typed characters are echoed after the repl prompt

Now, anything typed before the user program is just ignored.

Fixes: https://github.com/pybricks/support/issues/865
Also properly fixes https://github.com/pybricks/support/issues/303
2022-12-21 12:40:47 -06:00
David Lechner a12ae333f6 yarn: revert xterm to 5.0.0
xterm v5.1.0 broke scrolling so we lock in v5.0.0 for now.
2022-12-21 12:40:47 -06:00
David Lechner 2f4811e742 Merge pull request #1396 from pybricks/dlech
v2.0.0
2022-12-20 15:54:20 -06:00
David Lechner 49e9606321 v2.0.0 v2.0.0 2022-12-20 15:39:26 -06:00
David Lechner 358e893ec6 package: update @pybricks/firmware to v3.2.0 2022-12-20 15:39:26 -06:00
David Lechner b366f777ca tree-wide: fix version comparison
We were using satisfies in a few places where we should have just been
using a comparison operator.
2022-12-20 15:39:26 -06:00