Commit Graph

65 Commits

Author SHA1 Message Date
Kieran Gillen 39e4a6def5 Adds more null checks 2022-03-30 13:08:05 +02:00
Kieran Gillen a6aaf551dd Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck 2022-03-29 12:02:37 +02:00
Kieran Gillen 8736900401 Adds more null checks 2022-03-28 17:42:18 +02: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
tjshipe 9372c1bdb2
Merge pull request #202 from blockworks-foundation/settle-all-positive-perp
Adds RedeemDropdown for Redeem Positive button
2022-03-24 01:58:34 -04:00
Kieran Gillen 7c143a7181 Updates RedeemDropdown 2022-03-23 18:51:01 +01: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 8fdcabfe79 trade page and account overview 2022-03-21 22:56:37 +11:00
saml33 a25570c384 misc number formatting 2022-03-16 01:12:46 +11:00
rjpeterson d8636f3848 update translations 2022-03-13 18:25:15 -05:00
tjs db8a0324aa add tailwind prettier plugin; run yarn format 2022-03-09 15:53:11 -05:00
saml33 f280baab23 fix position size on mobile 2022-03-06 14:03:42 +11:00
saml33 4ae986f583 fix merge conflicts 2022-03-02 14:56:59 +11:00
tjs c41af04f8e fix type issue with new ExpandableRow props 2022-03-01 14:28:20 -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
saml33 8d5d80cb93 change grid columns 2022-02-23 13:13:57 +11:00
saml33 28a3bd900e tweak styling 2022-02-22 21:42:25 +11:00
saml33 6dc240038b redesign unsettled panels 2022-02-22 16:22:21 +11:00
saml33 2ae323ee1c semantic headings and styles 2022-02-21 14:55:13 +11:00
saml33 839efc730c page content and styling 2022-02-14 12:17:21 -05:00
tjs 3ad223f95b add types to the store set function 2022-02-10 12:49:59 -05:00
Tyler Shipe 3ff9471fa1 move market.txs page to index.tsx 2022-01-31 12:48:48 -05:00
Tyler Shipe 3734ae7062 use new settlePnl in perp positions table 2022-01-29 14:47:20 -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
Tyler Shipe 29651a3fb0 settle all should loop through each position 2021-12-29 14:32:41 -05: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 d9f26f58ab don't display unrealized pnl until breakEven price exists 2021-12-17 13:46:03 -05:00
saml33 03c9710103 improve sub-tabs layout 2021-12-08 15:00:02 +11:00
Tyler Shipe 2bee4d154e add unsettled perp positions box 2021-12-06 12:50:15 -05:00
Tyler Shipe 855a6e6d58 add ws watching for mangoAccount 2021-12-05 20:13:23 -05:00
Tyler Shipe b9c8dd09d5 use lodash instead of lodash-es 2021-11-30 21:46:23 -05:00
Tyler Shipe 92b3ac2ce7 more improvement to load time when switching pages/markets 2021-11-14 18:37:02 +00:00
Tyler Shipe db4aa785fc speed up time between page loads 2021-11-14 14:48:09 +00:00
saml33 cca6d84feb fix: add padding-top to table wrapper 2021-11-09 20:24:43 +11:00
saml33 30f971cfac fix: mobile styling to accomodate new markets 2021-11-03 22:43:34 +11:00
tjshipe 9dcb0f329f
Merge pull request #52 from blockworks-foundation/perp-table-market-link
link to perp market from positions table
2021-10-21 16:19:26 -04: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
saml33 3c2e5e161f link to perp market from positions table 2021-10-18 21:34:52 +11:00
Tyler Shipe 3d274e64d7 use estimatedSize in fee estimation; use price of 1 for mkt close orders 2021-10-05 17:46:15 -07: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 229d9a8fbf expose pnl on mobile table row 2021-09-28 23:15:36 +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
saml33 6e4323ee6e perp positions table mobile 2021-09-08 11:52:45 +10:00
Tyler Shipe 9c3c0677bd perp position pnl using breakeven price 2021-08-30 02:33:41 -04:00
Tyler Shipe bc447a5296 add value to open orders table, add color to perp pnl 2021-08-30 02:17:36 -04:00