frontend-monorepo icon indicating copy to clipboard operation
frontend-monorepo copied to clipboard

Enhancements to asset breakdown and mini-asset view

Open mattrussell36 opened this issue 7 months ago • 1 comments

Description

A few changes to the mini view and the expanded view to make them more intuitive.

Acceptance Criteria

Mini asset view

  • [ ] Expand the mini view a bit to give us a better summary
    • [ ] Show total in the top right
    • [ ] Show the deployed amount in the bottom left and show how much is in THIS market in brackets
    • [ ] Show the available amount and % as usual
  • [ ] Add the asset ID under the code on the mini view
    • [ ] Add the button to copy
    • [ ] Add the button to view on explorer
    • [ ] Add the button to view info in modal
  • [ ] Remove the kebab menu

Expanded view

  • [ ] Move the total to the top right
  • [ ] Add the same code & buttons as above
  • [ ] Use the asset code not the name .. it is super confusing that this changes when you expand it; we could include the name on the line below along with the ID if we dont want to lose that info
  • [ ] Remove the kebab
  • [ ] Colour adjustments
    • [ ] Can we make the blue general account colour brighter
    • [ ] Can we add a colour for the rewards (both vesting and vested can be the same colour)
    • [ ] And probably another for holding accounts, which should be renamed "Spot holding account"
  • [ ] For deselected assets just show the total, no kebab, and reduce the vertical height
  • [ ] We should also review the local storage / state saving that is happening here....I have found that I can be in the sidebar doing a transfer or whatever, then go back to trading .... then when I reopen the sidebar I am still on teh transfer page. I dont think this is ideal and would rather whenever you open it you land on the asset breakdown initially. Maybe it needs to save some state because of generally moving between sidebar screens ... but I think clicking on Trade or Market info should probably reset that state each time.

Sketch

Mini view

image

Expanded view

image

mattrussell36 avatar Jul 08 '24 17:07 mattrussell36