* feat: mobile navbar on Console
* feat: mobile navbar on Console - adjust unit test
* feat: mobile navbar on Console - adjust unit test
* feat: mobile navbar on Console - adjust themes
* feat: mobile navbar on Console - add some unit tests
* feat: mobile navbar on Console - refactor solution
* feat: mobile navbar on Console - adjust int tests
* feat: mobile navbar on Console - adjust styling
* feat: mobile navbar on Console - move close button into the drawer
* feat: mobile navbar on Console - adjust int tests
* chore: close drawe after navigation
* chore: mobile navbar on Console - adjust unit tests
* chore: mobile navbar on Console - adjust unit tests
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* chore: add mirror config for trading
* chore: fix url for mainnet mirror in network config
* fix: remove link if no market id
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* feat(#2465): change red to vega pink
* feat(#2465): change red to vega pink part 2
* fix: update vega.red to vega.pink
* feat: color the charts
* feat: color the charts
* feat: color the charts
* fix: use dark pink and green
* fix: use dark pink and green
* feat(#2467): color long/short toggle and place order button
* fix: colors wick showing within candle
* fix: remove opacity from chart
* fix: use vega dark pink and green for vol cell
* fix: toggle and button colors
* feat(#2465): toggle peer checked text white
* fix: add liquidity supplied gap-2 in tooltip data grid
* fix: add indicator temporarily
* chore: update colors
* chore: update from x-dark to vega-x
* fix: rename symbols
* chore: update sell candles to only use stroke as they are solidly filled
* fix: remove use state
* fix: remove network account types
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* chore: redirect to last visited market instead first from the list
* chore: redirect to last visited market instead first from the list - add int tests
* feat: redirect to last visited market instead first from the list - refactor solution
* feat: redirect to last visited market instead first from the list - fix failing int test
* feat: redirect to last visited market instead first from the list - fix failing int test
* feat: redirect to last visited market instead first from the list - fix failing int test
* feat: redirect to last visited market instead first from the list - use immer in globalStore
* chore: redirect to last visited market - improve use of zustand
* feat(#2367): market liquidity supplied in trade market header
* feat(#2467): calculate LP status
* fix: add LP view link
* fix: add LP view link
* feat(#2367): show liquidity supplied percentage
* feat(#2367): show liquidity supplied percentage
* fix: liquidity-utils test needs big number
* feat(#2456): liquidity status marker
* feat(#2456): liquidity indicator
* feat(#2367): update props lp
* fix: use market data directly
* feat(#2367): move data grid in react-helpers
* feat(#2367): move data grid in react-helpers
* fix: indicator commented
* chore: remove unnecessary styles
* test: update test name
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* feat: add eth and vega transaction stores
feat: replace useStoredEthereumTransaction with useEthTransactionManager
feat: add event bus subsciption to vega transaction store
feat: handle order cancellation
feat: rename Deposit, Order and Withdraw status field to be unique
Revert "feat: rename Deposit, Order and Withdraw status field to be unique"
This reverts commit f0b314d53fb3ada6fbebaba4fd1e5af6f38beaed.
feat: split transaction update subscription
feat: handle order and deposit transaction
feat: handle withdrawal creation through transaction store
feat: handle withdraw approval
feat: handle panding withdrawls, add createdAt
feat: handle transaction toast/dialog dismissal
feat: add use vega transaction store tests
feat: add use vega transaction store tests
feat: add use vega transaction menager tests
feat: add use vega transaction menager tests
feat: add use vega transaction updater tests
feat: improve use vega transaction updater tests
feat: add use eth transaction store
feat: add use eth withdraw approvals store
feat: add use eth transaction updater tests
fixed tests
* feat: toasts
feat: toasts
feat: toasts
* feat: add use eth withdraw approval manager tests
* feat: add use eth transaction manager tests
* feat: add use eth transaction manager tests
* feat: add useEthWithdrawApprovalsManager tests
* feat: remove Web3Container react container from CreateWithdrawalDialog
* feat: remove Web3Container react container around TransactionsHandler
* feat: remove unnecessary async from PendingWithdrawalsTable
* feat: remove comments from WithdrawalFeedback
* fixed z-index issue
* cypress
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
* chore: switch theme to zustand, delete context
* chore: switch apps/componenets to consume the hook
* chore: update storybook theme usage to use documentElement
* chore: dry up theme switcher listener for storybooks
* feat: optional theme param to allow toggling
* chore: add additional check for matchMedia function
* chore: change block explorer test to use light theme as its the default
* chore: remove unused headerprops for multisig-signer
* chore: remove unused props from theme switcher component
* chore: dry up validateTheme func
* chore: remove unused props from explorer header test
* chore: use new theme switcher in account history container
* feat: adjust and refactor welcome dialogs
* feat: adjust and refactor welcome dialogs - add int tests
* feat: adjust and refactor welcome dialogs - small fixes and imprvments
* feat: adjust and refactor welcome dialogs - fix a typo
* feat: adjust and refactor welcome dialogs - fix a property name
* feat: adjust and refactor welcome dialogs - fix an unit test
* feat(#2307): make liquidity provision table more prominent
* feat(#2307): show title only if content is defined
* feat(#2307): filter LP to show active, undeployed and pending
* fix(#2307): remove showTitle attribute
* fix: check marketId and name before building href
* fix(#2307): revert header changes
* chore: remove apollo type gen and clean up types lib
* fix: format
* fix: tests
* fix: format
* fix: hammer token types til sh*t turns green
* fix: format
* fix: apparently format again
* fix: lint
* fix: build-specs
* fix: format
* chore: regen types
* chore: regenerate types again
* fix: format
* chore: make proposals the home page, redirect home to proposals
* chore: reorganise the remainder of the routes
* chore: small styling bug
* fix: nav links highlighted incorrectly
* feat: rename title, rename routes to new structure, add redirects
* chore: make navbar full width
* feat: new navbar bases on trading navbar
* chore: revert change to the width of the page
* chore: make navbar reactive and support draw
* chore: move draw into its' own file
* chore: move nav into toolkit
* style: lint
* chore: trading to use navbar
* fix: uppercase navbar title
* chore: add test
* fix: merge issue
* style: lint
* test: adjust test URLs
* test: more route adjsuting
* test: fix route name
* test: change URL to be new url
* test: more path corrections
* test: more path fixes
* style: lint
* test: minor test fixes
* test: more test fixes
* test: fix incorrect paths
* test: green build plz
* chore: adjust name as per PR comments
* test: fix path
* test: fix incorrect path
* test: final test fix
* test: plz green
* feat: add status header stat, move header to own component
* chore: fix alignment of price change values when arrow is not rendered
* test: add check for market state display
* feat: add market state component and adjust queries to handle sub updates to market state
* test: update mocks to include data.marketState fields
* chore: add missing market state to console-lite mock
* chore: test adjustment
* fix: botched conflict resolution
* chore: update select market columns test
* chore: add missing fields to test helper functions
Co-authored-by: Rado <szpiechrados@gmail.com>
* chore: partial live update of market dropdown
* chore: partial live update of market dropdown
* chore: partial live update of market dropdown - some refactor
* chore: partial live update of market dropdown - some refactor
* chore: partial live update of market dropdown - fix lint error
* chore: partial live update of market dropdown - fix failing tests
* chore: partial live update of market dropdown - fix failing tests
* fix: make asset dialog use asset id rather than symbol
* fix: tests that relied on asset symbol rather than id
* chore: add missing asset id to mocks
* chore: add asset id to mocks for e2e tests
* chore: add missing asset id for orders mock
* chore: fix console-lite build
* chore: add missing asset ids to mocks
* chore: update stagnet3 urls
* chore(#2179): remove normalized number formatter functions and update getNumberFormat
* fix(#2179): fix unit tests on all formatters
* fix(#2179): fix some cypress tests
* fix: fix trading-accounts.cy.ts
* fix: update staking and wallet teardown tests
* chore: add e2e run-all command
* fix: wallet-eth test
* fix: fix tests in explorer and token
* fix: fix common.functions.js
* fix: fix common.functions.js in explorer
* fix(#2179): fix common.functions.js in explorer
* fix(#2179): fix common.functions.js in explorer
* fix(#2179): fix common.functions.js in explorer
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* chore: update of deal ticket data
* chore: update of deal ticket data
* chore: update of deal ticket data - fix re-render loop
* chore: update of deal ticket data - add marketDealTicketProvider
* chore: update of deal ticket data - add marketDealTicketProvider
* chore: update of deal ticket data - adjust console-lite to the changes
* chore: update of deal ticket data - fix failing unit tests
* chore: update of deal ticket data - fix failing unit tests
* chore: update of deal ticket data - fix linter failings
* chore: update of deal ticket data - adjust console-lite-e2e
* chore: update of deal ticket data - fix build-spec failings
* chore: update of deal ticket data - fix failing e2e tests
* chore: update of deal ticket data - fix failing e2e tests
* chore: update of deal ticket data - fix failing e2e tests
* chore: update of deal ticket data - remove unnecessary gqls
* chore: update of deal ticket data - remove unnecessary gqls
* chore: update of deal ticket data - remove unnecessary gqls
* chore: update of deal ticket data - fix failings build
* chore: update of deal ticket data - remove redundant data provider
* chore: update of deal ticket data - remove redundant data provider
* chore: update of deal ticket data - fix some types
* fix: migrate queries to latest apis
* fix: remove oracles section for now
* fix: dive in to fields correctly
* fix: update queries
* fix: fragment for stats fields
* fix: rename triple underscore generated
* chore: refactor types that have moved
* chore(explorer): disable e2e test that asserts json structure
* feat(#1643): add grid set filter, amend filters in orders table
* feat(#1643): strictly type variables in orders data provider
* feat(#1643): add date range param to orders query
* feat(#1643): add date range filter
* feat(#1643): handle data provider updates after variables change in ag-grid infinite row model
* feat(#1643): fix unit tests
* feat(#1643): use DateRangeFilter in positions table instead of agDateColumnFilter
* feat(#1643): add date range filter support to orders data provider
* feat(#1643): fix update functions
* feat(#1643): remove sortable from orders list columns
* chore: remove console.log
* chore: make liquidity page client side only
* chore: switch to hash based router
* chore: add index files for each page
* chore: tidy up _app
* chore: convert to use useRoutes
* fix: active state with react-router NavLink
* feat: add routes enum
* chore: restrict link and router imports from next
* chore: update testing navigation to use hash routes
* fix: typoe in eslint rule message
* chore: remove unnecessary getInitialProps function definition
* chore: wrap tests with memory router
* chore: delete unused index.page file
* chore: update suspense fallback state
* chore: add comment for link component span usage, update link to use toolkit styles
* chore: fix lint issues
* chore: delete client deposit page
* chore: revert title in _app so title gets set correctly without rerender
* revert: removal of deposit page so deposit e2e tests still pass
* chore: move client router to index page so valid status codes are still sent
* fix: wrong route path for markets page, cypress tests
* feat: #1763 display the product type in select market lists
* fix: #1763 add on top of deal ticket button notice that you are buying product type contracts
* fix: #1763 remove message above deal-ticket button
* fix: #1763 left align product type title
* fix: #1763 header align left for product type
* feat: add yellow theme for navbar, adjust dropdown and theme switcher styles
* feat: set yellow theme when network is testnet
* feat: adjust button styles to accomodate different color backgrounds
* feat: #1659 add link to market in orders table
* feat: #1794 use volume 24h instead of indicative volume
* fix: remove total fees that was defined but not used in select columns
* fix: fix cypress test for volume (24h) header
* fix: add volume 24h tooltip
* fix: trading mode and volume order
* fix: #1486 move deal ticket hooks from console-lite to be re-used in trading app for console v2
* fix: #1486 typo
* feat: #1486 deal ticket query update, console-lite fix
* feat: #1486 console-lite fix
* feat: #1486 initial hook to get fee details
* feat: #1486 add tooltips
* feat: #1486 add fees cell from market-info in tooltip
* fix: #1486 edit deal-ticket.spec.ts titles and index.ts of deal ticket hooks
* feat: #1486 move all hooks for slippage into deal ticket
* fix: #1486 fix linting deal-ticket issue
* fix: set price, fix NaN percentage, watch full order object
* fix: update only when market price is updated
* feat: #1486 add fees from est. order query, fees breakdown, fix BigNumber NaN issue
* feat: #1486 add fee factors in generate deal ticket query
* fix: #1486 show margin on short
* fix: #1486 format price and fix dal ticket use order margin import
* fix: #1486 fix price memo
* feat: #1486 update estimate ordr query with order price or mark price
* fix: #1486 revert apps/console-lite/.env
* fix: #1486 fix NaN value on close out
* fix: #1486 revert close out calculation
* fix: #1486 prevent NaN close out
* fix: #1486 revert close out
* feat: #1486 add fee factor percentages in tooltip and fix NaN
* fix: #1486 fix deal-ticket-steps est close out null handling
* fix: #1486 fix deal-ticket-steps est close out null handling
* fix: #1486 add tooltip for fees
* fix: #1486 fix console-lite formatting on notional size and close out
* fix: #1486 total fees formatting inside the hook
* feat: #1486 add qutote to fees tooltip
* fix: #1486 update hook, price, console-lite and styling
* chore: fix mock types
* fix: #1486 fix tests in console-lite
* fix: #1486 add declaration.d.ts to console-lite-e2e
* fix: #1486 fix deal ticket test
* fix: #1486 fix deal ticket test
Co-authored-by: Rado <szpiechrados@gmail.com>
* chore: break down components to smaller chunks for better performance
* chore: break down components to smaller chunks for better performance
* chore: break down components to smaller chunks for better performance - fix failing tests
* chore: break down components to smaller chunks for better performance - adjust token app cases
* chore: break down components to smaller chunks for better performance - small fixes
* chore: break down components to smaller chunks for better performance - small fixes
* chore: break down components to smaller chunks for better performance - small fixes
* chore: break down components to smaller chunks for better performance - small fixes
* chore: break down components to smaller chunks for better performance - add nwe store for pageTitle
* chore: break down components to smaller chunks for better performance - sm fix
* chore: break down components to smaller chunks for better performance - sm fix
* chore: break down components to smaller chunks for better performance - sm imprv
* chore: break down components to smaller chunks for better performance - change prop names
* chore: break down components to smaller chunks for better performance - fix some test
* chore: break down components to smaller chunks for better performance - change cypress url
* chore: break down components to smaller chunks for better perf - set back redundant changes
* chore: resolve conflicts
Co-authored-by: maciek <maciek@vegaprotocol.io>
* chore: market header live update
* chore: market header live update
* chore: market header live update - adjust some mocks
* chore: market header live update - add single market query
* chore: market header live update - small fixes
* chore: market header live update - fix int tests
* chore: market header live update - fix int tests
* chore: market header live update - remove unnecessary props from query
* chore: market header live update - change concept - split for small comps
* chore: market header live update - small fix for mocks
* chore: market header live update - fix updates throttling
* chore: market header live update - improve update methods of data providers
* chore: market header live update - improve update methods of data providers
* chore: market header live update - improve update methods store for get rid of blinking
* chore: market header live update - fix title component
Co-authored-by: maciek <maciek@vegaprotocol.io>
* fix: make sparkline appear after change cell
* fix: make price come after expiry in market header
* fix: refer to size rather than amount in validation
* fix: radio colors in light theme
* fix: remove orange border from vega tx pending state
* chore: combine deposit and withdraw buttons into single cell
* chore: update accounts table test, remove console warning from breakdown tests
* chore: update order validation test
* chore: place market table header in correct position
* chore: use actual change id to avoid clash
* fix: remove assertion in fills table that is flakey
* chore: render fills table with act
* fix: add a wait time for infura queries to resolve
* feat: inserts of new item in positions
* feat: inserts of new item in positions - move select-market to app dir
* feat: inserts of new item in positions - add delta to update
* feat: inserts of new item in positions - fix e2e mocks
* feat: inserts of new item in positions - fix e2e mocks
* feat: inserts of new item in positions - adjust e2e mocks
* feat: inserts of new item in positions - adjust e2e tests
* feat: inserts of new item in positions - adjust e2e tests
* feat: inserts of new item in positions - adjust e2e trading tests
* feat: inserts of new item in positions - adjust e2e account tests
* feat: inserts of new item in positions - adjust e2e account tests
* feat: inserts of new item in positions - adjust e2e account tests
* feat: inserts of new item in accounts - manage inserting new accounts
* feat: inserts of new item in accounts - adjust console-lite tests
* feat: inserts of new item in accounts - adjust console-v2 tests
* feat: inserts of new item in accounts - adjust console-v2 tests
* feat: inserts of new item in accounts - clean up after merge
* feat: inserts of new item in accounts - fixes after feedback
Co-authored-by: maciek <maciek@vegaprotocol.io>
* feat: update connect dialog to handle api v2
* feat: better error handling
* feat: update to only use strings for pubkey, add json rpc connector
* feat: make json connector follow same patterns as rest connector
* feat: add ability to change wallet location
* feat: add chain id fetch
* feat: improve types
* feat: adjust send tx types
* chore: remove dialog title and chain check temporarily
* feat: additional UI and error handling
* feat: rename keypair and keypairs to pubKey and pubKeys
* feat: make rest and json rpc connectors return consistent data
* feat: rename derived ids more clearly
* feat: update send_transaction response type
* chore: fix tests after context name change
* feat: add utils for wallet, add encode tx func
* feat: return null if tx is rejected
* feat: fix up styles for connect buttons
* feat: handle wallet version check
* feat: add chain id check
* chore: rename select pub key function to match, fix tests
* fix: tests for rest connector form
* feat: add tests for json rpc flow
* feat: connect dialog changes
* chore: change status to enum to avoid magic strings
* feat: add custom icons and handle provided key name
* chore: update global wallet connection e2d tests
* chore: change zod validation to only expected required values
* chore: ignore new generated code files
* chore: fix typos and add translations
* chore: set hosted wallet via env var and only show if not mainnet
* feat: add functionality for try again button
* test: fix failing tests
* chore: fix lint and test
* chore: remove double import
* chore: make console-lite-e2e strict so json connector compiles correctly
* chore: make token e2e tsconfig strict
* chore: make stats-e2e tsconfig strict
* feat: update json rpc request namespace
* feat: simplify connector setup, support try again
* chore: remove comment
* fix: build errors
* chore: make chainId check optional based on presence of appChainId, mock request for tests
* chore: mock chain id request for all apps on all pages
* fix: footer border on small screens
* fix: use beforeEach for chainId query mock
* chore: remove optional chain check, prevent rendering until fetch is complete
* chore: update NX_VEGA_WALLET_URLs as the application now appends the base path, adjust token tests
* fix: token e2e test that checks for pubkey name
* chore: remove duplicated test, update wallet title assertion
* fix: token tests
* fix: token e2e assertions
* fix: withdraw test
* feat: enable json RPC for token
* fix: sendTx command now accpets pubkey as separate arg
* fix: test to use gui option temporarily
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
* chore: ignore apollo errors - to be reverted after API will be fixed
* fix: navigtaion link market - no global local storage init
* fix: update active link check
* fix: fix any hydration errors and default fallback to markets
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
* fix: border too thick, use grid head component
* fix: unused and superfluous classes, define border color in one place
* fix: tooltip should be on data not label
* feat(#473): add positions metrics data provider
* feat(#473) add positions stats
* feat(#473) add positions stats
* feat(#473): add positions stats
* feat(#473): add positions stats
* feat(#473): position metrics, test and refactoring
* feat(#473): add unit tests to positions table
* feat(#473): fix spelling, order positions by updated at desc
* feat(#473): protect from division by 0
* feat(#473): fix trading positions e2e tests
* feat(#473): fix e2e data mocks
* feat(#473): post code review clean up
* feat(#993): dependencies handling in data provider
* feat(#993): fix e2e tests data mocks
* feat(#993): remove position metrics mocks, add market data market id
* feat: #994 add price monitoring bounds and candles update interface
* fix: move best bid price to diff section
* feat(#993): add missing mocks, fix combine function
* fix: add insurance pool and calc volume 24h
* feat: display some oracle min info, asset id, insurance pool, move open interest and 24hVol
* fix: add market-info.cy.ts case
* fix: remove # from numbered price monitoring settings
* fix: add insurance pool test
* fix: format 24hvol
* feat(#993): set loading initially to true, add unit tests
* feat(#993): cleanup, add comments
* feat(#993): remove undefined from client type
* fix: remove indicativeVolume and oracleSpecBinding from market info
* feat(#993): cosmetic changes
* fix: add oracleSpecBinding back
* Update libs/deal-ticket/src/components/info-market.tsx
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
* feat: add initial queries
* fix: memo yesterday's timestamp
* fix: add back info
* fix: update query
* fix: add view full oracle details link and update mappings
* fix: regen code, make link reactnode, fix index.ts
* feat: add liquidity lib, refactor info market
* fix: remove liquidity query from deal-ticket
* feat:(#993): pass informaton about update callback cause
* fix: small ui tweaks
* fix: display in grid
* feat: navigate to oracle by termination id
* feat: #491 add use liquidity provision merging
* fix: remove logs, add extra check on my liquidity provision
* fix: type number trivially inferred from a number literal, remove type annotation
* fix: cypress tests and formatting for market info
* Update libs/deal-ticket/src/components/market-info/info-market.tsx
* fix: use position decimal places for stake and market value proxy
* fix: #491 use size/position decimal places for obligation, supplied and commitment amount
* fix: add size component and use decimal places
* fix: update readme liquidity
* fix: #491 add correct asset decimal formatters
* Update libs/deal-ticket/src/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* fix: make link instead of button to open liquidity
* fix: #491 add liquidity page, link to trading mode tooltip, tabs hidden or choose active
* fix: remove LP dialog, use only link to page
* fix: add market id in LP view
* fix: follow trade grid design
* fix: add one line tabs , remove link styling, remove any, add value formatters
* fix: remove falsy check LP undefined
* fix: keep date formatter in LP table
* fix: add generic type market info, hooks in body function
* fix: revert number formatters
* fix: use one param only in network params query
* fix: use network param in web3 lib
* fix: move lp container to trading app
* fix: remove resizable panel
* feat: add header component, remove isEstimate
* chore: remove unnecessary type cast
* fix: fix build with children map clone element
* chore: lint
* fix: move use network params to react helpers
* fix: add const for LP tabs
* fix: fix formatting on LP page
* fix: only show tilde for liquidity monitoring auction end date
* fix: market id being rendered twice in market info
* chore: fix lint
* fix: types for generate withdraw form query
* chore: fix intermittent failing withdrawal test
* Update libs/deal-ticket/src/components/market-info/info-market.tsx
* fix: route to LP and update selected market
* fix: add market-info lib
* fix: add tooltips to header stat
* fix: add overflow-y on div within auto sizer
* fix: fix merge conflicts
* fix: size and dialog
* fix: format target stake and supplied stake
* fix: add tooltips ag-grid and fix decimals
* fix: overflow on both axes auto-sizer
* fix: remove symbol, add to commitment
* fix: update tooltips and headers after demo
* fix: network switcher background
* fix: remove any from market info
* fix: integration test
* fix: remove e2e test for risk factors for now until grpc error sorted
* fix: get liquidity panel by test-id
* fix: fix market-info.cy.ts test
* fix: liquidity test
* f
ix: fix link data test id
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
* feat(#473): add positions metrics data provider
* feat(#473) add positions stats
* feat(#473) add positions stats
* feat(#473): add positions stats
* feat(#473): add positions stats
* feat(#473): position metrics, test and refactoring
* feat(#473): add unit tests to positions table
* feat(#473): fix spelling, order positions by updated at desc
* feat(#473): protect from division by 0
* feat(#473): fix trading positions e2e tests
* feat(#473): fix e2e data mocks
* feat(#473): post code review clean up
* feat(#993): dependencies handling in data provider
* feat(#993): fix e2e tests data mocks
* feat(#993): remove position metrics mocks, add market data market id
* feat: #994 add price monitoring bounds and candles update interface
* fix: move best bid price to diff section
* feat(#993): add missing mocks, fix combine function
* fix: add insurance pool and calc volume 24h
* feat: display some oracle min info, asset id, insurance pool, move open interest and 24hVol
* fix: add market-info.cy.ts case
* fix: remove # from numbered price monitoring settings
* fix: add insurance pool test
* fix: format 24hvol
* feat(#993): set loading initially to true, add unit tests
* feat(#993): cleanup, add comments
* feat(#993): remove undefined from client type
* fix: remove indicativeVolume and oracleSpecBinding from market info
* feat(#993): cosmetic changes
* fix: add oracleSpecBinding back
* Update libs/deal-ticket/src/components/info-market.tsx
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
* feat: add initial queries
* fix: memo yesterday's timestamp
* fix: add back info
* fix: update query
* fix: add view full oracle details link and update mappings
* fix: regen code, make link reactnode, fix index.ts
* feat: add liquidity lib, refactor info market
* fix: remove liquidity query from deal-ticket
* feat:(#993): pass informaton about update callback cause
* fix: small ui tweaks
* fix: display in grid
* feat: navigate to oracle by termination id
* feat: #491 add use liquidity provision merging
* fix: remove logs, add extra check on my liquidity provision
* fix: type number trivially inferred from a number literal, remove type annotation
* fix: cypress tests and formatting for market info
* Update libs/deal-ticket/src/components/market-info/info-market.tsx
* fix: use position decimal places for stake and market value proxy
* fix: #491 use size/position decimal places for obligation, supplied and commitment amount
* fix: add size component and use decimal places
* fix: update readme liquidity
* fix: #491 add correct asset decimal formatters
* Update libs/deal-ticket/src/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* fix: make link instead of button to open liquidity
* fix: #491 add liquidity page, link to trading mode tooltip, tabs hidden or choose active
* fix: remove LP dialog, use only link to page
* fix: add market id in LP view
* fix: follow trade grid design
* fix: add one line tabs , remove link styling, remove any, add value formatters
* fix: remove falsy check LP undefined
* fix: keep date formatter in LP table
* fix: add generic type market info, hooks in body function
* fix: revert number formatters
* fix: use one param only in network params query
* fix: use network param in web3 lib
* fix: move lp container to trading app
* fix: remove resizable panel
* feat: add header component, remove isEstimate
* chore: remove unnecessary type cast
* fix: fix build with children map clone element
* chore: lint
* fix: move use network params to react helpers
* fix: add const for LP tabs
* fix: fix formatting on LP page
* fix: only show tilde for liquidity monitoring auction end date
* fix: market id being rendered twice in market info
* chore: fix lint
* fix: types for generate withdraw form query
* chore: fix intermittent failing withdrawal test
* Update libs/deal-ticket/src/components/market-info/info-market.tsx
* chore: add another wait for market
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
* feat: create new buttons
* feat: update anchor and button link styles
* feat: add icon support
* feat: fix full width with icon
* feat: convert invalid button props to use new props
* feat: tidy up explorer
* feat: more tidy up for token and trading
* feat: move styles to css file using @apply
* chore: remove css with @apply as its not working in apps
* fix: deposit form button
* feat: use default tailwind config, start on forms
* feat: fixup trade grid styles
* feat: form styles
* feat: styles for order book and tables
* feat: make key management use dropdown
* feat: update various components
* feat: tidy up wallet section
* feat: token tidy up
* feat: token governance styles
* Feat/927: Dialog styling
* feat: token styles
* feat: add font familys
* feat: change token borders to be softer
* feat: console-lite changes to support new theme
* Feat/927: Centered key-value-table.tsx spacing
* Feat/927: Tweak to Explorer site border colours to be inline with trading
* Feat/927: Tweak to Explorer header
* Feat/927: Theme switcher icon colours
* Feat/927: Fix for Explorer block data styling
* feat: fix tests, add status footer and change logos
* feat: render both theme icons to avoid hydration error
* chore: run migrations for project
* fix: tailwindconfig build to work with new next version
* feat: use document page for next as per documentation
* chore: update build targets to use development mode when serving
* fix: console-lite default text colors
* chore: fix tooltip text break, change submit button
* feat: adjust console-lite styles to work with tabs
* feat: add bespoke dialog for console-lite market-selector
* Feat/927: Theme switcher now has prop for fixed bg colour
* Feat/927: Font size and border radius tweak for toggles
* Feat/927: Cleaned up trade-grid.tsx spacing
* feat: responsive styles for market header and nav
* feat: update designs for market popover
* fix: nav active state
* chore: allow classname to be passed to button
* Feat/927: Fix Token width on desktop (was overflowing)
* Feat/927: Fix token header h1 from wrapping
* Feat/927: Tweak for claim-flow.tsx
* fix: connect button test
* Feat/927: Proposals list styling polish
* Feat/927: key-value-table.tsx spacing tweak
* feat: add copy button to kp dropdown
* Feat/927: Removing old theme params and uses
* Feat/927: Removing old theme params and uses, documenting the now used otb sizes
* feat: use key val table in asset dialog
* feat: align tooltip styles
* fix: orderbook grid alignment
* chore: linting
* fix: dialog sizing in medium mode, node switcher styles
* chore: remove unused color classes
* feat: update radio and checkbox designs
* feat: updates to storybook
* feat: update design system stories
* chore: stories update
* chore: rename resize panels and tidy
* feat: fix checkbox tick
* fix: add poyfills for jest in trading test setup
* chore: fix checkbox tests
* chore: fix tests
* chore: fix tests again
* chore: revert token wallet name test
* fix: tooltip tests on console-lite
* fix: wallet dropdown test
Co-authored-by: sam-keen <samuel.kleinmann@gmail.com>
* feat: add network switcher dropdown to the trading app
* fix: refactor label text
* fix: format
* fix: paddings
* fix: use theme spacing instead of px
* feat: use MarketList query only
* fix: remove Market.ts from index
* feat: 30 refactor dialog, market list, change query
* feat: #30 add indicativeVolume, total fees, tooltip, large dialog, tooltip accepts html description
* fix: #30 total fees display in tooltip
* fix: #30 toggle title on dialog open
* fix: #30 fix order, price, high, low utils
* fix: #30 fix test for market utils
* feat: #30 add popover with markets to select
* feat: #30 storybook popover
* feat: #30 remove border on trigger and add some other classes
* fix: #30 fix format check with format:write
* feat: #30 add tooltip on taker fee
* feat: #30 add tooltip on taker fee
* fix: #30 format on select market list
* fix: #30 remove unknown cast in test mock data
* fix: #30 show markets where you have open positions
* fix: #30 double check if open positions
* fix: #30 dialog has only small/large sizes
* feat: #30 add border on trigger and change padding and no wrap
* fix: #30 if fees or factors are not found
* fix: #30 remove markets.cy tests as markets page is now gone
* fix#30 remove view full market list test
* fix: #30 add rotating arrow on market title
* fix: #30 add ease-in-out on popover
* fix: #30 add ease-in-out on popover
* fix: #30 align select a market table
* fix: #30 select a market title
* fix: #30 select a market title
* fix: #30 fix any validateDOMnesting issues
* fix: #30 show loading market data
* fix: #30 add list of header columns
* fix: #30 add list of header columns
* fix: #30 small refactoring after review
* fix: #30 update bold undreline class names
* fix: #30 add large-mobile size
* feat: #30 refactor select markets tables to render array of columns
* fix: #30 remove size from select market dialog
* fix: #30 add extra file for columns
* fix: #30 update formtting
* fix: #30 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: #30 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
* feat: add node swicther
* chore: remove hook form from node switcher
* feat: generate apollo types and add tests
* fix: format
* fix: types
* fix: remove redundant wrapper
* fix: layout styles
* fix: add controlled value to radio group
* fix: flaky node hook test
* feat: add custom input for node and more tests
* feat: wip refactor config hook to run on init
* fix: dont open node switcher on init
* fix: lint
* fix: lint
* fix: cache key error
* fix: format
* fix: lint
* feat: validate connected node on init WIP
* chore: refactor useconfig and usenodes
* fix: revert custom node branch changes
* feat: fix config loading errors and custom node handling
* feat: add test for nodes init
* fix: env error states
* fix: add more tests
* fix: format
* fix: lint and format
* fix: mock type in test
* fix: clean up queries
* fix: node block heights
* fix: make git variables optional
* fix: dialog width on lg screens
* feat: improve mobile looks
* fix: format
* fix: remove commented out styles
* fix: use node data url instead of key
* fix: clean up node switcher dialog props
* fix: add missing title and subtitle for dialog
* fix: show confiug load errors
* chore: change tab panel background and spacing
* chore: prevent tabs shiting on click, bg tweak
* chore: adjust chrome layout/spacing
* chore: fix horizontal alignment when accordion chevron rotates
* chore: adjusting bold levels and making market name pink on light theme
* chore: changing white theme header to black background
* chore: re-ordering bottom tabs
* chore: tweaking font sizes
* chore: adjusting dropdown button hover colour
* chore: colour tweaks for accessibility, plus orderbook column widths
* Remove redundant style
Removed 'bg-white' left by error.
* Setting header text to white
* chore: alterative fix to prevent tabs moving
* chore: fixing header font colours
* chore: adding padding to orderbook
* chore: preventing modal close icon from moving on focus
* chore: remove inner shadow from selectbox
* chore: adding padding to orderbook
* chore: preventing @ sign from moving when changing order type
* chore: fix background colour on smaller responsive view
* chore: fix truncated market header on smaller responsive view
* chore: reorder tabs in smaller responsive view to match standard view
* fix: fix broken test
* chore(ui-toolkit): add aria label to icon for a11y (#621)
* chore(ui-toolkit): add labels for form-groups for a11y (#621)
* fix(ui-toolkit): fix form inputs storybook for a11y (#621)
* feat(ui-toolkit): add strict eslint a11y and components config (#621)
* chore(ui-toolkit): add translate t to form labels
* feat: 447 Refactored 'progress' intent to be 'prompt' as now white. Added yellow 'selected' intent
* feat: 447 Colour consolidation
* feat: 447 Colour consolidation extra renaming
* feat: 447 Fixing specified red colours
* feat: 447 Removed unused darker red
* feat: 447 Documenting additional colours in storybook
* feat: 447 Buttons updated (except 'accent', which will probably get removed when navs built)
* feat: 447 Text inputs updated
* feat:frontend-monorepo-447: Trading nav
* feat:frontend-monorepo-447: Updated toggle button colours
* feat:frontend-monorepo-447: Custom checkboxes
* feat:frontend-monorepo-447: Tweaks to radio buttons
* feat:frontend-monorepo-447: Input dates get dark color scheme in dark mode
* feat:frontend-monorepo-447: Dropdown updates
* feat:frontend-monorepo-447: Icon menu
* feat:frontend-monorepo-447: Focus visual styles moved to focus-visible for radios and toggle
* feat:frontend-monorepo-447: Tweak to focus styles for text input and textarea
* feat:frontend-monorepo-447: Labeled input
* feat:frontend-monorepo-447: Labeled input description red when in error
* feat:frontend-monorepo-447: Tooltip visual update
* feat:frontend-monorepo-447: Added disabled state to checkbox
* feat:frontend-monorepo-447: Custom select with radix
* feat:frontend-monorepo-447: Reverted back to native Select for a11y concerns
* feat:frontend-monorepo-447: Added visual cue for dropdown items when multiple can be selected
* feat:frontend-monorepo-447: Removed shadow from buttons in Explorer where it looked wrong
* feat:frontend-monorepo-447: Added box shadow classes into tailwind theme
* feat:frontend-monorepo-447: Colour primitives documentation updated
* feat:frontend-monorepo-447: Cleaning up box shadow use further
* feat:frontend-monorepo-447: Intents util updated
* feat:frontend-monorepo-447: Dialog component updated
* feat:frontend-monorepo-447: Callout component updated
* feat:frontend-monorepo-447: Adjusted apps to handle toolkit changes
* feat:frontend-monorepo-447: Moved tabs to ui-toolkit and styled
* feat:frontend-monorepo-447: Fixed ui-toolkit tests
* feat:frontend-monorepo-447: Token eth wallet made dark to support new buttons
* feat:frontend-monorepo-447: Ran prettier
* frontend-monorepo-447: Simplified button class functions and exported for use on other elements
* frontend-monorepo-447: Used newly exported button classes on Link elements in eth-wallet
* frontend-monorepo-447: Moved trading nav from ui-toolkit to trading app
* frontend-monorepo-447: Simplified intents and updated stories
* frontend-monorepo-447: Using classnames in requested spot
* frontend-monorepo-447: Removed unnecessary 'asChild' prop on dropdown triggers
* frontend-monorepo-447: Made use of the XPrimitive Radix naming convention
* frontend-monorepo-447: Simplified types in 'getButtonClasses'
* frontend-monorepo-447: Added 'asChild' to dropdown trigger to avoid nested buttons
* frontend-monorepo-447: Moved input label and description into Formgroup component. Refactored based on tweaked structure
* frontend-monorepo-447: Externally linked input label
* frontend-monorepo-447: Adding correct text colours to Intent.None backgrounds
* frontend-monorepo-447: Improved intent function name
* frontend-monorepo-447: Removed new navbar until implementation ticket is picked up
* frontend-monorepo-447: using testing-library/user-event for tab click unit tests
* frontend-monorepo-447: Removed unused button import
* frontend-monorepo-447: Little extra use of classnames in form-group.tsx
* feat: make navbar pink for light mode
* fix: problem with theme not switching when dependent in js on theme value
* fix: bg of row hover
* fix: dont use vega pink for sell red
* fix: type error in generate orders func
* fix: lint
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* feat: unhardcode contract addresses
* fix: linting and tests
* feat: switch contract usage in token app to use unhardcoded addresses
* chore: remove other usage of hard coded contract addresses
* feat: convert contracts to classes, update claim contract to fix circular dependency
* feat: add hard coded contract addresses to contracts page
* fix: misc tidy up
* chore: rename ethers big num conversion func
* fix: remove pending transactions modal
* chore: add single toBigNum function that can accept number string or EthersBignNumber
* chore: delete unused tranche helpers and decimals functions from smart contracts lib
* feat: add faucetable token class
* fix: reset tx state after early exit from approve tx
* feat: re add transaction modal using zustand store
* fix: loader colors for eth wallet
* fix: pass ethereum config to gurantee existence before tx execution
* add docker image for building explorer
* add arg
* env file changes
* add docker file to build env file
* add requirement for env file in explorer
* fix env file syntax
* containers functional
* default to testnet
* make env flag logic consistent in all places
* pre populate env file
* ensure working for all projects
* address PR comment
* generalising env for token
* invert config dependency from ui toolkit
* fix: merge issues
* docs: running containers documentation
* style: lint
* fix: env varibales not being added properly
* chore: fix merge issues
* chore: fix docker file to support new exectutors
* chore: set address on all contracts as a property
* feat: pull token from contract rather than relying on env var
* chore: fix typing
* chore: remove duplicated prop
* chore: don't use chainId
* style: lint
* style: lint
* Merge branch 'master' into feat/dockerize-frontends
* Merge remote-tracking branch 'origin/master' into feat/dockerize-frontends
* test: revert changes to explorer e2e file
* fix: creating client without base causing token to error
* test: fix tests erroring in before hook due to file not being found
* chore: remove node env from configurable flags
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* fix: deposits tests, also convert to basic cypress
* add new home tests which test redirect to trading page and markets page
* chore: replace portfolio page feature with raw cypress
* chore: replace market page feature with raw cypress tests
* chore: replace home page tests with global.ts for wallet connections
* chore: add raw cypress withdrawals tests with mocks
* fix: complete withdrawals prompt and add assertion for it
* chore: remove unnecessary cypress envs now that we are mocking assets
* chore: ignore lint errors temporarily
* chore: add mock for deposit page query, add wait for mocked queries to resolve
* fix: order of waiting for withdraw page query
* fix: validate vega wallet connection
* chore: remove rest of page objects and convert trading page feature to regular cypress
* fix: assertion on transaction dialog after withdrawal
* chore: split withdraw and withdrawals pages into separate files
* chore: split trading tests into own files, connect wallet once for deal ticket
* feat: convert home page tests to raw cypress
* fix: dont use localstorage for navigation, remove query params for tabs
* chore: lint
* fix: revert to using url rather than data test id
* chore: lint
* chore: remove arrow down ref from markets page object
* feat: unhardcode contract addresses
* fix: linting and tests
* feat: switch contract usage in token app to use unhardcoded addresses
* chore: remove other usage of hard coded contract addresses
* feat: convert contracts to classes, update claim contract to fix circular dependency
* feat: add hard coded contract addresses to contracts page
* fix: misc tidy up
* chore: rename ethers big num conversion func
* fix: remove pending transactions modal
* chore: add single toBigNum function that can accept number string or EthersBignNumber
* chore: delete unused tranche helpers and decimals functions from smart contracts lib
* feat: add faucetable token class
* fix: reset tx state after early exit from approve tx
* feat: re add transaction modal using zustand store
* fix: loader colors for eth wallet
* fix: pass ethereum config to gurantee existence before tx execution
* chore: lint smart contracts lib
* chore: fix web3container to use children and not render prop
* chore: lint
* fix: use background to mock ethereum wallet to avoid mocking globally for every test
* chore: move web3 mock to common steps and call from withdrawals feature tests
* feat: add base portfolio layout
* feat: add positions, order list and withdrawals to portfolio page
* feat: add account container to portfolio page plus wallet management improvments
* fix: remove duplication from portfolio page containers
* fix: format and lint
* fix: remove buggy wallet dialog from portfolio page
* fix: deposit e2e test navigation
* fix: temporarily go straight to withdrawal pages
* fix: formatting
* fix: add formatting
Co-authored-by: Joe <joe@vega.xyz>
* feat: [#456] select markets modal opening from market title
* feat: add a global zustand store for managing connect dialogs and landing dialog
* feat: add tests
* feat: [#456] make arrow configurable
* feat: [#456] make arrow configurable
* feat: [#456] trading tab active only on portfolio
* chore: update tranches
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix: [#445] shallow routing from index (#484)
* fix: [#445] shallow routing from index
* fix: [#445] use link to redirect to market - an attempt to fix reload
* fix: [#445] remove stretched link from last link - it makes all the other links unusable
* fix: [#445] fix lint on select market list - remove stretched link
* fix: [#456] put everything in landing folder to avoid conflicts
* fix: remove condition for cypress for auto connecting
* feat: [#456] add global store and fix href routing
* feat: [#456] add global store and fix href routing
* feat: [#456] add one more test
* feat: [#154] pull market data summary
* feat: [#154] move header above the trade grid child sections
* feat: [#154] flex oerflow and styling updates for market summary
* feat: [#154] fix styling
* fix: [154] fix cyp tests and styling
* fix: [#154] fix markets navigation cypress step
* fix: [#154] fix for navigate to markets link
* fix: failing tests from market change
* fix: [#154] set nav items based on market id and show last viewed market on landing
* fix: [#412] invalid decimal place on realised PnL field
* fix: [#154] remove redundant curly braces
* fix: [#154] show hyphen on volume if market data is undefined
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: dexturr <dexturr@users.noreply.github.com>
Co-authored-by: Joe <joe@vega.xyz>
* feat: add a global zustand store for managing connect dialogs and landing dialog
* feat: add tests
* fix: remove condition for cypress for auto connecting
* chore: fix assertion in tests for vega wallet text
* fix: add mock for landing dialog markets query
Co-authored-by: madalinaraicu <madalina@vegaprotocol.io>
* [#305] add initial landing dialog on markets page and fix some typos
* [#305] market-list utils and generate schema
* [#305] initial styling of the landing dialog and add arrows
* [#305] routing to markets and add hover and market list tests
* [#305] fix z-index on dialog overlay
* [#305] default market shoulde be oldest market that is currently trading in continuous mode
* [#305] refactor market-list library
* [#305] add arrow unit tests
* Update libs/market-list/src/lib/components/landing/landing-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/market-list/src/lib/components/landing/select-market-list.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/market-list/src/lib/components/landing/select-market-list.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* test: fix failing tests from homepage change
* [#305] sort by id after sorting by date
* test: increase timeout for failing tests in CI
* [#305] destructuring all over the place and some code tweaks, arrows and percentage changes
* [#305] update sparkline to show colour
* [#305] fix order of market list
* [#305] stretchedLink class plus a-tag href for navigation - accessibility updates
* [#305] use href only and remove log
* [#305] use bignumber.js for price calculations
* [#305] change to bg-white/50 on dark mode overlay as asked from UX
* [#305] change to bg-white/50 on dark mode overlay as asked from UX
* [#305] toLocaleString fix
* [#305] toLocaleString fix
* [#305] add price-change-cell and use formatNumber
* [#305] add extra test for select market list
* Update apps/trading/specs/index.spec.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* [#305] use memo, sort by date and id lodash
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
* add feature/scenarios for deposits
* add file for auction orders tests
* update feature file for deposits
* update feature tests for deposit
* add feature/scenarios for deposits
* add file for auction orders tests
* update feature file for deposits
* update feature tests for deposit
* add test for wallet not connected
* fix lint warning
* add mock ethereum provider to allow connecting ethereum wallet
* add basic test for required validation errors
* add aria for input errors for a11y and test targeting, expand submit form helper
* use mnemonic for private key generation, update tests to not submit and just assert validation message updates
* add chain id to cypress config
* update scenario
* remove feature file
* lint fix
* Update apps/trading-e2e/cypress.json
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* use mnemonic from github secret, update cypress.json env vars to match
* fix typo in test name and mnemonic env var
* update env variables
* update eth wallet mnemonic env
* Update libs/cypress/src/lib/eip1193-bridge.ts
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* remove unused reference to chainId
* update casing
* chainId reference from cypress.json
* Update apps/trading-e2e/cypress.json
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update apps/trading-e2e/src/support/step_definitions/deposits.step.ts
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* ignore a known failing step in the test due to wallet connected having approved status
* update testid
* update tests for deposits
* tidy up comments in custom cypress commands
* add comment about eager connect when running in cypress
* update deposits tests
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* add withdraw page
* add create page and withdraws lib with basic components
* add create withdrawal functionality, add withdrawal dialog
* re arrange pages so we have a pending page with a list of withdrawals and a withdraw page with the form
* handle withdrawal completion
* add withdraw dialog so withdraw is completed in one flow
* rename and arrange prop getter function to avoid use of any
* tidy up and make eth transaction and vega transaction hooks follow similar patterns
* make complete withdraw hook fetch approval, combine hooks for full flow
* delete unused file
* add accounts to query to get use max withdraw button
* use ag grid fro withdrawals list
* format amount in grid
* ensure party has id field for cache
* update to use t i18n function
* change complete status to better match values of WithdrawalStatus
* add asset lib file for type guard
* share queries for withdraws lib
* move web3 related hooks to the web3 lib and make web3 lib buildable
* add unit test for use-complete-withdraw
* add test for use-withdraw
* add e2e scenarios for withdrawals
* don render custom no withdrawals message and use ag grid prop
* make withdraw form take ethereum account as prop
* add test config, update withdraw form to handle min/max amounts, add unit test for withdraw form
* fix rendering 0 if not pending withdrawals
* use controlled component for select box
* tidy up async parts of tests, add test for withdraw-manager
* update withdraw dialog to use map for different tx states
* add fallback etherscan link, add test for withdraw-dialog.spec.tsx
* rename erc20 query in token app, change page structure to /withdraw and /withdrawals
* change linked vegawallet-service-api-client to newly published version
* ignore not implemented withdrawals e2e tests
* make vega tx pending and requested states the same, for now, until tx confirmation work is done
* Add some unit tests for determine-ids and remove0x
Neither are critical, but both are libs expected to be shared between
projects so some unit tests will hopefully ensure projects all have the
same expectations about how the functions act.
- Add 1 determine-ids test
- Add a few remove-0x tests
- Update determine-ids to use remove-0x
- Add a comment describing why i18n is what it is
* modify cache with client only field for tracking foreign chain progress
* move withdrawals-list to lib, add useWithdrawals hook
* add container component for withdrawals page
* add unit tests for withdrawals-table
* add some tests for use-withdrawals hook
* revert changes to generated files in other libs and apps
* update withdrawals scenarios
* resolve pr comments
* update page containers to use render prop rather than children
* delete unused files
* remove transaction dialog story
Co-authored-by: Ditmir-Vega <ditmir@vega.xyz>
Co-authored-by: Edd <edd@vega.xyz>
* change to setting envars rather than passing in via CLI
* update nx to latest patch version
* add env files for token-e2e, fix lint and ts errors
* move generate functions to mocs for trading e2e to avoid violating boundary rules
* add jsx compiler option for trading-e2e
* downgrade nextjs
* add testing-library to types declaration where required
* moved TFE into monorepo with some remaining errors
* moved TFE into monorepo with some remaining errors - further files
* add tailwind config, use etherscan link from toolkit, use web3 from lib
* make app compatible with react router 6
* remove vega keys from app state and use from state from lib
* comment out crowdin script injection
* convert all buttons to use ui toolkit buttons
* remove blueprint inputs and selects and replace with ui-toolkit
* remove css resets
* tidy button styles in wallet replace splash-screen with version from ui-toolkit
* various style fixes
* tidy up proposal list
* add valid key to route children
* Set custom port and config for token e2e tests
* added env title e2e test
* started some styling fixes - nav and home route
* Added 'h-auto' to button height regex check
* Added 'h-auto' to regex check to allow desired TFE button height
* Removed scss and used tailwind for heading component
* Woff files not woof :)
* Proper nav h1 font size
* Wallet card headings
* Vega wallet button styles
* Set project to use static hosted alpha font (cors being fixed separately)
* Eth wallet button styles (unfinished)
* Home route styles
* Staking route styles and title calculation
* Rewards route styles
* Vega wallet container button style
* Eth wallet disconnect button
* Connect dialog title colour and spacing
* Splash screen layout
* Fixed a bunch of linting errors
* Used 'Object.entries' instead of 'Array.from' to create iterable from object in 'use-search-params'
* Removed use of 'any' from 'use-search-params'
* Better simplification of 'use-search-params'
* Removed package.json duplication errors, set most up-to-date version from duplicate options
* Elvis for possible undefined in 'use-add-asset-to-wallet'
* Removed redundant files
* Removed old todo
* Removed package.json redundant packages
* Added dark class for dialog h1 text colour (required as the current scss gives a wrong default for this element)
* update useAddAsset to use new provider
* Ensure Jest has required methods
* tidy up package.json
* remove ts-ignores and use casts for dynamic grid imports
* remove unused code from token-e2e
* update to latest types from react 17
* Removed vegag wallet not running component as it should be handled by wallet lib
* fix typing of contract addresses
* type cast network string to Network enum in reduce
* remove comment, issue 270 created instead
* default associated wallet amounts to zero
* update comment
* delete unused staking-overview component, add note about withTranslation types to comment
* re add proposal dates
* enable source maps for build
* add rest of env files for networks
* remove crowdin script tags from index.html
* add testing-library/jest-dom to types in test tsconfig
* setup i18n for tests so that translations are used, proposal change table test
* delete unused translation files and config
* set sentry release to use commit ref
* delete dex liquidity pages
* remove unused useVegaLPStaking hook
* use found id so no non null assertion needed
* remove mocked graphql provider
* remove commented out breadcrumb component
* add comment and link to issue for syntax highlighter changes
* fix any types in token-input, add link to ui-toolkit input changes
* dont default allowance to zero as it affects rendering logic
* fix spacing between callouts on associate page
* adjust spacing between callout for association callout
* fix alignment of ethereum splash screen
* use ethereum connect dialog state for connect dialog
* add infura provider as default
* change from infura provider to JsonRpcProvider
* remove unused Ethereum config
* add custom webpack config to inject sentry plugin
* delete commented out code for pending stake
* add comment linking input elements issue for eth-address-input
* move useEagerConnect to libs/wallet, add logic for connecting state so token app can load after connection has succeeded or failed
* remove unused storage files, update web3 connector to render children if not actively connected
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* initial commit for adding chartt lib with pennant chart
* add pennant package, fix dynamic import of chart
* use updated pennant library
* Create separate chart and depth-chart libs
* Remove leftover generated files
* Use more targeted queries and subscriptions
* Fix jestConfig value for depth-chart
* Add jest-canvas-mock
* Refactor updateDepthUpdate function
* Add updateDpethUpdate test
* Add jest-canvas-mock to chart tests
* Avoid using any type in test
* Use correct casing for gql queries and subscriptions
* Make ButtonRadio generic in option value type
* Add padding and margin to chart container
* Remove unused subscriptions and methods from data source
* Use correct React imports
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* 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
* 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
* make web3container enforce connection before rendering childen
* add web3 provider using web3-react package
* make web3container enforce connection before rendering childen
* add container for getting network params
* Move ethereum config query to web3 container
* add basic deposit form elements
* add queries required for deposits, add asset default
* add bridge contract and deposit transaction
* break txhash
* restrict etherscan link props, use etherscan link in transaction dialogs
* use smart-contracts-sdk
* split hooks and components into different files, fix find deposit logic, add styles and progress for tx dialogs
* fix text colors for dark mode
* improve tx dialogs, rename deposit query
* position use buttons, fix select validation
* fix type errors after not being in strict mode, add allowance checking
* add deposit-limits component, fix types now that strict mode is enabled
* make contract hooks have a single instance
* split out dialogs into separate files, fix icon alignment
* improve error types for use transaction hook, add number save min and max for the amount input
* add validation for ethereum and vega addresses
* add unit test for deposit form component
* add icons and shared dialog styles so it better matches order transaction dialog
* fix underline class, reset finalized deposit
* fix type imports, use i18n function, regen types
* only pass contract address to token contract hook
* add vega env, refactor so retrieving asset contract address logic isn't duplicated
* add faucet functionality, combine dialogs into single transaction-dialog
* combine rendering logic into single func of transaction dialog, rever contract hooks to just useMemo
* use to field rather than connected key
* fix props and imports in deposit form test
* share faucetable condition, pass it to token contract
* pass contracts in as params to hooks to avoid multiple contract instances
* refetch balance in wallet after deposit, add comments
* use hook state for tracking deposit via partyid, add test for use ethereum transaction hook
* add deposits lib
* add last smart contract sdk package
* fix asset import in test
* tidy up ts-ignores
* pass arg for faucetable token contract
* add provider url to env vars and use in place of infura id, also update web3-connector to only allow the chain permitted by the app
* add type guard for erc20 assets
* fix intent shadow helper function, use arrow function for isEthereumError
* update etherscan link to use env vars for url base
* rename deposit related hooks to indicate read vs write calls
* move ethereum error class and helpers to react-helpers
* add use-ethereum-read-contract hook to contain fetch logic
* remove unused import
* move validation to lib, add hex check for vega public key
* use map for transaction modal states, pass confirmed prop to transaction dialog for deposits
* remove unused import for classnames
* 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>
* 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
* 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
* 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
* 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
* 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
* 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