atomiclabs/hyperdex

Show all the order's swaps in the "swap modal"

sindresorhus opened this issue · 0 comments

Read #615 first.

Currently, when you click an item in the "recent orders", we show the swap status and progress. Now that an order can have multiple swaps, we need to show all the swaps for that order. So if an order has multiple swaps, the total progress needs to reflect that and we also need to show the swap events for each swap. And we need to show whether the order is a "Taker" or "Maker" order.

For the swap events, the simplest solution would be to just reuse the UI we currently have for swap events, but have one of those for each swap, so it becomes multiple rows.

Something like this (quick idea mockup):

Untitled-1

Each row will have to show how much of the order the swap is trading in amount and percentage.