Commit Graph

3237 Commits

Author SHA1 Message Date
Joe Tsang
5cd35704ff
Tests for next/previous block feature (#209) 2022-04-06 16:03:22 +01:00
Bartłomiej Głownia
6cbc701384
[#168] Use static resources from static.vega.xyz (#205) 2022-04-06 11:36:36 +01:00
Matthew Russell
814589fd1e
Task/Use commands from cypress lib (#206) 2022-04-04 16:47:27 -07:00
Matthew Russell
018e5fe139
Task/33 add sentry to trading (#189)
* add sentry setup, add VEGA_ENV to env files

* rename custom error page

* capture exception for eager connect

* add link to setup docs in comment

* add browser tracing plugin

* define sentry auth token once

* enable sourcemaps on build

* use correct sentry config property
2022-04-04 12:45:40 -07:00
Joe Tsang
a459793f09
Task/Updated tests to pass when there are no transactions (#145)
* Updated tests to pass when there are no txs

* Add slack command to send messages to slack

* Re add library for Cypress

* Resolved PR comments

* Added TODOs for clarity

* Increase wait for block to update

* Increase to 3 seconds

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-04-04 18:20:33 +01:00
Joe Tsang
205f4124f1
Test/deal ticket tests (#161)
* 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

* split limit and market tickets into own files

* add button radio component

* revert dialog styles

* move splash component to ui-toolkit, add story

* convert intent to enum

* Make button always type=button unless type prop is passed

* inline filter logic for tif selector

* add date-fns, add datetime to helpers

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

* use enums in deal ticket logic

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

* add comment for dialog styles

* remove decimal from price input

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

* rename types package to graphql

* update generate command to point to correct locations

* fix use order submit test

* BDD and navigation tests passing

* Remove commented steps

* Steps up to placing order

* Date picker and date-fns update

* Vega connector wallet tests

* Passing up to request sent, updated date picker

* Tests for sell orders and errors

* Update market feature

* Fix failing tests

* Update wallet login

* Readded tx hash assertion and remaining tests

* Add CI wallet import

* Update .github/workflows/cypress.yml

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

* Resolved PR comments

* Fix yaml error

* Attempt to fix failing tests in CI

* Run Cypress in Chrome

* Add reload if public key error displayed

* Fix wallet name

* Add force click and waits

* Increase timeout for deal ticket page

* Removed network list from yaml and using input error id

* Increase timeout to 8 seconds

* Re add deleted test id

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-04-04 16:11:27 +01:00
Sam Keen
f9d7b33d3b
frontend-monorepo-196 Remove whitespace at bottom of page (#197) 2022-04-04 10:17:29 +01:00
Edd
9ee577c890
Merge pull request #195 from vegaprotocol/fix/stats-build
[stats] Set a default env
2022-04-01 18:09:15 +01:00
Sam Keen
1f14b4fbe1
Feat/48-mobile-experience (#194)
* Mobile nav

* Made the logo into a link to the home route

* Bit of padding on transaction table cells to avoid smooshing
2022-04-01 15:20:23 +01:00
Edd
f5b2056385 Remove redundant baseHref 2022-04-01 15:02:13 +01:00
Edd
75856975ca Try to make stats default to mainnet using NX env 2022-04-01 14:57:30 +01:00
Dexter
5c6939d9c8 fix all lint warnings 2022-04-01 10:53:03 +01:00
Dexter
8284537273 lint warnings 2022-04-01 10:51:56 +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
Matthew Russell
15551b65e5
Feat/83 switching vega key (#156)
* add manage dialog to wallet lib, add it to trading app

* add test for wallet button

* add tests for manage dialog

* move tooltip to ui-toolkit, add copy with tooltip component for manage dialog

* add better labelling

* add tooltip story

* add story for copy-with-tooltip

* add tests for tooltip and copy-with-tooltip

* move useFakeTimers call to beforeAll

* adjust design of manage dialog

* fix linting issues
2022-03-31 10:16:30 -07:00
Joe Tsang
e5b2c360ce
Task/Env file for connecting to local capsule (#179) 2022-03-31 10:15:47 -07:00
Sam Keen
4a7729cbad
Task/181 Remove bottom app border (#182) 2022-03-31 10:06:19 -07:00
Sam Keen
706ed351b3
Task/184 Bottom margin for next/prev block links (#186) 2022-03-31 10:05:44 -07:00
sam-keen
b6df83ede8 Resolved merge conflicts with master, reduced warnings 2022-03-31 14:20:36 +01:00
Bartłomiej Głownia
ad9344dd15 [#168] Add static app to host AlphaLyrae font 2022-03-31 09:11:29 +02:00
Matthew Russell
4899d1bce8
Task/Mark translations (#174)
* add dummy i18n translate function to market text that will need translation in future

* add i18n function to aria-labels
2022-03-30 18:08:25 -07:00
Dexter Edwards
83104cf1d6
Task/Remove env.local from block explorer(#169) 2022-03-30 17:55:36 -07:00
sam-keen
80902e3c30 Added custom module for classes that aren't in Tailwind - allows us to use contextual alternates for Alpha Lyrae 2022-03-30 16:56:48 +01:00
Bartłomiej Głownia
7af0efa8d8 Enable @typescript-eslint/consistent-type-imports eslint rule 2022-03-30 13:05:41 +02:00
sam-keen
2857e8081e Added 'Highlighted Link' component for shared styling for links in light and dark themes 2022-03-30 11:39:32 +01:00
sam-keen
ee66bea4f4 Added extra 'Table' component without tbody and used for transactions 2022-03-30 10:54:16 +01:00
sam-keen
74377a4697 Fixed classes for app alignment and bg colour 2022-03-30 10:54:15 +01:00
sam-keen
6c274e5375 New 'Truncated Link' component for shared styling 2022-03-30 10:54:14 +01:00
sam-keen
75017feada Added some light theme styling 2022-03-30 10:54:13 +01:00
sam-keen
95e846d6af Added theme switcher and tweaked header to accommodate 2022-03-30 10:54:13 +01:00
sam-keen
6b5fc8ebeb Removed scss and converted to tailwind 2022-03-30 10:54:12 +01:00
Matthew Russell
d3d28947ea tidy up deal ticket query and market page query 2022-03-29 16:19:23 -07:00
Matthew Russell
fdfcc4e5db delete global types from explorer app 2022-03-29 16:10:38 -07:00
Matthew Russell
edce1c7869 rename graphql dir to types 2022-03-29 16:03:27 -07:00
Matthew Russell
3f62c79f8d colocate querys with libs 2022-03-29 15:52:51 -07:00
Sam Keen
7e3e098ae4
Feat/76 Use UI toolkit components for 'jump to block' (#147)
* frontend-monorepo-76 Use UI toolkit components for 'jump to block'

* frontend-monorepo-76 Use UI toolkit components for 'go to party'

* Added reusable component for 'jump to block' and 'go to party'
2022-03-29 19:08:33 +01: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
Dexter Edwards
e4578a198f
Chore/sentry (#163)
* begin adding sentry

* add sentry webpack config

* rename environment variable

* make sourcemaps work for sentry

* set environmenet based on vega environment

* rename envs

* remove throw error button
2022-03-29 18:29:29 +01: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
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
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
95f66ccd9b [#128] Make market data provider generic 2022-03-29 18:57:10 +02:00
Dexter Edwards
c5788fa1cf
Feat/122 next previous buttons (#131)
* fix use fetch hook

* add next/previous buttons

* disable the button if the block is 1

* prevent slow fetches from overriding data

* move splash loader into UI toolkit

* remove splash loader

* remove splash

* remove pointless component

* add tests for blocks page

* fix jump to party

* merge updates

* address PR comments
2022-03-29 14:30:23 +01:00
Sam Keen
47e703c558
Merge pull request #149 from vegaprotocol/feat/113-stats-use-theme-switch-hook-and-ui
Feat/113 stats use theme switch hook and UI
2022-03-29 12:49:05 +01:00
Matthew Russell
d4652b3dd8
Task/Strict mode enabled for trading app (#150)
* enable strict mode and fix resulting type errors

* fix print affected command

* remove assign-deep and use lodash/merge, fix some type errors after enabling strict mode
2022-03-28 12:34:45 -07:00
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
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
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
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
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
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
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
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
Sam Keen
af333c2abd
frontend-monorepo-43 Nav Styles (#99) 2022-03-18 20:53:42 +00:00
Sam Keen
514b30bebd
Merge branch 'master' into feat/40-tx-styling 2022-03-18 14:55:43 +00:00
Sam Keen
53ff8429e5
Update apps/explorer/src/app/components/seconds-ago/seconds-ago.spec.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-18 14:55:01 +00:00
Sam Keen
1cc95c861c
Update apps/explorer/src/app/components/seconds-ago/seconds-ago.spec.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-18 14:54:56 +00:00
Sam Keen
5c9571766a
Update apps/explorer/src/app/components/seconds-ago/index.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-18 14:54:46 +00:00
sam-keen
a160c54688 Tweak to 'tx-content' component as conditional rendering was no longer needed 2022-03-18 14:50:16 +00:00
sam-keen
edbf8244df Updated component tests to use best practices and improved syntax 2022-03-18 14:41:30 +00:00
Bartłomiej Głownia
3e69e53c4e #29 Add market-list-table 2022-03-18 13:13:14 +01:00
Dexter
504f088f00 fix jest config setup 2022-03-18 10:35:48 +00:00
sam-keen
0a28d5e111 Start of component unit tests 2022-03-18 10:27:27 +00:00
Matthew Russell
313e6e1217
Feat/63 Deal ticket (#82)
* 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

* split limit and market tickets into own files

* add button radio component

* revert dialog styles

* move splash component to ui-toolkit, add story

* convert intent to enum

* Make button always type=button unless type prop is passed

* inline filter logic for tif selector

* add date-fns, add datetime to helpers

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

* use enums in deal ticket logic

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

* add comment for dialog styles

* remove decimal from price input

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

* rename types package to graphql

* update generate command to point to correct locations

* fix use order submit test

* use intent shadow helper

* remove date-fns and format manually, update submit button error to use input-error

* remove stray console.log
2022-03-17 12:35:46 -07:00
Dexter Edwards
7b4437f407
regenerate based on new API client (#86)
* regenerate based on new API client

* lint

* run projects on different ports
2022-03-17 09:09:48 +00:00
Matthew Russell
d9e57f6694
Add subscription link for graphql client 2022-03-16 12:38:04 -07:00
sam-keen
838e0b0f4d Removed unnecessary padding on tr 2022-03-16 15:45:38 +00:00
sam-keen
b61bf984b1 Styled tx:id 2022-03-16 15:35:30 +00:00
sam-keen
001848fc78 Used lozenge for txs 2022-03-16 14:58:16 +00:00
sam-keen
775b4a7de9 Added display strings for tx order type 2022-03-15 14:49:10 +00:00
Sam Keen
c2e4f1d007
Merge pull request #58 from vegaprotocol/feat/41-blocks-styling
Feat/41 blocks styling
2022-03-15 13:27:13 +00:00
sam-keen
171e27fd7b Merge remote-tracking branch 'origin/feat/41-blocks-styling' into feat/41-blocks-styling 2022-03-15 13:22:18 +00:00
sam-keen
8090221874 Final changes from PR:
* data-testid spread via props rather than custom prop
* more use of routes config rather than hard coded route names
* tweak to TS type for returning children prop without wrapper fragment
2022-03-15 13:21:39 +00:00
Sam Keen
a52f00cd8f
Update apps/explorer/src/app/routes/blocks/id/index.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-15 12:32:30 +00:00
sam-keen
477e3faa6e Added a component to render fetched data to include loading and error states. Added to all instances of useFetch 2022-03-15 11:32:15 +00:00
sam-keen
061388938c Loading and error states for blocks home route 2022-03-14 17:06:58 +00:00
sam-keen
47e078a502 Improved component structure 2022-03-14 15:38:08 +00: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
sam-keen
8f22cbc0c9 'jump to block' in same section tag as other route components 2022-03-14 09:31:10 +00:00
Matthew Russell
deb4570ebe fix dark theme for trading grid 2022-03-10 21:19:44 -08:00
Matthew Russell
634075e015 remove unused hook from index page 2022-03-10 21:09:34 -08:00
Matthew Russell
dbe9e9504f fix navbar styles 2022-03-10 21:03:02 -08:00
Matthew Russell
141ef8224b tidy up _app move logic to hooks and add component files for vega connect button and app loader 2022-03-10 20:51:05 -08:00
Matthew Russell
a47e4526bb fix vega connect button alignment 2022-03-10 20:51:05 -08:00
Matthew Russell
1859fef75c fix invalid syntax 2022-03-10 20:51:05 -08:00
Matthew Russell
fdc5e68158 tidy up storage keys in wallet provider 2022-03-10 20:51:05 -08:00
Matthew Russell
847d51e060 use components from ui-toolkit, add form-group, adjust input widths 2022-03-10 20:51:05 -08:00
Matthew Russell
9bffb15c2a use compoments from ui-toolkit, minor style changes 2022-03-10 20:51:05 -08:00
Matthew Russell
77214d5427 further styling 2022-03-10 20:51:05 -08:00
Matthew Russell
0b3bf269b6 tidy styles and tailwind config 2022-03-10 20:51:05 -08:00
Matthew Russell
473f74adca fix styles after rebase 2022-03-10 20:51:05 -08:00
Matthew Russell
d1f44589cc add nav item for home and use pubkey on portfolio page 2022-03-10 20:51:05 -08:00
Matthew Russell
3f9f97b1fa fix navbar and default select value 2022-03-10 20:51:05 -08:00
Matthew Russell
ac4f833360 make manager component not take children 2022-03-10 20:51:05 -08:00
Matthew Russell
e92e708cf1 add vega wallet manager component and re add current single pubkey to provider state 2022-03-10 20:51:05 -08:00
Matthew Russell
84af6177ad update eager connect hook and make app concerned with selected pubkey, refactor token to be stored as object 2022-03-10 20:51:05 -08:00
Matthew Russell
195fff27ab remove react helper/ui-toolkit demo components 2022-03-10 20:51:05 -08:00
Matthew Russell
bb485d5783 add useEagerConnect hook 2022-03-10 20:51:05 -08:00
Matthew Russell
59d0beebe2 add current key selector, fix revoke token/disconnect 2022-03-10 20:51:05 -08:00
Matthew Russell
fba3101753 refactor so that consuming app chooses to render modal and what connectors to use 2022-03-10 20:51:05 -08:00
Matthew Russell
ff24a4a3ba add dialog to ui-toolkit, add functionality to provider to render connect dialog and connectors ui 2022-03-10 20:51:05 -08:00
sam-keen
2d635808de Improvements from the PR 2022-03-10 15:57:48 +00:00
Sam Keen
d0b4f431c1
Update apps/explorer/src/app/components/txs/txs-per-block/index.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-10 12:45:45 +00:00
Sam Keen
c7d195c8d8
Update apps/explorer/src/app/components/jump-to-block/index.tsx
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-03-10 12:44:18 +00:00
Joe
1fa63d2260 Remove Cypress action 2022-03-10 12:05:41 +00:00
Dexter
6961c7107c a bunch of different env 2022-03-10 12:05:41 +00:00
Dexter
cbef551312 fix environement config 2022-03-10 12:05:41 +00: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
Dexter
20a06b6478 fix process error 2022-03-08 11:58:30 +00:00
Joe
82c426ded8 Merge branch 'master' into test/Cypress-BDD-integration 2022-03-08 10:28:41 +00:00
sam-keen
9739e4b467 Block id styling 2022-03-07 19:51:13 +00:00
Dexter
7652acc1a3 turn everything on for current development 2022-03-07 11:32:59 -08:00
Dexter
0ed1c2b1b7 flag out routes if not enabled 2022-03-07 11:32:59 -08:00
Dexter
86e91b1f12 add flags for config 2022-03-07 11:32:59 -08:00
Dexter
0c9dcfed31 add proposals terms change name on proposals page 2022-03-07 11:29:21 -08:00
Dexter
d75218afa6 add sentry 2022-03-07 11:28:08 -08:00
Joe
615562af54 Remaining tests added and passing 2022-03-07 17:18:15 +00:00
Joe
de80be7196 Rebase and test for txs page 2022-03-07 17:18:15 +00:00
Joe
ac58037ba3 Main pages created 2022-03-07 17:18:15 +00:00
Joe
aa0a88cb04 Base page and few more 2022-03-07 17:18:15 +00:00
Dexter
586b70f694 rename script 2022-03-07 15:44:50 +00:00
Dexter
02f803c2b5 add build:netlify script 2022-03-07 15:44:50 +00:00
sam-keen
f2f1083260 Block route styling and improved components 2022-03-07 14:31:26 +00:00
Dexter
c54fa5ab56 point BE at mainnet 2022-03-04 17:11:56 +00:00
Dexter
5d50771246 put back css, remove uneeded file 2022-03-04 17:11:56 +00:00
Dexter
032f2711c3 add basic tailwind setup 2022-03-04 17:11:56 +00:00
sam-keen
abe2ecaafc Added key to a non-shorthand react fragment 2022-03-04 17:11:56 +00:00
sam-keen
afeabc1ba2 Kebab cased component file names 2022-03-04 17:11:56 +00:00
sam-keen
defe970784 Removed prism theme 2022-03-04 17:11:56 +00:00
sam-keen
e981b8c7fa Moved to use syntax-highlighter instead of prism 2022-03-04 17:11:56 +00:00
sam-keen
346135c6d4 Added a couple of links to nav around more happily 2022-03-04 17:11:56 +00:00
sam-keen
c797a11ceb Put pending under txs route 2022-03-04 17:11:56 +00:00
Sam Keen
65ffa8519c Update apps/explorer/src/app/hooks/use-fetch.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-04 17:11:56 +00:00
Sam Keen
329098bf02 Update apps/explorer/src/app/hooks/use-fetch.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-04 17:11:56 +00:00
Sam Keen
4734131780 Update apps/explorer/src/app/components/txs/txs-per-block/index.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-04 17:11:56 +00:00
sam-keen
d3b81babb9 Added validator link to block id route 2022-03-04 17:11:56 +00:00
sam-keen
3f47eed917 Added Table presentational component for a little cleanup 2022-03-04 17:11:56 +00:00
sam-keen
1b6c42c031 Updated block id page to use project components 2022-03-04 17:11:56 +00:00
sam-keen
2ef05b3f35 Transactions route set up and a component to show the transactions per block 2022-03-04 17:11:56 +00:00
sam-keen
ac961b6058 Created a new route for pending transactions to live for now 2022-03-04 17:11:56 +00:00
sam-keen
4981b9fc4d Test of running nx in yarn from pre-commit 2022-03-04 17:11:56 +00:00
sam-keen
f88661e422 Created unstyled block explorer blocks page, with new refresh method from useFetch, and a 'navigate to' component 2022-03-04 17:11:56 +00:00
sam-keen
e467344a4d setup a basic transactions home component to work on 2022-03-04 17:11:56 +00:00
sam-keen
67dc1bfbf1 Created unstyled block explorer transaction and added Prism for code blocks being displayed 2022-03-04 17:11:56 +00:00
Matthew Russell
351cd77f84 move trading views to react helpers 2022-03-02 12:21:35 -08:00
Matthew Russell
eed2f08bc9 use already installed lodash.debounce, destructuring 2022-03-02 12:21:35 -08:00
Matthew Russell
026dd0f2c3 move View type to trading-compoments, tidy comments 2022-03-02 12:21:35 -08:00
Matthew Russell
da80f8848c fix render loop 2022-03-02 12:21:35 -08:00
Matthew Russell
a66ac23122 use radix for tab functionality 2022-03-02 12:21:35 -08:00
Matthew Russell
ed095d002d split out components into seprate files 2022-03-02 12:21:35 -08:00
Matthew Russell
82cdd245c3 use first tab as default, use state for tabs and an effect to update 2022-03-02 12:21:35 -08:00
Matthew Russell
5c0d21578f use page query container for market list page, add styles to center loading and error message 2022-03-02 12:21:35 -08:00
Matthew Russell
72db4029ea add page query container component 2022-03-02 12:21:35 -08:00
Matthew Russell
ca4bbbac85 adjust text size for desktop view 2022-03-02 12:21:35 -08:00
Matthew Russell
ed185e3bea add vega icon 2022-03-02 12:21:35 -08:00
Matthew Russell
1bb24bbaed fix typo in market list links 2022-03-02 12:21:35 -08:00
Matthew Russell
375697a18a use bg colors from theme 2022-03-02 12:21:35 -08:00
Matthew Russell
62187b38dd add hook to get window size 2022-03-02 12:21:35 -08:00
Matthew Russell
99855e6d65 add basic mobile version 2022-03-02 12:21:35 -08:00
Matthew Russell
9324fb7613 adjust padding of tab buttons 2022-03-02 12:21:35 -08:00
Matthew Russell
623c75aebb adjust grid, use market name 2022-03-02 12:21:35 -08:00
Matthew Russell
15c5a15a28 add aria labels for tabs 2022-03-02 12:21:35 -08:00
Matthew Russell
54bbe421bc make tab content scrollable 2022-03-02 12:21:35 -08:00
Matthew Russell
261f033d9a make tabs use url query string 2022-03-02 12:21:35 -08:00
Matthew Russell
e76f633493 tabs implementation for trading interface 2022-03-02 12:21:35 -08:00
Matthew Russell
a7256e04b3 skip query if market not defined 2022-03-02 12:21:35 -08:00
Matthew Russell
d1bf044d3d add pages extends so generated query files are ignored by nextjs 2022-03-02 12:21:35 -08:00
Matthew Russell
63c1af9760 add apollo setup for trading app 2022-03-02 12:21:35 -08:00
Joe
6a8778becd Fix for .env not picked up and Cypress update 2022-03-02 16:25:48 +00:00
jtsang586
b246a92233 BDD set up 2022-03-02 16:25:48 +00:00
Matthew Russell
6ee4a4da72 make navbar use tailwind, remove nx html 2022-02-23 18:08:31 -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
Dexter
8a9b74fd89 highlight governance proposals 2022-02-23 08:53:57 +00:00
Dexter
e26caef368 json for genesis, assets, new component for syntax highlighting 2022-02-23 08:53:57 +00:00
Dexter
04df5aeed6 render makets list with json fomratter 2022-02-23 08:53:57 +00:00
Dexter
444941e169 json blocks 2022-02-23 08:53:57 +00:00
Dexter
98426f94f8 fix blocks page 2022-02-23 08:53:57 +00:00
Dexter
61f9933214 uuid fix 2022-02-23 08:53:57 +00:00
Matthew Russell
bebc767c4c add use of useRoutes with nested children rotues and outlets 2022-02-23 08:53:57 +00:00
Matthew Russell
c2aaed0b9a rename case of app 2022-02-23 08:53:57 +00:00
Dexter
7d5ee75610 add apollo target nx script and run 2022-02-23 08:53:57 +00:00
Dexter
4bb61ad74c generate guess types 2022-02-23 08:53:57 +00:00
Dexter
2014831650 add debounced search functionality 2022-02-23 08:53:57 +00:00
Dexter
89ba2ee6d4 use environement variables for config 2022-02-23 08:53:57 +00:00
Dexter
d35b8dc2a4 remove old explorer logic 2022-02-23 08:53:57 +00:00
Dexter
ecbb521191 make font work properly 2022-02-23 08:53:57 +00:00
Dexter
70879a3832 make precommit exectuable 2022-02-23 08:53:57 +00:00
Dexter
fb122a90b8 clean up 2022-02-23 08:53:57 +00:00
Dexter
816a3df352 reogranizing 2022-02-23 08:53:57 +00:00
Dexter
159cdb6023 migrate stuff into new NX 2022-02-23 08:53:57 +00:00
Dexter
cf79f03876 npm nx-cra 2022-02-23 08:53:57 +00:00
Dexter
b41b97556f add block explorer 2022-02-23 08:53:57 +00:00
Matthew Russell
726bcaf579 add navlink 2022-02-21 07:36:06 -08:00
Matthew Russell
8ea74311be add basic navbar component 2022-02-21 07:36:06 -08:00
Matthew Russell
c312b00bb9 add markets and portfolio pages 2022-02-21 07:36:06 -08:00
Bartłomiej Głownia
8a09f57bd4 Fix build and lint errors 2022-02-14 17:16:21 +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