Commit Graph

81 Commits

Author SHA1 Message Date
tjs 4b08912b47 show position details on trade page when viewing mngo accts 2022-04-09 20:13:12 -04:00
rjpeterson 78c87dc821 translate new keys, translate account history headers 2022-04-02 09:31:57 -07:00
Kieran Gillen 9ee5d54f53 Adds transaction failed error 2022-03-31 13:45:19 +02:00
Kieran Gillen dd6349d15d Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck 2022-03-31 12:33:10 +02:00
Kieran Gillen b9b4541ed6 Adds more null checks 2022-03-30 14:42:33 +02:00
Kieran Gillen 39e4a6def5 Adds more null checks 2022-03-30 13:08:05 +02:00
saml33 9d509cda8b fix dateto timestamp 2022-03-30 14:54:50 +11:00
Kieran Gillen 0feebb7fd1 Fixes missing Wallet params 2022-03-24 18:53:00 +01:00
Kieran Gillen c1507c234f Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kierangillen/wallet-updates 2022-03-24 18:41:25 +01:00
tjs af2965098b fix notifications, use accountsdb to fetch mango accts 2022-03-24 01:50:33 -04:00
Kieran Gillen 1a40a98af0 Removes calls to Wallet and Connected through MangoStore hook 2022-03-23 11:42:04 +01:00
Kieran Gillen 8f40cce851 WIP adds RedeemDropdown 2022-03-22 09:57:52 +01:00
saml33 a25570c384 misc number formatting 2022-03-16 01:12:46 +11:00
tjs db8a0324aa add tailwind prettier plugin; run yarn format 2022-03-09 15:53:11 -05:00
dd 22244b8989 Let user prefill spot trade form using negative balance; Add link to spot market from BalancesTable 2022-02-28 12:51:10 -05:00
dd 46236fa9e5 fix float rounding issues in market position, positions table and orders table 2022-02-28 12:51:10 -05:00
dd 5d7599ef97 optimizations; Add more commas to large numbers; NO MERGE STILL UNFINISHED 2022-02-28 12:51:03 -05:00
tjs 3ad223f95b add types to the store set function 2022-02-10 12:49:59 -05:00
Tyler Shipe 4a0c77a3d9 increase information density 2022-01-31 10:52:28 -05:00
Tyler Shipe a6d432f32d utilize zustand for perppositions 2022-01-27 22:57:18 -05:00
Tyler Shipe 60116512f6 update language for settling pnl 2022-01-24 18:02:43 -05:00
saml33 fa63b8edbe fix typo 2022-01-16 20:05:17 +11:00
saml33 5db9359c4a fix broken docs links 2021-12-28 10:02:07 +11:00
dd 9e4ad312f7 upgrade mango-client to support optimized settlePnl and reduce retry interval to 15s; implement more optimized settlePnl 2021-12-25 12:23:04 -05:00
Tyler Shipe 2d824c2213 add lastUpdatedAt to improve useMangoAccount rerendering trigger 2021-11-30 16:04:55 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
saml33 d102a1d3d7 add spanish translations 2021-11-24 10:08:14 +11:00
saml33 d216ec1f1a add solflare 2021-11-10 22:46:54 +11:00
saml33 05d8bdd64a add translation keys 2021-11-04 23:25:11 +11:00
saml33 b8d34934d9 setup introjs tour 2021-10-29 23:05:55 +11:00
rjpeterson bf679598bb
Add next-i18next translation framework & Traditional and Simplified Chinese UI Translations (#54)
* start english localization

* fix typo

* add to english localization

* add some zh translations, fix discrepencies in en

* add more chinese translations

* finish trad chinese translations

* add simplified folder, add locales.json with meta info, add latest ui updates in english

* add latest ui changes for chinese-trad and sort

* fix typo

* convert trad to simp

* Update common.json

* add review changes by @HZ2078

* fix typos

* add latest ui changes

* new ui change & trad-simp convert

* delete monospace from locales.json

* add next-i18next translation framework. Add translations up to #103

* replace more html with traslate tags

* lint & add more phrases

* add missing translations

* add language select dropdown

* add new update transltations

* add latest gui update translations

* add useTranslation to lang switch

* sort common.json, add lang descriptions

* update netlify config to support i18n

* make translations more consistent

Co-authored-by: Hz2078 <92381714+HZ2078@users.noreply.github.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-10-20 13:42:40 +01:00
Maximilian Schneider 97bb02e593
show unsettled pnl (#46)
* display unsettled pnl more dominantly (#43)

* display perp markets that have unsettled pnl

* fix dependencies to a working version

* add back unrealized pnl vs unsettled pnl

* add todo

* settle all

* cleanup

* catch error

* fix crash in market position & refactor

* bugfixes

* correct unrealized pnl
* remove unsetlled pnl from table
* only show unsettled balances after closing position
2021-10-05 22:22:47 +02:00
saml33 f5f243a9a8
pre-fill spot balance (#41)
* pre-fill spot balance

* fix undefined basePosition
2021-10-03 04:01:06 +02:00
saml33 53e3f42ba1 remove scroll on position panel 2021-09-21 19:50:53 +10:00
saml33 3e1b872e42 align mobile tab headings 2021-09-20 22:24:42 +10:00
saml33 9123e63344
Trade page mobile (#35)
* mobile styles for chart, position, account

* mobile styles for trade form

* trade page mobile styles

* tab layout

* fix unknown property fill-rule

* test swipeable tabs

* fix container height

* fix orderbook mobile styles

* account page mobile styles

* fix swipeable container height

* stats page mobile styles
2021-09-20 02:36:02 +02:00
Tyler Shipe c1269298b9 use custom endpoint url 2021-09-13 17:14:59 -04:00
saml33 6d15756581 add rates to balances table 2021-09-06 21:51:18 +10:00
Tyler Shipe 221b6f06f5 Show negative balance when borrowing 2021-09-03 16:25:09 -04:00
Tyler Shipe d4f643aa02 remove source maps from prod 2021-09-03 12:14:11 -04:00
Tyler Shipe 1aead03db3 remove reloadMangoAccount after settlPnl 2021-09-03 11:54:12 -04:00
Tyler Shipe 4a145f5878 use latest client and only reload mango account after settling 2021-09-03 10:36:53 -04:00
Tyler Shipe a566e6795e fix inconsistent coloring 2021-09-03 03:00:59 -04:00
Tyler Shipe 21b11aaa80 rearrange title order 2021-09-03 02:41:53 -04:00
Tyler Shipe 5b8f4dd155 change interval time and add position market name 2021-09-03 02:39:37 -04:00
Tyler Shipe dbc66498a9 use abs value for notional value 2021-09-02 23:39:24 -04:00
Tyler Shipe c39e20a744 add loading indicator to settle pnl 2021-09-02 17:35:37 -04:00
Tyler Shipe 6833602681 fix balance rounding issue in market balances 2021-09-01 14:43:27 -04:00
Tyler Shipe 6820ac854f update market position faster for perp accounts 2021-08-31 19:28:39 -04:00
Tyler Shipe 7aa7feadb0 Use latest client to fix rounding issues 2021-08-29 15:15:37 -04:00