stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

Add confirmation screen when paying a bounty #328

Open ecurrencyhodler opened 8 months ago

ecurrencyhodler commented 8 months ago

Context

Right now, when someone clicks "pay bounty" button on a bounty, it auto-pays. This is bad UX as payments should require a confirmation. Otherwise it may surprise the user. This will also help prevent accidental payments through misclicks.

Screenshot 2024-02-22 at 1 52 50 PM

Design

When someone clicks the "Pay bounty" button, display the following screen. When they click "yes", then the call is made to pay the bounty. This should be mobile friendly as well. paybountyconfirmation

Acceptance Criteria

Here is an example unit test

Here is an example component test

jordan-ae commented 8 months ago

@ecurrencyhodler acceptance criteria 3 & 4 have some errors.

ecurrencyhodler commented 8 months ago

Thanks @okhot updated.

jordan-ae commented 8 months ago

@ecurrencyhodler can I get this instead?

MahtabBukhari commented 8 months ago

@ecurrencyhodler is this one available?

chiragDork commented 8 months ago

Hi @ecurrencyhodler please assign this to me

ecurrencyhodler commented 8 months ago

@chiragDork will you get a PR up in a few hours?

chiragDork commented 8 months ago

Hi @ecurrencyhodler about to finish with it, will post a PR in a few hours.

chiragDork commented 8 months ago

Hi @ecurrencyhodler I am facing an issue with the Tests for the PR, can you assign someone to review and assist me with it.

jordan-ae commented 8 months ago

@ecurrencyhodler I can help

ecurrencyhodler commented 8 months ago

What kind of issues are you facing?

chiragDork commented 8 months ago

@ecurrencyhodler My test isn't passing, therefore I need someone to review the test I've written and point out any deficiencies.

ecurrencyhodler commented 8 months ago

submit a PR and people can review and leave a comment

chiragDork commented 8 months ago

Hi @ecurrencyhodler the PR was raised 2 days back, I have commented on it now. Thanks.