diff --git a/src/activities/webhooks/Elsa.Activities.Webhooks/ActivityTypes/WebhookActivityTypeProvider.cs b/src/activities/webhooks/Elsa.Activities.Webhooks/ActivityTypes/WebhookActivityTypeProvider.cs index c6748a573..f05099afd 100644 --- a/src/activities/webhooks/Elsa.Activities.Webhooks/ActivityTypes/WebhookActivityTypeProvider.cs +++ b/src/activities/webhooks/Elsa.Activities.Webhooks/ActivityTypes/WebhookActivityTypeProvider.cs @@ -17,7 +17,8 @@ namespace Elsa.Activities.Webhooks.ActivityTypes public class WebhookActivityTypeProvider : IActivityTypeProvider { public const string WebhookMarkerAttribute = "WebhookMarker"; - private const string WebhookActivityCategory = "Webhooks"; + private const string WebhooksActivityType = "Webhook"; + private const string WebhooksActivityCategory = "Webhooks"; private readonly IWebhookDefinitionStore _webhookDefinitionStore; private readonly IActivityActivator _activityActivator; @@ -47,14 +48,11 @@ namespace Elsa.Activities.Webhooks.ActivityTypes private ActivityType CreateWebhookActivityType(WebhookDefinition webhook) { - var typeName = webhook.Name; - var displayName = webhook.Name; - var descriptor = new ActivityDescriptor { - Type = typeName, - DisplayName = displayName, - Category = WebhookActivityCategory, + Type = WebhooksActivityType, //$"{webhook.Name} {WebhooksActivityType}", + DisplayName = $"{WebhooksActivityType}: {webhook.Name}", + Category = WebhooksActivityCategory, Outcomes = new[] { OutcomeNames.Done }, Traits = ActivityTraits.Trigger, InputProperties = new[] diff --git a/src/designer/elsa-workflows-studio/src/components/dashboard/pages/elsa-studio-webhook-definitions-edit/readme.md b/src/designer/elsa-workflows-studio/src/components/dashboard/pages/elsa-studio-webhook-definitions-edit/readme.md index 2c76b6028..fa2cccc76 100644 --- a/src/designer/elsa-workflows-studio/src/components/dashboard/pages/elsa-studio-webhook-definitions-edit/readme.md +++ b/src/designer/elsa-workflows-studio/src/components/dashboard/pages/elsa-studio-webhook-definitions-edit/readme.md @@ -7,13 +7,28 @@ ## Properties -| Property | Attribute | Description | Type | Default | -| --------------- | ----------------- | ----------- | -------------- | ----------- | -| `match` | -- | | `MatchResults` | `undefined` | -| `monacoLibPath` | `monaco-lib-path` | | `string` | `undefined` | -| `serverUrl` | `server-url` | | `string` | `undefined` | +| Property | Attribute | Description | Type | Default | +| ----------- | ------------ | ----------- | --------------- | ----------- | +| `history` | -- | | `RouterHistory` | `undefined` | +| `match` | -- | | `MatchResults` | `undefined` | +| `serverUrl` | `server-url` | | `string` | `undefined` | +## Dependencies + +### Depends on + +- [elsa-webhook-definition-editor-screen](../../../screens/webhook-definition-editor/elsa-webhook-definition-editor-screen) + +### Graph +```mermaid +graph TD; + elsa-studio-webhook-definitions-edit --> elsa-webhook-definition-editor-screen + elsa-webhook-definition-editor-screen --> elsa-webhook-definition-editor-notifications + elsa-webhook-definition-editor-notifications --> elsa-toast-notification + style elsa-studio-webhook-definitions-edit fill:#f9f,stroke:#333,stroke-width:4px +``` + ---------------------------------------------- *Built with [StencilJS](https://stenciljs.com/)* diff --git a/src/designer/elsa-workflows-studio/src/components/designers/tree/elsa-designer-tree/elsa-designer-tree.tsx b/src/designer/elsa-workflows-studio/src/components/designers/tree/elsa-designer-tree/elsa-designer-tree.tsx index 875c64b56..8782020e2 100644 --- a/src/designer/elsa-workflows-studio/src/components/designers/tree/elsa-designer-tree/elsa-designer-tree.tsx +++ b/src/designer/elsa-workflows-studio/src/components/designers/tree/elsa-designer-tree/elsa-designer-tree.tsx @@ -544,7 +544,7 @@ export class ElsaWorkflowDesigner { renderActivityBody(displayContext: ActivityDesignDisplayContext) { return ( - `