Skip to content

kie-issues#669: The DMN Editor should allow using the new alternative representation of InputData nodes (DMN 1.5) #2146

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

Merged
merged 22 commits into from
Feb 12, 2024

Conversation

ljmotta
Copy link
Contributor

@ljmotta ljmotta commented Feb 7, 2024

Closes apache/incubator-kie-issues#669

Description

This PR adds the alternative input data node shape into the new DMN Editor. Now, it's possible to change the input data node shape on each DRD separately.
To accommodate those changes, the DRD selector was changed, showing the selected DRD properties. Also, the dropdown doesn't close on the DRD select, giving the user the option to check the properties before manually closing it.

Video

Untitled.video.-.Made.with.Clipchamp.4.mp4

Copy link
Contributor

@tiagobento tiagobento left a comment

Choose a reason for hiding this comment

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

@ljmotta Awesome PR! Thanks a lot for this work. Indeed a great addition to the DMN Editor.

My two most important comments here are related to two things:

  1. Unnecessary use of reactivity when you could rely on the state object directly. (This is something I think we should reassess.. I mean, for useCallback hooks, reacvitity need is really rare... as we could simply do dmnEditorStoreApi.getState() and use the most up-to-date state, right?)
  2. Optional positional boolean parameter. This really is a great source of bugs, and I think we should really avoid them. It's really easy to convert positional parameters to object parameters in VS Code too! [1]). Also, for non-positional parameters, we should also try and make it not optional. It's too easy to forget it somewhere.

[1]

Screen.Recording.2024-02-07.at.11.04.07.mov

@tiagobento tiagobento merged commit d5eec25 into apache:main Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The DMN Editor should allow using the new alternative representation of InputData nodes (DMN 1.5)
2 participants