apache / incubator-kie-issues

Apache License 2.0
12 stars 1 forks source link

Build a first version of the new React-based DMN Editor with ~90% feature parity with the current GWT-based one #577

Closed tiagobento closed 10 months ago

tiagobento commented 1 year ago
image

A screenshot of the new React-based DMN Editor.


As work on #439 continues, I thought changing the task granularity would help. We'll start with a first "base version" of the new DMN Editor, and we'll continue evolving it, eventually replacing the old one. For this first "base version" to be ready, many little things need to be addressed. As the list is long, and some things might be postponed, I figured we could use this issue to track stuff that goes into this first "base version", and things that will be addressed after it can have their own separate issues.

The first "base version" is being developed at https://github.com/tiagobento/kie-tools/tree/dmn-editor at packages/dmn-editor. You can test it by running pnpm start inside it. Multi-package live-reloading works if you do pnpm start --env live

First "base version" (in order to get it merged on main)

NOTE: This list is being triaged! Not everything listed here is going to be on the first "base version". Some stuff will be moved to their own issues and done later!

🛠️ Finish WIP components

Known crashes

Structural bugs

Decision Services

Edges

Validations

UX - Empty States

UX - General

UI flaws

Other


Other information

THEORETICALLY 'INVALID' STATES THAT ARE TEMPORARILY ALLOWED IN THE EDITOR

INTENTIONALLY TEMPORARILY LEFT OUT

SPEC DISCREPANCIES

tiagobento commented 1 year ago

Just fixed the weird repaint glitch on Safari with the help of this

Here's the commit, for anyone interested :)

Before:

https://github.com/kiegroup/kie-issues/assets/1584568/c3e5bb94-d44e-477c-aed2-2973c0f40b03

After:

https://github.com/kiegroup/kie-issues/assets/1584568/bf5b41cf-5776-4dd9-ad04-0bff2f06e4ab

tiagobento commented 1 year ago

Btw the fix for the Safari repaint glitches is not perfect, but it makes the Editor usable :)

tiagobento commented 1 year ago

Copy/cut/paste working for nodes between different instances of the DMN Editor...

https://github.com/apache/incubator-kie-issues/assets/1584568/1be91d09-2796-4d86-ade8-4f3fb1cba1e6

tiagobento commented 12 months ago

Working on

"Make the DMN Editor convert all models to latest (1.5) (this means updating the xmlns attributes on the JSON). Version is hard-coded as 1.5. We need to actually convert the models to DMN 1.5. Remember to update the kie: namespace from http://www.drools.org/kie/dmn/1.2 to https://kie.org/dmn/extensions/1.0"

now... I'll group all the migrations that need to be done here:

1.0 → 1.1