Skip to content

Comments

6458 Browser text-to-CAD should overwrite project and zoom to fit new model#6626

Merged
andrewvarga merged 3 commits intomainfrom
andrewvarga/6458/browser-text-to-cad-zoom-to-fit
May 6, 2025
Merged

6458 Browser text-to-CAD should overwrite project and zoom to fit new model#6626
andrewvarga merged 3 commits intomainfrom
andrewvarga/6458/browser-text-to-cad-zoom-to-fit

Conversation

@andrewvarga
Copy link
Contributor

@andrewvarga andrewvarga commented May 1, 2025

@qa-wolf
Copy link

qa-wolf bot commented May 1, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@vercel
Copy link

vercel bot commented May 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2025 8:11pm

@andrewvarga
Copy link
Contributor Author

andrewvarga commented May 1, 2025

@franknoirot @Irev-Dev this is the new button for text-to-CAD in the browser:
Screenshot 2025-05-01 at 16 32 51

I'm thinking if it's still useful to keep the existing content and append it with the newly generated model..should we have a second button for that or that would make the UI too crammed?

There is a separate "Modify With Zoo Text-To-CAD" option that can be used for updating the existing model so maybe that's enough, but I imagine that can change the existing model unexpectedly, so it's not guaranteed it will just append a new model even if the user asks something like "add a new model to the existing one that looks like this: etc..."

On desktop this is not an issue I think because a new file is generated so it can be used flexibly by import.

@franknoirot
Copy link
Contributor

I'm thinking if it's still useful to keep the existing content and append it with the newly generated model..should we have a second button for that or that would make the UI too crammed?

I don't think we should do that because Text-to-CAD is run in such a way that we know it won't return failing KCL, but we have no way of knowing if the user's existing KCL in the file will collide or otherwise break the new Text-to-CAD-generated KCL appended after it; for example, if there are parameter names that collide.

Copy link
Contributor

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I don't think you'll be able to have a web E2E test yet, but you can make an issue for it like #6611

@andrewvarga andrewvarga changed the title WIP: 6458 Browser text-to-CAD should overwrite project and zoom to fit new model 6458 Browser text-to-CAD should overwrite project and zoom to fit new model May 5, 2025
@andrewvarga andrewvarga merged commit a04f7e9 into main May 6, 2025
51 of 52 checks passed
@andrewvarga andrewvarga deleted the andrewvarga/6458/browser-text-to-cad-zoom-to-fit branch May 6, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

browser text-to-cad should zoom to fit after loading new model

2 participants