b88425efc8
initial playwright setup and test ( #1039 )
...
* initial playwright setup and test
* try verbose logging
* double check resolution
* double check token
* remove logs
* try running on ubuntu and macos
* move e2e tests
* vitest ignores playwright tests
* add a series of tests
* tweak yarn setup
* typo
* update fmt
* action typo
* rust toolchain?
* remove .only from playwright test
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* add pan and zoom back
* try puting os in commit message
* A snapshot a day keeps the bugs away! 📷 🐛 .os
* A snapshot a day keeps the bugs away! 📷 🐛 .os
* fix commit message
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: macos-latest)
* add command logs to UI for axis tests
* typo
* fmt
* remove .only
* add auto complete test
* remove .only
* update queries to be more playwright recommended
* move test utils
* remove waits from first test
* remove old snapshots
* re-arrange files and tests
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* trigger CI
* refactor plane test
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* remove .only
* try longer wait
* try snap shoting
* fmt
* better CI names
* fix
* fix linux
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* try make executes on load a bit more robust
* fix
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* stabilise snapshots
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: macos-latest)
* make tests run linearly
* update naming
* tidy
* .only
* update readme
* trigger CI
* add set tool
* util clean up
* update readme
* readme tweaks
* self-review clean up
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu)
* tweak
* update readme
* Ensure Vite preview server is running before running any Playwright tests (#1114 )
* Ensure that Vite is serving before tests run
* Don't break secrets if developer has extra blank line in env file
* @mxschmitt's suggestions
* fix
* add wait-on types
* tsconfig fix
* update readme
* code template for sktech on each plane test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Frank Noirot <frank@kittycad.io >
2023-11-24 08:59:24 +11:00
251971238d
Fit resolutions to less than 2k x 2k ( #1065 )
...
* Fit resolutions to less than 2k x 2k
* Integer resolutions
* Scale mouse clicks
* Move stream maxResolution logic to getDimensions
2023-11-13 19:32:07 -05:00
381d0b3bc8
Add a console.error when ICE fails ( #1067 )
...
This is purely cosmetic right now, but I want to try and make it easier
to tell when the browser is unable to communicate with the ICE server
by writing it to the console.
I want to add some Sentry logging in the future, but for now, when we
see a stream failing to start, we can at least see what I suspect is the
most common trigger in the console.
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-11-14 06:13:15 +11:00
34163da361
start of fixing changing files and cleaning up after execute ( #897 )
...
* start of fixing changing files and cleaning up after execute
* stop constraints from leaving artifacts
* don't write file on initial load
2023-11-06 11:49:13 +11:00
fdbfd0c4b6
Fix typos ( #972 )
...
* Update twenty-twenty
Due to engine PR #1566
* Fix typos
2023-11-01 22:34:54 +00:00
cf66b93963
Fix most Github Actions 'annotations' in PRs ( #417 )
...
* Fix Github Actions 'annotations' in PRs
Fixes #383
* Fix the React Hooks complains, and _app for rust
* Revert "Fix the React Hooks complains, and _app for rust"
This reverts commit 4a2ff925e5
.
* Add back prettier fix and rust _app
* Fmt
* More annotation fixes
* More non-hooks fixes
* Rollback with eslint rule
* Add APPLE_TEAM_ID secret
* Revert "Add APPLE_TEAM_ID secret"
This reverts commit 346aaff5f4
.
* More fixes
2023-11-01 07:39:31 -04:00
f1a14f1e3d
Guard all the vaules in the Metrics for undefined
. ( #891 )
...
We've seen a few cases where the WebRTC metrics report contains
undefined values when the stream hasn't started yet. JavaScript, when we
send to the backend, drops `undefined` members of the object, for
example:
```
> JSON.stringify({rtc_frames_dropped: undefined})
< '{}'
```
This will fail the backend validation logic and cause an error to get
emitted to the front-end reporting the missing key. I don't think this
does anything to the session, but it's an error we can avoid by guarding
more of the statistics with a || 0.
Some of the values had this already, this just adds a few more.
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-10-17 16:55:45 +00:00
35b5ad7d9b
refactor selections ( #876 )
...
* migrate selection types
* extract selection event into selections.ts
* move code-mirror selection functions into selections.ts
* move more selection logit out of code mirror and engine connection
* add selection functions pure
* tidy up naming
* write a novel about how selections work
* final comments
2023-10-16 10:20:05 +00:00
8fad9ef3c2
fix vertex selection ( #869 )
2023-10-16 15:29:02 +11:00
71d1bb70ef
Fix move only working first time ( #850 )
...
* nuke fixIdMappings
* update readme
* remove sourceRangeMap as it was redundant
repeated state already covered by the artifactMap
* bug fix, name conflict
* bug fix
* update artifact map when sketch is first created
* update artifact map for line generation too
* fmt
* update move state to allow selections
* allow for selection of vertices
some what hacky, but better than nothing
* unnecessary react hook dependency
* generic react linting
* move working for non-execute case
* block partial contrained things too for now
2023-10-13 09:47:46 -07:00
9b7cc7afa4
save path id on path create ( #849 )
2023-10-13 10:27:25 +11:00
8ad1476c13
wait to execute code until planes are ready ( #830 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-10-11 13:40:54 -04:00
d0930477ad
xstate migration ( #713 )
...
* Add basic Popover functionality
* Fix up light mode of basic bar
* Add support for 2D and 3D mode styling
* Turn toolbar buttons back on
* Remove ActionButton until after tool logic refactor
* Add transitions
* Add initial modeling machine
This is not a full description of how the modelingMachine should work,
but begins to replicate all of the features of our useStore in XState
instead of zustand.
* Add fillet tool flow
* Refactor: break out engine manager setup into hook
Preparing for making a wrapper component around the App
that will manage the engine manager at the same level as
the modelingMachine.
* Create modeling provider, move engine management to it
* Refactor: move other engine-related useEffect into hook
* Add TS schema, selection actions to modelingMachine
* Add barebones modeling machine to app
Only implementing adding to code-based selections in the text editor so far
* Update moved useEffect hook after merge
* give myself reminder TODO
* fix engineCommandManager waitForReady Promise
* enable devtools
* make utility class for handling default planes
* progresson startNewSketch and EditSketch
* add provider to tests
* too large of a commit
put all of the lang state into another singleton, but did lots of work on xstate too
* fix edit sketch ast issue
* re-execute on sketch exit
* prettierignore xstate typegen file
* add move tool button back in
* handle mouse commands with xState states
* fix move
* remove old imports
* big useStore delete
* fix some destructuring bugs
* start of constraint actions
* add horizontal/vertical distance constraints
* fix more destructuring errors
* fix
* add angle constaints
* add align vertically/horizontally constraints
* add length and equal length constraints
* rename modal states to be more cmd bar friendly
* add doesPipeHave query
* add another query
* add extrude states
* state machine clean up
* xstate layout tweak
* make xstate types happy
* Revamp cursor logic and place curors after ast mod
* Xstate merge (#796 )
* turning back on all planes (#720 )
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix stdlib
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
compile
Signed-off-by: Jess Frazelle <github@jessfraz.com >
update sample code
Signed-off-by: Jess Frazelle <github@jessfraz.com >
re-enable the planes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix all tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
boilerplate
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Cut release v0.9.2 (#714 )
rust make default planes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
use the planes from engine
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
negative args
Signed-off-by: Jess Frazelle <github@jessfraz.com >
diable camera
Signed-off-by: Jess Frazelle <github@jessfraz.com >
hide planes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updatress
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Update src/hooks/useAppMode.ts
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch >
Update src/hooks/useAppMode.ts
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch >
cleanups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Bump kittycad from 0.2.26 to 0.2.27 in /src-tauri (#726 )
Bumps [kittycad](https://github.com/KittyCAD/kittycad.rs ) from 0.2.26 to 0.2.27.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](https://github.com/KittyCAD/kittycad.rs/compare/v0.2.26...v0.2.27 )
---
updated-dependencies:
- dependency-name: kittycad
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump tauri-plugin-fs-extra from `b04bde3` to `6c7a4c0` in /src-tauri (#725 )
Bumps [tauri-plugin-fs-extra](https://github.com/tauri-apps/plugins-workspace ) from `b04bde3` to `6c7a4c0`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases )
- [Commits](b04bde3461...6c7a4c0984
)
---
updated-dependencies:
- dependency-name: tauri-plugin-fs-extra
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump toml from 0.8.0 to 0.8.1 in /src-tauri (#724 )
Bumps [toml](https://github.com/toml-rs/toml ) from 0.8.0 to 0.8.1.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.0...toml-v0.8.1 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump openapitor from `61a1605` to `d3e98c4` in /src/wasm-lib (#723 )
Bumps [openapitor](https://github.com/KittyCAD/kittycad.rs ) from `61a1605` to `d3e98c4`.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](61a16059b3...d3e98c4ec0
)
---
updated-dependencies:
- dependency-name: openapitor
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump kittycad from 0.2.26 to 0.2.27 in /src/wasm-lib (#722 )
Bumps [kittycad](https://github.com/KittyCAD/kittycad.rs ) from 0.2.26 to 0.2.27.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](https://github.com/KittyCAD/kittycad.rs/compare/v0.2.26...v0.2.27 )
---
updated-dependencies:
- dependency-name: kittycad
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump thiserror from 1.0.48 to 1.0.49 in /src/wasm-lib (#721 )
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.48...1.0.49 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump expectorate from 1.0.7 to 1.1.0 in /src/wasm-lib (#712 )
Bumps [expectorate](https://github.com/oxidecomputer/expectorate ) from 1.0.7 to 1.1.0.
- [Release notes](https://github.com/oxidecomputer/expectorate/releases )
- [Commits](https://github.com/oxidecomputer/expectorate/compare/v1.0.7...v1.1.0 )
---
updated-dependencies:
- dependency-name: expectorate
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump clap from 4.4.4 to 4.4.5 in /src/wasm-lib (#711 )
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.4 to 4.4.5.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.4...v4.4.5 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
refactor cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
type improvements
* use new sketchmode no camera
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* js working better
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* start of negative planes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* tests and neg
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* images
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* norma;s
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* better initial load of planes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* ts
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tsc
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix edit sketch
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add regression test for 2d solid issue
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* show planes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* canecel in progress
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix ci as well
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* stopping point
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* refactor
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* it works
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Hide planes (#797 )
* hide planes in one go
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update hide;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make tsc happy
* Make "Replay Onboarding" button available on home settings page (#804 )
* Fix unrelated bug, settings button in the home sidebar
doesn't go to the home settings after my previous fixes to routes
* Turn on "Replay Onboarding" button in home settings
* Use ONBOARDING_PROJECT_NAME in both places
* Fix formatting
* Cut release v0.10.0 (#803 )
Co-authored-by: Frank Noirot <frank@kittycad.io >
* Bump kittycad from 0.2.28 to 0.2.31 in /src-tauri (#798 )
Bumps [kittycad](https://github.com/KittyCAD/kittycad.rs ) from 0.2.28 to 0.2.31.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](https://github.com/KittyCAD/kittycad.rs/compare/v0.2.28...v0.2.31 )
---
updated-dependencies:
- dependency-name: kittycad
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump openapitor from `fa0345c` to `c122a9b` in /src/wasm-lib (#800 )
Bumps [openapitor](https://github.com/KittyCAD/kittycad.rs ) from `fa0345c` to `c122a9b`.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](fa0345c514...c122a9b1d6
)
---
updated-dependencies:
- dependency-name: openapitor
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump syn from 2.0.37 to 2.0.38 in /src/wasm-lib (#801 )
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.37 to 2.0.38.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.37...2.0.38 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump winnow from 0.5.15 to 0.5.16 in /src/wasm-lib (#799 )
Bumps [winnow](https://github.com/winnow-rs/winnow ) from 0.5.15 to 0.5.16.
- [Changelog](https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md )
- [Commits](https://github.com/winnow-rs/winnow/compare/v0.5.15...v0.5.16 )
---
updated-dependencies:
- dependency-name: winnow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump tauri-plugin-fs-extra from `fa32d1a` to `9f27e6e` in /src-tauri (#802 )
Bumps [tauri-plugin-fs-extra](https://github.com/tauri-apps/plugins-workspace ) from `fa32d1a` to `9f27e6e`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases )
- [Commits](fa32d1afa9...9f27e6e441
)
---
updated-dependencies:
- dependency-name: tauri-plugin-fs-extra
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* better plane selection
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* use the sketch plane id
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add todo w bug
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Improve Prop Typings for Modals. Remove instances of `any`. (#792 )
* Update typings for modals. Remove instances of `any`
* Fix generic type for creating modals
* cleanup other stuffs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make plane id available when selecting default plane
* few clean up things
* change enter sketch action order to make sure plane id is available to 'enter edit mode'
* Revert "Improve Prop Typings for Modals. Remove instances of `any`. (… (#813 )
Revert "Improve Prop Typings for Modals. Remove instances of `any`. (#792 )"
This reverts commit 629f326f4c
.
* ffmpeg instructions (#814 )
* fix some tsc stuff
* small tweak
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
Co-authored-by: Frank Noirot <frank@kittycad.io >
Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jason Rametta <rametta@outlook.com >
* clean up
* fix test and tsc
* remove one more thing from useStore
* tweak state digrame layout
* fmt
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Frank Johnson <frankjohnson1993@gmail.com >
Co-authored-by: Frank Noirot <frank@kittycad.io >
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jason Rametta <rametta@outlook.com >
2023-10-11 13:36:54 +11:00
59223279b7
Type Error: Type error engineConnection.ts ( #786 )
...
* TypeError Fix
* removed not needed console log
* took into account adamchalmers feedback and fixed cl type error
* pretty up
* Irev-dev feedback fixes issue
2023-10-05 16:18:50 +11:00
9e02bab155
Explicitly close the Engine Connection when ICE fails ( #732 )
...
This will avoid letting the stack think its ready until it times out,
and will hopefully help with faster retry logic in the future
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-10-02 09:50:49 -04:00
a367be4e2b
add gizmo ( #738 )
...
* add gizmo
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix force ast execution
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-09-29 12:41:58 -07:00
61943055e5
refactor a bit before more rust port ( #739 )
...
* partially there
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-09-29 11:11:01 -07:00
c307ddd1b1
resize ( #706 )
...
* start of resize
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* refactor
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check if 0
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* will work w new lib
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new types
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* handle resize effect
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2023-09-25 19:49:53 -07:00
0c724c4971
Start to restructure the Engine's connection to the backend ( #674 )
...
* Start to restructure the Engine's connectio to the backend
1) Add in a tearDown stub for when the Engine is torn down. This is now
distinct from a 'close', which will not stop connect from trying
again. Running tearDown will mark the connection to not be retried
and close active connections.
2) Move the retry logic out of connect and into the constructor. It will
attempt to reconnect at the same rate as we had previously.
3) The timeout will now only close the connection, not restart it.
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
* Don't continue on dead conn & setTimeout on init only
* Clean up extra setTimeout
* Keep track of connection timeouts and clear on close
* Fix tsc by defining Timeout
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
* appease the format gods
---------
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
Co-authored-by: Adam Sunderland <adam@kittycad.io >
2023-09-21 12:07:47 -04:00
27227092b1
app stuck on blur when engine errors ( #682 )
...
* temp fix for when engine returns error
* don't add extrued to show function
2023-09-21 04:32:47 +00:00
5297d3e142
both edit and move in one PR ( #566 )
...
* get the data for where lines are
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make pretty
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* beginning of stufff
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add new fns
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* basic function
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix ups to keep order
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* further
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* failing test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* do it in rust
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* trait
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* start of ui integration
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* weird shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* generate close on close
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* start of constraint functions
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* helper functions
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make work
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* constraints w ranges
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* skip
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* comment
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* throw
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make close a bit less sensitive in move scenario
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup shit we didnt end up using
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make it less hard to close
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Fix edit after sketch
* Move to plane for sketch
* Fix pathToNode for ast mods
* Fix exit sketch mode with escape
* Fix fmt since my editor did it wrong
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix link
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Adam Sunderland <adam@kittycad.io >
2023-09-17 21:57:43 -07:00
f2b24849b3
Move calls to the unreliable channel into a helper method ( #543 )
...
This'll let us handle JSON encoding in one place, as well as adding any
logging or anything. Not a huge deal, but it's a minor cleanup I made
while looking into an unrelated bug.
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-09-15 17:14:58 -04:00
54751aa7bb
Fix rtc_freeze_count error ( #544 )
2023-09-15 12:05:46 -04:00
e4f2e66029
inital rework of execution ( #528 )
...
* inital rework
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update the program memory as well
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* code
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates for typing code
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixing
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* some fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Only unselect line or move tool on escape, don't exit sketch
* Make scrollbar on toolbar smaller
* Add escape to exit sketch mode
* tidy up usestore
* clear scene on empty file
* disable sketch mode and re-execute on sketch loop close
* disable all but xy plane
* fix entering back into edit mode
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Frank Noirot <frank@kittycad.io >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2023-09-15 21:35:48 +10:00
3c76721159
Fix id source range mapping with path_get_info ( #517 )
2023-09-14 13:49:59 +10:00
a2a4daebe3
fix move cmd order ( #462 )
2023-09-13 07:42:42 +00:00
fd2ed8acbd
Sketch on plane WIP ( #309 )
...
create default planes wip
2023-09-12 22:36:47 +00:00
8a3e8d331d
Change WebRTC metrics to be request/response from the Engine ( #410 )
...
* Add in a Metrics request/response handler
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
* Update @kittycad/lib to 0.0.37
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
* Fix up type issues
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
* yarn fmt
* Remove VITE_KC_CONNECTION_WEBRTC_REPORT_STATS_MS
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
---------
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch >
2023-09-11 09:04:46 +10:00
7c9aaeafa2
Guard Promise resolution with a shouldTrace() ( #424 )
...
The Promises are created behind a shouldTrace, so they'll be undefined
if you shouldn't be tracing. As a result, we need to guard the resoluton
of the promises.
Thanks @mlfarrell for spotting this in local dev!
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-09-08 16:40:08 -04:00
3bccae492d
clear old engine ids ( #415 )
...
* clear old engine ids
* animate re-execute and deffer execution for user typing
2023-09-08 17:50:37 +10:00
ff1be34f54
Revert mute-reset behavior ( #369 )
...
I have a hunch this is causing more problems than it fixes.
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-08-31 22:57:58 -04:00
4837c52908
Redo how Spans are used from the Engine ( #359 )
...
* Redo how Spans are used from the Engine
I don't like all the Sentry-specific stuff we've got to work around, and
I want to add a bunch more spans and more cleanly end the transaction.
This isn't generic enough to pull out of this code (yet?), but we
clearly need some class of abstraction due to the highly async pattern
in the WebRTC code.
I want to add in more tags, but there are a lot of events we need to
wait on. I'd like to hook into the <video> 'play' eventListener, but
it's hard to do from all the way down in the Engine.
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-08-31 12:59:46 -04:00
56cfb6d1f0
remove excessive serialisation ( #362 )
...
remove excessive serialization
2023-08-31 14:44:22 +10:00
eb48d51309
rename lossy to unreliable ( #357 )
...
* rename lossy to unreliable
* fmt
* missed a rename
2023-08-31 07:39:03 +10:00
f3274e03ff
refactor callbacks ( #334 )
...
refactor callbacks
2023-08-30 15:19:37 -04:00
46937199a3
Start to clean up Sentry now that the app is back up again. ( #356 )
...
* Start to clean up Sentry now that the app is back up again.
Remove Sentry from local development I thought .env.development
was for dev.kc.io, not just local dev. Someone can add this to .local
if they need to test the Sentry stuff for now.
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-08-30 13:14:52 -04:00
659e6d5b45
Add in Sentry, WebRTC Statistics ( #345 )
...
Collect WebRTC Statistical Information
Add in some instrumentation to track the duration of the setup phase,
and set up a job to make periodic use of the WebRTC Statistics API
to collect information about the connection (specifically, each track),
including transport-level information, timing information and bandwidth
information.
Sentry isn't the best place for that information, but it'll work until we
can work out a good long-term solution for it.
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-08-30 10:34:14 -04:00
6f0fae625f
quick fik ( #339 )
2023-08-29 10:28:27 +10:00
33eb6126d4
bump rust types ( #321 )
...
* get rid of noisy log
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix types in rust
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-08-25 11:29:18 -07:00
b56a3398ad
Fix up message structure to match the new Engine messages ( #316 )
...
* Fix up message structure to match the new Engine messages
The types are still jacked up, I reckon we need to bump the node
@KittyCAD dep.
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
* update types
* fmt
* export tsc
* fmt again
---------
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2023-08-25 14:16:37 +10:00
de255acc59
Port executor ( #287 )
...
* parent
initial types
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more port
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
use the function
Signed-off-by: Jess Frazelle <github@jessfraz.com >
ipdates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
pipe sjhit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
cleanup and pipes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
attempt to call the function
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
better
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add first function
Signed-off-by: Jess Frazelle <github@jessfraz.com >
start of stdlib
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
organize better
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
boilerplace
Signed-off-by: Jess Frazelle <github@jessfraz.com >
boilerplace
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more functions
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more stuff
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more path segment functions
Signed-off-by: Jess Frazelle <github@jessfraz.com >
reorganize files
Signed-off-by: Jess Frazelle <github@jessfraz.com >
extrude boilerplate
Signed-off-by: Jess Frazelle <github@jessfraz.com >
extrude
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
sketch boilerplate
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
comment out extrude for now
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more executor test passing
Signed-off-by: Jess Frazelle <github@jessfraz.com >
rename meta
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
cleanup unneeded deps
Signed-off-by: Jess Frazelle <github@jessfraz.com >
generate executor typoes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
remove path to node
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates for tests js
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
ignore wasm file
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
start of websocket connection
Signed-off-by: Jess Frazelle <github@jessfraz.com >
boilerplate for engine connection
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
send the modeling cmd
Signed-off-by: Jess Frazelle <github@jessfraz.com >
implement close
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
remove refid
Signed-off-by: Jess Frazelle <github@jessfraz.com >
remove refid
Signed-off-by: Jess Frazelle <github@jessfraz.com >
do sketch start
Signed-off-by: Jess Frazelle <github@jessfraz.com >
almost done w sketch port
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix deserialize and tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests remove logging
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix the return type
Signed-off-by: Jess Frazelle <github@jessfraz.com >
make compile
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more tests pass
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
expect any string
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add failing test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix the tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
replace wasm_execute
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
make all tests pass
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix remaining tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add a warpper
Signed-off-by: Jess Frazelle <github@jessfraz.com >
start of server side ws/webrtc
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more nonweb working
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add test mock
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
mutable engine
Signed-off-by: Jess Frazelle <github@jessfraz.com >
blocking snd engine cmd
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
tmp
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* tmp
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* build wasm only
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix cargo builds
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more logging
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* push
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-08-24 15:34:51 -07:00
d33ddb2f1b
fix typo in function name, cleanup unused args ( #317 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-08-24 11:41:38 -07:00
a0730ded4e
Remove EventTarget from EngineConnection ( #315 )
...
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-08-24 10:46:02 -04:00
afd2b507ef
refactor engine connection to use callbacks ( #314 )
...
Less type maintenence
2023-08-24 09:46:45 -04:00
9dd708db5d
Make the timeout for a WebRTC/WebSocket connection pair configurable ( #310 )
...
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-08-24 06:49:04 +10:00
c25dd1800c
Track the connection time in the console ( #311 )
...
In the future, this should be sent as telemetry, but at least this would
give us a bit of info about the latency sitatuion locally if we start
seeing the refresh happen a lot.
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-08-23 15:29:03 -04:00
e56e7ba0fa
Detect when a video stream fails from the server ( #307 )
...
It's not clear /what/ is breaking the connection, but this will add
retry when it does. The term 'muted' here is a bit hard to grok, it's a
read-only indication of the *peer*'s state
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-08-22 20:07:39 -04:00
dbe4e7faa6
Clean up after a closed EngineConnection ( #304 )
...
Because we gate a lot of things off this.foo?, leaving the closed
websocket/pc/etc in-place was causing a noisy log, and mucking with
reestablishing a broken connection.
While I was in here, I fixed a style nit from yarn.
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-08-22 18:18:22 -04:00
75bb91c7e1
Build out EngineConnection's retry and timeout logic ( #299 )
...
* Build out EngineConnection's retry and timeout logic
* Migrate the EngineConnection to be an EventTarget for other parts of the
code (mostly the EngineManager, but maybe others?) to listen to, rather
than having a boolean 'done' promise, and remove callbacks in favor of
the eventListeners.
* When a WebRTC connection is online, send a 'ping' command every 10 seconds.
The UDP stream likely needs something similar, but the connection is
maintained by the WebRTC video stream for now.
* Begin to migrate code to use a more generic object "send" helper
which can handle the JSON encoding, as well as connection retry logic
in the future.
* Add a watchdog to trigger 5 seconds after a connection is initiated
to cancel and retry the connection if it's not become ready by the
time it wakes up. This won't watch an established connection yet.
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-08-21 16:53:31 -04:00
965d2b23cf
Xstate Auth migration ( #250 )
...
* auth migrate progress, web only
* wrap home in state provider
* use consistent logged spelling
* use createActorContext
* typo
* fix wraping problem
2023-08-22 05:34:20 +10:00