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 <WorkflowButton> component #304

Merged
merged 4 commits into from
Nov 3, 2023
Merged

Add <WorkflowButton> component #304

merged 4 commits into from
Nov 3, 2023

Conversation

yhatt
Copy link
Owner

@yhatt yhatt commented Nov 3, 2023

<Blocks>
  <Actions>
    <WorkflowButton
      actionId="action"
      value="value"
      style="primary"
      workflow={{
        trigger: {
          url: "https://slack.com/shortcuts/Ft0123ABC456/321...zyx",
          customizable_input_parameters: [
            {
              name: "input_parameter_a",
              value: "Value for input param A"
            },
            {
              name: "input_parameter_b",
              value: "Value for input param B"
            }
          ]
        }
      }}
    >
      Run Workflow
    </Button>
  </Actions>
</Blocks>

Closes #298.

ToDo

  • Add <WorkflowButton> component
  • Tests
  • Documentation

@yhatt yhatt merged commit b9b6e12 into main Nov 3, 2023
3 checks passed
@yhatt yhatt deleted the workflow-button branch November 3, 2023 03:20
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.

<WorkflowButton> interactive component
1 participant