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

Add edit flow for Helix #5394

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

Conversation

pierremtb
Copy link
Collaborator

Fixes #5392

Copy link

vercel bot commented Feb 14, 2025

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Feb 22, 2025 6:33pm

Copy link

qa-wolf bot commented Feb 14, 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!

@pierremtb pierremtb changed the title WIP: Add edit flow for Helix Add edit flow for Helix Feb 14, 2025
@pierremtb pierremtb marked this pull request as ready for review February 14, 2025 23:02
@pierremtb
Copy link
Collaborator Author

pierremtb commented Feb 14, 2025

@franknoirot @jtran @nadr0 Alright adding you guys for review a little early here cause there are a few not-so-pretty things in this code but I'd like your input before spending too much time on it alone!

But outside of these small-ish things this was super easy to implement to way to go on laying out the groundwork for people to run on it 👟

return baseCommand
}

// TODO: find a way to loop over the arguments while keeping it safe
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Input welcome here. Lots of arguments here. 4 kcl, 2 options

Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting! Great test case for making this code more concise with helper functions and reorganization, thanks for doing this. I'm going to see if we can make TS happy with an Array.every over all the keys we need to be present in operation.labeledArgs, then try to loop over them in one go.

operation.labeledArgs.axis.sourceRange[0],
operation.labeledArgs.axis.sourceRange[1]
)
.replaceAll("'", '') // TODO: fix this crap
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And heeeere

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.02%. Comparing base (388371b) to head (658c60b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5394   +/-   ##
=======================================
  Coverage   86.02%   86.02%           
=======================================
  Files          95       95           
  Lines       35754    35754           
=======================================
  Hits        30757    30757           
  Misses       4997     4997           
Flag Coverage Δ
wasm-lib 86.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lf94
Copy link
Contributor

lf94 commented Feb 22, 2025

We good to move forward on this?

@pierremtb
Copy link
Collaborator Author

@lf94 it's far from perfict as is but nothing that can't be improved later

@lf94
Copy link
Contributor

lf94 commented Feb 22, 2025

As long as it's "stable" I don't mind it being a weak feature, merged and improved than forever awaited to be perfect

@pierremtb pierremtb enabled auto-merge (squash) February 22, 2025 20:22
@pierremtb
Copy link
Collaborator Author

@lf94 Yup. @franknoirot lmk if you want this merged as is or prefer to have the improvements we talked about

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.

Add edit flow for Helix
3 participants