-
Notifications
You must be signed in to change notification settings - Fork 63
Fix deletion of unassigned standalone edge treatments #6815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm on the old onboarding bracket and other tests I did! Awesome job.
e2e/playwright/point-click.spec.ts
Outdated
@@ -2507,12 +2543,13 @@ fillet04 = fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)]) | |||
await page.keyboard.press('Delete') | |||
await page.waitForTimeout(500) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be prob better to use scene.settled(cmdBar) here than a timeout but not a bit deal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, done: a2343fc
…m/KittyCAD/modeling-app into max/undeletable-unassigned-fillet
…m/KittyCAD/modeling-app into max/undeletable-unassigned-fillet
Closes #6794
Explanation:
This PR addresses a bug where standalone edge treatments
fillet(...)
couldn't be deleted from the feature tree.Problem:
Previously, our code could only handle two cases of edge treatments:
Edge treatments in pipes:
const body = extrude(...) |> fillet(...)
Edge treatments assigned to variables:
fillet0001 = fillet(...)
Solution:
The fix identifies all three forms of edge treatment expressions by:
VariableDeclarator
andExpressionStatement
node typesdeleteTopLevelStatement
by @jtrandeleteNodeInExtrudePipe
by @Irev-DevThis ensures users can delete any edge treatment regardless of how it was created in the code.
delete.all.3.cases.mp4