Skip to content

#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

Merged
merged 20 commits into from
Jul 17, 2025

Conversation

andrewvarga
Copy link
Contributor

Fixes #7690 a follow up on #7609

@andrewvarga andrewvarga requested a review from a team as a code owner July 7, 2025 21:53
Copy link

vercel bot commented Jul 7, 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 Jul 16, 2025 0:04am

const artifact = findOperationArtifact(
props.item,
kclManager.artifactGraph
)
void selectOffsetSketchPlane(artifact)
Copy link
Contributor

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.

Suggested change
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.

Copy link
Contributor

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 ?

@pierremtb
Copy link
Contributor

@andrewvarga if it's ready to go could you remove the WIP prefix in the title?

@pierremtb
Copy link
Contributor

I don't know if it's gh or not but the diff doesn't look right

@andrewvarga andrewvarga changed the title WIP: #7690 Plane selection improvements #7690 Plane selection improvements Jul 9, 2025
@andrewvarga
Copy link
Contributor Author

@andrewvarga if it's ready to go could you remove the WIP prefix in the title?

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 selectOffsetSketchPlane() looks weird but that's because it now has an early return instead of wrapping most of the function in an if - is that what you're seeing or something else?

@pierremtb
Copy link
Contributor

@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

@andrewvarga
Copy link
Contributor Author

@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!
I picked up a higher prio issue in the meantime so if you're happy with this PR we can merge it, and I'll have another one open for the context menu improvements.

Copy link
Contributor

@pierremtb pierremtb left a 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)
Copy link
Contributor

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 ?

Copy link
Contributor

@pierremtb pierremtb left a 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!

@pierremtb pierremtb merged commit fa7633f into main Jul 17, 2025
57 checks passed
@pierremtb pierremtb deleted the andrewvarga/7690/plane-selection-improvements branch July 17, 2025 09:41
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.

Plane selection improvements
2 participants