Commit Graph

274 Commits

Author SHA1 Message Date
Dexter Edwards
6d9410e3cf
restrict lodash import (#121) 2022-03-23 15:01:50 +00:00
Dexter Edwards
ae37f76b1c
Search implementation (#97)
* 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
2022-03-23 09:57:51 +00:00
Matthew Russell
9ced1ce0fd
Fix/format price in order confirmation dialog (#102) 2022-03-22 11:18:50 -07:00
Dexter Edwards
ecbcdf57e3
add workflow for lint, build and format (#111)
* add workflow for lint, build and format

* run checks [skip netlify]
2022-03-22 13:11:01 +00:00
Joe Tsang
34959075c2
Test/block page (#91)
* Added block page and validator test

* Transaction details and network param test added

* Add test id for styling change

* Changed test id names
2022-03-21 13:01:51 +00:00
Matthew Russell
4355907c52
Fix/Set initially selected pubkey after connect (#96)
* set initial public key after connection

* remove stray console.error
2022-03-19 18:31:44 -07:00
Sam Keen
af333c2abd
frontend-monorepo-43 Nav Styles (#99) 2022-03-18 20:53:42 +00:00
Sam Keen
452ad61fba
Merge pull request #101 from vegaprotocol/frontend-monorepo-100
frontend-monorepo-100 Allow Lozenge component to accept props i.e. da…
2022-03-18 16:41:39 +00:00
sam-keen
37cde5fb74 frontend-monorepo-100 Allow Lozenge component to accept props i.e. data-testid 2022-03-18 16:40:55 +00:00
Sam Keen
c888ca1087
Merge pull request #85 from vegaprotocol/feat/40-tx-styling
Feat/40 Styles for transaction and transaction details page
2022-03-18 16:08:22 +00:00
Sam Keen
514b30bebd
Merge branch 'master' into feat/40-tx-styling 2022-03-18 14:55:43 +00:00
Sam Keen
53ff8429e5
Update apps/explorer/src/app/components/seconds-ago/seconds-ago.spec.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-18 14:55:01 +00:00
Sam Keen
1cc95c861c
Update apps/explorer/src/app/components/seconds-ago/seconds-ago.spec.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-18 14:54:56 +00:00
Sam Keen
5c9571766a
Update apps/explorer/src/app/components/seconds-ago/index.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-03-18 14:54:46 +00:00
sam-keen
a160c54688 Tweak to 'tx-content' component as conditional rendering was no longer needed 2022-03-18 14:50:16 +00:00
sam-keen
edbf8244df Updated component tests to use best practices and improved syntax 2022-03-18 14:41:30 +00:00
Bartłomiej Głownia
3e69e53c4e #29 Add market-list-table 2022-03-18 13:13:14 +01:00
Dexter
504f088f00 fix jest config setup 2022-03-18 10:35:48 +00:00
sam-keen
0a28d5e111 Start of component unit tests 2022-03-18 10:27:27 +00: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
838e0b0f4d Removed unnecessary padding on tr 2022-03-16 15:45:38 +00:00
sam-keen
b61bf984b1 Styled tx:id 2022-03-16 15:35:30 +00:00
sam-keen
001848fc78 Used lozenge for txs 2022-03-16 14:58:16 +00:00
sam-keen
a51a04c97b Added a lozenge to the ui toolkit 2022-03-16 12:57:24 +00:00
sam-keen
775b4a7de9 Added display strings for tx order type 2022-03-15 14:49:10 +00: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