atomiclabs / hyperdex

Grandma-Friendly Atomic Swaps
MIT License
152 stars 60 forks source link

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

Open sindresorhus opened 4 years ago

sindresorhus commented 4 years ago

Read https://github.com/atomiclabs/hyperdex/issues/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.