* chore: split ag-grid table for make one empty ready for new records
* chore: split ag-grid table for make one empty fix linter issues
* chore: split ag-grid table for make one empty change implnt. Add unit test
* chore: split ag-grid table for make one empty fix failing int test
* 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>
* feat(2025): validator table broken into sub-tables and showing all the new data
* feat(2025): fixed test broken due to a refactor
* feat(2025): removed unused redundancy in shared.tsx
* feat(2025): tweak to types import location in consensus-validators-table.spec.tsx
* feat(2025): removed tests for deleted validator table elements
* frontend-monorepo-1263 validator status of pending now named 'candidate' in the ui
* feat(1263): validator table updates, calculating penalties
* feat(1263): bit of cleanup
* feat(1263): tables built and values derived
* feat(1263): tweaks
* feat(1263): upping site max width to 1500px
* feat(1263): tweak to normalised voting power column width
* feat(1263): ensure validator rows when hovered have cursor:pointer
* feat(1263): consensus validators now have a ranking field by voting power shown in the table
* feat(1263): fixed linting errors
* feat(1263): a couple of extra tests and correct import of schema to use enums
* Update apps/token/src/routes/staking/home/validator-tables/standby-pending-validators-table.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update apps/token/src/routes/staking/home/validator-tables/validator-tables.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update apps/token/src/routes/staking/home/validator-tables/validator-tables.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update apps/token/src/routes/staking/home/validator-tables/validator-tables.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* feat(1263): tweaks from PR comments, initial push of util to remove 'node' from arrs
* feat(1263): updated new util to remove 'node' from 'edges'. Implemented across the monorepo
* feat(1263): cleaned up splitting validators into consensus, pending and ersatz to put into tables
* feat(1263): used decimals from app state in validator-tables.tsx
* feat(1263): removed redundant compact import
Co-authored-by: Dexter Edwards <dexter.edwards93@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
* feat: make a single button to connect to either wallet gui or cli
* chore: update token to use jsonrpc connector
* chore: update stray connector-cli entry
* chore: update mock queries to return matching chain id, change tests to connecting using jsonRpc
* chore: add type map for TIF short code
* chore: update data testid as cli and gui are combined into jsonRpc
* chore: remove unused env vars and update readme
* test: trading e2e switched to use v2 wallet
* chore: fix remove transaction from storage
* chore: mock for v2 wallet transactions added
* test: added new mock for transaction, updated deal ticket and withdraw tests
* chore: skipped some mock to allow wallet connection
* chore: remove unused function
* chore: dont make chain id check when in test
* chore: fix lint warnings
* chore: fix trading fills test by ensuring correct pubkey is used for connection
* chore: add comment for cypress check in json rpc connect flow
* chore: add chainID mock
* chore: add data-testId to order list status cell
* chore: fix testid
* chore: fix trading-portfolio test
* chore: revert marigin test changes
* chore: improve tests regarding wallet connection
* chore: reuse ordersubmission type in test
* chore: apply connect vega wallet changes to console-lite-e2e
* chore: trigger lint
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
* fix(#2171): remove user's pubkey from LP query
* fix(#2171): add LP partyID in account events
* fix(#2171): add LP partyID in account events
* fix(#2200): handle NotFound GraphQL errors in async renderer
* fix(#2200): data provider filter apollo graphQL not found error
* fix(#2200): update apollo-client to not report not found error link
* fix(#2200): fix log on not found error link
* fix(#2200): fix set error in data provider
* fix(#2200): extensions type access via index signature
* fix: accounts-data-provider.spec.ts had missing partyId
* fix: revert not found error commit
* fix: revert and set error in data prov
* 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>
* feat: add tooltips to headers on the details view
* feat: add header tooltips to liqudity dashboard markets page
* feat: add fee level and target stake to market summary list
These two data points are already in our health bar, but we want to call
them out more visibly so you don't have to hover to see them.
* feat: add % Target stake column to market list page
Adds a column which calculates what percentage of the target stake is
currently being supplied. We _trim_ this number to the whole percentage
value, so some precision may be lost, which we can add later if we want.
* chore: remove the estimated return/APY column while we dont use it
We can revert this commit later if we want it to return.
* feat: wrap the status pill with a tooltip
Uses the ui-toolkit tooltip to wrap the status pill, providing a bit
more information for what the statuses mean.
* chore: wrap getTooltipDescription in t() translate fn
* 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
* feat(1872): validator info table now using better status query
* feat(1872): removed redundant import
* feat(1872): removed unnecessary useMemo dependency for node-list.tsx
* feat(1872) Status translations as map, with error capture
* feat(1872) status function now returns key to be translated rather than doing the translating
* feat(1824): Update docs links to new URL structure (remove '/docs')
* feat(1824): Updated proposals doc links to use new helper
* feat(1824): ensuring custom url string added to link in proposal-form-terms.tsx
* chore: update queries using deprecated fields
* chore: regen generated files
* fix: account for new data shape as a result of PartyBalance.graphql changes
* fix: accounts data resulting from MarketInfo.graphql changes
* fix: accounts data resulting from PartyMarketData.graphql changes
* fix: accounts data resulting from MarketPositions.graphql changes
* fix: accounts data resulting from Accounts.graphql changes
* chore: update generate functions to return the correct shape
* chore: fix deal ticket tests
* chore: add missing fields too generateMarketInfoQuery mock
* chore: remove tsignore now object is properly typed
* fix: add missing mock for trading page
* chore: fix import path for validation hook
* chore: fix no data display for console lite assets
* feat: update validation for size and price so they are reported simultaneously
* feat: adjust styles so error messages for price/size are rendered on one line
* fix: missing key in map error
* feat: split validation out on a field by field basis
* refactor: remove unnecessary price setting and just use props to calc market price
* refactor: rename setOrder func and add a comment
* chore: add type for form fields to allow for summary field
* fix: layout of market order size and price
* fix: casing of size/price in validation message
* refactor: fix type errors for summary react nodes and for tif and type validation
* feat: break out functions for testing market.state and market.tradingmode on submit
* fix: deal ticket test for last price value
* chore: remove unused files and move hooks and utils to correct dirs
* chore: tidy up constants
* fix: const before enum invalid syntax
* feat: dont block submission if not enough margin but do if zero balance
* chore: remove duplicated margin warning message
* feat: dont allow margin warning and error message to render at the same time
* feat: make trading mode check just a warning rather than error message
* test: make markets active so they are tradable, renaming describe blocks for clarity
* test: adjust test ids and disabled state and fix tests
* test: include AC codes in tests
* chore: remove click of in test as form is already dirty
* fix: lint errors, only show margin warning if you have balance
* chore: add ts ignore
* chore: re add use-order-validation hook for console-lite specifically
* chore: update use-order-validation test after consumed margin check hook changed
* fix: circular deps issue in console-lite
* chore: update use order validation hook to use Schema rather than direct import
* 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(#580): add link to update market proposal
* feat(#580): fix cypress test for propose a change to market link
* feat(#580): fix market info proposal update cypress test
* fix: create custom ID for liquidity provision entries
* fix: #1931 rename is LP fragment
* fix(#2063): normalize numbers in lp table and rename isLpFragment
* fix: parse equitylikeshare as a float not an int value
We were incorrectly parsing equityLikeShare as an integer, which was
causing any value from the API not '1' to be incorrectly rounded to '0'.
This commit parses it as a float trimmed to 2 decimal places and then
converts that to a percentage value. We can increase precision in future
if necessary.
* feat: open details view in current tab
Clicking on the details view of the table currently opens each market in
a new tab. This is pretty noisy - you very quickly end up with a load
of open markets. There's a back navigation button and browser navigation
/history works fine as well - so we don't need to be using tabs here.
* Fix/1837: Remove 2 seconds from proposal vote deadline on submission to ensure the deadline is always slightly below the maximum the API accepts
* fix(1837): Adjust for vote deadline and enactment deadline being decoupled in the API
* fix(1837): Removed unnecessary dependencies
* fix(1837): A couple of extra tests for get-enactment-timestamp
* fix(1837): propose-update-asset.tsx tweaked to ensure max enactment button works properly
* feat(1879): Delegations - removed from explorer queries as currently unused
* feat(1879): Delegations - used delegationsConnection in vega-wallet
* feat(1879): Delegations - updated Token staking form to use new api and query
* feat(1879): updated Token staking info and validator table to use new delegations api
* 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
* refactor: use the lpAggregatedDataProvider rather than liquidityProvisionsDataProvider
The lpAggregatedDataProvider seems to provide the same data as the
liquidityProvisionsDataProvider, but also contains further details that
we'll need for other fields on the liquitidy provider details page.
* feat: replace GALPS with equity-like share and fetch value from LiquidityProviderFeeShare
Updates the type for LiquidityProviders prop to more accurately reflect
that we're using the data from lpAggregatedDataProvider, which includes
the fee share data.
We use the fee share data to display equity-like share % for each LP, and
have replaced GALPS, which was previously empty, with this value.
* feat: filter assets to withdraw
* feat: filter assets to withdraw - add some test
* feat: filter assets to withdraw - add some test
* feat: filter assets to withdraw - add logic for filtering out zero balanced accounts
* feat: filter assets to withdraw - add logic for filtering out zero balanced accounts
Co-authored-by: maciek <maciek@vegaprotocol.io>
* chore: updates to accomodate change to datasource apis
* chore: update types for proposal submission
* chore: update queries to work with latest core changes
* 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/1513: Vote buttons using subscription and dialog for tx
* Feat/1513: Staking journey using dialog
* Feat/1513: Cleaning up unused imports
* Feat/1513: Format tweak
* Fix/1831: External link component used for proposals docs/explorer links
* proposal-form-terms.tsx docs link no longer needs to be rendered if a docs link isn't provided
* 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
* test: unskip test
* chore: add ac for 3001-VOTE-052
* test: tests for min/max deadlines
* chore: lint
* chore: use network param for min voter number
* Feat/1512: Proposal type as enum, hoisted proposal type and min voting balance
* Feat/1512: Setup and new LP tally for update market proposals
* Feat/1512: Added LP data (if update market) to proposal-votes-table.tsx
* Feat/1512: Fixing some broken tests and added unit tests for proposal-votes-table
* Feat/1512: Tests for use-vote-information hook
* Feat/1512: Tests for use-network-params hook
* Feat/1512: Fixed some regenerated types
* Feat/1512: Addressed comments from PR
* Feat/1512: Condensed all useMemos in use-vote-information into a single one
* Feat/1512: Small tweak to Thumbs element
* fix: #1537 add lp provider sub
* fix: change LP title & update party.id
* fix: #1537 fix obligation and supplied
* fix: #1537 add min width on accounts
* fix: #1537 consistent null check
* fix: #1537 update lp data providers
* fix: add acounts data provider but requires party id
* feat: #1537 LP data provider - marketID & query or subscribe for accounts - partyId
* fix: #1537 remove log and fix build
* fix: #1537 fix build console lite and lp dashboard
* fix: #1537 fix tsconfig lp dahsboard
* fix: #1537 use interval to poll LP data - sub not working yet
* feat: use close position hook and dialog setup
* chore: update wallet tx interface for batch market instruction
* feat: add usage of data provider to show relevant order information
* feat: render correctly formatted values in close position dialog
* feat: make vega tx dialog more flexibly by allowing custom ui for every state of the tx
* feat: adjust text alignment and spacing between active orders and order to close
* feat: add unit tests
* chore: remove stray log
* chore: fix lint
* chore: ignore ts error for formatter function of vesting chart
* feat: split components up, memozie variables
* feat: add shared loading state to prevent content popping in
* feat: add time in force label
* feat: move transaction result hook to wallet lib
* feat: prevent being able to close vega tx dialog, must reject tx
* chore: add test for useTransactionResult hook
* chore: fix positiosn test after hook relocation
* Revert "feat: prevent being able to close vega tx dialog, must reject tx"
This reverts commit d1ecda69c3c55822bb042320f82b2e1c3833b99a.
* chore: add check for order edge to be defined
* chore: remove close callback
* feat: use tx result state to determine dialog state
* chore: update close position hook to check for transaction result
* fix: readd types tif selection persistance
* feat: convert order event func to be async, use it in close position for more result context
* fix: rename utils
* chore: adjust error language
Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
* 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>
* feat(explorer): change styling party details page
* feat(explorer): use panel component in txs-stats-info.tsx
* feat(explorer): change order for party details sections
* chore: fix for persist force value selection after change of order type
* chore: fix for persist force value selection after change of order type fix some int test
* chore: fix for persist force value selection after change of order fast fixes
Co-authored-by: maciek <maciek@vegaprotocol.io>
* chore: single position table (1645)
chore: single position table (1645)
* chore: tests fixed
* chore: remove unused withSummaryRow arg
* chore: use ag grid value formatter type helper
* chore: update console-lite to use value formatter params helper
* chore: fix e2e test by ignoring pinned row
Co-authored-by: Rado <szpiechrados@gmail.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* chore(explorer): add stagnet 1 env vars
* feat(explorer): add info block component
* feat(explorer): change tx order type lozenge
* feat(explorer): change truncated-link.tsx style
* feat(explorer): add stats info component for txs
* feat(explorer): change page title size
* feat(explorer): update txs list and add txs for party
* fix(explorer): remove unused var
* fix(explorer): change copy and remove unused vars
* fix(explorer): pr review fixes
* feat: add connect vega wallet button to the deal ticket
* feat: add connect vega wallet button to the deal ticket - manage some int tests
Co-authored-by: maciek <maciek@vegaprotocol.io>
* fix: voting during waiting for node vote
allow voting during waiting for node vote, bug fix for vote cancelled, show correct status
* fix: adjust vote information to be more correct
* test: begin adding tests for current proposal status
* chore: clean up render logic, add more tests for current proposal status
* chore: add tests for failed proposals
* test: add final tests for vote information
* test: fix rebase issues
* test: test for update asset proposal
* test: added test for hiding validator list
* chore: update vegacapsule config files
* fix: lint
* chore: add reason to skipped test
* 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>
* fix: bad data flow
* chore: generate types
* chore: move component to where it is used
* chore: move things top the routes where they are actually used
* chore: more moving of files
* chore: generate types
* chore: replace old type files with new
* test: fix tests
* Fix/1326: Do not allow proposal voting unless sufficient associated tokens
* Fix/1326: Renaming string
* Fix/1326: Changes from PR comments and vote-buttons tests
* Fix/1326: Switched to enum
* Fix/1326: Used enum in unit tests