GoodDollar / GoodProtocolUI

UI for the GoodProtocol smart contracts
https://good-swap.vercel.app
GNU General Public License v3.0
7 stars 12 forks source link

Update text user should see after staking #80

Closed sirpy closed 2 years ago

sirpy commented 2 years ago

Currently after staking, user is immediatly shown the dialog "Did you just create UBI for thousands of people around the

sirpy commented 2 years ago

@sepu85 what do you think about the this dialog and "yes I did" specifically is that clear enough?

sepu85 commented 2 years ago

@sirpy I find that asking question to the user after they perform any action is confusing.

as a DeFi user, I'd like the UX to give me answers and clarifications about what I´m doing... not making me question.

I'm guessing you guys designed like this to make sure the user confirms by his own transaction instead of making the app giving him such a confirmation.

My suggestion is to change both dialogue and "Yes I Did" button.

sirpy commented 2 years ago

I agree. I wasn't involved much in the UX. What about waiting for the TX to be confirmed? do you think we should have the user wait? otherwise we need some kind of indication, like in uniswap at the top right they show that a TX is pending

L03TJ3 commented 2 years ago

What work has already been done on this?

So to get it clear. What is needed is: Update Text + Button Add pending/confirmation Toast notification

Correct?

sirpy commented 2 years ago

@L03TJ3 so the text has been modified a little, but you can review and make suggestions I think a toast notifications could be a nice addition... does suhsiswap has that component?

mukulshakya commented 2 years ago

Hi @sepu85 Please tag me after finalizing the details. Thanks

sepu85 commented 2 years ago

what are you talking about @mukulshakya ?? What details I have to "finalize"?

the details are the one stated above 👉🏼 https://github.com/GoodDollar/GoodProtocolUI/issues/80#issuecomment-995689050

mukulshakya commented 2 years ago

@sepu85 i thought there is some discussion going on on finalizing the message.

I'll refer to the #80, thank you

L03TJ3 commented 2 years ago

@mukulshakya I was just trying to determine what had been done yet! was not necessarily trying to open up a discussion about the message itself.

L03TJ3 commented 2 years ago

@sirpy I haven't pinned down the specific component yet, but it should be existing in sushiswap-interface somewhere. It might be just the Alert component. but I am building locally now to make sure

L03TJ3 commented 2 years ago

@sirpy has it been a choice to not put full transaction details (recent transactions) in redux store? (for now only: time / from / hash)

L03TJ3 commented 2 years ago

NVM! I think I see that it just hasn't been fully utilized yet

patpedrosa commented 2 years ago

Screen Shot 2022-01-18 at 13 48 11

"You need to sign the transaction" is confusing because the signing happens before this modal shows. I've done this twice now - and both times I signed before this screen.

Also, I think we need to switch the copy to an affirmation: " Congratulations! You are creating UBI to thousands of people around the world."

No questioning. A staker IS creating UBI.

On these blue buttons that are shown everywhere, but here represented as GO TO PORTFOLIO, add padding to the left and right sides that is the same size as the top and bottom ones, otherwise the copy looks crammed.

I think we should also remove the "CLOSE" button since we already have a close icon at the top right. It's redundant and the main action we want to complete after this is to check their portfolio, hence the big blue button.

L03TJ3 commented 2 years ago

image

@sepu85 @patpedrosa you both had a say about the text

which one would you guys prefer? small edit: just noticed sepu had two text, for pending, and confirmed, surry (so would these two maybe just be the pending(1) and confirmed(2)?)

@patpedrosa funny thing, the padding now is actually the same ;) but it doesn't seem like it cause of round borders so I did change it and yes, the bottom text of the signing shouldn't be there anymore after the confirmation

O, and in general. it's a really small addition to this, but personally, I like with buttons to have some sort of hover effect (slightly darker color of initial) when hovering over them Idk, feels less... flat? static? Should I add this for the portfolio button? as the same blue button appears in more places, so to keep it consistent, it could be globally updated? or just, no...

L03TJ3 commented 2 years ago

So, if the discussion is now closed for the wording? I now went with the first image posted as pending text. The second one as confirmed.

@sepu tho I changed your wording slightlyyyy... if you don't mind... :) Your staking transaction for generating UBI for thousands... > Your staking transaction which will generate UBI for thousands... (to remove the double for)

also DID add the hover effect for the button, I believe it feels less static like that if any objection I will remove this before merging later this will affect all similar buttons (stake / withdraw / airdrop / connect)

sepu85 commented 2 years ago

all good from my side!! I'm also ok with Pat's suggestion.

L03TJ3 commented 2 years ago

Current Production Bugs: image

image