KOGITO-3656/KOGITO-5649: Support copy/paste integration with other spreadsheets / Support single/multiple cells highlight #103
Conversation
01 rename columnWe have name and data type for columns. however currently I am not able to rename any column. Is that related to this PR? |
02 multiple cells selectionIf I understand correctly from the gif, I should be able to select multiple cells (of my decision table for example) if I simply drag a rectangle with mouse. If that is correct, I struggle to use this feature. Was able to select desired area in 1/10 attempts. The selection feature was in most cases even not started or it was stopped preliminary. Is this dependent on some OS Mouse Speed settings? Is some keyboard key needed to use the selection feature? |
03 render after pasteTry to paste some values into Relation expression, however not into [0, 0] cell. The UI will be not rendered with pasted values, however they will be already shown in the json presenter bellow. Also the "Define 50x50 Relation expression" test is failing. On the main branch the test passes. |
05 invocationVery similar issue as 04 |
06 listVery similar issue as 04 |
07 empty cellsEmpty cells in the copied area behavior is different from google spreadsheets Original content in DMN editor Copied area the result in DMN editor the result in google spreadsheets |
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.
@karreiro thank you for the PR. It is a huge improvement. However I can not approve due tho the comments above.
@karreiro I tried also to write some cypress test with t do sanity check of copy and paste, using this paste custom command [1], however I am not sure, what element should I locate/what element should consume the paste event. Could you advise? [1] |
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.
The code looks great, with minor comments.
I am waiting for you to solve the issues that @jomarko raised before performing manual tests.
Since the boxed-expression-component
can be integrated anywhere, maybe it's better to set the scope of DOM operations on the boxedExpressionEditorRef
instead of document,
WDYT?
const globalContext = useContext(BoxedExpressionGlobalContext);
globalContext.boxedExpressionEditorRef?.current;
```1) Should `dmn-runner-showcase` folder be inside `boxed-expression-component`? Logically it is a self-contained project that *uses* the `boxed-expression-component`. Any technical reason for not being an isolated project which has `boxed-expression-component` as a dependency?
...-editors-js/packages/boxed-expression-component/src/components/SelectionBox/SelectionBox.tsx
Outdated
Show resolved
Hide resolved
...-editors-js/packages/boxed-expression-component/src/components/SelectionBox/SelectionBox.css
Outdated
Show resolved
Hide resolved
kogito-editors-js/packages/boxed-expression-component/src/components/Table/EditableCell.tsx
Outdated
Show resolved
Hide resolved
kogito-editors-js/packages/boxed-expression-component/src/components/Table/Table.tsx
Outdated
Show resolved
Hide resolved
898983d
to
0f546c5
Compare
The (build) Kogito Tooling Editors Java check has failed. Please check the logs. |
Thank you for the review @jomarko and @vpellegrino. I've fixed all issues mentioned above. Also, I've improved the selection mechanism (following the item 02 multiple cells selection), now it's easier to select multiple elements: The live demo (in the PR description) is updated, and this PR is ready for the re-review. 🚀 Thanks again for the feedback! |
02_3I can still reproduce #103 (comment) |
KOGITO-5649: Support single/multiple cells highlight
0f546c5
to
ae4f07d
Compare
Thanks for the review, @jomarko. I've answered each topic inline:
The live demo (in the PR description) is updated, and this PR is ready for the re-review. Thanks again for the feedback! |
Kudos, SonarCloud Quality Gate passed! |
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.
@karreiro thank you. The 02_4 is still reproducible, I reported it separately [1] as I have PTO until 28th of September to not block merge of this.
@vpellegrino Could you please take a look at this PR? :-) |
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.
LGTM,
thanks @karreiro
JIRAs:
Here's the live demo: karreiro.com/kogito-editors-java