* 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/800: Configured routes for different proposal types
* Feat/800: Refactored propose.tsx to be a hub for the new proposal routes
* Feat/800: Link style tweak for proposals guide
* Feat/927: Hydrating the new proposal forms
* chore: fix typings for shared components
* Feat/927: Proposal forms built with reusable components
* Feat/800: Updated network params, added new method to get param keys as well as values, updated generated types
* Feat/800: Updated and built more reusable proposal form components
* Feat/800: Removed old catchall file of reusable proposal form components
* Feat/800: Added utils for vote deadline and enactment timestamps
* Feat/800: Readded necessary 'color-scheme-dark' class for dark-theme date and datetime inputs
* Feat/800: Tweak to icon positioning on the dialog component
* Feat/800: Regenerated types for network params
* Feat/800: Added iso8601-duration package for working with API vote deadline and enactment data
* Feat/800: Reworked the proposal forms
* Feat/800: Couple of translation additions
* Feat/800: Another translation addition
* Feat/800: Raw proposal test (tests as per old proposal form test)
* Feat/800: Some basic proposal form tests
* Feat/800: Fixing small types error in test
* Feat/800: Updating simple proposal form tests
* Feat/800: Set up env-specific proposal docs links
* Feat/800: Deadlines to the bottom of proposal forms
* Feat/800: Another type error from API changes fixed
* Feat/800: Added the spam protection min tokens network param to proposal forms requests, and the min requirements now displays the larger value of spam protection or min proposer balance
* Feat/800: Network param value change now a textarea
* Feat/800: Improved way to pass docs url
* Feat/800: Added useful explorer links to proposal forms
* Feat/800: Show current value of selected network param in proposal form
* Feat/800: Removed wallet-confirmation buffer, suspect it is not necessary
* Feat/800: Condense vote and enactment ui into single component for simpler state management, memoised some stuff
* Feat/800: Set a default select option for the market selector
* Feat/800: For network params that aren't JSON, display the network param current value in a readonly text input rather than the syntax highlighter
* Feat/800: Corrected network param form network params
* Feat/800: Timestamp functions for closing, enactment and validation, with tests
* Feat/800: More translations
* Feat/800: Added validation options to proposal-form-vote-and-enactment-deadline.tsx, generally improved the component and added tests
* Feat/800: Improved workings of proposal-form-min-requirements.tsx and wrote tests
* Feat/800: Tests for the other reusable form components
* Feat/800: Improved tests for the proposal forms
* Feat/800: Corrected mistake in get-enactment-timestamp.ts
* Feat/800: Fixed type issues that were preventing spotting an error
* Feat/800: Added some extra docs links
* Feat/800: Using renamed Dialog passed in from useProposalSubmit
* refactor: network params to return an object
* fix: update net param form, remove old net params obj
* fix: check for params before rendering
* Feat/800: Rename and simplify isJson based off PR comment
* Feat/800: Small tweaks to timestamp helpers based on PR comments
* Feat/800: Removed proposal-docs-link.tsx
* Feat/800: Used bignumber for min-requirements calculation
* Feat/800: Update tests to work with merged network params branch
* Feat/800: Removed unnecessary translations splitting
* Feat/800: Removed unwanted test
* Feat/800: Removed unwanted tests
* Feat/800: Consistent arrow functions
* Feat/800: Sorted links
* Feat/800: Removed unnecessary typecasting
* Feat/800: Refactored routing
* Feat/800: Refactored mocking of proposal forms to use MockedProvider
* Feat/800: Correct response from the raw proposal submission test
* Feat/800: Removed console.logs added for debugging
* Feat/800: Result of running 'nx format:write'
* Feat/800: Cleaning up lint warnings
* Update apps/token/.env.stagnet3
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Feat/800: Added extra test for docs link in the proposal-form-terms component
* Feat/800: Removed stray console.log
* Feat/800: Added basic render test for proposal-form-terms and cleaned up a bit
* Feat/800: Added tests for the correct form components for the different forms
* Feat/800: Split up the proposal-form-vote-and-enactment-deadline components inside the file to make things a bit more readable
* Feat/800: router config webpack chunk name tweak
* Feat/800: Lint issue fixed
* Feat/800: Fixed timing issue with get-[deadline]-timestamp tests
* Feat/800: Setting a system time in proposal-form-vote-and-enactment-deadline.spec.tsx that doesn't get affected by British Summer Time
* Feat/800: Skipping a cypress test as the newProposalButton no longer takes a user directly to a proposal form. Leaving it in the codebase as the test is very likely to be updated.
* Feat/800: Adding comment on why I've skipped a cypress test
Co-authored-by: Dexter <dexter@vega.xyz>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* feat: add new generator with config
* feat: split off gql queries to separate files for the new generator
* fix: delete dummy schema
* feat: add generated queries with new codegen
* fix: regenerate from scratch and remove duplicates
* fix: libs and app gen folders
* fix: remove more duplicate queries
* fix: add generated files to be ignored by the formatter
* fix: format
* feat: migrate assets to use new code generator
* fix: generated imports
* fix: lint
* fix: accounts export
* fix: more imports
* fix: add type alias for new type system and regenerate
* fix: format
* fix: export
* fix: format
* fix: delete leftover file from merge
* chore: migrate candles-chart lib
* fix: remove redundant asset files
* chore: migrate accounts
* chore: update glob
* chore: add cleanup to fix-imports to support type migrations for now
* fix: imports
* fix: update market types
* fix: type import paths
* fix: format
* fix: import
* fix: types in e2e tests
* fix: format
* fix: lint
* feat: add new generator with config
* feat: split off gql queries to separate files for the new generator
* fix: delete dummy schema
* feat: add generated queries with new codegen
* fix: regenerate from scratch and remove duplicates
* fix: libs and app gen folders
* fix: remove more duplicate queries
* fix: add generated files to be ignored by the formatter
* fix: format
* fix: generated imports
* fix: lint
* fix: accounts export
* fix: more imports
* fix: add type alias for new type system and regenerate
* fix: format
* fix: delete leftover file from merge
* 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>
* fix: orderbook decimal formats
* fix: format position pnl by market asset decimal
* fix: update depth chart with new volume format prop
* fix: format
* fix: update orderbook row with new criteria
* fix: revert positions table change
* fix: revert price decimal
* fix: revert other price thing
* fix: add price formatting to depth chart
* fix: rename format to parse
* fix: format volume numbers with the correct decimals to have the right ratios on the depth chart
* fix: format
* fix: deal ticket price decimals
* fix: lint
* feat: [console-lite] - market list - refactor filters query
* feat: [console-lite] - market list - refactor some unit tests
* feat: [console-lite] - market list - refactor some unit tests
* Update apps/simple-trading-app-e2e/src/integration/market-list.test.ts
Co-authored-by: Sam Keen <samuel@vegaprotocol.io>
* Update apps/simple-trading-app-e2e/src/integration/market-list.test.ts
Co-authored-by: Sam Keen <samuel@vegaprotocol.io>
* feat: [console-lite] - after feedbacks
* feat: [console-lite] - enlarge loading times
* feat: [console-lite] - adjust int test
* feat: [console-lite] - adjust int test
Co-authored-by: maciek <maciek@vegaprotocol.io>
Co-authored-by: Sam Keen <samuel@vegaprotocol.io>
* 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
* chore: remove generated vegawallet client code and implement in rest connector
* feat: add zod validation
* feat: handle specific auth/token delete case
* feat: make withdraw dialog match vega tx dialog
* fix: response stub to be right shape, add content type to requests
* chore: revert unrelated classname change
* feat: 470 edit orders hook and @vegaprotocol/vegawallet-service-api-client@0.4.14
* fix: 470 add methods for dialog intent and title
* fix: #657 rename order-list lib to orders
* chore: #657 move hooks to orders lib
* chore: #657 vega tx dialog used for order cancellation and order submission
* chore: #657 use client subscribe and unsubscribe on reset, refactor vegatxdialog
* fix: #657 revert script src=./env-config.js ending
* fix: #657 format project.json
* Update project.json
* fix: #657 cancel all subs and async tasks in useffect cleanup function
* feat: #657 styling updates on vega order dialog
* fix: #657 rename set dialog open and awaiting confirmation dialog update
* fix: #657 updates on cancel order id check
* fix: #657 fix vega tx dialog test
* fix: #657 fix cypress trading-deal-tciket test
* fix: #657 fix data-testid market test
* fix: #470 add use order edit hook
* fix: #470 edit order button
* Update libs/orders/README.md
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-transaction-dialog/vega-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* fix: #657 remove the magic string and use the ordertype enum from types package
* fix: #657 guarantee that order.id is present at this point or we need to determine the id of the order
* fix: #657 fix translation in dialog
* fix: #657 rename wallet types, delete ticket query, set finalized order null in submit
* fix: #657 fix deal ticket steps test
* fix: #657 remove settings.json
* fix: #657 use order submit in orders lib
* fix: #470 open edit order modal and update storybook
* feat: #470 edit modals set up
* fix: #463 final modal links to block explorer
* fix: #745 long/short instead of buy/sell
* fix: #657 use only one vega tx dialog
* fix: #657 keep ref of subscription and unsubscribe
* fix: #657 hide cancelled orders
* fix: #657 sub only when id set
* fix: WIP: trying to unsub when order updated
* fix: #745 long/short instead of buy/sell
* fix: ensure observable defined
* fix: #657 remove redundant test
* fix: #470 merge with new order hooks
* fix: #470 fix use-order-edit no red update order-list with code
* fix: #470 invert order show price last in dialog
* fix: #470 able to edit order
* fix: #470 fix dialog transition
* fix: #656#609 show Continuous trading and market state from trade grid header
* fix: #603 filter out rejected markets
* fix: #603 filter out rejected markets
* fix: #470 revert to 17.0.2 react
* fix: #470 revert to 17.0.2 react
* fix: #603 filter out rejected markets & dialog lg width
* fix: #609 show trading mode Continuous Trading and hide market state
* fix: #656 modify order validation to trade when suspended
* fix: #656 fix use order validation tests
* fix: #656 format volume no
* fix: format volume with positionDecimalPlaces
* fix: tests don't need to be async
* fix: md:w-[720px] to prevent dialog overflow
* fix: add market state translations
* fix: imprt type validation props
* fix: #470 working edit submit on GTC not on GTT as it is missing expiresAt
* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* Update libs/orders/src/lib/order-hooks/use-order-validation.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* Update libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* Update apps/trading/pages/markets/__generated__/Market.ts
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* fix: fix warning messages based on feedback
* fix: capitalize trading mode
* fix: capitalize trading mode
* fix: remove line 72 on markets.cy.ts
* fix: don't show trigger if unspecified
* fix: format last price and shrink 0 on warning icon
* fix: order sizes must be whole numbers for this market and input warning size 20
* fix: order sizes must be whole numbers for this market and input warning size 20
* fix: format market list
* fix: #470 fix expiresAt and price unmarshall values
* fix: #470 fix expiresAt and price unmarshall values
* fix: #470 add extra test on editing order
* fix: pass child react node for order edit on vega tx default
* fix: status and rejection reason optional
* fix: add header transalations and remove commented line
* fix: simplify get list of markets
* fix: check if order.market undefined
* fix: remove cast and check market id
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* 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
* feat: 470 edit orders hook and @vegaprotocol/vegawallet-service-api-client@0.4.14
* fix: 470 add methods for dialog intent and title
* fix: #657 rename order-list lib to orders
* chore: #657 move hooks to orders lib
* chore: #657 vega tx dialog used for order cancellation and order submission
* chore: #657 use client subscribe and unsubscribe on reset, refactor vegatxdialog
* fix: #657 revert script src=./env-config.js ending
* fix: #657 format project.json
* Update project.json
* fix: #657 cancel all subs and async tasks in useffect cleanup function
* feat: #657 styling updates on vega order dialog
* fix: #657 rename set dialog open and awaiting confirmation dialog update
* fix: #657 updates on cancel order id check
* fix: #657 fix vega tx dialog test
* fix: #657 fix cypress trading-deal-tciket test
* fix: #657 fix data-testid market test
* Update libs/orders/README.md
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-transaction-dialog/vega-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/wallet/src/vega-order-transaction-dialog/vega-order-transaction-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* fix: #657 remove the magic string and use the ordertype enum from types package
* fix: #657 guarantee that order.id is present at this point or we need to determine the id of the order
* fix: #657 fix translation in dialog
* fix: #657 rename wallet types, delete ticket query, set finalized order null in submit
* fix: #657 fix deal ticket steps test
* fix: #657 remove settings.json
* fix: #657 use order submit in orders lib
* fix: #463 final modal links to block explorer
* fix: #745 long/short instead of buy/sell
* fix: #657 use only one vega tx dialog
* fix: #657 keep ref of subscription and unsubscribe
* fix: #657 hide cancelled orders
* fix: #657 sub only when id set
* fix: WIP: trying to unsub when order updated
* fix: #745 long/short instead of buy/sell
* fix: ensure observable defined
* fix: #657 remove redundant test
* Update libs/orders/src/lib/order-hooks/use-order-submit.ts
* fix: failing test due to resizeobserver loop limit exceeded
* fix: lint
* fix: #657 fix test resize observer loop limit exceeded
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
* feat(#638): add pagination support to data-provider
* feat(#638): use infinite rowModelType in market list table
* chore(#638): code style fixes
* feat(#638): fix data provider post update callbacks, handle market list table empty data
* feat(#638): amend variable names to improve code readability
* 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: format size and volume with positionDecimalPlaces
* fix: pass in calculated step so client side validation works
* fix: add requested state to order dialog, handle user rejected error
* feat: add test case for user rejecting tx
* feat: add test case for order list fractional sizes
* feat: add test case for fractional volume in positions table
* fix: deal ticket tests imports
* feat: add test case for trades fractional size
* fix: props for orderbook tests
* fix: add missing positionDecimalPlaces fields to mock functions
* fix: improve error handling of service error with type guard
* [#151] market-depth code cleanup
* [#303] Make ask and bid relative volume bars relative to maximum bid or ask volume
* [#151] align cmulative vol bars to left
* [#151] replace orderbook zoom in zoom out buttons with dropdown
* [#151] fill gaps in orderbook data
* Order book mocks added
* [#151] mark mid price in orderbook
* [303] Show number in orderbook cumulative volume column
* [#808] show indicative uncrossing volume instead of volume if market is in auction mode
* Method for asserting order book style
* [#303] Add test id attributes to orderbook cells
* Cleanup steps after merge
* Order book test passing
* Change method name
* Revert "[#151] fill gaps in orderbook data"
This reverts commit 90ea4e4ab3.
* [#303] Orderbook rows render optimization
* test: update feature with @todo tests
Same tests can be found in Notion
* [#303] Orderbook scroll to mid price
* [#303] orderbook scroll to row pixel perfect alignment
* [#303] Bring back best offer horizontal lines
* [#303] Preserve center price level on row number change, adjust indicativePrice to resoluton
* feat(orderbook): add storybook
Refs: #303
* feat(orderbook): fix no rows handling
Refs: #303
* feat(orderbook): add orderbook stories for auction and continous market
Refs: #303
* feat(orderbook): add stories for empty orderbook
Refs: #303
* feat(orderbook): fix footer position when there is no data
Refs: #303
* feat(orderbook): seperate number of rows for buy and sell in storybook
Refs: #303
* feat(orderbook): keep mid price in middle until user will scroll
Refs: #303
* feat(orderbook): style scrollbar
* feat(orderbook): style scrollbar
* feat(orderbook): adjust gaps
* feat(orderbook): adjust gaps
* test: addition for autofilled order and mid price lines
* fix: lint
* feat(orderbook): make it posiible to write RTL tests
* feat(orderbook): fix price focus, add unit tests
* feat(orderbook): fix price scroll to mid proce, add unit tests
* feat(orderbook): improvements
- fix scrollbar colors in firefox
- bring back resolution dropdown chevron
- hide go to mid button when locked on mid price
- right align ask vol bar
- change grid gap to 5px
- add vertical lines between columns
- display "No data" if theis no orderbook data
- align header labels to right
* feat(orderbook): fix formatting
* feat(orderbook): add 5px gap
* feat(orderbook): improvements after code review
* feat(orderbook): display full height vertical lines
* fix: change in mid position
* feat(orderbook): fix number cannot be converted to BigInt because it is not integer
* feat(orderbook): fix TS2307 in trading-e2e caused by .module.scss import
Co-authored-by: Joe <joe@vega.xyz>
* feat: [simple-app] - simple market list - improvements in apollo client
* feat: [simple-app] - simple market list - add live update for state and price change
* feat: [simple-app] - simple market list - add live update for state and price change
* feat: [simple-app] - simple market list - add intersection observer, small improvements
* feat: [simple-app] - simple market list - small improvements after review feedback
* feat: [simple-app] - simple market list - small improvements after review feedback
Co-authored-by: maciek <maciek@vegaprotocol.io>
* 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>
* feat: add env specific serve commands where appropriate for apps
* fix: typo in command call
* feat: add custom executor for serving apps
* chore: clean up project files and use the custom executor
* chore: patch readmes
* chore: split out logs into their own function
* fix: prevent overriding env when no flag passed in
* fix: add tsc to postinstall to take care of compiling the custom executors
* fix: remove the custom serve executor from trading
* fix: nav colors
* chore: replace blueprint progress bar
* chore: remove blueprint overlay and no unused components
* feat: add radio group to ui-toolkit
* feat: adjust disabled opacity and use radio in forms on staking flow
* chore: rename RadioItem to just Radio
* chore: replace country selector with plain select
* fix: key prop warnings
* feat: convert token drawer from blueprint drawer to radix dialog
* chore: remove blueprint core and blueprint select dependencies
* fix: add missing data test id for header title
* fix: spacing on token disassociate page
* fix: missing key props on vesting chart
* feat: update radio button design
* style: radio button UI tweaks
Co-authored-by: PeteWilliams <me@petewilliams.info>
* delete token version of vega wallet serivce
* update use-user-vote to use new wallet service
* remove typo
* add further types for transaction submissions, add assets to withdraw page query
* update api client package to get generated types, adjust render logic of withdrawals page
* fix withdrawals list rendering
* update determine id function to not use nodejs buffer
* update service api client so it accepts new tx types
* remove stray logs and formatting
* make filtering erc20 assets the responsibility of the withdraw/deposit lib and not the app
* remove sha3 dep and use js-sha3 and ethers to determine ids
* use hook for fetching withdrawals form lib, add type policy to ensure withdrawal state is updated correctly
* fix: markets page feature
* Making a start with react-window-infinite-loader for the blocks infinite scrolling
* WIP block explorer infinte scroll
* WIP pairing
* pairing tidying
* Applied refetch url params more cleanly, moved useFetch to react-helpers lib
* Add notice of new blocks created since page load, some cleanup of blocks-infinite-list.tsx component
* Attempting a refresh of the 'new blocks' value in blocks-refetch.tsx
* Correctly updating state based on previous value
* Update libs/react-helpers/src/hooks/use-fetch.ts
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Update libs/react-helpers/src/hooks/use-fetch.ts
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Update apps/explorer/src/app/components/blocks/blocks-refetch.tsx
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Cleanup from convos and PR
* Prettier formatting
* struggling with websocket tests
* struggling with websocket tests
* Progress on websocket tests for blocks-refetch.tsx
* Tests for blocks-refetch
* Tests for blocks-infinite-list
* Scroll test for blocks-infinite-list
* Defined NOOP in blocks-infinite-list.tsx
* Separate web sockets for each test
* Separate web sockets for each test
* Tweaked e2e tests to account for blocks taking longer to load
* fix tests
* Removed nx knowledge of empty simple-trading-app-e2e for now
* mock at use fetch level instead of at fetch level
* fix edge cases and add further tests
* fix failing e2e tests
* rename test
* Update apps/explorer-e2e/src/support/pages/blocks-page.ts
* Update apps/explorer-e2e/src/support/pages/blocks-page.ts
* rename
* test: use explicit wait for rather than times
* style: remove console
* test: correct env file
* Revert "test: correct env file"
This reverts commit d01d3cfa5e.
* think env var is incorrect
* correct env file
* fix flakiness
* add minor wait for test flakiness
* longer timeout
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Initial commit after nx create
* Add .env files
* Add working commit for poc
* Make deal-ticket-manager.tsx accept children as props and export more components to be consumed by external apps
* Add stepper component to simple trading app
* Add basic prototype for simple trading app with stepper component
* Remove unnecessary flags and env variables
* Change simple trading app port
* Refactor deal ticket container to be more dry
* Refactor deal ticket to be more dry
* Refactor app loader, remove tendermint socket and change providers for App.tsx in simple trading app
* Remove example cypress files and change config
* Fix linting issues
* 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>