vega-frontend-monorepo/apps/console-lite
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
..
src Feat/522 close position (#1762) 2022-10-24 19:16:15 +01:00
.babelrc feat: [console-lite] - change app name (#1114) 2022-08-23 16:02:08 +02:00
.browserslistrc feat: [console-lite] - change app name (#1114) 2022-08-23 16:02:08 +02:00
.env chore: sepolia migration (#1517) 2022-10-04 15:24:27 -07:00
.env.capsule fix: cleanup more env things (#1383) 2022-09-18 11:15:05 +00:00
.env.devnet chore: sepolia migration (#1517) 2022-10-04 15:24:27 -07:00
.env.mainnet fix: cleanup more env things (#1383) 2022-09-18 11:15:05 +00:00
.env.sandbox Release/sandbox (#1828) 2022-10-21 14:38:42 +01:00
.env.stagnet1 chore: add .env.sandbox files (#1796) 2022-10-20 12:12:08 +02:00
.env.stagnet3 chore: change tests to use stagnet3 by default (#1760) 2022-10-17 16:11:13 +02:00
.env.testnet chore: sepolia migration (#1517) 2022-10-04 15:24:27 -07:00
.eslintrc.json Fix/1083: Update type generator (#1219) 2022-09-06 10:03:10 +01:00
jest.config.ts feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
netlify.toml feat: [console-lite] - change app name (#1114) 2022-08-23 16:02:08 +02:00
postcss.config.js feat: [console-lite] - change app name (#1114) 2022-08-23 16:02:08 +02:00
project.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
setup-tests.ts chore: stagnet3 api updates (#1321) 2022-09-20 08:24:28 -07:00
tailwind.config.js feat: [console-lite] - change app name (#1114) 2022-08-23 16:02:08 +02:00
tsconfig.app.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
tsconfig.json feat: [console-lite] - change app name (#1114) 2022-08-23 16:02:08 +02:00
tsconfig.spec.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00