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

Remove the guidata option #413

Merged
merged 22 commits into from
Sep 16, 2024
Merged

Conversation

arjxn-py
Copy link
Member

Should potentially close #410

@arjxn-py arjxn-py marked this pull request as draft September 12, 2024 10:44
Copy link
Contributor

github-actions bot commented Sep 13, 2024

Preview PR at appsharing.space

@arjxn-py
Copy link
Member Author

Bot please update snapshots!

@arjxn-py arjxn-py marked this pull request as ready for review September 13, 2024 10:12
@arjxn-py arjxn-py closed this Sep 13, 2024
@arjxn-py arjxn-py reopened this Sep 13, 2024
@arjxn-py arjxn-py changed the title [WIP]: Remove the guidata option Remove the guidata option Sep 13, 2024
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks for starting this!

I've not looked too deeply into the implementation yet, but it looks like this PR is breaking the some logic upon the application of a boolean operator.
When creating two initial shapes, then applying a cut operator on them, the two initial shapes are not set hidden anymore.
Also when trying to hide them manually from the left panel seems to not work reliably.

I wonder if this is the cause of the visual regression the CI has seen.

@arjxn-py
Copy link
Member Author

I've not looked too deeply into the implementation yet, but it looks like this PR is breaking the some logic upon the application of a boolean operator.
When creating two initial shapes, then applying a cut operator on them, the two initial shapes are not set hidden anymore.
Also when trying to hide them manually from the left panel seems to not work reliably.

I noticed this after your comment, i'm looking into why this is happening. Thanks for pointing it out.

@trungleduc
Copy link
Member

color-error
This error here is related?

@arjxn-py
Copy link
Member Author

This error here is related?

Might be related to #397, have to look into it. Thanks a lot for letting me know

@arjxn-py
Copy link
Member Author

Bot please update snapshots!

@arjxn-py arjxn-py closed this Sep 14, 2024
@arjxn-py arjxn-py reopened this Sep 14, 2024
@arjxn-py
Copy link
Member Author

This error here is related?

Might be related to #397, have to look into it. Thanks a lot for letting me know

Hi @trungleduc, I tried reproducing this on my end locally but it seems like it works fine for me. However I'd want to confirm a couple of things -

  • Did you select any object before clicking intersection? (As it takes the color of that object)
  • Do you also get commands.js:262 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value') error when you try to do intersection with no obect or a single object? (This should be a valid error but maybe we could handle it better.)

@arjxn-py
Copy link
Member Author

jcad-guidata.mp4
  • Visibility toggling works fine
  • Only result is visible after operation

@trungleduc
Copy link
Member

yeah, I can not reproduce it anymore, thanks for double-checking it!

packages/base/src/commands.ts Outdated Show resolved Hide resolved
packages/base/src/panelview/objecttree.tsx Outdated Show resolved Hide resolved
@trungleduc
Copy link
Member

we should update https://github.com/jupytercad/JupyterCAD-FreeCAD since it also uses the guidata section

@arjxn-py
Copy link
Member Author

we should update https://github.com/jupytercad/JupyterCAD-FreeCAD since it also uses the guidata section

Yes, I'll be on that next. Thank You :)

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks! Let's make an alpha release of this so we can start updating jupytercad-freecad

@martinRenou martinRenou merged commit 482f0cf into jupytercad:main Sep 16, 2024
9 checks passed
@arjxn-py
Copy link
Member Author

Thanks! Let's make an alpha release of this so we can start updating jupytercad-freecad

Sounds good, should I wait for the release to open a PR on jupytercad-freecad?

@martinRenou
Copy link
Member

That will be easier for you that way 👍🏽

@martinRenou
Copy link
Member

@arjxn-py
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the guidata option
3 participants