Skip to content
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

Creates serverless-workflow-diagram-editor package #2

Merged
merged 10,000 commits into from
Mar 11, 2022
Merged

Conversation

handreyrc
Copy link
Owner

Testing merge

Jozef Marko and others added 30 commits August 12, 2021 12:21
Co-authored-by: Kogito Tooling Bot <kietooling@gmail.com>
* KOGITO-5642: Activate sonar check

* Add jenkinsfile to run analysis on PR

* Stabilize test on run-code-coverage profile

* Create pipeline

* Remove sonarcloud-analysis profile config

* Skip gwt compilation for run-code-coverage profile

* Convention over configuration - default repository

* Decrease from 16G nodes to 8G nodes

* skop sonar for dmn-webapp-[kogito-runtime|kogito-testing]
Folders in jenkins workspace are generated according to the job ID. Whitespaces in the ID causes an issues.
…d define jsInterop classes for loading/saving expressions (apache#104)

KOGITO-3661 Integrate boxed-expression-component inside dmn-loader and define jsInterop classes for loading/saving expressions (apache#104)
…pache#103)

KOGITO-3656: [DMN Designer] New boxed expression editor - Support copy/paste integration with other spreadsheets

KOGITO-5649: [DMN Designer] New boxed expression editor - Support single/multiple cells highlight
…ion column width is updated too many times in some scenarios (apache#116)
Jozef Marko and others added 27 commits March 9, 2022 15:35
… Expression editor tests (apache#853)

* KOGITO-6782: Wait until selected dropdown item disappear

* Build No_2

* Trigger build No_3
…o JavaCodeCompletion service (apache#783)

* Removing Mocks

* KOGITO-6276: Integrating isLanguageServerAvialable

* KOGITO-6276: Integrating isLanguageServerAvialable

* KOGITO-6276: Integrating getClass LSP server call

* KOGITO-6276: Fixed DMNLoader compilation

* KOGITO-6267: Do not show the button in DEFAULT channel

* KOGITO-6276: Implementing getField from LSP extension

* KOGITO-6276: debounce effect on searching classes + Minor changes

* KOGITO-6276: Updating showcase

* KOGITO-6276: Improved UI ofr the First step

* KOGITO-6276: Updated i18n entries

* KOGITO-6276: Tests updated + i18n

* KOGITO-6276: Names refactoring

* KOGITO-6276: Names refactoring

* KOGITO-6276: Compilation fixed

* KOGITO-6276: Improved Button status managment

* KOGITO-6276: Tests

* KOGITO-6276: Tests fixed

* KOGITO-6276: Tests fixed

* KOGITO-6276: Tests fixed

* KOGITO-6276: Tests fixed

* KOGITO-6276: Fixed JavaCodeCompletion API call

* KOGITO-6276: Fixing JavaCodeCompletionService

* KOGITO-6276: RootUri fixed

* KOGITO-6276: Reverted settings.json change

* KOGITO-6276: Package name fix

* KOGITO-6276: Fixes after repo renaming

* KOGITO-6276: JavaCodeCompletion activatorUri fix

* KOGITO-6276: Reverted changes on JavaCodeCompletion services

* KOGITO-6276: Temporary hide import java classes button

* KOGITO-6276: Removed settings.json
* Give the filler the ability to set for an expression (e.g. DecisionTable) the id from context entry

* Adding selectObject function to GWT interface

* Setting decisionNodeId as main node root id

* Managing selection click on LiteralExpression

* Managing selection click on PMMLLiteralExpression

* Returning a new LiteralExpression for each new added item list (instead of one single memoized one)

* Managing root selection click

* Managing table based expressions selection click

* Reloading expression editor when some property on properties' panel changes

* Stabilize Change Decision Table from Any to Custom Data Type

Co-authored-by: Jozef Marko <jomarko@redhat.com>
* KOGITO-6506: Support transformation in External Data Sets

* Fixing imports
…`stunner-editors` (apache#850)

* KOGITO-6496: Removing jbpm-bom (not used)

* KOGITO-6496: Removed drools-bom (already imported in kie-dmn-bom

* KOGITO-6496: Removing unused h2 dep

* Removed kie-bom

* KOGITO-6496

* KOGITO-6496: Using version 8.17.0.Beta for kie-dmn-bom. Removed drools-workbench-models-datamodel-api dependency

* KOGITO-6496: Using version 8.16.1.Beta for kie-dmn-bom

* KOGITO-6496: Setting version.org.kie to 8.16.1.Beta and version.org.kie7 to 7.65.0.Final

* KOGITO-6496: Update to drools 8.17.0.Beta
… Workflow Editor (apache#871)

* KOGITO-6828: Monaco font is not configured properly

* KOGITO-6828: Monaco font is not configured properly
* Clean up common widget and scesim dependencies

* Cleanup common widgets

* trigger build
…low Editor (apache#868)

* KOGITO-6807: Implement undo, redo and isDirty

* KOGITO-6807: Implement undo, redo and isDirty

* KOGITO-6807: Implement undo, redo and isDirty
… Code's theme (apache#872)

* KOGITO-6834: Monaco editor theme should follow VSCode theme

* KOGITO-6834: Monaco editor theme should follow VSCode theme

* KOGITO-6834: Monaco editor theme should follow VSCode theme
* Persist DMN Runner Data on browser

* Use the dmn runner data as source of truth

* Improve types

* Extract to custom hook

* Add useEffect to update filename

* Modify dmn runner inputs when renaming the file

* Create DMN Runner context

* Enable delete DMN Runner Workspace

* WIP delete

* Refactor to use context

* Use broadcast for file update

* Fix update data to work between tabs

* Fix tabular view

* Sync between tabs

* Update DmnRunnerLoading to work with the form

* Make it possible to delete the inputs

* Add download inputs

* Add upload inputs

* Clean up

* Fix dmn loading screen css

* Fix DMN Runner file update

* Fix sync between tabs and runner loading

* Rollback workspace context

* Refactor dmn runner inputs names

* Fix dmn runner table re-render

* Make dmn runner inputs listens to workspaces

* Improve code legibility

* Increase debouce time to update the filesystem

* Add wait before start using the form

* Scroll to the bottom to make element visible

* Wait before check results
… the Monaco Editor for the Serverless Workflow Editor (apache#865)

* First iteration. Widgets and completion dependent on JSON Paths

* Improving widgets creation

* Adding a lot of Code Lenses to prove the point :)

* Improving the code a little bit

* Rendering envelopes

* Improve widgets mechanism

* Adding some indentation to codelenses at end

* Code improvements

* Don't allow two widgets to be open at the same time if they're on the same line

* Reorganizing

* Completion working more or less

* Prepare for PR

* PR cleanup

* PR cleanup

* Fix imports

* Make autocompletion resilient to errors while parsing the JSON

* Removing wrong dependency
)

* ArrowLeft and ArrowRight action WIP

* Vertical arrow keys navigation and table head/body traversion WIP

* horizontal arrow keys navigation WIP

* Fixed pixel bumping during cell focus

* Arrow keys data cells navigation

* Add keyboard navigation integration testAdd keyboard navigation integration tests

* WIP cell focus only

* FIX: edit mode, rightclick -> the focus is lost

* close the menu if user is moving

* Replace HTMLTableCellElement with HTMLTableCellElement for deprecation

* Moved keyboard navigation logic to tablebody to work with context
tableMoved keyboard navigation logic to tablebody to work with context
tables

* Context type: navigate to last row

* ContextTable: use correct rowindex for last row

* Fixed wrong margin on focus of the last additive-cell

* Improved integration keyboard navigation & various menus

* Improved Decision Table Keyboard Navigation Tests

* Set initial isContextMenuOpen

* Moved isContextMenuOpen logic to PopoverMenu component

* Updated branch from upstream branch and fixed tests build failure

* FocusUtils: ArrowNavigation with nested tables

* TableBody: open the context menu when press enter if is a context cel

* Add keyboard navigation tests for relation_expression_spec

* Fixed globalContext errors in unit tests

* fixed build:prod linting warning

* tasks organization

* FIX: Online-Editors always saving

* Task writing

* use decision_table_expression.ts and rename it to decision_table_expression_spec.ts

* FIX: My understanding is, to test nested relation, the focused cell should be one of "nested 1", "nested 2" or "nested 3", like attached. Created manually, not as result of your tests.

* FIX selectors introduced in cypress tests are heavily index based

* FocusUtils unit tests WIP

* Add FocusUtils unit tests

* make it consistent with the currentEl. Use currentCell and currentBody

* No need to call useContext since we are already calling a function that returns it: useBoxedExpression()

* No need to call useContext since we are already calling a function that returns it: useBoxedExpression()

* Unused constant.

* Probably we don't need to set a callback for useEffect (which requires a re-render), and maybe you can change setIsContextMenuOpen inside the custom hook useContextMenuHandler

* We should keep the contexts independent. This context is already available by using the usingTestingBoxedExpressionProviderContext or wrapComponentInContext methods, no need to pass it here.

* Removed some console.log

* View mode: Starting typing should automatically force the cell into edit mode. When the cell enters     edit mode this way, it really means "replace" and it should assume the text is being replaced, not appended to.

* Tab navigation WIP

* FIX: View mode: Tab/shift+tab should move focus one cell to the right/left. At the last cell on a line tab should advance to the first row on the next line.
FIX: Edit mode: Tab/shift+tab should end editing and advance the focus to the next cell to the right. Currently it ends editing but you lose the focus rectangle and have to hit tab again to get it back. You can’t type “AA” tab “BB” to put AA in cell 1 and BB in cell 2, especially if there is already text in the cells.

* FIX When edit the last cell of a row, press tab -> focus is lost

* add todo

* FIX: select a td, then press shift -> focus is lost

* Removed comment and todo: it's better not to manage the click event only in the TableBody also for EditableCell

* Removed unused imports

* Reverted changes to be used in a different PR

* Open PMMLLiteralExpression on enter press

* PMMLLiteralExpression: close on esc from table

* Block navigation on PMMLLiteralExpression menu open

* retrigger checks

* Changed angle brackets casting

* Fix: users need to press tab multiple times to edit cell in the
DMNRunner table

* Use DOM events instead of React events

* Fixed typeTab cypress command according to the current event listening

* Changed function defs to es6

* Add option to disable keyboard navigation on the DMNRunner

* Merge WIP

* Merge WIP, Resolved TableBody.tsx conflicts

* Removed typeTab() Cypress command in favor of the realPress() plugin

* Fixed keyboard navigation from the last row in Context expression on the
online-editor. Done creating TdAdditiveCell component like TdCell.

Co-authored-by: Fabrizio Antonangeli <fantonan@fantonan.remote.csb>
Co-authored-by: Luiz Motta <luizjoaomotta@gmail.com>
…ps errors with esc key (apache#867)

* Datatype input, keep PopoverMenu open WIP

* Todos organization and starting again this task

* keep context menu open after type selection changes

* WIP

* Implemented popover events logic to handle esc key

* save selection only after context closed

* select boxes in header cells popups, user can cancel context menu of header cell by pressing escape, however if an selectbox selection was changed, before, such change is not canceled

* Todo writing

* E2e tests for expression name input

* EditExpressionMenu: do not close the contextMenu onExpressionNameChange

* input boxes in header cells popups, if user change column name of a decision table input column, then he press escape, then column is correctly not renamed, however if the menu is reopened, the new value is stored there

* update e2e tests with the new popover behavior

* update unit tests with the new popover behavior

* Code review: changed cypress selector

* onlineEditor: update e2e tests with the new popover behavior

* Fixes: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812726880

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812728373

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812728664

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812728757

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812729404

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812730417

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812762420

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812818155

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812820040

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812820257

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#discussion_r812822183

* Fixes comment: https://github.com/kiegroup/kie-tools/pull/867#pullrequestreview-890898009

Co-authored-by: Fabrizio Antonangeli <fantonan@fantonan.remote.csb>
@handreyrc handreyrc merged commit 4f2b91c into main Mar 11, 2022
handreyrc pushed a commit that referenced this pull request Mar 11, 2022
handreyrc pushed a commit that referenced this pull request Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.