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

feat(Canvas): Add new entities to the Canvas #1033

Merged
merged 1 commit into from May 2, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Apr 25, 2024

Context

Currently, setting the current DSL and creating a new entity are tied together in a single step in the NewFlow component.

This commit split that functionality into two separate buttons:

  1. DSL Selector: Meant to choose the current DSL and therefore determine which type of entities can be added to the Canvas

  2. NewEntity: This is for adding new entities, supported by the current DSL, or said differently, allowing to add entities from the current CamelResource registry.

Notes

The existing functionality from the CanvasEmptyState is preserved for now.

In addition to that, when removing all routes, a new route won't be created by default.

Screenshots

DSL Selector

image

New entity

image

Toolbar with Camel Route DSL

image

Toolbar with Kamelet DSL

image

Toolbar with Pipe

image

fix: #1030

@lordrip lordrip force-pushed the feat/add-entities-menu branch 11 times, most recently from 4bf2f0e to f0fd955 Compare April 30, 2024 16:16
@lordrip lordrip changed the title [Draft]: Add new entities to the Canvas feat(Canvas): Add new entities to the Canvas Apr 30, 2024
@lordrip lordrip requested a review from igarashitm April 30, 2024 16:20
@lordrip lordrip marked this pull request as ready for review April 30, 2024 16:20
@lordrip lordrip force-pushed the feat/add-entities-menu branch 2 times, most recently from 7f4d23c to 1ccdafa Compare May 2, 2024 11:56
Currently, setting the current DSL and creating a new entity are tied
together in a single step in the NewFlow component.

This commit split that functionality in two separate buttons:
1. DSL Selector: Meant to choose the current DSL and therefore determine
   which type of entities can be added into the Canvas
2. NewEntity: This is for adding new entities, supported by the current
   DSL, or said in a different way, allows to add entities from the
current CamelResource registry.

The existing functionality from the CanvasEmptyState is preserved for
now.

In addition to that, when removing all routes, a new route won't be
created by default.

fix: KaotoIO#1030
@lordrip lordrip merged commit 08c70ad into KaotoIO:main May 2, 2024
8 checks passed
@lordrip lordrip deleted the feat/add-entities-menu branch May 2, 2024 13:51
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.

Add RestConfiguration entities to New Entity menu
2 participants