Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Add "one-click" tasks #10

Open
JeanMertz opened this issue Jun 8, 2019 · 0 comments
Open

Add "one-click" tasks #10

JeanMertz opened this issue Jun 8, 2019 · 0 comments
Milestone

Comments

@JeanMertz
Copy link
Contributor

Another quality-of-life improvement for pipeline-heavy workflows, is having "one-click pipelines" that (as the name implies) don't require any configuration, and run instantly when you click them.

This can again be made client-side only for now, but could be migrated to a server-side implementation once user sessions are a thing.

Screenshot 2019-06-08 at 15 47 44

The idea would be as follows:

  • You can create a "one-click pipeline" based on an existing pipeline by opening that pipeline, filling in all required details, and instead of running the pipeline, selecting "save", and giving the pipeline a name.
  • These pipelines are visually distinct from others.
  • They also have their description removed, as it's assumed you know what it does, so that they take less room in the list of pipelines.
  • They are always listed as the top results, above favoured (Add a "favourites" tasks list #9) and regular pipelines.
  • If you click them, they open, and then directly run the pipeline with the pre-filled variables.
  • Other than that, they behave the same as other pipelines, so they can be filtered using the search bar.

As for the implementation itself, there are a few things to do:

  • Keep a local store of "favourites", which is basically a hashmap of name ➜ { pipelineId, variables }.
  • When a list of pipelines is rendered, check if one of the favourite titles matches the search pattern (if any), and inject those at the top.
  • When a favourite pipeline is clicked, open a regular pipeline view, pre-fill the variables, and submit the form instantly.

Not sure yet what the best way is to one-click pipelines, but I guess we could start by adding a small x to the left of the pipeline on hover.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant