Closed lukasschor closed 4 years ago
Activate tokens automatically in "Manage Tokens" if they are (1) whitelisted and (2) balance is >0
What means "whitelisted" in this case?
Activate tokens automatically in "Manage Tokens" if they are (1) whitelisted and (2) balance is >0
IIRC on the mainnet we have ~200 tokens, this would be 200 balances requests performed each 5s (we check the balance every 5s) I think this is a little bit too much. What we can do:
1) Check the balances only on first safe load to get list of tokens with positive balances and enable them
2) Implement an endpoint /v1/safes/{address}/balances/
from relay in tx-history-service. Wdyt @Uxio0 ?
Currently, we use 5 item pagination as a default, for users that have a lot of tokens, this is not convenient. Set number to 25. Option B: Automatically show all tokens, no matter how many
We can use a number of tokens with positive balances to dynamically set number of items, but I'd personally just increase the number to 10 and let the user handle that further. Another option: a search bar, this would be helpful for people with a lot of assets
@tschubotz
What means "whitelisted" in this case?
Tokens that we show in the "Manage Tokens" list
What we can do: Check the balances only on first safe load to get list of tokens with positive balances and enable them Implement an endpoint /v1/safes/{address}/balances/ from relay in tx-history-service. Wdyt @Uxio0 ?
1) Would already work in my opinion. I don't think we need to update this every 5s, but would of course be ideal if the user would not have to reload the page after sending a new token to the Safe.
We can use a number of tokens with positive balances to dynamically set number of items, but I'd personally just increase the number to 10 and let the user handle that further. Another option: a search bar, this would be helpful for people with a lot of assets
Most users will probably hold 1-10 different tokens. So I think a search bar is not needed at this point, but might be an option in the future. I guess increasing the minimum to 10 would already be a quick fix. Additionally, does it make sense to save this information? Currently, it resets to the minimum every time the page is loaded.
Additionally, does it make sense to save this information?
@lukasschor definitely, let's make this a requirement too
We should also make the spinner look nicer (adding some margins) when the token list is empty. Also, if there are no tokens to show, it's weird that we have a spinner instead of a message/static image.
We should also make the spinner look nicer (adding some margins) when the token list is empty. Also, if there are no tokens to show, it's weird that we have a spinner instead of a message/static image.
Agree. I would just do a static, center-aligned text "No balance found. Please add funds to this Safe.". Maybe even have a hyperlink on "add" that would open the receive view. What do you think?
We should also make the spinner look nicer (adding some margins) when the token list is empty. Also, if there are no tokens to show, it's weird that we have a spinner instead of a message/static image.
Agree. I would just do a static, center-aligned text "No balance found. Please add funds to this Safe.". Maybe even have a hyperlink on "add" that would open the receive view. What do you think?
Looks good to me ;)
We should also make the spinner look nicer (adding some margins) when the token list is empty. Also, if there are no tokens to show, it's weird that we have a spinner instead of a message/static image.
But the ETH is always present and cannot be disabled, why do we need the spinner? 🤔
Eth is not always present. If you have 0 eth and 0 tokens and click on "Hide zero balances" the current spinner will be displayed. We don't need a spinner, but something. The message Lukas mentioned looks good.
Hi @mikheevm. From the tx service is not really easy to do that, but if you batch the txs it shouldn't take too much to get the balances even if there are 200 tokens. After that I would just refresh the ones with balance > 0, at least so often
[x] Pagination Currently, we use 5 item pagination as a default, for users that have a lot of tokens, this is not convenient. Set number to 10, and safe default in case the user chooses a higher number.
[ ] Activate tokens automatically Activate tokens automatically in "Manage Tokens" if they are (1) whitelisted and (2) balance is >0. If backend is not ready, leave this part out.
[x] Number formatting Format balances according to https://github.com/gnosis/safe/blob/master/specs/common/format_amounts.rst
[x] Copy & Etherscan buttons Add copy & etherscan buttons (see #132 for details)
[x] Wallet Drop-down Providers Change "Client" to "Wallet". And also show other wallet types that can be identified:
Dapper
Portis
Fortmatic
WalletConnect
Opera
[x] Wallet Drop-down Redesign
Wallet dropdown are in header is wider
Dropdown is detached from header
Rounded corners
Copy/etherscan buttons
[x] Manage Tokens Text In the Manage Tokens Pop-up, the "ADD CUSTOM TOKENS" string should not be capitalized.
[x] Legal Links in sidebar Privacy: https://safe.gnosis.io/privacy-policy-052019.html Terms: https://safe.gnosis.io/terms-of-use-072018.html Imprint: https://safe.gnosis.io/imprint.html Licenses: https://safe.gnosis.io/licenses-082019.html
[x] Add "Early Access" label
[x] Welcome Screen: Change title and add "Learn More" Add title to say "Safe for Teams" instead of Team Edition and add Learn more link at the end, linking to https://safe.gnosis.io/teams/