Dynamo icon indicating copy to clipboard operation
Dynamo copied to clipboard

AGD-2199

Open LongNguyenP opened this issue 4 years ago • 12 comments

Purpose

This PR addresses JIRA task AGD-2199: A node that allows user to pre-define a dropdown menu with an arbitrary number of customizable menu items

image

Declarations

Check these if you believe they are true

  • [x] The codebase is in a better state after this PR
  • [ ] Is documented according to the standards
  • [x] The level of testing this PR includes is appropriate
  • [ ] User facing strings, if any, are extracted into *.resx files
  • [x] All tests pass using the self-service CI.
  • [x] Snapshot of UI changes, if any.
  • [ ] Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • [ ] This PR modifies some build requirements and the readme is updated

Reviewers

(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)

(FILL ME IN, optional) Any additional notes to reviewers or testers.

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

LongNguyenP avatar Aug 23 '21 15:08 LongNguyenP

@LongNguyenP @saintentropy There is a regression NodeDocumentationMarkdownGeneratorTests.MarkdownGeneratorCommandTests.ProducesCorrectOutputFromCoreDirectory

QilongTang avatar Dec 08 '21 02:12 QilongTang

Merge conflicts with the current master has been resolved. LGTM

LongNguyenP avatar Jan 31 '22 15:01 LongNguyenP

Hi Long, I added some change requests, in addition please also the following:

  1. tests for the new node and new classes if possible.
  2. add an image or gif of the node in action to this PR

mjkkirschner avatar Jan 31 '22 18:01 mjkkirschner

Also curious, @Jingyi-Wen @LongNguyenP Is there a new icon planned for this node?

mjkkirschner avatar Jan 31 '22 18:01 mjkkirschner

Two ideas for the icon (grey background is just for reviewing visibility) custom dropdown icon ideas

@mjkkirschner @LongNguyenP

Jingyi-Wen avatar Feb 03 '22 18:02 Jingyi-Wen

@mjkkirschner @saintentropy Michael. Craig and I are thinking of making another PR for the tests so that this PR can go ahead without getting too big. Would this be a reasonable way forward?

LongNguyenP avatar Mar 03 '22 12:03 LongNguyenP

@mjkkirschner @saintentropy. I fixed a regression bug, added a couple of tests to ensure the saved menu items and selected items are saved and opened correctly from the dyn file. Also change quite a few public methods and to private to be as conservative as possible.

LongNguyenP avatar Mar 07 '22 16:03 LongNguyenP

Add @BogdanZavu as an reviewer

LongNguyenP avatar Mar 07 '22 16:03 LongNguyenP

@LongNguyenP will review when I am able - but there are 3 test failures: https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/5401/

mjkkirschner avatar Mar 07 '22 21:03 mjkkirschner

@mjkkirschner I think this is ready to go :-) with the follow tasks mentioned

saintentropy avatar Mar 28 '22 14:03 saintentropy

@saintentropy @LongNguyenP can you link the jira tickets of the followup tasks?

mjkkirschner avatar Mar 29 '22 17:03 mjkkirschner

https://jira.autodesk.com/browse/DYN-4795 and https://jira.autodesk.com/browse/DYN-4796 @mjkkirschner for the follow up tasks

saintentropy avatar Apr 05 '22 14:04 saintentropy

@QilongTang Craig suggested I bring this PR to your attention. I've made some modifications to make better use of existing UI and styles. There are a few changes outside of this component, mostly to enable better sharing and style inheritance, namely in DynamoModern.xaml. See my comments there. Happy to discuss!

twastvedt avatar Aug 15 '22 17:08 twastvedt

There is a bug when removing a list item that is fixed in #13217.

twastvedt avatar Aug 15 '22 17:08 twastvedt

@twastvedt @saintentropy I'm less worried about the style changes. While this is a new node I see, I highly encourage you to add an example of how it works as part of our node help docs. There are plenty examples at https://github.com/DynamoDS/Dynamo/tree/master/doc/distrib/NodeHelpFiles.

And consider the real effort is to

  1. add some description
  2. add an image of a small block of an example graph illustrating how it works
  3. name the files following how other files are named, so that the context menu of nodes would locate your doc OOTB

QilongTang avatar Aug 15 '22 21:08 QilongTang

also kicked off: https://master-15.jenkins.autodesk.com/view/DYN/job/DYN-DevCI_Self_Service/1083/ on the serial tests just to see if anything unexpected happens there.

tests pass there - another good practice would be to pull master into your branch, this is already done on the parallel tests, but for the serial tests, it's not done with the job I linked above, so we could still find some unexpected behavior on master-15 when we merge. I don't think it's necessary here, but good for next time.

mjkkirschner avatar Aug 18 '22 17:08 mjkkirschner