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

Plugin web API refactor onCreateTask to allow returning inputs instead of DialogContent component #23

Open
richardguerre opened this issue Oct 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@richardguerre
Copy link
Owner

Context

The web.onCreateTask API currently allows plugins to show a Dialog to prompt the user to input more data about the task.

  • For example, the GitStart plugin, asks the user to input the task title (defaults to the same title as the item they are creating the task from), the GitStart initial task status, and the GitStart task type.
  • If there are multiple plugins that need to prompt the user for additional data, the dialogs are shown one after the other.
    • This can be tedious for users and it would more concise to ask everything in one form.
  • For a lot of plugins, they are asking additional metadata for the task, and would simply require adding an input like a dropdown to an existing form.
  • This is the example in the "Flow 1.0" project description for what is not stable about the Plugin API, hence why it is part of the "Flow 1.0" project.

Solution

  • Allow plugins to return DialogInput components so they can be rendered as part of Flow's native Create task dialog.
  • Still allow plugins to return DialogContent components so they can still prompt the user for additional content within their own dialog.
@richardguerre richardguerre added the enhancement New feature or request label Oct 15, 2023
@github-project-automation github-project-automation bot moved this to Todo in Flow 1.0 Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant