dependabot[bot] and David Lechner
9be97c7fdd
build(deps-dev): bump prettier from 2.8.1 to 2.8.2 ( #1426 )
...
* build(deps-dev): bump prettier from 2.8.1 to 2.8.2
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.1...2.8.2 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* yarn lint
Fixes breaking changes in eslint.
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 >
2023-01-09 15:28:56 +00:00
David Lechner
5330821a96
pybricksMicropython: use new PythonError type property
...
This was introduced in Pyodide 0.22 and saves us from having to parse
the message for the type.
Could also affect https://github.com/pybricks/support/issues/772 (but
there is no known reproducible case to check it).
2023-01-04 11:20:52 -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
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.
2022-12-28 17:23:59 -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
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
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
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
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
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
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
David Lechner
25231012f6
firmware: consolidate back/next button props
...
This reduces duplicate code and fixes "Back" not being translated on
the last step.
2022-12-20 12:28:06 -06:00
David Lechner
56dbf57e25
firmware/dfuWindowsDriverInstallDialog: update notListed text
...
https://github.com/pybricks/pybricks-code/pull/1394#discussion_r1053615293
2022-12-20 12:16:49 -06:00
David Lechner
0c1fd4d30b
firmware/dfuWindowsDriverInstallDialog: add Back button translation
2022-12-20 12:15:54 -06:00
David Lechner
dd322b5aac
tree-wide: use noopener instead of noreferrer for target="_blank"
...
This will allow us to see when users click links to the pybricks.com
website from the app.
2022-12-20 12:09:04 -06:00
Laurens Valk
7277ddb1bd
firmware/dfuWindows: Split properties step.
...
There may be one of three situations, so split to a bullet list.
Also update a few other strings.
2022-12-20 12:09:04 -06:00
Laurens Valk
a7a0f5221b
firmware/alerts: Show correct instructions for Linux.
...
Also link to pybricks website for udev rules instead.
2022-12-20 12:09:04 -06:00
Laurens Valk
b6575c5724
firmware/alerts: Add button to install USB driver.
2022-12-20 12:09:04 -06:00
David Lechner
5d3c74b777
firmware/dfuWindowsDriverInstallDialog: move instructions in app
...
This replaces the link for Windows DFU USB driver installation
instructions with a new in-app dialog containing the instructions.
Fixes: https://github.com/pybricks/support/issues/858
2022-12-19 15:17:31 -06:00
David Lechner
7b9509dbf0
utils/tree-renderer: drop react-complex-tree workaround
...
This bug was fixed in react-complex-tree v2.0.1.
2022-12-19 15:17:31 -06:00
David Lechner
f4598db3a4
use console.error instead of console.log for unexpected errors
2022-12-17 14:04:12 -06:00
David Lechner
b8a1c70536
editor: remove console.log
...
This was from debugging and was missed.
2022-12-17 14:04:12 -06:00
David Lechner
9d71bb4734
eslint: enable react-hooks checks
...
Also fix all errors, which can lead to subtile bugs.
Mostly fixings deps and refactoring to make typescript happy.
2022-12-17 13:56:01 -06:00
David Lechner
ee466ac904
yarn: update react-complex-tree to v2.0.0
...
Includes fixes for breaking changes.
2022-12-17 12:05:52 -06:00
Laurens Valk
8b3fa29f65
firmware/installPybricksDialog/translations: Copy edit.
...
This was missed earlier.
2022-12-17 10:31:40 +01:00
David Lechner
0cb585b3e7
Revert "yarn: update react-complex-tree to v2.0.0"
...
This reverts commit f0434b50ed .
This requires react >= v18
2022-12-16 18:12:23 -06:00
David Lechner
f560370b51
explorer: fix file tree label
2022-12-16 17:54:36 -06:00
David Lechner
f0434b50ed
yarn: update react-complex-tree to v2.0.0
2022-12-16 17:54:36 -06:00
David Lechner
8d05a73770
editor: fix aria labels on tablist and tabpanel
2022-12-16 17:54:36 -06:00
David Lechner
0b84b825b6
fileStorage/hooks: fix deps on useFileStorageUuid
...
This way if the path changes, we get the correct result.
2022-12-16 17:54:36 -06:00
David Lechner
78b962d397
fileStorage/hooks: fix deps on useFileStoragePath
...
This way, if uuid changes, we get the correct result.
2022-12-16 17:54:36 -06:00
David Lechner
b38c302d7a
activities: fix aria-label on tablist
...
For some reason the compiler didn't give an error even though aria-label
was not a valid property.
2022-12-16 17:54:36 -06:00
David Lechner
017fe81c43
status-bar: code completion status button role
2022-12-16 17:54:36 -06:00
David Lechner
7b8970e90f
toolbar: add label for a11y
2022-12-16 17:54:36 -06:00
David Lechner
9e62259845
toolbar/ActionButton: use aria-disabled
...
Since buttons are only styled as disabled, we need to use aria-disabled
to tell screen readers that the button is disabled.
2022-12-16 17:54:36 -06:00
David Lechner
dc27d45f20
editor: hide welcome logo from screen readers
...
The welcome logo/animation is just for fun/looks so screen readers
don't need to know about it.
2022-12-16 17:54:36 -06:00