Commit Graph
199 Commits
Author SHA1 Message Date
David Lechner c8d499e979 drop notification for service worker success action
This isn't particularly useful information.
2021-01-18 17:44:26 -06:00
David Lechner da298ab565 add some tests for notification sagas 2021-01-18 17:29:04 -06:00
David Lechner f72c6ad5de rename app startup action using do/did pattern 2021-01-18 17:29:03 -06:00
David Lechner 54439a4cbc convert notifications to static API
This converts notifications from a reducer to a saga. This way, our
state doesn't get bogged down with a bunch of notifications.
2021-01-18 17:29:03 -06:00
David Lechner fc6ee4ff78 disable selecting (outside of editor and terminal) 2021-01-18 17:29:03 -06:00
David Lechner 43cc1bce1c make "BETA" watermark depend on app version 2021-01-18 17:29:03 -06:00
David Lechner ff34e5b01b Add version in about dialog 2021-01-18 17:29:03 -06:00
Laurens Valk 8246bad1e8 add link to example projects 2021-01-18 15:10:02 +01:00
David Lechner 8c1e9a8273 implement license saga tests 2021-01-17 14:59:03 -06:00
David Lechner deac69fdab switch to license-webpack-plugin
This package is a bit more versatile. For example, it lets us include
the app's package too.

webpack-license-plugin had a bug that made it unusable anyway.
2021-01-17 13:11:47 -06:00
David Lechner 1626533cca add license dialog 2021-01-17 10:39:38 -06:00
David Lechner 4b63a80f80 style scroll bars
This makes scroll bars in Chrome look more like Firefox and blend in
better with the app.
2021-01-17 10:20:19 -06:00
David Lechner b15d00f797 add help links 2021-01-15 16:07:11 -06:00
David Lechner 355d09ea31 better styling of about button 2021-01-15 14:39:39 -06:00
David Lechner 28830dd3d2 add icon to about dialog 2021-01-15 14:34:00 -06:00
David Lechner 1e3c0b05ef use proper variables for bp3 namespace 2021-01-15 14:02:13 -06:00
David Lechner a23c0aaede increase blueprintsjs font size overall
removes need for special handling in settings
2021-01-15 13:48:11 -06:00
David Lechner dcb432583c add basic about dialog 2021-01-15 12:51:52 -06:00
David Lechner efb474b727 rename service worker actions to do/did pattern 2021-01-15 11:23:26 -06:00
David Lechner f54beab97f use consistent tooltip delay 2021-01-15 11:08:04 -06:00
David Lechner a66331840c remove unused app.action.toggleDocs 2021-01-15 10:57:37 -06:00
David Lechner b38a47f4e6 use os detection for initial dark mode setting 2021-01-15 10:54:57 -06:00
Bert 8f71ace56d Fix for pybricks/support#213 (#243)
Fix Code completion for "try:" snippets have a syntax error pybricks/support#213
2021-01-15 10:13:05 -06:00
Laurens Valk 5da4b7f98c update flash button text
Make it clearer what it is / why you want to do this
2021-01-15 10:58:53 +01:00
Laurens Valk 0ed5a06900 simplify menu wording 2021-01-15 10:51:35 +01:00
David Lechner 51fc1ddce0 add tooltips to settings 2021-01-14 18:22:29 -06:00
David Lechner f4cb69f995 add setting to flash current user program 2021-01-14 18:03:04 -06:00
David Lechner 9ee24d0b0c add help with zoom 2021-01-14 17:16:09 -06:00
David Lechner eba2239610 make settings group label bigger and bolder 2021-01-14 16:45:08 -06:00
David Lechner 2f57ae2f57 split scss into separate files 2021-01-14 16:35:23 -06:00
David Lechner 25c0d104a9 convert macOS check to utility function 2021-01-14 15:25:57 -06:00
David Lechner a48f3f381e convert settings to do/did action pattern 2021-01-14 15:12:49 -06:00
David Lechner b15b2e1dea move docs toggle to settings 2021-01-14 10:55:00 -06:00
David Lechner d7dbaaa12d add dark mode setting 2021-01-11 23:36:48 -06:00
David Lechner 41a1cee092 change support button to settings button
and add new empty settings drawer
2021-01-11 23:36:48 -06:00
David Lechner fedef66931 replace doc icon with question mark 2021-01-11 23:36:48 -06:00
David Lechner 4923ca3759 change button grouping 2021-01-11 23:36:48 -06:00
David Lechner 69e52be259 remove wasm file extension rename workaround
This modifies the webpack config instead of renaming the .wasm file
to workaround default webpack behavior regarding import .wasm files.
2021-01-11 16:47:49 -06:00
David Lechner 2342023f71 use craco
This lets us modify some config without ejecting create-react-app.

This allows us to target esnext which works around a number of issues
with multi-targeted packages like blueprintsjs and react-i18n.
2021-01-08 18:05:51 -06:00
David Lechner 7fc5142924 fix use of private type in i18n 2021-01-08 17:27:47 -06:00
David Lechner ae996453e8 drop polyfill for chromimum < v85
This removes the polyfill for using older chrome browsers before the
writeWithResponse and writeWithoutResponse APIs were added.
2020-12-21 13:05:47 -06:00
David Lechner 223947a16e Merge branch 'master' into dlech 2020-12-18 14:17:37 -06:00
David Lechner 32f2120ec6 fix timeout when firmware size is 10x packet size
When the firmware blob is exactly a multiple of 10 times the packet
size, the last checksum request causes the reply to the last program
request to be missed (there is only a response from the hub to the very
last program request). The program response is received, then the
checksum response is received. Since the saga is waiting for the
checksum response first, the program response is discarded.

Fix by breaking out of the loop when the firmware has been fully
transferred before making the checksum request.

Fixes: pybricks/support#178
2020-12-18 14:09:54 -06:00
Andreas Litt de237b13f9 remove stickiness of toolbar to avoid breaking the layout
clicking on a link with a URI fragment (e.g. https://docs.pybricks.com/en/latest/parameters.html#pybricks.parameters.Port)
inside the documentation iframe breaks the layout.
The browser seems to force the parent frame to scroll to the position as well.
As the toolbar is fixed, the rest of the content is scrolled under it.
Rerendering after the link click fixes the layout (at least if done manually).
But a more elegant solutions is to remove the absolute positioning of the toolbar.
It is not really necessary to pin it, as the rest of the layout always
spans over the complete width and height of the browser window.
2020-12-13 21:58:08 +01:00
David Lechner 0cf3aad910 Add keyboard shortcuts to action buttons
Just run and stop button have keys assigned for now.
2020-12-10 21:37:21 -06:00
David Lechner 113243828f add snippets for primehub and inventor hub 2020-12-10 16:59:37 -06:00
David Lechner 98feab2555 All CTRL+V in terminal
Fixes https://github.com/pybricks/support/issues/172
2020-12-10 16:28:43 -06:00
David Lechner 91fbea13f4 fix terminal losing focus after opening context menu
Fixes https://github.com/pybricks/support/issues/170
2020-12-10 15:14:39 -06:00
David Lechner 6852d56316 fix service worker after update to create-react-app 4
https://github.com/facebook/create-react-app/issues/9776
2020-11-20 22:11:07 -06:00
David Lechner 4ee50072a0 Update firmware to v3.0.0a11
Also take advantage of new helper functions in firmware package.
2020-11-20 21:08:53 -06:00