Commit Graph

567 Commits

Author SHA1 Message Date
Edd
859dc60133
Fix/typo in block explorer label (#142)
Transaction is usually `txn` not `tnx`.

- Update label
2022-03-28 08:28:09 -07: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
Sam Keen
c850d94185
Merge pull request #117 from vegaprotocol/feat/75-link-like-button
UI toolkit - create a 'link-like' button and use in block explorer
2022-03-25 17:04:00 +00:00
sam-keen
bf2ff8af53 Merge remote-tracking branch 'origin/master' into feat/75-link-like-button 2022-03-25 16:50:01 +00:00
sam-keen
1d2db41e92 Added new shared theme switcher into stats project 2022-03-25 16:47:28 +00:00
sam-keen
e308a923c2 Moved the theme switcher hook into a shared lib 2022-03-25 16:45:12 +00:00
Matthew Russell
c247d0ba6d
Fix/Typos in Infura env var 2022-03-25 08:54:31 -07:00
Bartłomiej Głownia
ddb0681fb5
Merge branch 'master' into feature/29-market-list-table-improvments 2022-03-25 15:31:49 +01:00
Edd
fe12b45039
Merge pull request #146 from vegaprotocol/feat/110-ui-toolkit-alpha-lyrae
Feat/110 UI toolkit alpha lyrae support
2022-03-25 13:53:02 +00:00
sam-keen
a38971c3da Added Alpha Lyrae support for ui-toolkit 2022-03-25 12:58:23 +00:00
sam-keen
39a7f9e526 Pulled env var into variable which stopped webpack compilation errors 2022-03-25 12:56:58 +00:00
Edd
23a3c8fdd3
Merge pull request #132 from vegaprotocol/feat/127-generalised-stats-page
frontend-monorepo-127 Generalize stats page to work for all environments
2022-03-25 11:43:35 +00:00
Edd
ab1d9680c0
Merge pull request #135 from vegaprotocol/feat/134-ids-using-mono-font
frontend-monorepo-134 Ensure displayed ids are using mono font
2022-03-25 11:30:38 +00:00
Edd
86b089f77c
Merge pull request #140 from vegaprotocol/feat/137-remove-top-white-border
frontend-monorepo-137 Remove top white border
2022-03-25 11:16:08 +00:00
sam-keen
9b4a41be07 Merge remote-tracking branch 'origin/master' into feat/75-link-like-button 2022-03-25 11:12:01 +00:00
sam-keen
4862b0a1c3 Added cypress env name var for tests 2022-03-25 10:42:40 +00:00
sam-keen
13387e4ed4 Uppercase env names in env vars 2022-03-25 10:37:16 +00:00
Matthew Russell
8e9c2e4080
Feat/105 Web3 Setup (#119)
* add deposit page

* add web3 provider using web3-react package

* add env setup, add guard for incorrect chain id

* add lib for web3-provider

* make wallet and ethereum connect dialogs look more consistent

* add setup tests file for jest-dom

* remove chain id config and just use appChainId prop, add disconnect button to invalid chainId state

* remove .env file for now, will complete as own ticket

* switch handling of connect dialog state to the consuming app

* rename web3-provider package to just web3

* envs for each environment so we can specify chainId

* remove fallback to testnet for apollo client creation

* make web3container enforce connection before rendering childen

* move infura id to env var
2022-03-25 00:44:10 -07:00
Matthew Russell
0af568dada
Fix/Clear active public key from local storage after disconnect 2022-03-25 00:43:49 -07:00
Matthew Russell
ed8db76af7
Task/AgGrid and responsive nav font size (#130)
* add custom properties to style ag grid tables

* use theme styles, make nav text sizes responsive

* move row and header heights to parent

* use max-w-full
2022-03-24 11:08:57 -07:00
Bartłomiej Głownia
fae1b8a5ee Cleanup after tests of ag-grid optimization 2022-03-24 18:29:56 +01:00
sam-keen
9d77ab15dc frontend-monorepo-137 Remove top white border 2022-03-24 16:56:37 +00:00
sam-keen
6806aff6b6 frontend-monorepo-134 Ensure displayed ids are using mono font 2022-03-24 16:44:23 +00:00
sam-keen
e2a61d26ad Proper way to get environment variables, and hoisted obtaining the env vars to the consumer of the stats manager 2022-03-24 14:58:24 +00: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
sam-keen
af5832fa9e Merge remote-tracking branch 'origin/master' into feat/127-generalised-stats-page
# Conflicts:
#	apps/stats/jest.config.js
#	libs/network-stats/src/config/types.ts
#	tsconfig.base.json
#	workspace.json
2022-03-24 12:21:44 +00:00
sam-keen
5d6147ec7e frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
Joe Tsang
56b6933ea3
Additional search tests added (#124) 2022-03-24 09:48:27 +00:00
Matthew Russell
6ad2a7676e
Feat/84 Order list (#89)
* scaffold dealticket package, remove trading views from react-helpers

* add deal ticket component, add intent utils, expand dialog and form group styles

* add splash component, show market not found message if market doesnt exist

* tidy up error handling

* add handleError method for vega tx hook

* add better testname for provider test, flesh out tests a bit more for deal ticket

* Add unit tests for useVegaTransaction and useOrderSubmit hooks

* add wrapper component for order dialog styles

* add vega styled loader to ui toolkit and use in order dialog

* add title prop to order dialog

* add button radio component

* revert dialog styles

* move splash component to ui-toolkit, add story

* convert intent to enum

* add date-fns, add datetime to helpers

* add order types to wallet package, make price undefined if order type is market

* tidy up order state by moving submit and transaction hooks out of deal ticket

* add types package, delete old generated types from trading project

* rename types package to graphql

* add order list container and order list component

* add test setup for useOrders

* add test for use-orders hook

* tidy unnecessary diff

* regen types and use them in order-list, also change to use applytransaction hook for orderlist grid

* make order table columns resizable

* make market table not have highlightable cells, use splash for orders errors and loading states, unit test for orderlist container

* add tests for order list table

* show rejection reason and expires at depending on status and tif

* add decimal places to query

* only update row if data has changed, add test coverage

* add setup tests file to avoid importing jest-dom for every test, add async-renderer component to handle fetch ui logic

* install all of lodash but import individually to get tree shaking

* add setup tests file for orderlist package

* add missing fields to use orders spec mock order

* fix act warnings in index page test

* fix casing of app import

* remove react-singleton-hook, simplify side formatting

* fix linting errors
2022-03-23 12:08:10 -07:00
Sam Keen
05d53bbf4c
106 - migrate mainnet stats to monorepo (#107)
* Initial commit of generated mainnet-stats directory

* Migration partly complete

* Migration complete

* Vega logo now in ui toolkit

* Specified a port that stops conflicts with other e2e tests

* Extra config for swapping to port that stops conflicts with other e2e tests. Also file name case change

* Adding the Cypress project ID to allow recording

* fix test

* Mainnet stats manager moved into library

* Mainnet stats project now importing manager element from lib

* Block Explorer has mainnet stats on home route

* Styling tweak to stop mainnet stats tables trying to match heights

* Spacing alignment tweaks

* Changing header text and tests to align with other branches

* Correct header test for mainnet-stats app

* Correct h3 test for mainnet-stats app

* Fix linting issue

* fix casing issue for CI

* Corrected mistake in merge

Co-authored-by: Dexter <dexter.edwards93@gmail.com>
2022-03-23 17:40:15 +00:00
sam-keen
61f8662323 Improved how button classes are applied 2022-03-23 15:48:50 +00:00
Dexter Edwards
d3f5410747
allow nav text to be different to route name (#118)
* allow nav text to be different to route name

* capitalize

* fix failing test due to casing
2022-03-23 15:02:53 +00:00
Dexter Edwards
6d9410e3cf
restrict lodash import (#121) 2022-03-23 15:01:50 +00:00
Dexter Edwards
ae37f76b1c
Search implementation (#97)
* make titles look prettier

* link to parties from transactions table

* render what data is found conditionally

* more syntax highlighting

* re-jig file orders

* remove footer component for now

* add subheading component

* adjust column layout

* Style up header

* enable ligatures

* change env files

* fix error if data is null

* show governance header even if there is no data

* remove dead css

* add dark theme for block explorer

* use memo on parties submit

* remove some css from header

* basic search implementation

* allow passing classNames to form group

* add tests for form group

* add form-grpup stories

* bad rebase fixes

* add link

* tidy up tests

* fix tests

* tidy up env files

* final test fixes

* switch order of classes

* fix test id

* force build for testing

* rename file for linting

* add tests for header component

* rename export

* input error tests

* use descriptive function names as per PR comment

* fix casing issue for CI

* handle empty state

* make query easier to understand
2022-03-23 09:57:51 +00:00
Matthew Russell
9ced1ce0fd
Fix/format price in order confirmation dialog (#102) 2022-03-22 11:18:50 -07:00
sam-keen
bbdc1c6e08 Used link-like button in block explorer 2022-03-22 15:39:56 +00:00
sam-keen
1e5f72ebcc Created a button that looks like an inline-link 2022-03-22 15:25:45 +00:00
Dexter Edwards
ecbcdf57e3
add workflow for lint, build and format (#111)
* add workflow for lint, build and format

* run checks [skip netlify]
2022-03-22 13:11:01 +00:00
Joe Tsang
34959075c2
Test/block page (#91)
* Added block page and validator test

* Transaction details and network param test added

* Add test id for styling change

* Changed test id names
2022-03-21 13:01:51 +00:00
Matthew Russell
4355907c52
Fix/Set initially selected pubkey after connect (#96)
* set initial public key after connection

* remove stray console.error
2022-03-19 18:31:44 -07:00
Sam Keen
af333c2abd
frontend-monorepo-43 Nav Styles (#99) 2022-03-18 20:53:42 +00:00