vega-frontend-monorepo/libs/positions/src/lib
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
..
__generated___ chore: remove old type gen in positions (#1619) 2022-10-05 11:30:42 +02:00
close-position-dialog Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
margin-data-provider.ts chore: remove old type gen in positions (#1619) 2022-10-05 11:30:42 +02:00
positions-container.tsx feat#873): wallet service v2 (#1349) 2022-10-03 11:12:34 -07:00
positions-data-providers.spec.ts chore: remove old type gen in positions (#1619) 2022-10-05 11:30:42 +02:00
positions-data-providers.ts chore: single position table (1645) (#1749) 2022-10-19 16:59:36 -07:00
positions-manager.tsx Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
positions-table.spec.tsx chore: single position table (1645) (#1749) 2022-10-19 16:59:36 -07:00
positions-table.stories.tsx feat(#840): update positions tab (#1101) 2022-09-02 13:53:00 -07:00
positions-table.tsx chore: single position table (1645) (#1749) 2022-10-19 16:59:36 -07:00
Positions.graphql chore: remove old type gen in positions (#1619) 2022-10-05 11:30:42 +02:00
positions.tsx chore: fix positions data provider restarts (#1509) 2022-09-27 15:02:48 -07:00
use-close-position.spec.tsx Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
use-close-position.ts Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
use-positions-assets.ts chore: fix positions data provider restarts (#1509) 2022-09-27 15:02:48 -07:00
use-positions-data.tsx chore: use optional chaining for ag-grid api (#1810) 2022-10-20 21:17:36 -07:00
use-request-close-position-data.ts Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00