Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload/download robot code #9

Merged
merged 4 commits into from
Aug 4, 2024
Merged

Upload/download robot code #9

merged 4 commits into from
Aug 4, 2024

Conversation

Hal-9k1
Copy link
Collaborator

@Hal-9k1 Hal-9k1 commented Jul 30, 2024

Use SFTP from ssh2 module to upload and download code to/from the robot.
Improve typing for electron IPC.

Hal-9k1 added 4 commits July 30, 2024 01:05
Install ssh2 package.
Add CodeTransfer class to handle SFTP with the robot.
Improve IPC event typing by creating an overload for each channel for
context bridge methods in preload.ts and addRenderListener +
sendToRenderer in MainApp.
Remove now-redundant call site type checks for IPC data.
Add user preference to disable a warning that appears when code is
uploaded while the editor has unsaved changes to persistent config.

Move channel type definitions from preload.ts to IpcEventTypes.
Disable no-redeclare eslint rule because it wrongly triggers on
typescript function overloads.
Add dawn-info AppConsoleMessage type.
Make Darwin menu match other platforms'.
Use component children for ConfirmModal query text instead of a string
prop.

BROKEN: Typescript won't be happy until @types/ssh2 is installed and we
can get at the SFTP type from CodeTransfer.ts somehow.
Install ssh2 in release/app/package.json instead of the root pjson
because it's a native package. (Webpack only complained about this
during postinstall in the Github test for some reason. It still built
fine.)
@snowNnik snowNnik merged commit 02413f2 into master Aug 4, 2024
6 checks passed
@Hal-9k1 Hal-9k1 deleted the transmit-code branch August 7, 2024 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants