vega-frontend-monorepo/libs
Matthew Russell d0976bbd46
Feat/522 close position (#1762)
* feat: use close position hook and dialog setup

* chore: update wallet tx interface for batch market instruction

* feat: add usage of data provider to show relevant order information

* feat: render correctly formatted values in close position dialog

* feat: make vega tx dialog more flexibly by allowing custom ui for every state of the tx

* feat: adjust text alignment and spacing between active orders and order to close

* feat: add unit tests

* chore: remove stray log

* chore: fix lint

* chore: ignore ts error for formatter function of vesting chart

* feat: split components up, memozie variables

* feat: add shared loading state to prevent content popping in

* feat: add time in force label

* feat: move transaction result hook to wallet lib

* feat: prevent being able to close vega tx dialog, must reject tx

* chore: add test for useTransactionResult hook

* chore: fix positiosn test after hook relocation

* Revert "feat: prevent being able to close vega tx dialog, must reject tx"

This reverts commit d1ecda69c3c55822bb042320f82b2e1c3833b99a.

* chore: add check for order edge to be defined

* chore: remove close callback

* feat: use tx result state to determine dialog state

* chore: update close position hook to check for transaction result

* fix: readd types tif selection persistance

* feat: convert order event func to be async, use it in close position for more result context

* fix: rename utils

* chore: adjust error language

Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
2022-10-24 19:16:15 +01:00
..
accounts chore: use optional chaining for ag-grid api (#1810) 2022-10-20 21:17:36 -07:00
assets chore: update tooltips for asset limits (#1733) 2022-10-13 14:19:05 +01:00
candles-chart chore: remove unused __generated__ files (#1599) 2022-10-04 12:14:58 +02:00
cypress chore: tidy up capsule restart variables (#1800) 2022-10-20 13:55:12 +01:00
deal-ticket Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
deposits Fix/1376 proposal terms (#1789) 2022-10-20 14:40:58 +01:00
environment Feat/sandbox env (#1774) 2022-10-19 13:36:16 +01:00
fills chore: use optional chaining for ag-grid api (#1810) 2022-10-20 21:17:36 -07:00
governance chore: migrate governance types (#1834) 2022-10-24 11:51:48 +01:00
liquidity Feat/lp dashboard markets (#1664) 2022-10-18 09:58:44 +02:00
market-depth chore: add market-depth-provider unit tests (#1839) 2022-10-24 14:30:22 +02:00
market-info feat: 24h volume + market links in orders table (#1836) 2022-10-24 13:16:09 +01:00
market-list feat: 24h volume + market links in orders table (#1836) 2022-10-24 13:16:09 +01:00
network-info feat: [console-lite] - calculate slippage (price impact) (#1173) 2022-08-31 15:23:01 +02:00
network-stats fix(explorer): fix uptime to reference genesisTime field (#1807) 2022-10-20 16:11:55 +01:00
orders Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
positions Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
react-helpers fix: do no allow min or max fraction digits to go out of range (#1806) (#1809) 2022-10-21 16:30:30 +01:00
smart-contracts chore: sepolia migration (#1517) 2022-10-04 15:24:27 -07:00
tailwindcss-config Feat/800 better proposal ux round 1 (#1223) 2022-09-23 11:10:13 +01:00
trades chore: use optional chaining for ag-grid api (#1810) 2022-10-20 21:17:36 -07:00
types chore: migrate governance types (#1834) 2022-10-24 11:51:48 +01:00
ui-toolkit feat: 1486 add details of expected fees margin close out to deal ticket (#1771) 2022-10-23 14:08:02 +01:00
wallet Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
web3 chore: replace duplicated assets queries with assetsProvider (#1617) 2022-10-05 12:42:22 +02:00
withdraws Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
.gitkeep Create a Mono-repo for DeFiUI + ui toolkit using nx 2022-02-11 15:02:11 +01:00