vega-frontend-monorepo/apps/console-lite
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
..
src fix(#1691,#2040): deal ticket validation (#2045) 2022-11-15 16:00:14 -08: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: make apps use stagnet3 as default env (#2024) 2022-11-11 11:06:47 +01: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 fix: #1826 fix vega docs links (#1967) 2022-11-07 18:12:40 +00: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 chore: add build-spec targets and execute on affected apps and libs on CI (#1745) 2022-10-25 09:41:16 +02: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: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
tsconfig.spec.json chore: add build-spec targets and execute on affected apps and libs on CI (#1745) 2022-10-25 09:41:16 +02:00