Commit Graph

251 Commits

Author SHA1 Message Date
Bartłomiej Głownia
3e69e53c4e #29 Add market-list-table 2022-03-18 13:13:14 +01:00
Matthew Russell
313e6e1217
Feat/63 Deal ticket (#82)
* 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
2022-03-17 12:35:46 -07:00
Dexter Edwards
7b4437f407
regenerate based on new API client (#86)
* regenerate based on new API client

* lint

* run projects on different ports
2022-03-17 09:09:48 +00:00
Matthew Russell
d9e57f6694
Add subscription link for graphql client 2022-03-16 12:38:04 -07:00
Sam Keen
c2e4f1d007
Merge pull request #58 from vegaprotocol/feat/41-blocks-styling
Feat/41 blocks styling
2022-03-15 13:27:13 +00:00
sam-keen
171e27fd7b Merge remote-tracking branch 'origin/feat/41-blocks-styling' into feat/41-blocks-styling 2022-03-15 13:22:18 +00:00
sam-keen
8090221874 Final changes from PR:
* 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
2022-03-15 13:21:39 +00:00
Sam Keen
a52f00cd8f
Update apps/explorer/src/app/routes/blocks/id/index.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-15 12:32:30 +00:00
sam-keen
477e3faa6e Added a component to render fetched data to include loading and error states. Added to all instances of useFetch 2022-03-15 11:32:15 +00:00
sam-keen
061388938c Loading and error states for blocks home route 2022-03-14 17:06:58 +00:00
Bartłomiej Głownia
ad5290d8c9
Ignore not affected netlify projecs (#80) 2022-03-14 16:52:02 +01:00
sam-keen
47e078a502 Improved component structure 2022-03-14 15:38:08 +00:00
candida-d
1010db6ce4
Task/73 Update readme
* Write readme

* Mention Tailwind CSS config lib in readme

Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
2022-03-14 08:21:26 -07:00
Bartłomiej Głownia
8a829964be
Feature/38 data grid component (#77)
* Add ag-grid

* Add lazy loaded ag-grid component

* Add theme context, move VegaWallet to separate lib

* Fix trading app cypress configuration

* Lazy load ag-grid theme css files

* Encapsulate theme switch hook
2022-03-14 14:18:11 +01:00
sam-keen
8f22cbc0c9 'jump to block' in same section tag as other route components 2022-03-14 09:31:10 +00:00
Matthew Russell
deb4570ebe fix dark theme for trading grid 2022-03-10 21:19:44 -08:00
Matthew Russell
634075e015 remove unused hook from index page 2022-03-10 21:09:34 -08:00
Matthew Russell
dbe9e9504f fix navbar styles 2022-03-10 21:03:02 -08:00
Matthew Russell
141ef8224b tidy up _app move logic to hooks and add component files for vega connect button and app loader 2022-03-10 20:51:05 -08:00
Matthew Russell
1f1ce70a67 re add tsconfigs for storage package 2022-03-10 20:51:05 -08:00
Matthew Russell
69924aa0b3 Add connect diaglog tests convert storage to js to avoid ts issues with testing 2022-03-10 20:51:05 -08:00
Matthew Russell
f10cdf491d fix dark light colors of dialog 2022-03-10 20:51:05 -08:00
Matthew Russell
a47e4526bb fix vega connect button alignment 2022-03-10 20:51:05 -08:00
Matthew Russell
1859fef75c fix invalid syntax 2022-03-10 20:51:05 -08:00
Matthew Russell
af2f05b778 remove input error from form and just use red text to avoid clash with the actual input errors 2022-03-10 20:51:05 -08:00
Matthew Russell
145e2558aa move connectors to own folder 2022-03-10 20:51:05 -08:00
Matthew Russell
74ac60fbfa fix jest setup for react helpers 2022-03-10 20:51:05 -08:00
Matthew Russell
fdc5e68158 tidy up storage keys in wallet provider 2022-03-10 20:51:05 -08:00
Matthew Russell
847d51e060 use components from ui-toolkit, add form-group, adjust input widths 2022-03-10 20:51:05 -08:00
Matthew Russell
9bffb15c2a use compoments from ui-toolkit, minor style changes 2022-03-10 20:51:05 -08:00
Matthew Russell
fb1bd68aee increase spacing of input elements 2022-03-10 20:51:05 -08:00
Matthew Russell
4bcafea969 remove hard coded vega wallet auth values 2022-03-10 20:51:05 -08:00
Matthew Russell
77214d5427 further styling 2022-03-10 20:51:05 -08:00
Matthew Russell
0b3bf269b6 tidy styles and tailwind config 2022-03-10 20:51:05 -08:00
Matthew Russell
cb465ae37b make dialog use tailwind 2022-03-10 20:51:05 -08:00
Matthew Russell
bd77e15092 properly set up storage lib 2022-03-10 20:51:05 -08:00
Matthew Russell
473f74adca fix styles after rebase 2022-03-10 20:51:05 -08:00
Matthew Russell
f85ebfdfc1 tsconfig base update 2022-03-10 20:51:05 -08:00
Matthew Russell
40cdaf3c30 updated yarn.lock after rebase 2022-03-10 20:51:05 -08:00
Matthew Russell
d1f44589cc add nav item for home and use pubkey on portfolio page 2022-03-10 20:51:05 -08:00
Matthew Russell
3f9f97b1fa fix navbar and default select value 2022-03-10 20:51:05 -08:00
Matthew Russell
ac4f833360 make manager component not take children 2022-03-10 20:51:05 -08:00
Matthew Russell
e92e708cf1 add vega wallet manager component and re add current single pubkey to provider state 2022-03-10 20:51:05 -08:00
Matthew Russell
84af6177ad update eager connect hook and make app concerned with selected pubkey, refactor token to be stored as object 2022-03-10 20:51:05 -08:00
Matthew Russell
1e6900d147 handle session expired 2022-03-10 20:51:05 -08:00
Matthew Russell
195fff27ab remove react helper/ui-toolkit demo components 2022-03-10 20:51:05 -08:00
Matthew Russell
bb485d5783 add useEagerConnect hook 2022-03-10 20:51:05 -08:00
Matthew Russell
a44b8538fa renew default api class after authentication 2022-03-10 20:51:05 -08:00
Matthew Russell
59d0beebe2 add current key selector, fix revoke token/disconnect 2022-03-10 20:51:05 -08:00
Matthew Russell
fba3101753 refactor so that consuming app chooses to render modal and what connectors to use 2022-03-10 20:51:05 -08:00