Closed norbertdragan closed 4 years ago
A few questions @sg777:
can't afford to fund this transaction
but this needs to be pushed on to the GUI to let the users know about it.Cool, thanks for clarification. I have edited the first comment with some new TODOs on how we can move forward.
I have created a couple diagrams to demonstrate my suggestion for the user flow and the flow of funds. I am looking for feedback on how this could be improved, whether it is technically feasible (@sg777) and if I have missed something (or any other feedback).
Click to enlarge diagram
The above diagram shows my recommendation for the user flow. Please let me know if any of the steps need further clarification.
They are showing a 9-max table, since the UI designs were originally designed to target that. The same principles will apply to the heads-up game as well.
Adds balance display, a button to get to the cashier, and a prompt to the player on what to do.
The Buy-In component re-uses the pattern of the Controls component to reduce additional work. We also display to the other players that a new player is in the process of joining the table.
In case the balance is too low, we prompt the user to deposit. When they click on the Deposit Funds button, the cashier opens up with the Deposit tab active.
The player can see the available balance, the address to deposit to, and some additional information to help them top up. We might also display the minimum and maximum buy-in for the table.
The player can also click on the address to copy it to the clipboard. We can think about implementing a QR code feature in future iterations.
The player can withdraw funds to any specified address. A Max button helps to set the input field to all of the available Pangea wallet balance (which does not include any funds currently at the table).
@sg777 mentioned that developing this feature has some security implications that we need to work out, therefore it probably will be implemented at a later stage.
We will also need to think about states here, and possibly a second layer of confirmation ("Are you sure to withdraw X to Y?") to avoid accidental wrong withdrawals.
The player needs to have a method of leaving the table without closing the browser window. This feature and the screens are TBD (To Be Designed).
Please let me know what feedback you have regarding these screens. Is everything clear? What am I missing?
Remove “Deposit Funds” button. Seems redundant if the “Cashier” button were moved to the bottom permanently & it then remains in the line-of-sight of the user when setting buy in, because they may not have enough for calling or raising.
@imylomylo you mean if the "Cashier" button were moved to the top right permanently? Yes, you might be right that displaying both buttons might be a bit redundant, but I think it also makes it easier for the player to take the right action, and it doesn't have any other negative implications I can think of.
Bottom right.
On Wed, Feb 5, 2020 at 8:41 AM Norbert Dragán notifications@github.com wrote:
@imylomylo https://github.com/imylomylo you mean if the "Cashier" button were moved to the top right permanently? Yes, you might be right that displaying both buttons might be a bit redundant, but I think it also makes it easier for the player to take the right action, and it doesn't have any other negative implications I can think of.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chips-blockchain/pangea-poker/issues/82?email_source=notifications&email_token=AEUADPVQ7JC6GEPAAYARRJLRBIKOBA5CNFSM4KL3VQFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKZ3AYQ#issuecomment-582201442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUADPTBX6YMUG7ULTP5ZZLRBIKOBANCNFSM4KL3VQFA .
We already have the Controls component at the bottom right (see screenshot below), therefore, keeping the Cashier button there all the time is not feasible.
Also, it's a totally legit scenario that a player wants to access the Cashier before they run out of chips, so we need to have it displayed somewhere in the UI at all times. But I wouldn't put it to the same level as the Controls, as it the Cashier is only needed rather infrequently.
OK cool. Yeah all times definitely. I thought maybe it could have been displayed at bottom right at all times, but seems not.
Thanks for taking time to consider :+1:
Closing as the design has been completed.
The cashier protocol has been implemented by @sg777. The frontend needs to catch up, however, there are still some clarifications that are needed.
See the Design Proposal.