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
a5bbe243b8
yarn: upgrade react and react-dom and dedupe
2022-12-16 18:44:27 -06: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
David Lechner
eb4dff4972
explorer: focus file tree when empty area clicked
...
This adds an event listener to catch focus events when clicking the
empty area below the file list. Users intuitively expect this to focus
the file list.
Fixes: https://github.com/pybricks/support/issues/856
2022-12-16 17:54:36 -06:00
David Lechner
d00297f53b
app: drop focus-within styling
...
This ended up causing dual focus rings which goes against ARIA recommendations.
2022-12-16 17:54:36 -06:00
David Lechner
a7c6f7abb1
toolbar: fix not focusing first button
...
This was missed in 85deb42f when the flash button was removed.
2022-12-16 17:54:36 -06:00
David Lechner
2810088889
app: add empty alternate to icons in scss
...
We are using font icons, so we don't want screen readers to try to read
them.
2022-12-16 17:54:36 -06:00
David Lechner
9944725be6
app: use aria landmark roles
...
This add use of the main and complementary roles (via semantic html
elements main and aside) to make it easy for assistive technologies
to jump to the major components of the app.
2022-12-16 17:54:36 -06:00
David Lechner
10079a4d14
terminal: exclude from keyboard tab focus
...
Since the terminal "steals" the tab key, we don't want to include it
in the keyboard tab list. It is still mouse focusable and we will
implement an landmark role for the terminal for assistive technologies.
2022-12-16 17:54:36 -06:00
David Lechner
b7a9c20cfe
app: remove use of deprecated iframe frameborder property
...
The recommended way to do this is to use style sheets instead.
2022-12-16 17:54:36 -06:00
David Lechner
303e768168
toolbar/ActionButton: improve focus ring visibility
...
Since the button and the focus ring are both blue, we need a gap in
order to have enough contrast to see the focus ring.
2022-12-16 17:54:36 -06:00
David Lechner
b85945ab1d
installPybricksDialog: fix heart icon
...
Use actual icon instead of unicode character. This way it renders the
same on all OSes.
2022-12-16 17:54:36 -06:00
Laurens Valk
1664a9d342
index.html: Add open graph tags.
2022-12-16 12:23:53 -06:00
Laurens Valk
a7f354a0d0
index.html: Update meta content.
...
Fixes https://github.com/pybricks/support/issues/845
2022-12-16 12:23:53 -06:00
Laurens Valk
6bc4dbbe99
toolbar/buttons: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
9ceaeee739
firmware/installPybricksDialog: Make heart icon variable.
2022-12-15 14:59:36 -06:00
Laurens Valk
4a9f2931d4
firmware/bootloaderInstructions: Group instruction steps.
2022-12-15 14:59:36 -06:00
Laurens Valk
e606887319
firmware/bootloaderInstructions: Simplify scss.
2022-12-15 14:59:36 -06:00
Laurens Valk
c84d862a57
firmware/alerts: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
67f05a580d
firmware/bootloaderInstructions: Pass flashButtonText directly.
2022-12-15 14:59:36 -06:00
Laurens Valk
525faa1670
settings: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
3286e4e20b
notifications: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
231fbbadeb
mpy/alerts: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
3648da6942
firmware/bootloaderInstructions: Copy edit battery instruction.
2022-12-15 14:59:36 -06:00
Laurens Valk
390cf235de
firmware/bootloaderInstructions: Keep counting instructions.
...
This ensures the instruction step counter does not reset after a heading.
2022-12-15 14:59:36 -06:00
Laurens Valk
d303e28756
firmware/bootloaderInstructions: Edit unsupported hubs.
2022-12-15 14:59:36 -06:00
Laurens Valk
8aa82eee46
firmware/bootloaderInstructions: Refactor.
...
- Use steps for the connection procedure
- Use categories (To do: consider making numbering consecutive)
- Show hub bootloader device name explicitly
- List official app to use for recovery (make V2/V3 explicit)
- Copy edit
Also fix the layout (class) of the installation panel to make it consistent with the style of the recovery panel.
2022-12-15 14:59:36 -06:00
Laurens Valk
560da418e0
firmware/bootloaderInstructions/translations: Add prepare section.
...
Since there are up to three things to prepare, it is better to start the
list with that. We can still keep a separate section for points that match the video.
2022-12-15 14:59:36 -06:00
Laurens Valk
2864fa93be
firmware/alerts/translations: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
3e56a6b493
editor/translations: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
97ea2b1ac7
ble/alerts/translations: Copy edit.
2022-12-15 14:59:36 -06:00
Laurens Valk
dd7f13d33f
tour/translations: Copy edit.
2022-12-15 14:59:36 -06:00
dependabot[bot]
ea90b5c728
build(deps): bump @shopify/react-i18n from 7.5.0 to 7.5.1 ( #1376 )
...
Bumps [@shopify/react-i18n](https://github.com/Shopify/quilt/tree/HEAD/packages/react-i18n ) from 7.5.0 to 7.5.1.
- [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.5.1/packages/react-i18n )
---
updated-dependencies:
- dependency-name: "@shopify/react-i18n"
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-15 06:38:56 +00:00
dependabot[bot]
a28bf0088a
build(deps): bump css-loader from 6.7.2 to 6.7.3 ( #1375 )
...
Bumps [css-loader](https://github.com/webpack-contrib/css-loader ) from 6.7.2 to 6.7.3.
- [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.2...v6.7.3 )
---
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-12-15 06:15:59 +00:00
dependabot[bot]
c8002ace05
build(deps-dev): bump @typescript-eslint/parser from 5.46.0 to 5.46.1 ( #1373 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.46.0 to 5.46.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.46.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-13 06:22:02 +00:00
dependabot[bot]
fd269cbb97
build(deps-dev): bump @typescript-eslint/eslint-plugin ( #1372 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.46.0 to 5.46.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.46.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-13 06:12:09 +00:00
dependabot[bot]
848b06b14b
build(deps): bump postcss from 8.4.19 to 8.4.20 ( #1371 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.19 to 8.4.20.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.19...8.4.20 )
---
updated-dependencies:
- dependency-name: postcss
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-12 06:16:44 +00:00
David Lechner
6e8e597e70
Merge pull request #1370 from pybricks/dlech
...
Release
2022-12-09 16:51:33 -06:00