David Lechner
af964c04b4
use fake redux store in component tests
2021-02-01 10:26:06 -06:00
David Lechner
4b6817d9ad
drop use of decorator for editor context menu
2021-02-01 10:26:06 -06:00
David Lechner
6ccb77a5ad
add test for snippets
2021-02-01 10:26:06 -06:00
David Lechner
4c5adc20e7
add tests for AboutDialog
2021-02-01 10:26:06 -06:00
David Lechner
36596e9a00
add tests for StatusBar
2021-02-01 10:26:06 -06:00
David Lechner
2955fe1f24
add tests for lwp3-bootloader reducers
2021-02-01 10:26:06 -06:00
David Lechner
922dee31c2
add tests for licenses reducers
2021-02-01 10:26:05 -06:00
David Lechner
b7061f63b4
add tests for firmware reducers
2021-02-01 10:26:05 -06:00
David Lechner
6ed5dca8ce
add tests for editor reducers
2021-02-01 10:26:05 -06:00
David Lechner
bf2bb5e81d
add a failed to disconnect action
2021-02-01 10:26:05 -06:00
David Lechner
d3e67950a6
add tests for ble reducers
2021-02-01 10:26:05 -06:00
David Lechner
ad6e2b73cc
make settings open/close local
2021-02-01 10:26:05 -06:00
David Lechner
dd951bd4fc
make about dialog open/close local
2021-02-01 10:26:05 -06:00
David Lechner
89523b3915
make license dialog state local
2021-02-01 10:26:05 -06:00
David Lechner
e5073399a0
drop explicit state interfaces
...
This could cause subtle bugs like the one fixed here where license
was renamed to licenses.
2021-02-01 10:26:05 -06:00
David Lechner
650888bbf7
add app reducer tests
2021-02-01 10:26:05 -06:00
David Lechner
37b5ebd8f7
app pb-app- prefix to terminal-padding class
2021-02-01 10:26:05 -06:00
David Lechner
334668bdfb
rework mobile view height
2021-02-01 10:26:05 -06:00
David Lechner
3c152a48ea
remove extraneous console.log()
2021-02-01 10:26:05 -06:00
David Lechner
a24c263789
move terminal dataSource to context
...
state should only hold serializeable data
2021-02-01 10:26:05 -06:00
David Lechner
0c20e52a45
don't allow optional args in actions
...
This can lead to subtle bugs.
Fixes firmware flash button not working.
2021-02-01 10:26:05 -06:00
David Lechner
6f204a65f6
reorganize src/ directory
...
Makes for much less scrolling/jumping around.
https://redux.js.org/style-guide/style-guide#structure-files-as-feature-folders-or-ducks
2021-02-01 10:26:05 -06:00
David Lechner
b30c31f8b7
use shorthand form to map dispatches
...
https://redux.js.org/style-guide/style-guide#use-the-object-shorthand-form-of-mapdispatch-with-connect
2021-02-01 10:26:05 -06:00
David Lechner
aa4e06bef4
move disclaimer to bottom of README
2021-02-01 10:26:05 -06:00
David Lechner
1c8acd3452
Merge pull request #279 from pybricks/dependabot/npm_and_yarn/react-ace-9.3.0
...
Bump react-ace from 9.2.1 to 9.3.0
2021-02-01 10:22:35 -06:00
dependabot[bot]
0fac1e6328
Bump react-ace from 9.2.1 to 9.3.0
...
Bumps [react-ace](https://github.com/securingsincity/react-ace ) from 9.2.1 to 9.3.0.
- [Release notes](https://github.com/securingsincity/react-ace/releases )
- [Changelog](https://github.com/securingsincity/react-ace/blob/main/CHANGELOG.md )
- [Commits](https://github.com/securingsincity/react-ace/compare/v9.2.1...v9.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-01 16:15:44 +00:00
David Lechner
912ebf2004
Merge pull request #281 from pybricks/dependabot/npm_and_yarn/xterm-4.10.0
...
Bump xterm from 4.9.0 to 4.10.0
2021-02-01 10:09:01 -06:00
dependabot[bot]
00581a0db7
Bump xterm from 4.9.0 to 4.10.0
...
Bumps [xterm](https://github.com/xtermjs/xterm.js ) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/xtermjs/xterm.js/releases )
- [Commits](https://github.com/xtermjs/xterm.js/compare/4.9.0...4.10.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-01 13:50:16 +00:00
David Lechner
84c9bb11a4
Merge pull request #283 from pybricks/dependabot/npm_and_yarn/xterm-addon-fit-0.5.0
...
Bump xterm-addon-fit from 0.4.0 to 0.5.0
2021-02-01 07:42:54 -06:00
dependabot[bot]
f37b15db48
Bump xterm-addon-fit from 0.4.0 to 0.5.0
...
Bumps [xterm-addon-fit](https://github.com/xtermjs/xterm.js ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/xtermjs/xterm.js/releases )
- [Commits](https://github.com/xtermjs/xterm.js/compare/0.4...0.5 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-01 07:12:48 +00:00
David Lechner
669cb1e9f9
Merge pull request #278 from pybricks/dlech
...
add ready for offline message
2021-01-28 21:05:56 -06:00
David Lechner
435e367cca
add ready for offline message
v1.0.0-beta.5
2021-01-28 21:01:42 -06:00
David Lechner
6ab8599e88
Merge pull request #277 from pybricks/dlech
...
final beta 5 updates
2021-01-28 20:52:46 -06:00
David Lechner
128be05761
v1.0.0-beta.5
2021-01-28 20:47:56 -06:00
David Lechner
8b3606c397
fix check for update button not showing
...
this happened when the app starts when it is already up to date
2021-01-28 20:37:51 -06:00
David Lechner
252c741180
add app install button
2021-01-28 20:21:20 -06:00
David Lechner
e59bfd4474
add UI to manually check for update
...
This adds a button to call the ServiceWorkerRegistration.update()
function. This button will be hidden if there is already an update
pending.
This also adds a button to restart the app to apply the update. This
is nice in case users accidentally close the notification that asks
to restart.
The about button is moved to the new app group in the setting menu.
2021-01-28 15:37:40 -06:00
David Lechner
447e7e901b
pass registration to reload action
2021-01-28 14:00:09 -06:00
David Lechner
066a6c7d3d
move scrollbar styling to @pybricks/ide-docs
...
This makes the scrollbar flashing less noticeable, but there is still
a bit of a flash in dark mode due to the fact that we are still
injecting the class in the load event in that case.
2021-01-28 12:45:17 -06:00
David Lechner
952416f36b
apply scroll bar styling to docs iframe
2021-01-27 19:14:15 -06:00
David Lechner
eb2cf3c956
add global keyboard shortcut for toggling docs
...
This handles the cases when the editor is not active and the docs pane
is not active and the terminal is not active.
2021-01-27 16:33:03 -06:00
David Lechner
1d7414bd83
add Ctrl-D keyboard shortcut in docs iframe
...
This way it still works when the docs are focused. Otherwise the browser
would try to bookmark the page.
2021-01-27 16:02:37 -06:00
David Lechner
ca8192084d
restore docs position after hide/show
...
Previously, the docs iframe was removed from the DOM when the docs
were hidden. This caused the docs to always go back to the main page
when shown.
This fixes it by using CSS to hide the docs instead of removing them
from the DOM. However, this comes with its own complications regarding
maintaining the scroll position.
2021-01-27 15:38:51 -06:00
David Lechner
64e6b3739e
add keyboard shortcut to toggle docs
...
this is useful for users with small screens
2021-01-27 11:48:51 -06:00
David Lechner
4f00c962e1
finish TODO for checking bluetooth availability
2021-01-27 10:25:08 -06:00
David Lechner
45ac41b398
use ~ in scss imports
...
this allows proper click-link to files in node_modules
2021-01-27 10:25:08 -06:00
David Lechner
eebeec509c
don't focus buttons on click
...
This prevents the navbar buttons from gaining focus when clicked.
This way it prevents losing focus from the editor or terminal.
It also prevents the settings button from being highlighted after
the settings menu is closed.
2021-01-27 10:25:08 -06:00
David Lechner
c7803fed19
fix wrong event type on switch
...
Fixes:
index.js:1 Warning: Failed prop type: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.
2021-01-27 10:25:08 -06:00
David Lechner
68fb7e68f2
format scss files
2021-01-27 10:25:08 -06:00
David Lechner
192d7c07f2
Merge pull request #276 from pybricks/dlech
...
style tweaks
2021-01-26 22:00:54 -06:00