545e610bbc
Always give new files and dirs a new index if their names are taken ( #3460 )
...
* Add actual support for makeUnique parameter
* Add uniqueness logic to dirs, make text-to-cad receive unique filename
* No longer need makeUnique flag, it's always on
* fmt
* Don't show toast when name hasn't changed during a rename
* fmt
* Get "interact with many" text-to-cad test passing again
* Get "engine fails export" back to reliably green
* Maybe more stable click target for text-to-cad test
* Make "export is already going" test moderately more reliable
* Mark "export is already going" as fixme
* Undo that fixme thing I take it back
2024-08-15 14:24:27 -04:00
55a3e2a4ed
add lite to benchmarks as well ( #3464 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-15 10:32:55 -07:00
a7a88bd762
remove flakey has no pending logic, let them do whatever they want ( #3457 )
...
* remove flakey has no pending logic
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add test for many at once w dismiss bug
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* toastid
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixup more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-14 23:08:37 -07:00
0916f990cb
Fix sketch groups and extrude groups when used inside objects ( #3439 )
...
* Fix SketchGroups and ExtrudeGroups to work with user objects
* Fix to never clone more than once
* Fix error messages to be more helpful
* Add test
2024-08-14 22:37:33 -07:00
0d3880233c
Bump serde_tokenstream from 0.2.1 to 0.2.2 in /src/wasm-lib ( #3449 )
...
Bumps [serde_tokenstream](https://github.com/oxidecomputer/serde_tokenstream ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/oxidecomputer/serde_tokenstream/releases )
- [Commits](https://github.com/oxidecomputer/serde_tokenstream/compare/v0.2.1...v0.2.2 )
---
updated-dependencies:
- dependency-name: serde_tokenstream
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>
2024-08-14 21:15:25 -07:00
8a029605bd
Kcl in coredump ( #3434 )
...
* add kcl code to coredump
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix ts
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new images
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-14 17:56:28 -07:00
f26adee360
Update machine-api spec ( #3441 )
...
* YOYO NEW API SPEC!
* New machine-api types
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-14 17:26:41 -07:00
0f2a01b6c8
Update machine-api spec ( #3438 )
...
* YOYO NEW API SPEC!
* New machine-api types
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-14 16:59:39 -07:00
f23bc673aa
Update machine-api spec ( #3433 )
...
* YOYO NEW API SPEC!
* New machine-api types
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-14 14:52:40 -07:00
5857684ebc
make sure we always have an id ( #3431 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-14 14:29:14 -07:00
e8fc6bc037
remove debugs ( #3429 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-14 11:58:39 -07:00
5bdd090119
Text-to-CAD with alpha model (might have issues) integration ( #3299 )
...
* Add close dismiss button to Infinite duration non-loading toasts
* Add text-to-cad icon candidates
* Add a way to silently create files
* Add text-to-cad command with mock backend
* add the actual endpoint
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix the response
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Add `credentials: include`
* add headers
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Mostly working? Just getting CORS on desktop
* Merge goof
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* create cross platform fetch;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* send the token;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* send the token;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* better names for files
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Commit broken THREEjs success toast
* base64 decode
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* send telemetry on reject / accept
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* start of tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* basic tests;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* lego
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 >
* fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Get model stylized based on settings
* Don't need automatic dismiss button for Infinity-duration toasts anymore
* Stylize loaded model, add OrbitControls, polish button behavior
* Allow user to retry prompt if one fails
* Add an auto-grow textarea input type to the command bar, set text-to-cad to use it
* Delete the created file in desktop if user rejects it
* Submit with meta+Enter
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu)
* add more tests and various fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Set `prompt` arg defaultValue to failed prompt value on retry
* Add missing `awaits` to playwright tests to get them passing
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu)
* empty
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-14 11:26:44 -07:00
669cab8737
bump derive docs; ( #3426 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-14 10:19:36 -07:00
f1ea60d6ab
bump libs ( #3425 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-14 09:55:33 -07:00
3faec650b1
ensure we never execute over ourselves ( #3419 )
...
* ensure we never execute over ourselves
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
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 >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* weird logs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix flake
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make faster
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-14 08:49:00 -07:00
b2b62ec163
Add logical not operator using bang ! ( #3230 )
...
* Add logical not operator using bang !
* Change to be more concise
* Add codemirror syntax highlighting for bang operator
* Add LSP semantic token type
* Change to runtime error for bang on non-bool
* Add additional assert check
* Fix tests to verify runtime values, not parsing
* Fix test failure messages to be more helpful
* Fix semantic token tests to not care about the index
---------
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
2024-08-13 23:38:37 -07:00
5b798c2aa3
Unify expression execution ( #3342 )
...
* Factor out expression execution
* Reduce code duplication
* Rename function to be clearer
* Change to use From::from to be clearer
* Rename to be clearer
* Fix to avoid unneeded clone
* Fix to not need to be mutable
* Remove struct that isn't very useful yet
* Change pipelines to not duplicate expression evaluation
* Rename to be more consistent
2024-08-13 22:57:03 -07:00
a23bd1f034
benchkmarks for execute server rack heavy ( #3421 )
...
* benchkmarks for execute server rack heavy
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 >
* cluppy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-13 22:45:42 -07:00
4d00dddfd8
Bump kittycad from 0.3.13 to 0.3.14 in /src/wasm-lib ( #3422 )
...
Bumps [kittycad](https://github.com/KittyCAD/kittycad.rs ) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](https://github.com/KittyCAD/kittycad.rs/compare/v0.3.13...v0.3.14 )
---
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>
2024-08-13 21:36:14 -07:00
f055acb6a6
more shell examples ( #3414 )
...
* more shell examples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update known issues
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-13 14:14:23 -07:00
bf9d88e9a5
Add actual argument type to error message ( #3340 )
...
* Add actual argument type to error message
* Change to reuse exiting function
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* gen docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
Co-authored-by: Jess Frazelle <github@jessfraz.com >
2024-08-13 13:25:09 -07:00
a1f72b1d5a
add a regression test for when engine returns a export fail ( #3407 )
...
* add a regression test for when engine returns a export fail
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* better errors
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-13 07:05:30 +00:00
f9048b8882
ability to set tolerances, but with sane defaults ( #3397 )
...
* allow for setting of tolerances
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* autocomplete fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix inches default
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-08-12 21:39:49 -07:00
4b0f83d3ac
Bump kittycad from 0.3.12 to 0.3.13 in /src/wasm-lib ( #3401 )
...
Bumps [kittycad](https://github.com/KittyCAD/kittycad.rs ) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](https://github.com/KittyCAD/kittycad.rs/compare/v0.3.12...v0.3.13 )
---
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>
2024-08-12 20:52:48 -07:00
62c27e0809
Bump serde from 1.0.206 to 1.0.207 in /src/wasm-lib ( #3400 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.206 to 1.0.207.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.206...v1.0.207 )
---
updated-dependencies:
- dependency-name: serde
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>
2024-08-12 20:50:00 -07:00
6a09bbc0ef
Use a macro to make KCL snapshot tests easier ( #3381 )
...
Now the process for adding a new KCL test is:
- `cd src/wasm-lib`
- Write a new .kcl file in the `tests/inputs` directory, e.g. `tests/inputs/foo.kcl`
- Run `just new-test foo`
- That created `tests/outputs/foo.png`, so open it and check it looks correct
- Commit changes and open a PR
2024-08-12 23:18:44 +00:00
997f60e1e5
Rename FilletOrChamfer to EdgeCut ( #3383 )
...
* Rename FilletOrChamfer to EdgeCut
* Update tests
2024-08-12 17:56:45 -05:00
6f1d7138c0
Remove ProgramReturn ( #3382 )
...
`ProgramReturn::Arguments` variant is never instantiated and should go away. This would make `ProgramReturn` an unnecessary wrapper around `KclValue`, so the whole type should go away.
Part of https://github.com/KittyCAD/modeling-app/issues/3379
2024-08-12 17:55:05 -05:00
3dabab2c74
Rename MemoryItem to KclValue ( #3378 )
...
As @jon points out, "It's not only used in ProgramMemory. It's also
used as the return value of functions and as what gets substituted in
for the pipe substitution symbol %"
2024-08-12 16:53:24 -05:00
13986fcfd7
Rename kcl Value to Expr ( #3360 )
...
Rename kcl's Value to Expr
As Jon pointed out, kcl's `Value` enum is actually an expression.
"2+2" isn't a value, it's an expression, which can compute a value.
So I renamed it `Expr`.
2024-08-12 15:38:42 -05:00
d1e21d673e
Bump serde_json from 1.0.122 to 1.0.124 in /src/wasm-lib ( #3356 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.122 to 1.0.124.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.122...v1.0.124 )
---
updated-dependencies:
- dependency-name: serde_json
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>
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
2024-08-12 20:30:27 +00:00
ca3a88b4df
Bump kittycad and friends ( #3377 )
...
* bump all the things
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* bump
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* bump images
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 >
2024-08-12 13:06:30 -07:00
fb57df2cad
Disallow users to set theme as a project-level setting ( #3312 )
...
* Disallow users to set theme as a project-level setting
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu)
* Fix up tests that assumed theme could be set at project level
* Missed two more tests that assumed theme was a project-level setting
---------
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-12 15:18:33 -04:00
57a91cdb26
Bump syn from 2.0.72 to 2.0.74 in /src/wasm-lib ( #3354 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.72 to 2.0.74.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.72...2.0.74 )
---
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>
2024-08-12 10:21:20 -07:00
33079b4151
Bump clap from 4.5.13 to 4.5.15 in /src/wasm-lib ( #3353 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.13 to 4.5.15.
- [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/clap_complete-v4.5.13...v4.5.15 )
---
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>
2024-08-12 10:21:07 -07:00
a75157573b
Bump serde from 1.0.204 to 1.0.206 in /src/wasm-lib ( #3355 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.204 to 1.0.206.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.204...v1.0.206 )
---
updated-dependencies:
- dependency-name: serde
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>
2024-08-12 10:19:35 -07:00
e29345fbf6
Move executeCode out of routeLoaders, into shared space in Stream ( #3332 )
...
* Move executeCode out of routeLoaders, into shared space in Stream
* Update src/components/Stream.tsx
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
* Remove unused dependency
* file switching useEffect should depend on engineConnection
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu)
* Re-run CI
* Revert "A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu)"
This reverts commit d97e74a48b
.
* Post-merge fix up
---------
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2024-08-12 09:54:16 -04:00
35c7183809
fix files pane height issue ( #3337 )
2024-08-12 06:34:13 +00:00
5a25b60485
fix playwright ( #3352 )
...
* fix playwright
* fix another test
2024-08-12 15:16:13 +10:00
4b9f71c994
Update machine-api spec ( #3346 )
...
* YOYO NEW API SPEC!
* New machine-api types
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-11 18:04:30 -07:00
e86a5622c8
the printer slicer expects mm ( #3341 )
...
* the printer slicer expects mm
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu)
* empty
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-09 18:05:18 -07:00
a503d1ce50
Use named constants for settings URL query params ( #3333 )
2024-08-09 02:47:25 -04:00
ca28a5f549
Fix settings derp and app start project theme loading ( #3320 )
...
* Fix settings opening and messing up everything
* Set settings aggressively for startup project theme loading
* fmt
---------
Co-authored-by: Lee <lee@Lees-Mac-mini.local >
2024-08-08 10:44:33 +10:00
6f4bbdb79e
Fix tanArcTo ( #3318 )
...
* updated tangentArc math
* Add a test case showing tan arc then xLineTo
* Fix compile errors
* Tweaking the math
* Use + on angles
* atan2 outputs radians, not degrees
* Track ccw and center of all tan arcs
* re-sequenced atan2 arcTan
* Remove print statements
* Update the test
* Update kittycad in tauri
* New arc fields
---------
Co-authored-by: Jordan Noone <jordan@kittycad.io >
2024-08-07 18:35:41 -05:00
acfc2b47fa
increase windows stream ping interval ( #3317 )
2024-08-08 07:45:42 +10:00
9dc7ff9797
Fix type of sketchGroup function ( #3316 )
2024-08-07 15:15:22 -04:00
4bfbecd3e7
Don't set firstRender from within a routeLoader ( #3311 )
2024-08-07 06:21:15 -04:00
dff3848a00
Switch projects fix ( #3310 )
...
* switch projects fix
* add comment
2024-08-07 19:47:23 +10:00
3f082c8222
Persist theme - Reload everything on a disconnect ( #3250 )
...
* Reload everything on a disconnect
* fix unit-integration tests
* Further improvements to connection manager; persist theme across reconnects
* Fix up artifactGraph.test
* Actually pass the callback
* Kurt hmmm (#3308 )
* kurts attempts
* we're almost sane
* get tests working, praise be
---------
Co-authored-by: 49lf <ircsurfer33@gmail.com >
* typo
---------
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2024-08-07 17:11:57 +10:00
e1c45bdb33
Start to rework some of our kcl docs ( #3222 )
...
* Start to rework some of our kcl docs
Signed-off-by: Paul R. Tagliamonte <paul@zoo.dev >
2024-08-06 20:27:26 -04:00