elsa-workflows / elsa-studio

A modular, extensible dashboard application framework
MIT License
187 stars 90 forks source link

Add Functionality to Copy Entire Path from HTTP Endpoint Activity #133 #308

Closed abhishekp21 closed 1 month ago

abhishekp21 commented 1 month ago

This PR introduces a "copy full path" feature for the httpendpoint activity in Elsa #133 , utilizing the MudExtension component to enable start and end adornments. This feature has been integrated into the SingleLineComponent, allowing it to be toggled on or off through a flag in elsa-core. Currently, the Blazor text field has a limitation where both start and end adornments cannot be added to the same component, an issue acknowledged in the MudBlazor repository (Issue #8945).

Key Points of this PR:

  1. Leverages MudExtension to support both start and end adornments.
  2. Adds a copy icon as an end adornment, with the flexibility to support more adornments in the future.
  3. Integrates the feature into the SingleLineComponent with a toggle flag in elsa-core.
image

Please note a side effect: the placeholder text appears at the top of the textbox rather than centered, due to both adornment slots being added by default. image

I believe this enhancement adds valuable functionality, but I would appreciate your feedback on whether this approach aligns with the project’s goals and standards. As this is my first PR for this library, look forward to future contributions. I welcome any suggestions or modifications to improve this implementation.

Note: After Elsa-core PR - https://github.com/elsa-workflows/elsa-core/pull/6037 merges the api-client lib version need to be updated in elsa-studio

abhishekp21 commented 1 month ago

@dotnet-policy-service agree