Skip to content
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

Feature: new axis and edge selection workflow for point and click revolve #4939

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

nadr0
Copy link
Collaborator

@nadr0 nadr0 commented Jan 6, 2025

Issue

Original revolve ticket #3714
This is an additional feature to improve the point and click workflow.

We want the ability to let the user to select edges or local sketch axis from the point and click workflow

Implementation

  • Added validation on the modeling command config to validate if they select and Axis or an Edge
  • Within revolveSketch AST mod I check if they selected and axis or and edge when generating the axis = <> result
  • I create the literals 'X' and 'Y' when they select local sketch axis

Future support

This should unblock the point and click workflow for revolve for users. I think once this is in nightly for a few days we can remove the dev only flag and release it to users. Since they can choose any axis = <> value and we have dry runs to prevent bad edge selections.

Demo video

2025-01-06.10-29-29.mp4

Copy link

qa-wolf bot commented Jan 6, 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!

Copy link

vercel bot commented Jan 6, 2025

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Jan 7, 2025 7:04pm

Copy link
Collaborator

@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.

Great stuff! Might want to exclude the snapshot changes

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you know why this snapshot changed?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think our dev infra is struggling a bit, but maybe we shouldn't commit this one?

@@ -337,8 +338,31 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
required: true,
skip: true,
},
axis: {
axisOrEdge: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was there no affordance like label to let you fix that AxisOrEdge thing you mentioned in your demo video? I can make an issue for that, we should make that not bound to the argument name in the source code.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Discussed in Slack, we'll address this missing functionality of the command palette configuration in another PR.

@@ -47,7 +47,9 @@ export type ModelingCommandSchema = {
Revolve: {
selection: Selections
angle: KclCommandValue
axis: Selections
axisOrEdge: string
Copy link
Collaborator

Choose a reason for hiding this comment

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

[nit] this could be a union type of 'Axis' | 'Edge' I think

Copy link
Contributor

Choose a reason for hiding this comment

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

i dont think these were supposed to generate

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe you need to rebase on pierres change to the snapshot tests

@jessfraz
Copy link
Contributor

jessfraz commented Jan 7, 2025

needs a playwright test :)

@nadr0 nadr0 changed the title Nadro/adhoc/revolve axis selection workflow Feature: new axis and edge selection workflow for point and click revolve Jan 7, 2025
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.

3 participants