-
Notifications
You must be signed in to change notification settings - Fork 54
1334/activity orders from api rebased #1639
Conversation
Notes for @gnosis/gp-frontend & @gnosis/gp-qa Code is mostly the same as #1395 To avoid a huge merge issue again and to make it easier for review, I'll address pending issues as separated PRs I would prefer to merge this sooner if possible |
|
- At most 10 regular orders and as much pending as there are - Show only connected account orders - Sort orders by creation date descending
Read for re-review @gnosis/gp-qa I've updated how the tokens are loaded, merged and resolved conflicts with latest To test, on mainnet place an order with this token The special thing about SAI and MKR tokens is that their name/symbol are encoded as bytes32 which is different that 99.9% of the tokens. Once you place the order, clear the token from the user added tokens and refresh the page and/or open in another browser. Of course, testing with other regular tokens is important, not just the outliers. |
@alfetopito should we use a new branch "orders-api" as the base, so we can safely merge this even if its not complete? Maybe this would make easier to do small PR iterations after this one and we don't need to keep it open? |
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.
Approve with comments. I think we can start consolidating, just to be able to reiterate on the small things in new PRs (this one is already biggg)
Hey @alfetopito , SAI token was not added to the custom token list after its removal from there However, orders history has been loaded |
During the day I was able to get 'Fee is insufficient' warning several times when I was testing #1861 PR. I thought that the issue is related to small trading amounts. @alfetopito , could you please take a look at it? |
* Only init bytes32Contract if we really need to * Fixing build error: only proceed if library is set Co-authored-by: Leandro Boscariol <[email protected]>
…rs-from-api-rebased
@elena-zh could you try again again on #1906 ? Just keep in mind it has the latest from Also, I've tried on different browsers and several accounts/wallets and could not reproduce your issue. 🤞 hopping this time it's fixed for you as well |
Hi @alfetopito , changes LGTM in #1906 The most interesting thing (that is also a 'won't fix') is that activity in https://cowswap.dev.gnosisdev.com/#/swap shows a pending/cancelling/etc. order from https://barn.cowswap.exchange/#/swap as they both related to Dev server. |
* Refactor: removed unnecessary variable * Added SWR as dev dependency * Added hook useApiOrders using useSWR hook * Using new hook for fetching api orders * Removed unused imports... Co-authored-by: Leandro Boscariol <[email protected]>
…rs-from-api-rebased
…rs-from-api-rebased
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.
@anxolin I'll merge as is and address your comments in follow up PRs
Well there might be approvals/wraps. We are not syncing them yet
This type was not exposed where I needed it |
Summary
Closes #1334
Follows up/supersedes #1395
Same content as that, but rebased against
develop
after thepresign
merge.Lot's of changes, some things might not work
Activity orders from API: "Your orders, wherever you are"
Main changes:
Clear activity
withView all orders
View all orders
at the bottom of activity listTo Test
NOT part of this PR
Not yet addressed
presignature pending
state on order insertion before calling reducer