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

Add node deletion functionality in Workspace #59

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

ohltyler
Copy link
Member

Description

Adds a delete button to the header in the workflow component. Implements deleteNode() to remove the node and any related edges via reactFlowInstance context. Updates Workspace state as well (see video of Save button becoming available after deletion). Note that in order to delete, we need to propagate the ID into the data field of the ReactFlow component. We do this via a new initComponentData() fn to populate instance-specific data, such as ID. There may be more of these types of fields in the future, so we leave the new interface and fn generic.

Also cleans up the layout slightly to more closely align with UX mockups.

Demo video:

screen-capture.16.webm

Issues Resolved

Makes progress on #10 , #16

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ohltyler ohltyler merged commit 52e5cec into opensearch-project:main Oct 16, 2023
8 checks passed
@ohltyler ohltyler deleted the component-styling branch October 16, 2023 21:20
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 16, 2023
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 52e5cec)
ohltyler added a commit that referenced this pull request Oct 16, 2023
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 52e5cec)

Co-authored-by: Tyler Ohlsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants