Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
Co-authored-by: Joe Tsang <30622993+jtsang586@users.noreply.github.com>
Co-authored-by: Joe <joe@vega.xyz>
* feat: add proposal data from governance to market liquidity provider
We need data from this API to be able to tell when a market will close,
and when opening auctions will end.
* feat: add closing time to lp-dashboard market list page
Adds a 'closing time' column to the market list page on the dashboard.
* 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
* chore: add some missing properties to the Market type
* chore: improve typing of value formatters in market list page
Replacing ValueFormatterParams with VegaValueFormatterParams<T, Y> in a
bunch of places. Doing this also highlighted we weren't dealing with a
bunch of undefined cases, so we now have fallback formatting for those.
Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
* 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: rename column for liquidityCommited on LP market list page
* chore: organise imports in market-list.tsx
* feat: add column for last/mark price to lp-dashboard
* feat: add column for 24h change to lp-dashboard
* feat: add column for market type in lp-dashboard
* feat: add column for market code to lp-dashboard
* 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
* 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
* 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
* 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.
* 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.