CronCats / cron-ui

Website for marketing & viewing cron tasks, service state
MIT License
3 stars 4 forks source link

Refill Task #22

Open TrevorJTClarke opened 2 years ago

TrevorJTClarke commented 2 years ago

Allow a task owner to refill (add NEAR) to their task, so it can continue operating without having the task run out.

UI: See attached screenshots, there are 3 pieces to this:

  1. Create a new "Refill" button next to the clone button, color it orange. It will only show on a task that logged in user matches task owner_id, see "Delete" button. Clicking Refill will launch the new refill task modal (needs to be created as part of this ticket)
  2. Create new modal, to be launched from the tasks page, accepting parameters for a task. See UI, it is a simple input (that can be taken from create task page), will need to generate a signed transaction that goes through near wallet. Method for refill is "contract.refill_balance(task_hash)" Source, you can do something similar to create task method here
  3. Show the success results for the task being refilled & allow user to close modal

Refill button

Screen Shot 2022-02-02 at 1 13 02 PM

Refill Modal

Task Refill

Refill Success

Task Refilled

thelimpbacon commented 2 years ago

I will take this. Is there a deadline?

TrevorJTClarke commented 2 years ago

I will take this. Is there a deadline?

No deadline - just reasonable timeline :) There will be bounty link in our DAO soon as well @thelimpbacon .

thelimpbacon commented 2 years ago

I will take this. Is there a deadline?

No deadline - just reasonable timeline :) There will be bounty link in our DAO soon as well @thelimpbacon .

Good to know. I am from a react background and I want to be thorough so I will take my time on this.

lfgdzuy commented 2 years ago

I took this. I have it pretty closed.