vega-frontend-monorepo/libs
Matthew Russell 3077a634d1
fix(#1691,#2040): deal ticket validation (#2045)
* feat: update validation for size and price so they are reported simultaneously

* feat: adjust styles so error messages for price/size are rendered on one line

* fix: missing key in map error

* feat: split validation out on a field by field basis

* refactor: remove unnecessary price setting and just use props to calc market price

* refactor: rename setOrder func and add a comment

* chore: add type for form fields to allow for summary field

* fix: layout of market order size and price

* fix: casing of size/price in validation message

* refactor: fix type errors for summary react nodes and for tif and type validation

* feat: break out functions for testing market.state and market.tradingmode on submit

* fix: deal ticket test for last price value

* chore: remove unused files and move hooks and utils to correct dirs

* chore: tidy up constants

* fix: const before enum invalid syntax

* feat: dont block submission if not enough margin but do if zero balance

* chore: remove duplicated margin warning message

* feat: dont allow margin warning and error message to render at the same time

* feat: make trading mode check just a warning rather than error message

* test: make markets active so they are tradable, renaming describe blocks for clarity

* test: adjust test ids and disabled state and fix tests

* test: include AC codes in tests

* chore: remove click of in test as form is already dirty

* fix: lint errors, only show margin warning if you have balance

* chore: add ts ignore

* chore: re add use-order-validation hook for console-lite specifically

* chore: update use-order-validation test after consumed margin check hook changed

* fix: circular deps issue in console-lite

* chore: update use order validation hook to use Schema rather than direct import
2022-11-15 16:00:14 -08:00
..
accounts feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
apollo-client feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
assets feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
candles-chart feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
cypress feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
deal-ticket fix(#1691,#2040): deal ticket validation (#2045) 2022-11-15 16:00:14 -08:00
deposits fix(#1691,#2040): deal ticket validation (#2045) 2022-11-15 16:00:14 -08:00
environment feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
fills feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
governance feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
ledger feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
liquidity feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
market-depth feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
market-info feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
market-list feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
network-info feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
network-stats feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
orders feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
positions feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
react-helpers feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
smart-contracts feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
tailwindcss-config feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
trades feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
types feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
ui-toolkit fix(#1691,#2040): deal ticket validation (#2045) 2022-11-15 16:00:14 -08:00
wallet feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
web3 feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
withdraws feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
.gitkeep Create a Mono-repo for DeFiUI + ui toolkit using nx 2022-02-11 15:02:11 +01:00