-
Notifications
You must be signed in to change notification settings - Fork 82
#7690 Plane selection improvements #7707
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
#7690 Plane selection improvements #7707
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const artifact = findOperationArtifact( | ||
props.item, | ||
kclManager.artifactGraph | ||
) | ||
void selectOffsetSketchPlane(artifact) |
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.
The function selectOffsetSketchPlane
now returns a Promise<Error | boolean>
instead of a Promise<boolean>
, but this call doesn't handle potential errors. Consider updating to:
const result = await selectOffsetSketchPlane(artifact);
if (err(result)) {
console.error(result);
return;
}
This ensures errors are properly logged and handled before proceeding.
void selectOffsetSketchPlane(artifact) | |
const result = await selectOffsetSketchPlane(artifact); | |
if (err(result)) { | |
console.error(result); | |
return; | |
} |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
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 think the bot is right there @andrewvarga ?
@andrewvarga if it's ready to go could you remove the WIP prefix in the title? |
I don't know if it's gh or not but the diff doesn't look right |
Sure, I was working on the context menu related UX fixes but it can be on another PR. Which part of the diff doesn't look right? To me the diff on |
@andrewvarga Oh yeah no problem at all. In this case I think the "Convert to draft" button would be best to signal the WIP status and most importantly prevent us from approving and merging hahaha |
You're right, I'll start using that! |
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.
Just two quick things to check below. Also totally good if this is delayed a bit versus another priority!
const artifact = findOperationArtifact( | ||
props.item, | ||
kclManager.artifactGraph | ||
) | ||
void selectOffsetSketchPlane(artifact) |
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 think the bot is right there @andrewvarga ?
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.
Nice, thanks for the updates!
Fixes #7690 a follow up on #7609