Skip to content

Comments

Make sweep tests more point-and-click like and clean up pathToNode retrieval#6963

Merged
pierremtb merged 4 commits intomainfrom
pierremtb/issue6952-Sweep-point-and-click-is-picking-the-wrong-profile-variable
Jun 2, 2025
Merged

Make sweep tests more point-and-click like and clean up pathToNode retrieval#6963
pierremtb merged 4 commits intomainfrom
pierremtb/issue6952-Sweep-point-and-click-is-picking-the-wrong-profile-variable

Conversation

@pierremtb
Copy link
Contributor

@pierremtb pierremtb commented May 15, 2025

Relates to #6952

Part of #6650.

@vercel
Copy link

vercel bot commented May 15, 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 Jun 2, 2025 1:25pm

Comment on lines -140 to +142
const pathNodePath = getNodePathFromSourceRange(
ast,
path.graphSelections[0].codeRef.range
)
// Find the path declaration for the labeled argument
const pathDeclaration = getNodeFromPath<VariableDeclaration>(
ast,
pathNodePath,
path.graphSelections[0].codeRef.pathToNode,
Copy link
Contributor Author

@pierremtb pierremtb May 15, 2025

Choose a reason for hiding this comment

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

@Irev-Dev @jtran I was playing with this as I remember you telling me to start trusting codeRef.pathToNode more. This change away from getNodePathFromSourceRange works perfectly for me when I'm creating a sweep, but not if I'm editing one. Just a data point, I can help investigate whenever

Related https://github.com/KittyCAD/modeling-app/pull/6737/files#r2077656349

@pierremtb pierremtb changed the title WIP: udpate sweep point-and-click tests and mess with pathToNode Make sweep tests more point-and-click like and clean up pathToNode retrieval May 17, 2025
@pierremtb pierremtb marked this pull request as ready for review May 17, 2025 20:07
@pierremtb pierremtb requested review from a team, Irev-Dev and jtran May 17, 2025 20:08
@pierremtb pierremtb enabled auto-merge (squash) May 18, 2025 15:14
@pierremtb pierremtb disabled auto-merge May 18, 2025 15:46
@pierremtb pierremtb marked this pull request as draft May 18, 2025 15:49
@pierremtb pierremtb marked this pull request as ready for review June 2, 2025 20:49
@pierremtb pierremtb merged commit 8dd2a86 into main Jun 2, 2025
54 checks passed
@pierremtb pierremtb deleted the pierremtb/issue6952-Sweep-point-and-click-is-picking-the-wrong-profile-variable branch June 2, 2025 20:49
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.

2 participants