KaotoIO / kaoto-ui

Frontend for the Kaoto project to provide an easy-to-use integration framework based on Apache Camel.
https://www.kaoto.io
Apache License 2.0
88 stars 44 forks source link

User Interface to manage annotations #2160

Open Delawen opened 1 year ago

Delawen commented 1 year ago

Please describe the feature that you want to propose

Some of the DSLs we support (Integration, Kamelet and Kamelet Binding) are Kubernetes Resources that have annotations. We would need a generic extension UI that can list the annotations and edit them.

The annotations are stored on the metadata/annotations of the flow object returned by the backend.

The backend needs to add a boolean in the dsl capabilities endpoint explaining if this UI is shown or not by DSL.

gashcrumb commented 1 year ago

Does the annotations attribute then just consist of name/value pairs? Are values only string values?

igarashitm commented 1 year ago

We can use MetadataEditor which creates configuration form from JSON schema. Currently the metadata schema is a mockup with only beans https://github.com/KaotoIO/kaoto-ui/blob/main/src/api/apiService.ts#L249

First we should migrate this to the backend - https://github.com/KaotoIO/kaoto-backend/issues/657