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

Refill Task #22

Open
TrevorJTClarke opened this issue Feb 4, 2022 · 4 comments
Open

Refill Task #22

TrevorJTClarke opened this issue Feb 4, 2022 · 4 comments

Comments

@TrevorJTClarke
Copy link
Member

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
Copy link

I will take this. Is there a deadline?

@TrevorJTClarke
Copy link
Member Author

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
Copy link

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
Copy link

lfgdzuy commented Apr 25, 2022

I took this. I have it pretty closed.

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

No branches or pull requests

3 participants