-
Notifications
You must be signed in to change notification settings - Fork 668
LayoutSpecs Comparison #8189
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
LayoutSpecs Comparison #8189
Conversation
|
2 . Label should be hidden (pretty sure, not 100%) |
|
library.js layout spec should be seen as a prototype so no need to keep them in sync. |
|
@QilongTang - I don't think you have the proper layout spec. We already fixed the keys issue. Something fishy is going on here. I am not seeing this problem in the 2.0 build I have. I would suggest reverting the code. Also, not seeing the label sub-category |
|
@QilongTang Is this required for Dynamo 2.0? I don't trust librarie.js LayoutSpec. We need to do the comparison carefully, and I believe Dynamo /Revit layoutspec's are modified based on what they support. |
|
@Racel The label sub-cate is there in Dynamo master build @ramramps @Racel I've done the comparison very carefully :) This is not meant for submission but a discussion thread so that we know what is the state of current Dynamo's LayoutSpecs. I will close this PR since |
|
@QilongTang thanks..can you open an issue instead? |
This reverts commit 0f3ce50.
|
@mjkkirschner @ramramps I have confirmed that this sub-category should be hidden so let's deal with it in this PR since it's such a small change. |
|
LGTM |
|
@mjkkirschner @ramramps @Racel Merging this so we can hide this node for daily build users. We should discuss handling layoutSpecs updating while fixing nodes from audit result, but for now I think we all agree that the one in Librarie.js repo does not need to be maintained in the future. |
* DYN-3026-CodeCoverage-AnalysisFolder I created several test methods for increasing the code coverage in the next classes (Analysis project). - Label - SurfaceData - AnalysisExtensions - Utils Also I removed two methods from the SurfaceData.cs file since both have cero references and both are private. * DYN-3026-CodeCoverage-AnalysisFolder Fix for make the Analysis assembly visible to the AnalysisTests project. * DYN-3026-CodeCoverage-AnalysisFolder-CodeReview Changes asked by Aparajit. * DYN-3026-CodeCoverage-AnalysisFolder-CodeReview2 I re-wrote the test for the Label class since Michael asked me to use a Label inside a Code Block node, then I created 3 dyn files with one CodeBlock creating a Label, one compiling and other two with errors (on purpose) when passing parameters to the Label.ByPointAndString method. Also by Michael response I undid the changes done by Aaron in the PR #8189. Finally I applied some changes that the developer Ian Keough did like 5 years ago (HelixRenderPackage.cs -> CleanTag) but were discarded in the PR below, with the code as it is now in the Dynamo repo when creating a Label inside a Code Block it shows a strange symbol in the Background Preview. The only way to show the label text correctly was using the syntax "label:text", then Ian's discarded change was re-applied by me and now we don't need to use the weird Label syntax. #4637 * DYN-3026-CodeCoverage-AnalysisFolder-CodeReview2 I applied some changes that the developer Ian Keough did like 5 years ago (HelixRenderPackage.cs -> CleanTag) but were discarded in the PR below, with the code as it is now in the Dynamo repo when creating a Label inside a Code Block it shows a strange symbol in the Background Preview. The only way to show the label text correctly was using the syntax "label:text", then Ian's discarded change was re-applied by me and now we don't need to use the weird Label syntax. #4637 * DYN-3026-CodeCoverage-AnalysisFolder-CodeReview2 I moved the LabelTests to the DynamoCoreWpfTests project inside the Libraries folder. I removed several dll in the AnalysisTests project that are producing erros in the mono.sln.



Please Note:
DynamoRevitrepo will need to be cherry-picked into all the DynamoRevit Release branches that Dynamo supports. Contributors will be responsible for cherry-picking their reviewed commits to the other branches after aLGTMlabel is added to the PR.Purpose
I finished the comparison between the layoutSpecs.json in Librarie.js repo and the one in Dynamo Repo. And found a few differences:
There is a

Keyssub category in Librarie.js which is not there in DynamoIt turned out Dynamo is correct.
There is a Label sub category which got deleted in Librarie.js but still there in Dynamo. What should we do there? That sub-category is hidden in this PR
All resource icons and node paths are different in both json which makes it pretty hard to maintain both. What is the reasons behind it? @sharadkjaiswal
A few icons for category is removed but I assume for good purpose. E.g. Geometry->Modifiers->Geometry
We really need to stop syncing this json everywhere and create guidlines for whichever client willing to add new nodes. Hope this PR could be the discussion point of a new baseline.
Declarations
Check these if you believe they are true
*.resxfilesReviewers
@mjkkirschner @ramramps
FYIs
@Racel