-
Notifications
You must be signed in to change notification settings - Fork 219
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
KOGITO-2674: [DMN Designer] Multiple DRDs support - Context menu component #3357
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.
Thank you, @vpellegrino, great stuff!
I personally, would add an extra show
method like this (to avoid the API users from remembering that they need to reset the menu before showing it):
dRDContextMenu.show(self -> {
self.setHeaderMenu("DRD ACTIONS", "fa fa-share-alt");
self.addTextMenuItem("Create", true, () -> DomGlobal.console.log("A"));
self.addTextMenuItem("Add to", true, () -> DomGlobal.console.log("B"));
self.addTextMenuItem("Remove", true, () -> DomGlobal.console.log("C"));
});
Let me know wdyt :-)
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.
Ohh.. I've noticed another minor thing ;-)
...lient/src/main/java/org/kie/workbench/common/dmn/client/editors/contextmenu/ContextMenu.java
Show resolved
Hide resolved
@karreiro I updated PR including your suggestions. Thanks for the feedback! |
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, @vpellegrino ;-)
Jenkins please retest this |
For the code smell, the |
Jenkins please retest this. |
The reason quality gate is failing: Please let me know if there is any action pending from my side: coverage is now 91.5% |
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.
@vpellegrino I haven't checked the code yet and kogito-channels.
I checked on business central using a DecisionNavigatorView
you shared. It works pretty well on chrome. However I got and NullPointer and freezing screen on firefox [1].
I am concerned its caused because I touched code manually to have entry point for showing your new menu. I had idea if we can not use experimental API (documented here https://github.com/kiegroup/kie-docs/pull/1131/files) that displays feature implemented as experimental just if business central is started with -Dappformer.experimental.features=true
. It would eliminate any mistake done by me when touching code locally. Not saying it is doable but at least worth to assume as I expect we will iterate over this feature longer time.
@jomarko thanks for your quick feedback. |
Test failure org.kie.workbench.common.services.backend.compiler.ConcurrentBuildTest.buildFourProjectsInFourThread seems to be not related to this PR |
...t/src/main/java/org/kie/workbench/common/dmn/client/editors/contextmenu/ContextMenuView.java
Outdated
Show resolved
Hide resolved
...lient/src/main/java/org/kie/workbench/common/dmn/client/editors/contextmenu/ContextMenu.java
Show resolved
Hide resolved
...lient/src/main/java/org/kie/workbench/common/dmn/client/editors/contextmenu/ContextMenu.java
Show resolved
Hide resolved
…eep always the same EventListener
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.
I manually retried firefox and VS code, seems working nice. Thank you @vpellegrino
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.
Good job!
SonarCloud Quality Gate failed. 0 Bugs 91.9% Coverage The version of Java (1.8.0_202) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11. |
@kiegroup/gatekeepers can you please merge? |
Please refer to: https://issues.redhat.com/browse/KOGITO-2674
Task description: Need a context menu for DRD actions
Proposed solution: Providing a generic context menu widget
There you can find an utilization example of this widget.
The result is the follow: