Commit Graph
1040 Commits
Author SHA1 Message Date
David Lechner a35ec8b91e Merge pull request #699 from pybricks/dlech
refactoring, bug fixes and features
2021-12-27 13:10:01 -06:00
David Lechner 8d4680ba82 status-bar: add connected hub indicator
This adds an indicator to the status bar that shows the hub name. When
clicked, a popover will be displayed that lists more detailed information
about the connected hub.
2021-12-27 13:04:13 -06:00
David Lechner 78dd03d80f ble-device-info-service/protocol: document PnP ID
This explains the Pybricks-specific usage of the PnP ID fields.
2021-12-27 12:38:51 -06:00
David Lechner 5f7a63fe5a ble-lwp3-service/protocol: add enums for hub types
This is the full list of hub types.
2021-12-27 12:38:51 -06:00
David Lechner 0759a0878f editor: add newlines to end of template 2021-12-27 12:38:51 -06:00
David Lechner 0cc577faad editor: add Essential hub snippet 2021-12-27 12:38:51 -06:00
David Lechner ade06ab2cc ble: add id and name to didConnect action 2021-12-27 12:38:51 -06:00
David Lechner e92d5c1511 ble-device-info-service: add actions
This adds actions that are triggered when the device info service
characteristics are read.
2021-12-27 12:38:51 -06:00
David Lechner 6a9e867fe9 ble-pybricks-service: rename statusReportEvent
New name is didReceiveStatusReport which is more consistent with existing
naming patterns.
2021-12-27 12:38:51 -06:00
David Lechner 09b46ed5be toolbar: make buttons scale with screen size
This is very basic, just 2 sizes. But it makes things a bit better
on phones.

Fixes: https://github.com/pybricks/support/issues/300
2021-12-27 12:38:51 -06:00
David Lechner dfa497fcf6 toolbar: drop no-box-shadow
This is now applied to all descendets of pb-toolbar so we don't need the
utility class.
2021-12-27 12:38:51 -06:00
David Lechner 6d0e97f50e app: fix pb-app div size and background color 2021-12-27 12:38:51 -06:00
David Lechner b3db3d9efc app: move docs to sepate comonent
The docs iframe is quite complex, so move it to a separate component to
improve readability.
2021-12-27 12:38:51 -06:00
David Lechner dd0782e8b4 notifications: fix use of deprecated types 2021-12-27 12:38:51 -06:00
David Lechner f704d4d612 editor: use file system api for save as
This makes use of the new web file system api for a better user
experience when saving a file. It now shows a proper save as dialog
instead of just downloading the file automatically.

Fixes: https://github.com/pybricks/support/issues/84
2021-12-27 12:38:51 -06:00
David Lechner 653c03404d utils: remove unused IContextMenuTargets
This is no longer used since refactoring to use function components.
2021-12-27 12:38:51 -06:00
David Lechner 5f3271aaea craco: fix env substitution for undefined variable
When an environment variable is not defined, `process.env` returns
`undefined` which was used literally as text. Fix by using an empty
string if `process.env` returns something falsy.

Fixes: https://github.com/pybricks/support/issues/560
2021-12-27 12:38:51 -06:00
David Lechner aea52d4ab6 tool-versions: update to node v14
This is in preperation of adding a depedency that requires node >= 14.
2021-12-27 12:38:51 -06:00
David Lechner 6dc4dcb2e5 toolbar: specify image width/height
This make the button the right size while waiting for the image to download.

Fixes: https://github.com/pybricks/support/issues/369
2021-12-27 12:38:50 -06:00
David Lechner 11e0fefb1d toolbar: use function form of Dropzone 2021-12-27 12:38:50 -06:00
David Lechner eb9ea2876e toolbar: remove unuse buttonRef in ActionButton 2021-12-27 12:38:50 -06:00
David Lechner 9be6ba3640 update to Tooltip2
Tooltip has been deprecated so trying out the new Tooltip2.
2021-12-27 12:38:50 -06:00
David Lechner 7c50582ca2 tool-versions: drop python
This is no longer needed since node-gyp version has been updated.

Python 3 is still required, just not a specific version.
2021-12-27 12:38:50 -06:00
David Lechner db7f3be222 utils: convert ExternalLinkIcon to function 2021-12-27 12:38:50 -06:00
David Lechner 534d3f80e6 toolbar: convert Toolbar to function 2021-12-27 12:38:50 -06:00
David Lechner 8cd014c2ab toolbar: convert OpenFileButton to function 2021-12-27 12:38:50 -06:00
David Lechner f3e179683e toolbar: convert ActionButton to function 2021-12-27 12:38:50 -06:00
David Lechner 4b19604fa9 terminal: convert Terminal to function component 2021-12-27 12:38:50 -06:00
David Lechner 5d201e61ae status-bar: convert StatusBar to function 2021-12-27 12:38:50 -06:00
David Lechner d5ad768122 notifications: use lambda syntax for components 2021-12-27 12:38:50 -06:00
David Lechner a58b30ed07 licenses: convert LicenseDialog to functions 2021-12-27 12:38:50 -06:00
David Lechner 57038360f4 hub/sagas: don't log to console in tests 2021-12-27 12:38:50 -06:00
David Lechner c9894de95e hub: convert StopButton to function 2021-12-27 12:38:50 -06:00
David Lechner f57bbdf8e2 hub: convert RunButton to function 2021-12-27 12:38:50 -06:00
David Lechner dbda94c33f hub: convert BluetoothButton to function 2021-12-27 12:38:50 -06:00
David Lechner f1f6b2076d firmware: convert FlashButton to function 2021-12-27 12:38:50 -06:00
David Lechner 0738046ab1 editor: conver SaveAsButton to function 2021-12-27 12:38:49 -06:00
David Lechner 384cb78a74 editor: convert OpenButton to function 2021-12-27 12:38:49 -06:00
David Lechner 476998030c editor: convert Editor to function component 2021-12-27 12:38:46 -06:00
David Lechner c29f879086 app: use lambda style for App function 2021-12-27 12:36:38 -06:00
David Lechner 650413d1fb about: convert AboutDialog to function 2021-12-27 12:36:38 -06:00
David Lechner e8a3026c43 settings: convert SettingsButton to function 2021-12-27 12:36:38 -06:00
David Lechner a1db455a66 settings: convert SettingsDrawer to function
This reduces boilerplate code.
2021-12-27 12:36:38 -06:00
dependabot[bot] f55bc919f6 build(deps): bump @types/node from 12.20.38 to 12.20.39
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.20.38 to 12.20.39.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-27 16:14:48 +00:00
dependabot[bot] 25bcc83c43 build(deps): bump @types/react-redux from 7.1.20 to 7.1.21
Bumps [@types/react-redux](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-redux) from 7.1.20 to 7.1.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-redux)

---
updated-dependencies:
- dependency-name: "@types/react-redux"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-24 16:16:45 +00:00
dependabot[bot] 4d87442402 build(deps): bump prop-types from 15.7.2 to 15.8.0
Bumps [prop-types](https://github.com/facebook/prop-types) from 15.7.2 to 15.8.0.
- [Release notes](https://github.com/facebook/prop-types/releases)
- [Changelog](https://github.com/facebook/prop-types/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/prop-types/compare/v15.7.2...v15.8.0)

---
updated-dependencies:
- dependency-name: prop-types
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-23 16:31:00 +00:00
dependabot[bot] 5b0b3786dc build(deps): bump xterm from 4.15.0 to 4.16.0
Bumps [xterm](https://github.com/xtermjs/xterm.js) from 4.15.0 to 4.16.0.
- [Release notes](https://github.com/xtermjs/xterm.js/releases)
- [Commits](https://github.com/xtermjs/xterm.js/compare/4.15.0...4.16.0)

---
updated-dependencies:
- dependency-name: xterm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-23 16:20:47 +00:00
dependabot[bot] 1f82dc0efb build(deps-dev): bump eslint-plugin-react from 7.27.1 to 7.28.0
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.27.1 to 7.28.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.1...v7.28.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-23 16:11:48 +00:00
dependabot[bot] ac511dc900 build(deps): bump @types/node from 12.20.37 to 12.20.38
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.20.37 to 12.20.38.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-21 16:12:12 +00:00
dependabot[bot] 77ac7743fa build(deps): bump @types/web-bluetooth from 0.0.11 to 0.0.12
Bumps [@types/web-bluetooth](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/web-bluetooth) from 0.0.11 to 0.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/web-bluetooth)

---
updated-dependencies:
- dependency-name: "@types/web-bluetooth"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-17 16:16:03 +00:00