Commit Graph

4 Commits

Author SHA1 Message Date
Art
a3df65952d
feat: toast component (1677) () 2022-11-15 15:26:13 +01:00
Bartłomiej Głownia
d0452aeb81
Feature/303 orderbook improvements ()
* [] market-depth code cleanup

* [] Make ask and bid relative volume bars relative to maximum bid or ask volume

* [] align cmulative vol bars to left

* [] replace orderbook zoom in zoom out buttons with dropdown

* [] fill gaps in orderbook data

* Order book mocks added

* [] mark mid price in orderbook

* [303] Show number in orderbook cumulative volume column

* [] show indicative uncrossing volume instead of volume if market is in auction mode

* Method for asserting order book style

* [] Add test id attributes to orderbook cells

* Cleanup steps after merge

* Order book test passing

* Change method name

* Revert "[] fill gaps in orderbook data"

This reverts commit 90ea4e4ab3.

* [] Orderbook rows render optimization

* test: update feature with @todo tests

Same tests can be found in Notion

* [] Orderbook scroll to mid price

* [] orderbook scroll to row pixel perfect alignment

* [] Bring back best offer horizontal lines

* [] Preserve center price level on row number change, adjust indicativePrice to resoluton

* feat(orderbook): add storybook

Refs: 

* feat(orderbook): fix no rows handling

Refs: 

* feat(orderbook): add orderbook stories for auction and continous market

Refs: 

* feat(orderbook): add stories for empty orderbook

Refs: 

* feat(orderbook): fix footer position when there is no data

Refs: 

* feat(orderbook): seperate number of rows for buy and sell in storybook

Refs: 

* feat(orderbook): keep mid price in middle until user will scroll

Refs: 

* feat(orderbook): style scrollbar

* feat(orderbook): style scrollbar

* feat(orderbook): adjust gaps

* feat(orderbook): adjust gaps

* test: addition for autofilled order and mid price lines

* fix: lint

* feat(orderbook): make it posiible to write RTL tests

* feat(orderbook): fix price focus, add unit tests

* feat(orderbook): fix price scroll to mid proce, add unit tests

* feat(orderbook): improvements

- fix scrollbar colors in firefox
- bring back resolution dropdown chevron
- hide go to mid button when locked on mid price
- right align ask vol bar
- change grid gap to 5px
- add vertical lines between columns
- display "No data" if theis no orderbook data
- align header labels to right

* feat(orderbook): fix formatting

* feat(orderbook): add 5px gap

* feat(orderbook): improvements after code review

* feat(orderbook): display full height vertical lines

* fix: change in mid position

* feat(orderbook): fix number cannot be converted to BigInt because it is not integer

* feat(orderbook): fix TS2307 in trading-e2e caused by .module.scss import

Co-authored-by: Joe <joe@vega.xyz>
2022-06-10 15:52:39 +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
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