Commit Graph

2 Commits

Author SHA1 Message Date
m.ray
5c038690c3
fix: filter rejected markets, order when suspended, remove market state from header, show continuous trading ()
* fix:  filter out rejected markets & dialog lg width

* fix:  show trading mode Continuous Trading and hide market state

* fix:  modify order validation to trade when suspended

* fix:  fix use order validation tests

* fix:  format volume no

* fix: format volume with positionDecimalPlaces

* fix: tests don't need to be async

* fix: md:w-[720px] to prevent dialog overflow

* fix: add market state translations

* fix: imprt type validation props

* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* Update libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* Update apps/trading/pages/markets/__generated__/Market.ts

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* fix: fix warning messages based on feedback

* fix: capitalize trading mode

* fix: capitalize trading mode

* fix: remove line 72 on markets.cy.ts

* fix: don't show trigger if unspecified

* fix: format last price and shrink 0 on warning icon

* fix: order sizes must be whole numbers for this market and input warning size 20

* fix: order sizes must be whole numbers for this market and input warning size 20

* fix: format market list

* fix: remove market state check from markets.cy.ts

* fix: remove market state check from markets.cy.ts

* fix: remove market state check from markets.cy.ts

* Revert "fix: remove market state check from markets.cy.ts"

This reverts commit c9ab55c98a.

* Revert "fix: remove market state check from markets.cy.ts"

This reverts commit be60e56d8a.

* fix: fix markets.cy.ts failing

* fix: fix markets.cy.ts failing

* fix: fix markets.cy.ts failing

* fix: remove extra test from markets.cy.ts

* fix: update extra test from markets.cy.ts

* fix: update extra test from markets.cy.ts

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2022-07-16 14:31:47 +01:00
m.ray
07abc2b1eb
Chore/657 refactor wallet and orders libs ()
* feat: 470 edit orders hook and @vegaprotocol/vegawallet-service-api-client@0.4.14

* fix: 470 add methods for dialog intent and title

* fix:  rename order-list lib to orders

* chore:  move hooks to orders lib

* chore:  vega tx dialog used for order cancellation and order submission

* chore:  use client subscribe and unsubscribe on reset, refactor vegatxdialog

* fix:  revert script src=./env-config.js ending

* fix:  format project.json

* Update project.json

* fix:  cancel all subs and async tasks in useffect cleanup function

* feat:  styling updates on vega order dialog

* fix:  rename set dialog open and awaiting confirmation dialog update

* fix:  updates on cancel order id check

* fix:   fix vega tx dialog test

* fix:   fix cypress trading-deal-tciket test

* fix:   fix data-testid market test

* Update libs/orders/README.md

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* Update libs/wallet/src/vega-transaction-dialog/vega-transaction-dialog.tsx

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* fix:  remove the magic string and use the ordertype enum from types package

* fix:  guarantee that order.id is present at this point or we need to determine the id of the order

* fix:  fix translation in dialog

* fix:  rename wallet types, delete ticket query, set finalized order null in submit

* fix:  fix deal ticket steps test

* fix:  remove settings.json

* fix:  use order submit in orders lib

* fix:  final modal links to block explorer

* fix:  long/short instead of buy/sell

* fix:  use only one vega tx dialog

* fix:  keep ref of subscription and unsubscribe

* fix:   hide cancelled orders

* fix:  sub only when id set

* fix: WIP: trying to unsub when order updated

* fix:  long/short instead of buy/sell

* fix: ensure observable defined

* fix:  remove redundant test

* Update libs/orders/src/lib/order-hooks/use-order-submit.ts

* fix: failing test due to resizeobserver loop limit exceeded

* fix: lint

* fix:  fix test resize observer loop limit exceeded

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
2022-07-13 15:23:46 +01:00