Commit Graph
81 Commits
Author SHA1 Message Date
Bartłomiej Głownia b9aef78447 Add pagination support to generic-data-provider (#691)
* feat(#638): add pagination support to data-provider

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

* chore(#638): code style fixes

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

* feat(#638): 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 (#605)
* feat(orderbook): improve data handling performance

* feat(orderbook): fix scrolling out of range
2022-06-27 12:05:05 +02:00
Bartłomiej Głownia 72f94d2e6d feat(#500): colors fixes (#512)
* feat(#500): mute price decimal places

* feat(colors): remove alpha chanel from shades of gray

* feat(colors): simplify intent colors

* feat(colors): fix intent mapping

* feat(colors): fix lint issues

* feat(colors): fix lint issues
2022-06-10 16:07:44 +01:00
Bartłomiej GłowniaandJoe d0452aeb81 Feature/303 orderbook improvements (#312)
* [#151] market-depth code cleanup

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

* [#151] align cmulative vol bars to left

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

* [#151] fill gaps in orderbook data

* Order book mocks added

* [#151] mark mid price in orderbook

* [303] Show number in orderbook cumulative volume column

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

* Method for asserting order book style

* [#303] Add test id attributes to orderbook cells

* Cleanup steps after merge

* Order book test passing

* Change method name

* Revert "[#151] fill gaps in orderbook data"

This reverts commit 90ea4e4ab3.

* [#303] Orderbook rows render optimization

* test: update feature with @todo tests

Same tests can be found in Notion

* [#303] Orderbook scroll to mid price

* [#303] orderbook scroll to row pixel perfect alignment

* [#303] Bring back best offer horizontal lines

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

* feat(orderbook): add storybook

Refs: #303

* feat(orderbook): fix no rows handling

Refs: #303

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

Refs: #303

* feat(orderbook): add stories for empty orderbook

Refs: #303

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

Refs: #303

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

Refs: #303

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

Refs: #303

* 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
Bartłomiej Głownia 29aa93dd3c feat: update link to wallet guide in token app (#501) 2022-06-06 16:16:11 +01:00
Bartłomiej Głownia 19a9e9adb0 Fix global types imports in generated files (#386) 2022-05-09 13:14:59 +02:00
Bartłomiej Głownia d0ec016adc Feature/151 orderbook (#266)
* [#151] Add orderbook

* [#151] Add orderbook components

* [#151] Add market-depth data provider

* [#151] Add orderbook manager

* [#151] handle market depth updates in orderbook manager

* [#151] Fix PageQueryContainer usage of AsyncRenderer

* [#151] Move data handling logig out from orderbook manager

* [#151] Use mocked data, fix data issues

* [#151] Add compact order book data unit tests

* [#151] Add updateData unit tests

* [#151] Add updateCompactedData unit tests

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

* [#151] Update cummulative vol on update, fixes

* [#151] Optimieze orderbook ag-grid render

* [#151] Replace ag-grid with orderbook component

* [#151] Use react memo to optimize orderbook rendering

* [#151] Fix cummulative vol computation on compacted data update

* [#151] Add resolution controls

* [#151] Fix cumulative spelling mistake

* [#151] Use number instead of string for cumulative values

* [#151] Expose restart callback in useDataProvider hook

* [#151] Update empty cumulative values

* [#151] Add horizontal line under header in orderbook

* [#151] reuse orderbook data in market-depth chart

* [#151] restart market depth provider on sequenceNumber gap

* [#151] use throttle in orderbook and depth-chart

* [#151] Add comments, refactor data functions

* [#151] Add comments, refactor data functions

* [#151] 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 (#298) 2022-04-25 17:33:49 +01:00
Bartłomiej Głownia c573349f68 [#185] Add accounts table (#193)
* [#185] Add accounts table

* [#185] Add summary row to accounts table
2022-04-06 10:48:05 -07:00
Bartłomiej Głownia 5f2b732ff9 Normalize line endings (#207) 2022-04-06 11:59:51 +01:00
Bartłomiej Głownia 6cbc701384 [#168] Use static resources from static.vega.xyz (#205) 2022-04-06 11:36:36 +01:00
Bartłomiej Głownia 6439fe79da Merge pull request #170 from vegaprotocol/feature/168-alphaLyrae-font
[#168] Add static app to host AlphaLyrae font
2022-04-01 09:10:11 +02:00
Bartłomiej Głownia 8424dc718d [#128] Use native ag-grid sort instead on useMemo (#178)
* [#128] Use native ag-grid sort instead on useMemo

* [#128] Add secondary sort on positions table - order by instrument name, market id
2022-03-31 09:14:16 -07:00
Bartłomiej Głownia ad9344dd15 [#168] Add static app to host AlphaLyrae font 2022-03-31 09:11:29 +02:00
Bartłomiej Głownia fdf76aa88b Merge pull request #165 from vegaprotocol/task/164-colocate-queries
Task/164 colocate queries
2022-03-30 14:36:27 +02:00
Bartłomiej Głownia 7af0efa8d8 Enable @typescript-eslint/consistent-type-imports eslint rule 2022-03-30 13:05:41 +02:00
Bartłomiej Głownia 65bb99ea72 Merge pull request #157 from vegaprotocol/feature/128-positions-table
Feature/128 positions table
2022-03-29 19:41:19 +02:00
Bartłomiej Głownia 9c42f54331 [#128] Fix type issues 2022-03-29 19:31:00 +02:00
Bartłomiej Głownia 444f1b6584 [#128] Capitalize types in position queries 2022-03-29 19:13:01 +02:00
Bartłomiej Głownia fe29e86c74 [#128] Add market data details to positions query 2022-03-29 19:13:00 +02:00
Bartłomiej Głownia 043c733185 [#108] Add more positions-table unit tests 2022-03-29 19:13:00 +02:00
Bartłomiej Głownia a68bce9ed1 [#108] replace assign-deep with loadash/merge 2022-03-29 19:13:00 +02:00
Bartłomiej Głownia 7e74615bf6 [#128] fix MarketData cache issue, add default cachePolicy to data provider 2022-03-29 19:13:00 +02:00
Bartłomiej Głownia 7ba74eeafd [#128] generic data provider improvments 2022-03-29 19:13:00 +02:00
Bartłomiej Głownia 6e6a79d8e3 Wrap Web3Container with act 2022-03-29 19:13:00 +02:00
Bartłomiej Głownia e3a1142579 [#128] Add variales handling in data provider 2022-03-29 19:13:00 +02:00
Bartłomiej Głownia aec5d54820 [#128] add <Positions/> component to trade-grid, add useDataProvider hook 2022-03-29 19:12:45 +02:00
Bartłomiej Głownia 7f1632d44d [#128] add <PositionsTable/> component 2022-03-29 18:57:13 +02:00
Bartłomiej Głownia 936ed3f9e7 [#128] Add positions data provider 2022-03-29 18:57:13 +02:00
Bartłomiej Głownia 95f66ccd9b [#128] Make market data provider generic 2022-03-29 18:57:10 +02:00
Bartłomiej Głownia 30c990bb3e #128 Add positions library 2022-03-29 18:55:41 +02:00
Bartłomiej Głownia 73e778de34 Merge pull request #114 from vegaprotocol/feature/29-market-list-table-improvments
Feature/29 market list table improvments
2022-03-28 09:20:57 +02:00
Bartłomiej Głownia ddb0681fb5 Merge branch 'master' into feature/29-market-list-table-improvments 2022-03-25 15:31:49 +01:00
Bartłomiej Głownia fae1b8a5ee Cleanup after tests of ag-grid optimization 2022-03-24 18:29:56 +01:00
Bartłomiej Głownia afd82a8e45 Revert useApplyGridTransaction changes 2022-03-24 14:52:33 +01:00
Bartłomiej Głownia 1db7919875 Code style fixes 2022-03-24 14:29:51 +01:00
Bartłomiej Głownia f2e297ce39 Cleaup after use-markets hook 2022-03-24 14:29:49 +01:00
Bartłomiej Głownia 4698e532c1 Use data markets data provider instead of use-markets hook 2022-03-24 14:29:12 +01:00
Bartłomiej Głownia 2c28c9dd2d Test ag-grid optimization approach 2022-03-24 14:27:00 +01:00
Bartłomiej Głownia 8b57f6fdb1 Fix RTL warnings 2022-03-24 14:24:12 +01:00
Bartłomiej Głownia 81763c1e70 Move apollo/react-testing to dev dependencies: 2022-03-24 14:23:31 +01:00
Bartłomiej Głownia 15a7887351 Fix 0 handling in PriceCell 2022-03-24 14:23:31 +01:00
Bartłomiej Głownia f6e95392df Add immer 2022-03-24 14:23:28 +01:00
Bartłomiej Głownia 319d3adf23 Unmount singleton hook if no consumers left 2022-03-24 14:22:46 +01:00
Bartłomiej Głownia 3e69e53c4e #29 Add market-list-table 2022-03-18 13:13:14 +01:00
Bartłomiej Głownia ad5290d8c9 Ignore not affected netlify projecs (#80) 2022-03-14 16:52:02 +01:00
Bartłomiej Głownia 8a829964be Feature/38 data grid component (#77)
* Add ag-grid

* Add lazy loaded ag-grid component

* Add theme context, move VegaWallet to separate lib

* Fix trading app cypress configuration

* Lazy load ag-grid theme css files

* Encapsulate theme switch hook
2022-03-14 14:18:11 +01:00
Bartłomiej Głownia da37ecf72d Improve market page and tabs look and feel 2022-03-09 16:09:17 -08:00
Bartłomiej Głownia ebbd50edf3 Setup dark and light theme in trading app 2022-03-09 16:09:17 -08:00
Bartłomiej Głownia e8a795461d Add theme switcher component 2022-03-09 16:09:17 -08:00
Bartłomiej Głownia 5cf4cafe22 Merge pull request #61 from vegaprotocol/feature/base-level-components
Feature/base level components
2022-03-08 17:56:16 +01:00
Bartłomiej Głownia 9429f33730 Add filename-case eslint rule 2022-03-08 15:51:18 +01:00
Bartłomiej Głownia 16cef1ec06 Base level components fixes after code review 2022-03-08 15:51:14 +01:00
Bartłomiej Głownia 682ea8b0ab Add white anfd black palette 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 33284da828 Improve props handling and types in components 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 20a053a4f5 Adjust ui-toolkit colors 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 809d136994 Fix nav accent padding 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 8905ee5ba1 Add storybook/addon-a11y 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia f4a8aaaf23 Use only black and white rgba colors 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia d9444e9aef Add nav buttons 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 0e9a3c37c5 Add icon to button 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 3f490f03ca Add icon to input 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia e5f96448fc Add Icon component, use Icon in InputError 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia f048ec2cd5 Add blueprint icons 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia e2f0f61817 Add InputError component 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia cc084cb247 Improve input props handling 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 6a65299918 Add select component 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 1f91ebe86f Add textarea component 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia cdb5856983 Add button component 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 6c04475d82 Add colors and typography stories 2022-03-07 13:57:06 -08:00
Bartłomiej Głownia 290f5c68ad Extract tailwindcss config to libs 2022-02-23 16:29:07 -08:00
Bartłomiej Głownia a9a780100a Setup tailwind.css in apps/trading 2022-02-23 16:29:07 -08:00
Bartłomiej Głownia 30761f2b9d Setup tailwind.css 2022-02-23 16:29:07 -08:00
Bartłomiej Głownia 7567047e51 Use CSS Modules 2022-02-23 16:29:07 -08:00
Bartłomiej Głownia ddc1fb988a Add .nvmrc and engine, set node version to 16.14.0 2022-02-17 13:43:41 +01:00
Bartłomiej Głownia 8a09f57bd4 Fix build and lint errors 2022-02-14 17:16:21 +01:00
Bartłomiej Głownia 9a7587f002 Add tests to pre-commit 2022-02-11 16:14:45 +01:00
Bartłomiej Głownia c4ff63adf6 Add husky and lint-staged 2022-02-11 16:06:24 +01:00
Bartłomiej Głownia b2eeaa338a nx format 2022-02-11 15:49:45 +01:00
Bartłomiej Głownia 355de1a32f Create a Mono-repo for DeFiUI + ui toolkit using nx 2022-02-11 15:02:11 +01:00
Bartłomiej Głownia 1244d1be80 move all files to libs/ui-toolkit 2022-02-11 13:18:34 +01:00