Commit Graph

12 Commits

Author SHA1 Message Date
m.ray
0523b56e39
feat: market list mega dropdown (rich popover) ()
* feat: use MarketList query only

* fix: remove Market.ts from index

* feat: 30 refactor dialog, market list, change query

* feat:  add indicativeVolume, total fees, tooltip, large dialog, tooltip accepts html description

* fix:  total fees display in tooltip

* fix:  toggle title on dialog open

* fix:  fix order, price, high, low utils

* fix:  fix test for market utils

* feat:  add popover with markets to select

* feat:  storybook popover

* feat:  remove border on trigger and add some other classes

* fix:   fix format check with format:write

* feat:  add tooltip on taker fee

* feat:  add tooltip on taker fee

* fix:  format on select market list

* fix:  remove unknown cast in test mock data

* fix:  show markets where you have open positions

* fix:  double check if open positions

* fix:  dialog has only small/large sizes

* feat:  add border on trigger and change padding and no wrap

* fix:  if fees or factors are not found

* fix:  remove markets.cy tests as markets page is now gone

* fix  remove view full market list test

* fix:  add rotating arrow on market title

* fix:  add ease-in-out on popover

* fix:  add ease-in-out on popover

* fix:  align select a market table

* fix:  select a market title

* fix:  select a market title

* fix:  fix any validateDOMnesting issues

* fix:  show loading market data

* fix:  add list of header columns

* fix:  add list of header columns

* fix:  small refactoring after review

* fix:  update bold undreline class names

* fix:  add large-mobile size

* feat:  refactor select markets tables to render array of columns

* fix:  remove size from select market dialog

* fix:  add extra file for columns

* fix:  update formtting

* fix:  make sure popup closes on same market navigation

* fix: rename market-utils, add calcCandle methods, store market id on select

* fix: useMemo ondata and marketPositionData + orderbook stories fix

* feat:  add open volume positions

* fix: add market summary back

* fix: update formatting

* fix: use currentcolor on arrow

* fix: create all markets page

* fix: add overflow-y auto

* fix: enlarge select market to get started dialog

* fix: revert markets container

* fix: use query to fix flickering on position markets

* fix: edit unordered list in tooltips

* fix: fix tooltip table

* fix: fix home.cy.ts

* chore: skip /markets tests
2022-08-11 12:56:35 +01:00
m.ray
71ede25339
chore: upgrade to React 18 ()
* chore: upgrade react only

* chore: import renderHook from testing-library/react

* chore: add @babel/runtime to fix tests

* fix: fix some of the tests

* fix: fix some of the tests

* fix: fix tests failing on not being wrapped in act

* fix: fix tests in use-environment

* fix:  fix @types/react issue

* fix: fix formatting

* fix: remove unsued method

* fix: callout not accepting react node and root element null check

* fix: main.tsx stats null check

* fix: implicit any type fixes

* Update libs/environment/src/hooks/use-nodes.spec.tsx

* fix:  import act from testing-lib

* fix:  add strict mode back

* fix:  fix formatting issues

* fix: add babel deps for storybook

* Update tsconfig.json ()

* Update tsconfig.json

* feat: [console-lite] - add missing types in few places

Co-authored-by: maciek <maciek@vegaprotocol.io>

* chore(): remove any from useDataProvider hook

Co-authored-by: macqbat <kubat.maciek@gmail.com>
Co-authored-by: maciek <maciek@vegaprotocol.io>
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
2022-08-09 10:43:11 +01:00
Bartłomiej Głownia
b9aef78447
Add pagination support to generic-data-provider ()
* feat(): add pagination support to data-provider

* feat(): use infinite rowModelType in market list table

* chore(): code style fixes

* feat(): fix data provider post update callbacks, handle market list table empty data

* feat(): amend variable names to improve code readability
2022-07-05 15:33:50 +02:00
Bartłomiej Głownia
98d3c47808
feat(orderbook): improve data handling performance ()
* feat(orderbook): improve data handling performance

* feat(orderbook): fix scrolling out of range
2022-06-27 12:05:05 +02:00
botond
3a27172e04
feat(): ui-toolkit links ()
* feat: add enviromnemt provider to the ui-toolkit

* chore: replace etherscan links

* chore: wrap trading app into environment provider

* chore: move env provider to react-helpers and wrap every app

* chore: remove more env variables from libs and replace them with the env hook

* fix: lint

* fix: update readme with correct formatting command

* fix: warnings for web3 hook

* fix: wrap warning in conditional, print message only when env keys are missing

* fix: incorrect condition on deposit manager fauceting param

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>

* fix: cleanup token app ethereum config

* chore: add better error handling to the useEnvironment hook

* fix: lint

* fix: formatting

* fix: more lint

* fix: throw error if required env variables are missing

* fix: remove default eth chain id

* fix: add back etherscan testid to withdrawals links

* fix: imports

* fix: try using babel jest for smart contracts test transpilation

* fix: uniform ts syntax

* chore: set resolveJsonModule in base tsconfig

* fix: add missing data-ids for etherscan links

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-05-31 17:30:02 -07:00
Dexter Edwards
107171d46a
renaming test files ()
* renaming test files

* add eslint plugin jest

* enable linting rule and additional rules

* fix a metric ton of linting errors

* fix lint errors

* remove export
2022-05-12 13:32:14 +01:00
m.ray
d03e4cf785
Feat/300 network parameters table ()
* network parameters table with key value rows and syntax blobs only for json values

* inline row not for syntax

* add unit test for network param table

* add cypress test to verify if values are non-empty

* remove some comments

* rename formatNumber method to addDecimalsFormatNumber and simplify formatNumber

* remove duplicate expect line

* use AsyncRenderer and sort params asc

* refactor and add extra tests to check ordering and loading cases

* format big number params with addDecimals formatNumber

* Update apps/explorer/src/app/routes/network-parameters/network-parameters.tsx

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

* capitalize and refactor tests

* missing ; caused formatting to fail

Co-authored-by: madalinaraicu <“madalina@raygroup.uk”>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-05-04 18:15:54 +03:00
Matthew Russell
3af4e354cd
Mock accounts for trading page ()
* move accounts and positions into own feature, add mock for accounts

* use length for expected number of columns

* combine trading feature tests into single trading-page.feature

* add orders scenario for trading page

* fix typo

* move related test cases for orders together
2022-04-29 14:24:15 +01:00
Bartłomiej Głownia
d0ec016adc
Feature/151 orderbook ()
* [] Add orderbook

* [] Add orderbook components

* [] Add market-depth data provider

* [] Add orderbook manager

* [] handle market depth updates in orderbook manager

* [] Fix PageQueryContainer usage of AsyncRenderer

* [] Move data handling logig out from orderbook manager

* [] Use mocked data, fix data issues

* [] Add compact order book data unit tests

* [] Add updateData unit tests

* [] Add updateCompactedData unit tests

* [] update cummulative vol on update, move data ref handling from effect to manager

* [] Update cummulative vol on update, fixes

* [] Optimieze orderbook ag-grid render

* [] Replace ag-grid with orderbook component

* [] Use react memo to optimize orderbook rendering

* [] Fix cummulative vol computation on compacted data update

* [] Add resolution controls

* [] Fix cumulative spelling mistake

* [] Use number instead of string for cumulative values

* [] Expose restart callback in useDataProvider hook

* [] Update empty cumulative values

* [] Add horizontal line under header in orderbook

* [] reuse orderbook data in market-depth chart

* [] restart market depth provider on sequenceNumber gap

* [] use throttle in orderbook and depth-chart

* [] Add comments, refactor data functions

* [] Add comments, refactor data functions

* [] move orderbook and depth-chart libs to market-depth
2022-04-26 17:26:28 +02:00
Bartłomiej Głownia
2cdf349641
Limit number of warnings in tests () 2022-04-25 17:33:49 +01:00
Dexter Edwards
ce5d7bc15b
run nx format () 2022-04-25 15:03:58 +01:00
Bartłomiej Głownia
c573349f68
[] Add accounts table ()
* [] Add accounts table

* [] Add summary row to accounts table
2022-04-06 10:48:05 -07:00