* chore: assets to assetsconnection
Changed queries in explorer app
* chore: assets to assetsConnection (961)
* chore: assets to assetsConnection (961)
* chore: assets to assetsConnection (961)
* fix: after merge issues fixed
* Feat/519: Add copy button to transaction content in explorer
* Feat/519: Adjusted copy of the button title
* Update apps/explorer/src/app/routes/txs/id/tx-details.tsx
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
* frontend-monorepo-633: Oracles in block explorer - initial oracles page and router setup
* frontend-monorepo-633: Oracles in block explorer - added generated types file
* Feat/633: Cleanup for MVP1
* Feat/633: Cleanup of route name
* Feat/710: Block time display improved in block explorer
* Feat/710: Removed unused useMemo
* Feat/710: Updated tests to reflect always passing a string to TimeAgo
* 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
* frontend-monorepo-397 - continuous txs list - glitchy start
* frontend-monorepo-397 - experimentation!
* fix: transactions infinite list loading
* fix: blocks reload
* frontend-monorepo-397 - removed redundant renderFetched component from infinite txs page, and removed debugging
* frontend-monorepo-397 - tests written, added button that opens a dialog with extra Command data to each list item
* frontend-monorepo-397 - Cleaned up styling of txs list a bit, addressed PR comments.
* frontend-monorepo-397 - tweaks to e2e tests
* frontend-monorepo-397 - disabling txs e2e tests for now
* fix: use fetch hook
* Update apps/explorer/src/app/components/txs/txs-infinite-list-item.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* frontend-monorepo-397 - refactored to use AsyncRenderer which now supports custom messaging
* frontend-monorepo-397 Continuous txs: set ignore for timing out tests rather than commenting out
* frontend-monorepo-397: Updated txs-infinite-list-item.tsx to work with the new dialog changes
* frontend-monorepo-397: Ignoring txs page e2e tests properly
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
* 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>
* frontend-monorepo-567: Gave menu a high z-index to ensure it's shown above any positioned elements or ui-toolkit components
* frontend-monorepo-567: Clean up explorer nav component classes using classnames
* 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>
* feat: add enviromnemt provider to the ui-toolkit
* chore: replace etherscan links
* chore: wrap trading app into environment provider
* chore: move env provider to react-helpers and wrap every app
* chore: remove more env variables from libs and replace them with the env hook
* fix: lint
* fix: update readme with correct formatting command
* fix: warnings for web3 hook
* fix: wrap warning in conditional, print message only when env keys are missing
* fix: incorrect condition on deposit manager fauceting param
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* fix: cleanup token app ethereum config
* chore: add better error handling to the useEnvironment hook
* fix: lint
* fix: formatting
* fix: more lint
* fix: throw error if required env variables are missing
* fix: remove default eth chain id
* fix: add back etherscan testid to withdrawals links
* fix: imports
* fix: try using babel jest for smart contracts test transpilation
* fix: uniform ts syntax
* chore: set resolveJsonModule in base tsconfig
* fix: add missing data-ids for etherscan links
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* begin capsule workflow
* remove workflow file we don't want to run while debugging
* vheckout all require repos
* checkout repos to a directory each
* correct branch names
* rename workflow
* fix incorrecr branch name
* begin building binaries
* typo
* remove tests we don't want running while debugging
* remove tests we don't want running while debugging
* typo
* incorrect path
* comment out frontend checkout
* don't install as not done in example script
* add required environement variables
* change paths
* comment out FEM checkout
* check binary built properly
* path stuff
* silly mistake
* use relaive path
* correct working directory
* fix all paths
* debugging
* bump go verion
* fix path
* fix all paths
* fix cannot find config error
* add back in fe stuff
* move cehckout to where it is used
* revert accidentally committed change
* try install over build
* use v3 of action
* export as per action
* debugging
* don't pass path to install
* chnage go install
* change order
* pwd
* pwd
* see what happens without dn
* don't use relative path
* build correct paths
* remove checks as working
* make epxlorer run against locla capsule
* fix incorrect env file
* fix tests
* fixing tests
* trying for green run
* trying for green run
* bump timeout
* check tm endpoints
* configure to use the second tender mint node
* ci: add logs out
* ci: change paht
* ci: set env var correctly
* ci: remove wait for blockChain request
* ci: make test value assertions more robust
* ci: make test value assertions more robust
* chore: minor typo
* ci: add back test and lint scripts
* ci: comment out unused pipeline for now
* ci: break up job into steps
* ci: run all tests and pray it works
* ci: just use local vega wallet
* ci: not building it any more, use go installed bin
* ci: derive hashes properly
* ci: move existing folow into nightly
* ci: run nightly for all tests
* ci: use install bins
* ci: add missing flag
* ci: gobin
* ci: debugging
* ci: echo gopath
* ci: wrong syntax?
* ci: one last time?
* ci: try something else
* ci: try other things
* ci: again
* ci: move var to github env
* ci: set gobin
* ci: syntax
* ci: test out nightly
* ci: switch back nightly to posix
* ci: force network bootstrap
* ci: fix stupid mistake, pass falg to command not name
* ci: put test back
* ci: run on push as well as on pr
* ci: always upload logs if possible
* ci: import config from capsule rather than testnet
* Update apps/explorer-e2e/cypress.json
* test: fix failing test now we are using binaries
* ci: correct URL
* 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
* 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>
* network parameters table with key value rows and syntax blobs only for json values
* inline row not for syntax
* add unit test for network param table
* add cypress test to verify if values are non-empty
* remove some comments
* rename formatNumber method to addDecimalsFormatNumber and simplify formatNumber
* remove duplicate expect line
* use AsyncRenderer and sort params asc
* refactor and add extra tests to check ordering and loading cases
* format big number params with addDecimals formatNumber
* Update apps/explorer/src/app/routes/network-parameters/network-parameters.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* capitalize and refactor tests
* missing ; caused formatting to fail
Co-authored-by: madalinaraicu <“madalina@raygroup.uk”>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Moved syntax highlighter from explorer to ui-toolkit
* Update libs/ui-toolkit/src/components/syntax-highlighter/syntax-highlighter.stories.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Added a light theme for syntax highlighter, added the styling for syntax highlighter to our custom classes
* Suboptimal but successful way of ensuring styling is applied to syntax highlighter
* Styling syntax highlighter with scss
* Fix failing test
* Back to applying styling via custom plugin, but with a wrapper on the syntax highlighter ensuring Tailwind doesn't cull the classes
* Preferred class name
* prettier formatting
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
* 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
* frontend-monorepo-76 Use UI toolkit components for 'jump to block'
* frontend-monorepo-76 Use UI toolkit components for 'go to party'
* Added reusable component for 'jump to block' and 'go to party'
* begin adding sentry
* add sentry webpack config
* rename environment variable
* make sourcemaps work for sentry
* set environmenet based on vega environment
* rename envs
* remove throw error button
* Initial commit of generated mainnet-stats directory
* Migration partly complete
* Migration complete
* Vega logo now in ui toolkit
* Specified a port that stops conflicts with other e2e tests
* Extra config for swapping to port that stops conflicts with other e2e tests. Also file name case change
* Adding the Cypress project ID to allow recording
* fix test
* Mainnet stats manager moved into library
* Mainnet stats project now importing manager element from lib
* Block Explorer has mainnet stats on home route
* Styling tweak to stop mainnet stats tables trying to match heights
* Spacing alignment tweaks
* Changing header text and tests to align with other branches
* Correct header test for mainnet-stats app
* Correct h3 test for mainnet-stats app
* Fix linting issue
* fix casing issue for CI
* Corrected mistake in merge
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
* make titles look prettier
* link to parties from transactions table
* render what data is found conditionally
* more syntax highlighting
* re-jig file orders
* remove footer component for now
* add subheading component
* adjust column layout
* Style up header
* enable ligatures
* change env files
* fix error if data is null
* show governance header even if there is no data
* remove dead css
* add dark theme for block explorer
* use memo on parties submit
* remove some css from header
* basic search implementation
* allow passing classNames to form group
* add tests for form group
* add form-grpup stories
* bad rebase fixes
* add link
* tidy up tests
* fix tests
* tidy up env files
* final test fixes
* switch order of classes
* fix test id
* force build for testing
* rename file for linting
* add tests for header component
* rename export
* input error tests
* use descriptive function names as per PR comment
* fix casing issue for CI
* handle empty state
* make query easier to understand
* data-testid spread via props rather than custom prop
* more use of routes config rather than hard coded route names
* tweak to TS type for returning children prop without wrapper fragment