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
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
b257b202c3
Add modal typing back in, and clean up old constraints code ( #865 )
...
* Revert "Revert "Improve Prop Typings for Modals. Remove instances of `any`. (… (#813 )"
This reverts commit 9822576077
.
* tsc
* refactor all buttons
* add parallel constraint
* typegen?
* add constraint removal constraint
* add perpendicular distance constraint
* state diagram layout
* fmt
* improve modal typing for setAngleLength
2023-10-15 21:54:38 +00:00
6c15a743a2
remove useAppMode hook file ( #829 )
2023-10-11 04:12:29 +00: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
80b542ca18
Allow Vertical Scroll Wheel to affect Horizontal Scroll for Toolbar ( #780 )
2023-10-04 09:35:50 -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
c271942897
remove errors ( #703 )
2023-09-25 07:28:03 +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
f592d8db84
Franknoirot/pretty buttons ( #550 )
2023-09-16 01:23:11 -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
fd2ed8acbd
Sketch on plane WIP ( #309 )
...
create default planes wip
2023-09-12 22:36:47 +00:00
1be9b2612c
Add menu to code editor, put "Format code" and "Convert to variable" buttons in it ( #426 )
...
* Move format code button to menu item
by extending CollapsiblePanel to take an optional
menu React element.
Signed-off-by: Frank Noirot <frank@kittycad.io >
* Style tweaks
* Add shortcuts for format and cmd bar to codemirror
* Move convert to variable into code menu
Signed off by Frank Noirot <frank@kittycad.io >
* Add keyboard shortcut to convert to variable
* Remove convert to variable from toolbar
* Refactor: move TextEditor to its own component
* Set a better convertToVar shortcut
* Style and ergonomic polish for convertToVar modal
* Use named constants for shortcuts 😇
* Try yet another keyboard shortcut
* Fix formatting
* remove isShiftDown from app.tsx
---------
Signed-off-by: Frank Noirot <frank@kittycad.io >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2023-09-09 05:38:36 +00:00
18959510f8
Franknoirot/expandable toolbar ( #343 )
...
* 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 styles to always center toolbar in header
2023-08-31 09:47:59 -04:00
a8d23f5c0d
Fix lint warnings ( #289 )
2023-08-19 08:14:35 +10:00
aa24b9d6bd
Polish: UI theme colors, onboarding dismiss, Export button in sidebar ( #270 )
...
* Light mode style fixes
* Fix dismissing onboarding for nested routes
* Refactor: move export button to user side panel
* Refactor: add project data to modeling page loader
* Add new ProjectSidebarMenu
* Convert AppHeader to use ProjectSidebarMenu
* Move ExportButton to ProjectSidebarMenu
* Fix: hide default dir setting in Web
* Add DownloadAppBanner when in Prod
* Add unit tests to ProjectSidebarMenu
* Tiny CSS rounding tweak to sidebars
* Fix formatting in unit tests
* Update icons and logos to use full-color Kitt
* Fix: dim UI on camera drag, not click
2023-08-18 10:27:01 -04:00
cd4672c98d
Export ( #213 )
...
* initial
Signed-off-by: Jess Frazelle <github@jessfraz.com >
update
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* start of tauri
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* better
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* set the default type
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add comments
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 >
* dialog for save tauri
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* partial tsc fix
* bump kittycad lib
* Update src/lib/exportSave.ts
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch >
* updates;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* default coords
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2023-08-02 16:23:17 -07:00
c31f1ad98b
Add dark mode ( #199 )
...
* Add passive dark mode to everything but codemirror
* Add dark theme support for Codemirror
* Make theme a user setting
* Fix button text size
* guard against undefined window
* Formatting and test fix
2023-07-31 20:33:10 +10:00
15699361a0
Cursors should stay after a code-mod ( #113 )
...
* setup to get path to nodes back from ast-mods
* fix cursor setting for constraint buttons that use transformSecondarySketchLinesTagFirst
* fix cursors for constraints that use transformAstSketchLines
2023-04-14 07:49:36 +10:00
2fc68e7c82
Change perpendicular-distance constraint to something more intuitive to setting parallel distance ( #110 )
...
* some clean up
* Change perpendicular-distance constraint to something more intuitive to setting parallel distance
* delete
* add back
* force rename
* change name back
* try renaming again
2023-04-08 14:16:49 +10:00
52b2e26ac5
alignVertically/Horizontally ( #106 )
2023-04-06 12:45:56 +10:00
db5220467b
set angle between two selected lines ( #104 )
2023-04-05 21:06:20 +10:00
1a6bcba6ca
Select axis for horz/vert distances ( #102 )
2023-04-05 15:08:46 +10:00
a1848f2563
ui naming tweaks ( #100 )
...
ui nameing tweaks
2023-04-03 21:01:26 +10:00
a8b68bab6a
Users should be able to select points (not just lines) ( #97 )
...
* update selection datastructure to accomodate more selection metadata
* Users should be able to select points (not just lines)
2023-04-03 16:05:25 +10:00
0593afc4ff
Replace values with variable helper ( #84 )
...
* Refactor getNodePathFromSourceRange
getNodePathFromSourceRange wouldn't go as deep as it should have,
stopping at pipe expressions, when it should have followed as deep
into the ast as possible.
The fact that it stopped early then had other part of the code base that
expected this behaviour and it effected a lot, so a rather large refactor
* overhaul of getNodePathFromSourceRange
* quick fix for moreNodePathFromSourceRange
* minor bugs in moreNodePathFromSourceRange
* couple more tests
* add moveValueIntoNewVariable
* add UI for replacing valuse with variable
* update button text
2023-04-01 16:47:00 +11:00
ab1639b8b4
Add 'remove constraining values' UI ( #80 )
2023-03-22 03:02:37 +11:00
22c356a841
Add intersect constraint UI ( #71 )
...
* Add intersect constraint UI
* add more combos for intersect constraint
2023-03-19 18:46:39 +11:00
0995780abb
add Equal angle constraint + more cases for existing constraints ( #69 )
...
* add more setLength and horz vert distance constraints
* rename equal to equalLength
* Add equalAngle constraint
2023-03-17 21:15:46 +11:00
c3ead3b074
Add Angle & Length constraint/value, and modal for the details ( #54 )
...
* setup UI for getting length and Angle values from user
* enable setLength-angle for angledLines with an exisiting constraining value
2023-03-10 08:48:50 +11:00
2ac24bcd95
Horz/Vert distance constraint with modal workflow ( #43 )
...
* button style tweak
* Remove duplication constraint ast transforms
* giveSketchFnCallTag to return if line already had a tag
* remove duplication
* update tag name to referenceSegName
* Update transform shape to return key details about the transform
* add modal to hor vert distance workflow
* fix browser env stuff from breaking tests
* fmt
2023-03-07 15:45:59 +11:00
4c554b6549
initial set horz-vert distance constraint ( #42 )
...
inital set horz-vert distance constraint
2023-03-05 07:34:56 +11:00
433c29217e
tidy up ( #37 )
2023-03-03 20:35:48 +11:00
6446601a67
Add equal-length constraints & implement UnaryExpressions ( #35 )
...
* add segLen help to lang std
* adding helpers functions to sketchConstraints
* update tokeniser tests because they were annoying me not being 100%
* compare async lexer with sync lexer instead
* add helper functions
* remove unneeded nesting
* update add ast modifier function for angledLine
* initial equal ast modification
It adds a tag to the primary line, and converts any secondary lines to angledLine, but doesn't reference the taged/primary line yet
* Update fn call with refernce to previous line using segLen
* add test for giveSketchFnCallTag
* fix excutor bug, executing call expression in array expression
* fix small issue in executor
* add CallExpressions to BinaryExpressions
* add unary Expressions
* tweaks to unaryExpression logic
* add recasting for unaryExpressions and CallExpressions in BinaryExpressions
* ensure pipe substitution info is passed down to unary expressions and others
* allow binary expressions in function argumentns
* inital setup, new way of organising sketch fn transforms
Starting with equal length
* overhaul equalLength button
* add equal length support for angledLine
* line with one variable supports signed legLength
* fix indentation when recasting long arrayExpressions in a pipeExpression
* improve modifyAst consision
* further modify ast tidy
* equalLength transfroms far angledLineOfXLength
* add transforms for line-yRelative
* add equal constraint for angledLineOfYLength
* quick test fix
* add equal length constrain transforms for lineTo
* add equal length constraints for angledLineToX
* add equalLength constraints for angledLineToY
* test tidy
* setup new vertical-horizontal constraints
* Add equal Length constraints for vertical/horizontal lines
* migrate old tests, and refactor callback tag
* tweaks and refactor horzVert component
* fix leg len with small negative leg length
2023-03-02 21:19:11 +11:00
4ec0401118
Constraint setup + Horizontal & Vertical implementation ( #33 )
...
* start of horizontal/vert constraint
* horz vert constraint working with variable
* quick fix
* add tests for horz constraint
* clean up
2023-02-21 10:50:45 +11:00
ea05f804cc
Add multi-cursor support ( #30 )
...
* update execution of callExpressions
* tweak types to store multiple cursor ranges and hook up with artifact highlighting
* multi-cursor from 3d scene
Working but has to be capslock for the time being
* tweak pannel headers
* add issue to todo comment
2023-02-21 10:28:34 +11:00
594d55576a
functional sketch working ( #26 )
...
* functional sketch working
With old sketch block still there
* get all version of lines working with add line and update line
* remove old ui state types
* some clean up
* rename some things
* add todo for multi cursor
* shorten useStore repitition
* small type improvement
* big overhaul to group sketch function and they ast modifying helpers together
* unneeded tweak
* ruthlessly rip out sketch logic
* clean up path keyword
* getting sketch on face working again with all the new sketch line types
* add a bunch of tests and re-arrage file structure
2023-02-12 10:56:45 +11:00
9ec332d681
focus on extrude literal when extruding sketch
2023-01-13 18:13:23 +11:00
ed686e5e69
initial implementation of sketching on extrude face
2023-01-09 13:19:14 +11:00
9ad6b946c0
massive overhall to how program memory works and how artifacts their metada are rendered
2023-01-08 16:37:31 +11:00
0515acf459
add button for extruding sketches
2023-01-06 12:45:34 +11:00
0779befc65
fix sketch plan orientation
2023-01-04 01:28:26 +11:00
544f20852c
make 'axis' redundant
2022-12-23 07:45:47 +11:00
07a40cdd11
port over to quanternions
2022-12-23 07:37:42 +11:00
034c903672
add the ability to edit sketch later
2022-12-06 05:40:05 +11:00
80f513401c
fmt
2022-11-28 19:44:08 +11:00
ade1e9fb82
start of code gen from direct manipulation
2022-11-28 09:37:46 +11:00
6f24e75f92
Gui scafolding toolbar, log console, axis for sketching
2022-11-27 14:06:33 +11:00