Commit Graph

30 Commits

Author SHA1 Message Date
Matthew Russell
b34fc98c9c
chore: make headers consistent () 2023-01-19 22:15:55 +00:00
m.ray
c552a22af8
feat(): show market code and name in the trading header () 2023-01-18 17:39:55 +00:00
Bartłomiej Głownia
5a0da4e158
feat: update market data components when they are in view () 2023-01-16 17:51:30 +00:00
Bartłomiej Głownia
06151c0592
feat: add marketId to orders query ()
* feat: add marketId to orders query

* feat: move filters handling from useOrderListData to ordersProvider
2023-01-16 12:26:50 +00:00
Art
9c26f4d01b
chore: console dapp routes for skeleton page (2361) ()
* chore: console dapp routes for skeleton page (2361)

* chore: console dapp routes for skeleton page (2361)

* chore: console dapp routes for skeleton page (2361)
2022-12-22 15:24:20 +01:00
macqbat
c14e57cfd5
feat(2146): adjust and refactor welcome dialogs ()
* feat: adjust and refactor welcome dialogs

* feat: adjust and refactor welcome dialogs - add int tests

* feat: adjust and refactor welcome dialogs - small fixes and imprvments

* feat: adjust and refactor welcome dialogs - fix a typo

* feat: adjust and refactor welcome dialogs - fix a property name

* feat: adjust and refactor welcome dialogs - fix an unit test
2022-12-13 14:31:28 +01:00
botond
2211abbd72
chore: cleanup type gen ()
* chore: remove apollo type gen and clean up types lib

* fix: format

* fix: tests

* fix: format

* fix: hammer token types til sh*t turns green

* fix: format

* fix: apparently format again

* fix: lint

* fix: build-specs

* fix: format

* chore: regen types

* chore: regenerate types again

* fix: format
2022-12-08 21:13:30 +00:00
macqbat
19c1f2f8c6
fix: lock widths of market table cells - make it durable for long values () 2022-12-08 06:30:05 -05:00
Matthew Russell
9ddedd0b78
chore(): add market status to trade header ()
* feat: add status header stat, move header to own component

* chore: fix alignment of price change values when arrow is not rendered

* test: add check for market state display

* feat: add market state component and adjust queries to handle sub updates to market state

* test: update mocks to include data.marketState fields

* chore: add missing market state to console-lite mock

* chore: test adjustment

* fix: botched conflict resolution

* chore: update select market columns test

* chore: add missing fields to test helper functions

Co-authored-by: Rado <szpiechrados@gmail.com>
2022-12-01 16:33:30 -08:00
macqbat
b67bc33c49
chore(2220): partial live update of market dropdown ()
* chore: partial live update of market dropdown

* chore: partial live update of market dropdown

* chore: partial live update of market dropdown - some refactor

* chore: partial live update of market dropdown - some refactor

* chore: partial live update of market dropdown - fix lint error

* chore: partial live update of market dropdown - fix failing tests

* chore: partial live update of market dropdown - fix failing tests
2022-11-30 12:02:59 +01:00
Art
246c07f355
feat: view proposed market change () 2022-11-25 15:10:22 +00:00
Matthew Russell
9dfce9e723
fix(): make asset dialog use asset id rather than symbol ()
* fix: make asset dialog use asset id rather than symbol

* fix: tests that relied on asset symbol rather than id

* chore: add missing asset id to mocks

* chore: add asset id to mocks for e2e tests

* chore: add missing asset id for orders mock

* chore: fix console-lite build

* chore: add missing asset ids to mocks
2022-11-23 23:42:22 +00:00
m.ray
41646086e4
chore(): update number formatters across frontend-monorepo ()
* chore: update stagnet3 urls

* chore(): remove normalized number formatter functions and update getNumberFormat

* fix(): fix unit tests on all formatters

* fix(): fix some cypress tests

* fix: fix  trading-accounts.cy.ts

* fix: update staking and wallet teardown tests

* chore: add e2e run-all command

* fix: wallet-eth test

* fix: fix tests in explorer and token

* fix: fix common.functions.js

* fix: fix common.functions.js in explorer

* fix(): fix common.functions.js in explorer

* fix(): fix common.functions.js in explorer

* fix(): fix common.functions.js in explorer

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-11-22 18:14:16 +00:00
Art
4b7a513e98
feat: propose network parameter change link (578) ()
* feat: propose network parameter change link (578)

* changeg stagnet3 url in trading e2e
2022-11-22 11:52:31 +01:00
m.ray
0189b9c94e
fix: fixes around formatting numbers and arrange edit order dialog ()
* fix: update size and order edit dialog

* fix: update decimals on position notional size

* fix: normalize values

* fix: fix positions unit tests

* fix: remove liquidation price

* fix: positions linting issue

* fix: remove liquidation price test

* fix: remove total summary row

* fix: remove comments

* fix: cypress test to not show trailing 0s

* fix: add back liq. price est as cell only

* fix: remove not used params

* fix: positions formatting in select market and format account numbers

* fix: remove import

* fix: remove redundant comment

* fix: fix unit tests

* fix: fix cypress tests
2022-11-18 19:00:38 +00:00
Art
8e5012891c
feat: no markets ()
* feat: no markets

* feat: no markets

* feat: no markets

* feat: no markets

* feat: no markets
2022-11-18 17:08:48 +00:00
Edd
e598cd1247
chore: update explorer to use v2 queries ()
* fix: migrate queries to latest apis
* fix: remove oracles section for now
* fix: dive in to fields correctly
* fix: update queries
* fix: fragment for stats fields
* fix: rename triple underscore generated
* chore: refactor types that have moved
* chore(explorer): disable e2e test that asserts json structure
2022-11-15 12:31:25 +00:00
Bartłomiej Głownia
0c93023998
fix: remove useDataProviderHook updateOnInit ()
* fix: fix useDataProviderHook updateOnInit

* chore: remove updateOnInit - always execute initial update in useDataProviderHook

* chore: remove useless variables param in useDataProvider update and insert callbacks

* chore: remove console.log
2022-11-14 16:08:12 +01:00
Matthew Russell
c576037b58
chore(): trading hash router ()
* chore: make liquidity page client side only

* chore: switch to hash based router

* chore: add index files for each page

* chore: tidy up _app

* chore: convert to use useRoutes

* fix: active state with react-router NavLink

* feat: add routes enum

* chore: restrict link and router imports from next

* chore: update testing navigation to use hash routes

* fix: typoe in eslint rule message

* chore: remove unnecessary getInitialProps function definition

* chore: wrap tests with memory router

* chore: delete unused index.page file

* chore: update suspense fallback state

* chore: add comment for link component span usage, update link to use toolkit styles

* chore: fix lint issues

* chore: delete client deposit page

* chore: revert title in _app so title gets set correctly without rerender

* revert: removal of deposit page so deposit e2e tests still pass

* chore: move client router to index page so valid status codes are still sent

* fix: wrong route path for markets page, cypress tests
2022-11-08 08:23:38 +01:00
Matthew Russell
9b360af2c1
feat(): show current node and button to open node switcher ()
* feat: add node url to footer, add link to change node

* feat: add test for trading footer

* chore: add comment about url manipulation

* fix:  fix cypress tests

* fix:  remove constant link

Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
2022-11-07 16:53:43 -08:00
m.ray
769828a39d
Fix/1763 trade futures ()
* feat:  display the product type in select market lists

* fix:  add on top of deal ticket button notice that you are buying product type contracts

* fix:  remove message above deal-ticket button

* fix:  left align product type title

* fix:  header align left for product type
2022-11-03 12:57:06 +00:00
Bartłomiej Głownia
f4de989852
fix(): fix market candles subscription update () 2022-11-02 15:47:15 +00:00
m.ray
3e970f7023
fix: 1875 & 1876 fix deal ticket fees display and remove insignificant trailing zeros () 2022-11-01 11:03:29 +00:00
m.ray
a90970399c
feat: 1651 market select snags ()
* feat:  market select snags

* fix:  fix markets.cy.ts cypress test

* fix:  prevent default and stop propagation on select markets asset click
2022-10-28 13:41:33 +01:00
m.ray
ee3b9a56c9
feat: 24h volume + market links in orders table ()
* feat:  add link to market in orders table

* feat:  use volume 24h instead of indicative volume

* fix: remove total fees that was defined but not used in select columns

* fix: fix cypress test for volume (24h) header

* fix: add volume 24h tooltip

* fix: trading mode and volume order
2022-10-24 13:16:09 +01:00
m.ray
bf34f1c060
feat: 1486 add details of expected fees margin close out to deal ticket ()
* fix:  move deal ticket hooks from console-lite to be re-used in trading app for console v2

* fix:  typo

* feat:  deal ticket query update, console-lite fix

* feat:  console-lite fix

* feat:  initial hook to get fee details

* feat:  add tooltips

* feat:  add fees cell from market-info in tooltip

* fix:  edit deal-ticket.spec.ts titles and index.ts of deal ticket hooks

* feat:  move all hooks for slippage into deal ticket

* fix:  fix linting deal-ticket issue

* fix: set price, fix NaN percentage, watch full order object

* fix: update only when market price is updated

* feat:  add fees from est. order query, fees breakdown, fix BigNumber NaN issue

* feat:  add fee factors in generate deal ticket query

* fix:  show margin on short

* fix:  format price and fix dal ticket use order margin import

* fix:  fix price memo

* feat:  update estimate ordr query with order price or mark price

* fix:  revert apps/console-lite/.env

* fix:  fix NaN value on close out

* fix:  revert close out calculation

* fix:  prevent NaN close out

* fix:  revert close out

* feat:  add fee factor percentages in tooltip and fix NaN

* fix:  fix deal-ticket-steps est close out null handling

* fix:  fix deal-ticket-steps est close out null handling

* fix:  add tooltip for fees

* fix:  fix console-lite formatting on notional size and close out

* fix:  total fees formatting inside the hook

* feat:  add qutote to fees tooltip

* fix:  update hook, price, console-lite and styling

* chore: fix mock types

* fix:  fix tests in console-lite

* fix:  add declaration.d.ts to console-lite-e2e

* fix:  fix deal ticket test

* fix:  fix deal ticket test

Co-authored-by: Rado <szpiechrados@gmail.com>
2022-10-23 14:08:02 +01:00
Radosław Szpiech
50df63c858
test: added tests to cover submit orders ac ()
* test: added tests to cover submit orders ac

* fix: unit tests

* fix: mock subscription fixed

* fix: typo

* fix: lint

* fix(1593): remove ag-grid api presence check from providder update callbacks

* fix: unit tests

Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
2022-10-12 09:55:23 +02:00
macqbat
2bf614afd2
chore: remove old type gen in positions ()
* chore: remove old type gen

* chore: remove old type gen - small fixes

Co-authored-by: maciek <maciek@vegaprotocol.io>
2022-10-05 11:30:42 +02:00
Matthew Russell
1f8f54617b
chore: misc quick wins ()
* fix: make sparkline appear after change cell

* fix: make price come after expiry in market header

* fix: refer to size rather than amount in validation

* fix: radio colors in light theme

* fix: remove orange border from vega tx pending state

* chore: combine deposit and withdraw buttons into single cell

* chore: update accounts table test, remove console warning from breakdown tests

* chore: update order validation test

* chore: place market table header in correct position

* chore: use actual change id to avoid clash

* fix: remove assertion in fills table that is flakey

* chore: render fills table with act

* fix: add a wait time for infura queries to resolve
2022-10-04 21:00:06 -07:00
macqbat
406b69566f
Feat/1491 insert accounts and positions ()
* feat: inserts of new item in positions

* feat: inserts of new item in positions - move select-market to app dir

* feat: inserts of new item in positions - add delta to update

* feat: inserts of new item in positions - fix e2e mocks

* feat: inserts of new item in positions - fix e2e mocks

* feat: inserts of new item in positions - adjust e2e mocks

* feat: inserts of new item in positions - adjust e2e tests

* feat: inserts of new item in positions - adjust e2e tests

* feat: inserts of new item in positions - adjust e2e trading tests

* feat: inserts of new item in positions - adjust e2e account tests

* feat: inserts of new item in positions - adjust e2e account tests

* feat: inserts of new item in positions - adjust e2e account tests

* feat: inserts of new item in accounts - manage inserting new accounts

* feat: inserts of new item in accounts - adjust console-lite tests

* feat: inserts of new item in accounts - adjust console-v2 tests

* feat: inserts of new item in accounts - adjust console-v2 tests

* feat: inserts of new item in accounts - clean up after merge

* feat: inserts of new item in accounts - fixes after feedback

Co-authored-by: maciek <maciek@vegaprotocol.io>
2022-10-04 10:37:31 +02:00