-
Notifications
You must be signed in to change notification settings - Fork 7
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
Refine the CreateObject component #152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @adecler! That's veeery very nice 😄
Can I be anal and ask for 2 changes?
- Can we avoid triggering the auto-close of the
Override Inputs
menu after you click on a property? And maybe rename it to something more human-like rather than machine-like? MaybeAdd/Remove Inputs
? - Can we remove
Name
as well? I don't see why it should be an exception to the properties. We still need to remove the input every time we want to create an object if the properties is not relevant (which is 80% of the cases).
I'll do some further tests in the meanwhile!
<Compile Include="Templates\SelectorMenu_Wpf.cs" /> | ||
<Compile Include="Templates\ItemSelectorMenu.cs" /> | ||
<Compile Include="Templates\ItemSelectorMenu_WinForm.cs" /> | ||
<Compile Include="Templates\ItemSelectorMenu_Wpf.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
First testing - this is really nice @adecler 😸 - I think the syntax we have gone with works well! Thanks On @epignatelli comment above:
I personally would give the exception to Will be useful to have defaults set though for the properties, although @adecler I think you mentioned this was not trivial to reflect? |
Maybe I have the wrong picture, but I thought that the cases where we are using Using a default value is definitely a nice option as well! |
I have added default values. Know that you will need BHoM/BHoM_Engine#1308 for this to work properly so important to merge both together (although it doesn't actually depends on it in the regular sense of the word) |
Alright guys, I think I have addressed all your requests. The only one I haven't touched is the question of including/excluding
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding do-not-merge because dependencies have not been merged yet. Feel free to remove the label and merge when they will. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gosh - sorry @adecler - I am not getting the same behaviour as yourself and @epignatelli with the new menu on the Create Component.
See below - Add/Remove Support for instance is having no effect.
I certainly think I am not doing anything wrong here, but will certainly recheck all repos etc. in the morning. Can sanity check together on call tomorrow too perhaps.
Other than this!! (🤦♂ sorry!!) - all looking really good with latest subtle tweaks!
@al-fisher , we'll have to debug on your machine because it's all working fine for me even reproducing your exact example (down to where you click) |
As expected - this was user error on my part! Thanks @adecler 😄 |
Approving based on testing and behaviours of the Add/Remove menus working really well! Not withstanding @epignatelli’s further improvement issues. Leaving BHoM_UI and Excel_Toolkit do seem to build fine both on
@awakeman FYI |
@al-fisher, thanks for checking that. I forgot Excel toolkit is not exactly interfacing with the BHoM_UI the same way. I have created a PR that fixes th eproblem here: https://github.com/BHoM/Excel_Toolkit/pull/169. |
Thanks @adecler - approved the raised Excel PR also now. Cheers |
Issues addressed by this PR
Closes #151
Test files
Just play with the CreateOBject component and the global menu
Changelog
Additional comments
See #147 for a full discussion regarding those new features