alpha-wallet-ios icon indicating copy to clipboard operation
alpha-wallet-ios copied to clipboard

Umbrella issue for using token mapping

Open hboon opened this issue 3 years ago • 14 comments
trafficstars

  • Use token icon from iconassets for mapped tokens
    • [x] Implement overlaying the smaller chain icon over the icon sourced from iconassets (is this only for those that are in token maps or every token in Wallet tab?) #3542 https://github.com/AlphaWallet/alpha-wallet-android/issues/2294
    • [x] Update iconassets to remove chain icon overlay from every icon that has them #3545
    • [ ] Use the same/one copy of token icon in https://github.com/AlphaWallet/iconassets for mapped tokens on the same/different chains. i.e. Display the same token icon for native token on Ethereum and WETH on Ethereum and WETH on Polygon, etc. if WETH doesn't have an icon available #3636
    • [x] Switch app to read from master of iconassets again as described in https://github.com/AlphaWallet/alpha-wallet-ios/pull/3627#issue-812919069
  • Groups
    • [x] Manually populate group in mapping for each token map #3549
    • [x] Design UI for using group in token map #3546
    • [x] Implement UI to display hardcoded group (not from mapping) #3580 https://github.com/AlphaWallet/alpha-wallet-android/issues/2282
    • [x] Read and display groups read from token map #3546 #3581

More:

  • [ ] Use price tickers (if available) for mapped tokens #3423
  • [ ] Hide spam tokens #4020

hboon avatar Dec 01 '21 08:12 hboon

First usage: A network icon in a corner of each token

So we have this small network icon in the bottom left corner of each token.

https://zpl.io/aB3X98k Screenshot 2021-12-01 at 10 03 42

It's 16x16.

This is an example: Screenshot 2021-12-01 at 09 41 19

And this is our goal: Screenshot 2021-12-01 at 09 28 37

Network icons: https://zpl.io/agE1LeZ

colourfreak avatar Dec 01 '21 09:12 colourfreak

Second usage The token symbol is only uploaded once and reused if there is the same token on a different network.

That means that I can remove all uploads from iconassets that were related to BSC, Polygon, Heco, etc. and upload only one token icon without any network icon in a corner (Mainnet Ethereum).

colourfreak avatar Dec 01 '21 09:12 colourfreak

@JamesSmartCell umbrella issue

hboon avatar Dec 15 '21 02:12 hboon

@hboon Can you go ahead and make an order with current iconsets? Let's chat about it on Discord.

colourfreak avatar Dec 15 '21 07:12 colourfreak

Sure, let's chat. But what do you mean by "make an order with current iconsets" ?

hboon avatar Dec 15 '21 07:12 hboon

Sure, let's chat. But what do you mean by "make an order with current iconsets" ?

So currently all BSC, Heco, Polygon tokens uploaded to iconassets (sorry, missed this with iconsets) have this small network icon already there. It might look weird sometimes if we have this network icon inside a graphical file and as another layer.

Example: https://github.com/AlphaWallet/iconassets/blob/master/0x2170Ed0880ac9A755fd29B2688956BD959F933F8/logo.png

colourfreak avatar Dec 15 '21 07:12 colourfreak

@colourfreak ok. Let me think a bit about what’s the easiest way to do this. Will get back to you tomorrow. Feel free to update the icons locally first, but don’t upload yet.

hboon avatar Dec 15 '21 07:12 hboon

Here's how I suggest we do it.

Tomek:

  1. Download the entire iconassets repo by going to https://github.com/AlphaWallet/iconassets, click the green Code button, Download ZIP.
  2. Modify the relevant icon files to remove the chain overlay
  3. Zip it up, send it to Boon
  4. Also update the native token icons (e.g Ethereum) to remove the chain overlays. These are bundled with the apps.

Boon:

  1. Create a single commit based on the updated image files to update the iconassets repo based on the updated zip

Boon and James

  1. Update the app to overlay the chain icons for both icons from iconsassets repo and those embedded in the app
  2. Ship updated apps

I had thought to do this in a proper way because doing it like above will result in a window between 5 and 7 where the icons from iconassets don't have their chain overlay, but I think it's too slow and we are dragging it out, so let's just get it done.

How does that sound @colourfreak?

hboon avatar Dec 16 '21 07:12 hboon

Sounds good. I am on it. @hboon

colourfreak avatar Dec 16 '21 12:12 colourfreak

@colourfreak sorry, one more (on mobile). The little chain icons to bundle with the app. Not sure we already have them in the app.

hboon avatar Dec 16 '21 12:12 hboon

Network icons: https://zpl.io/agE1LeZ

This one?

colourfreak avatar Dec 16 '21 12:12 colourfreak

This one?

@colourfreak yes. Thanks.

hboon avatar Dec 16 '21 14:12 hboon

iconassets-master.zip

@hboon

colourfreak avatar Dec 20 '21 13:12 colourfreak

@colourfreak got it. Thanks!

hboon avatar Dec 20 '21 13:12 hboon