Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Release v2.9.0 #137

Merged
merged 81 commits into from
Jun 30, 2022
Merged
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
6c6514b
Distinguish components
henrypalacios Apr 7, 2022
5347984
Adding statistics SummaryCards component (#50)
henrypalacios Apr 18, 2022
0e6f00f
fix uppercase on Fee
alongoni Apr 18, 2022
28ff856
add copybtn
alongoni Apr 18, 2022
000cf84
fix error
alongoni Apr 18, 2022
2b04e9e
fix copybtn position
alongoni Apr 18, 2022
6e90808
change address format
alongoni Apr 18, 2022
00c13b5
move the copybtn
alongoni Apr 19, 2022
8157105
add order link and styles on copybtn
alongoni Apr 19, 2022
ac8040f
add styles copybtn
alongoni Apr 19, 2022
3aad2ad
copybutton tooltip improvements
alongoni Apr 20, 2022
612652a
copy color delay and add fixed size wrapper
alongoni Apr 21, 2022
b502607
Merge pull request #67 from cowprotocol/65-fix-uppercase-typo-fees
alongoni Apr 21, 2022
71e4651
fix tooltip position
alongoni Apr 21, 2022
d406fba
Merge pull request #68 from cowprotocol/66-copy-btn-batch-id
alongoni Apr 22, 2022
1b8ea01
[Home Page] Volume chart (#62)
henrypalacios Apr 28, 2022
8d1e545
Add TokenTableComponent + hook
matextrem Apr 29, 2022
ace396e
Add flexSearch hook
matextrem Apr 29, 2022
406c10c
Merge remote-tracking branch 'origin/develop' into 35-epic-home-page
ramirotw Apr 30, 2022
cd1a932
Add tokens table with mocked data
matextrem May 2, 2022
17860c6
Remove invalid selector
matextrem May 2, 2022
4e2b5ae
Integrate the cow-sdk into the Home Page widgets (#77)
ramirotw May 5, 2022
78f95d3
Merge remote-tracking branch 'origin/develop' into 35-epic-home-page
ramirotw May 5, 2022
e6b1f25
Merge remote-tracking branch 'origin/35-epic-home-page' into 39/token…
ramirotw May 5, 2022
d4272ce
fix import
ramirotw May 5, 2022
550c7ba
styles improvements: chart, mobile, titles
alongoni May 5, 2022
8b8e8be
Merge pull request #86 from cowprotocol/main
henrypalacios May 5, 2022
59970a1
Update data types + improve styling
matextrem May 5, 2022
7a065b3
delete spinner beside Top token tittle
alongoni May 6, 2022
8e3164b
change Top tokens tittle position
alongoni May 6, 2022
7e03623
replace spinner -> CowLoading component
alongoni May 6, 2022
8aa4376
change breackpoints on token table to mobile
alongoni May 6, 2022
7953494
add another CowLoading component
alongoni May 6, 2022
8817f9e
Fix pagination
matextrem May 6, 2022
ce49c3f
Update pagination position
matextrem May 6, 2022
cf124c6
layout styles
alongoni May 6, 2022
0e7c1a2
styles fixes
alongoni May 6, 2022
fb54caa
table grid + message not found
alongoni May 6, 2022
ba98fae
Fix pagination results
matextrem May 6, 2022
72f16bb
fix height on search icon
alongoni May 9, 2022
5e013a3
table styles improvements
alongoni May 9, 2022
96f91c3
tabla columns numeration
alongoni May 9, 2022
74bec2e
change hover color on rows
alongoni May 10, 2022
1af44be
fix place holder on mobile
alongoni May 10, 2022
59342ef
add scrollbar styles
alongoni May 10, 2022
f23539c
fix table styles on medium screens
alongoni May 10, 2022
bcfbd23
fix placeholder mobile
alongoni May 10, 2022
5624c7a
fix placeholder mobile + tabs
alongoni May 11, 2022
838aeec
center not found text msg + move border bottom
alongoni May 11, 2022
387f823
add # column
alongoni May 11, 2022
8fede60
aligmnet on token table
alongoni May 12, 2022
e7523ad
Fix pagination when filtering
matextrem May 12, 2022
28b6fe5
Merge pull request #81 from cowprotocol/39/tokens-table
matextrem May 13, 2022
52c8add
Volume chart improvements (#89)
henrypalacios May 19, 2022
36030be
Volume chart and cards layout (#90)
alongoni May 19, 2022
183ee90
Small Code typing improvement (#88)
henrypalacios May 20, 2022
9c60af0
Adding surplus column on tx table (#99)
henrypalacios May 31, 2022
e2c005c
Fetch orders and order detail from barn and prod apis (#105)
ramirotw Jun 1, 2022
3bb2446
[Batch Viewer] Add a Reset button + autoscale graph area (#100)
alongoni Jun 3, 2022
0168e51
[Batch Viewer] Zoom and drag improvements (#103)
alongoni Jun 3, 2022
0d4a63a
Add logic to differentiate SELL and BUY orders in batch viewer
matextrem Jun 7, 2022
44af5b6
Merge branch 'develop' into 45/batch-viewer-orders-kind
matextrem Jun 7, 2022
b76f2af
Fetch orders and order detail from barn and prod apis (#105)
ramirotw Jun 1, 2022
27526e7
Update summary cards each 10 seconds (#107)
ramirotw Jun 8, 2022
4264cd2
Merge pull request #108 from cowprotocol/45/batch-viewer-orders-kind
matextrem Jun 9, 2022
68113df
Integrate Tokens table with data from the subgraph (#98)
ramirotw Jun 10, 2022
8255566
Increase column, show dash and use tooltip mobile (#113)
henrypalacios Jun 14, 2022
01f2159
Make batch viewer tooltip persistent on mobile (#116)
ramirotw Jun 14, 2022
9ccbdd2
Merge remote-tracking branch 'origin/develop' into 35-epic-home-page
ramirotw Jun 16, 2022
8e4d570
Merge pull request #58 from cowprotocol/35-epic-home-page
ramirotw Jun 16, 2022
2a59063
Update develop branch with hotfix/v2.8.2 (#127)
henrypalacios Jun 16, 2022
6c22611
Adding force-simulation layout algorithm to draw nodes (#119)
henrypalacios Jun 22, 2022
7981c2f
[Batch Viewer] Avoid multiple requests to Tenderly API (#128)
matextrem Jun 22, 2022
d4c057b
[Batch Viewer] Show the receiver (#120)
matextrem Jun 22, 2022
bbe7cea
Fix eslint ERROR
henrypalacios Jun 23, 2022
ec852dd
Bump Version to 2.9.0
henrypalacios Jun 23, 2022
3df0dc3
Merge branch 'main' into release/2.9.0
henrypalacios Jun 23, 2022
cb2f184
Fix eslint
matextrem Jun 24, 2022
61a7ba7
Merge pull request #144 from cowprotocol/140/support-link
matextrem Jun 24, 2022
1afd37e
Fix order search in different networks (#132)
ramirotw Jun 29, 2022
cbdaa22
Remove popper when reset, change layout or component unmount (#146)
henrypalacios Jun 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/hooks/useTxBatchTrades.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,19 @@ export function useTxBatchTrades(
const [error, setError] = useState('')
const [txBatchTrades, setTxBatchTrades] = useState<TxBatchTrades>({ trades: [], transfers: [] })
const [accounts, setAccounts] = useState<Accounts>()
const txOrders = usePrevious(JSON.stringify(orders?.map((o) => ({ owner: o.owner, kind: o.kind, receiver: o.receiver })))) // We need to do a deep comparison here to avoid useEffect to be called twice (Orders array is populated partially from different places)
const txOrders = usePrevious(
JSON.stringify(orders?.map((o) => ({ owner: o.owner, kind: o.kind, receiver: o.receiver }))),
matextrem marked this conversation as resolved.
Show resolved Hide resolved
) // We need to do a deep comparison here to avoid useEffect to be called twice (Orders array is populated partially from different places)
const [erc20Addresses, setErc20Addresses] = useState<string[]>([])
const { value: valueErc20s, isLoading: areErc20Loading } = useMultipleErc20({ networkId, addresses: erc20Addresses })

const _fetchTxTrades = useCallback(async (network: Network, _txHash: string, orders: Order[]): Promise<void> => {
const _fetchTxTrades = useCallback(async (network: Network, _txHash: string, _orders: Order[]): Promise<void> => {
setIsLoading(true)
setError('')
try {
const { transfers, trades } = await getTradesAndTransfers(network, _txHash)
const _accounts: Accounts = Object.fromEntries(await getTradesAccount(network, _txHash, trades, transfers))
const filteredOrders = orders?.filter((order) => _accounts[order.owner])
const filteredOrders = _orders?.filter((order) => _accounts[order.owner])
const orderOwnersReceivers = [
...(filteredOrders?.map((order) => order.owner) || []),
...(filteredOrders?.map((order) => order.receiver) || []),
Expand Down Expand Up @@ -120,9 +122,7 @@ export function useTxBatchTrades(
} finally {
setIsLoading(false)
}
},
[orders],
)
}, [])

useEffect(() => {
if (!networkId || !txOrders) {
Expand Down