-
Notifications
You must be signed in to change notification settings - Fork 54
[Profile] Add explorer orders link to Profile page and app menu #1935
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @matextrem , good job! Now a user may see his/her orders from the menu/profile page.
However, some issues:
- I'd prefer hiding this empty section from the Profile page when a wallet is not connected/connected to an unsupported network
- Then, it would be good not to show it to a new user when he/she has not placed any order yet. It would be good to start displaying it when at least a user has 1 order in user's order lint in the Explorer
- 'View all orders' link should navigate a user not only to the
https://gnosis-protocol.io/address/...
, it should take into account the environment a user is working in:
- cowswap.dev.gnosisdev.com --> protocol-explorer.dev.gnosisdev.com/
- cowswap.staging.gnosisdev.com --> protocol-explorer.staging.gnosisdev.com
- barn.cowswap.exchange --> /barn.gnosis-protocol.io
- cowswap.exchange --> gnosis-protocol.io
- When connected to xDAI network. View all orders link navigates to the etherscan.io
https://watch.screencastify.com/v/HOHCEiJ5HThSvzeW1J0p
Also, I have some doubts related to the UI. It seems to me that the section for the link is too big.. Could we make it a bit narrower?
Then, it might be goo to show 'View all orders' link at the top or at the bottom of the list to make it a bit more visible. @alfetopito , @alongoni , @biocom , WDYT?
Great summary @elena-zh. Mati, whatever she said hehe For cowswap/src/custom/utils/explorer.ts Line 27 in 161d8a7
For The same function above also takes care of that. And I also like @alongoni 's suggestion. The only concern is how the top of the modal will look like on mobile. |
…AddressLink in order to fetch explorer link
Hey @matextrem , great job!
Could we display the link under the page header? @alongoni , WDYT? |
hey @elena-zh I was thinking to move the "Last updated" indicator next to the "Profile overview" title. In this way the "View all orders" link is more visible there. Do you think it could work better? |
Hey @matextrem ,
Account details: https://protocol-explorer.dev.gnosisdev.com/xdai/address/0xFF714b8b0e2700303eC912BD40496C3997ceEa2b
@alongoni , I still vote for moving these fields under the page name. But it is my personal point of view, and might be skipped if everyone else thinks differently. |
@matextrem , #1900 PR takes into account trades in the Mainnet only. |
@elena-zh I'm using |
@matextrem , seems that this one @alfetopito , am I correct? |
Let's see, trying to address all comments in one place
Here we are looking at orders rather than trades, so use the function
To Explorer's cowswap/src/custom/utils/explorer.ts Line 43 in 2fc6c81
Looking great! Besides Elena's comments I have nothing to add
I'm not too keen on swapping the position with I'd like to invoke @biocom 's Design powers to give his input and help us settle the matter. |
Great to see we are adding the links I could see the two things in the right corner, view orders, last update (below), from the ideas is the one that seems better. Anyways, I wanted just to mention that we have a menu problem 😅 Maybe not part of this PR, but I wouldn't add a new link unless we redesign it to acomodate better the content. |
I will expand on my last comment regarding the menu. I see that Discord, Twitter, Github could be just some nice icons that are located at the top or bottom of the menu Then the games could be in another section and presented differently. |
Works nicely in terms of functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Summary
Fixes #1883
Added a link to Orders explorer from Profile page and App menu
To Test