Commit Graph

352 Commits

Author SHA1 Message Date
Luc Succes 389c3dee76 Cleans up commented out code 2022-03-16 11:36:02 -04:00
tarcisiozf ffe035e8e1 redirect if invalid 2022-03-16 12:02:18 -03:00
Luc Succes 35d7b63479 Merges main 2022-03-16 11:01:11 -04:00
Kieran Gillen 63aa1c2556 Adds catch to connect buttons 2022-03-16 15:12:39 +01:00
Kieran Gillen 1a49be860e Updates connect to use wallet adapter directly 2022-03-16 13:54:00 +01:00
Luc Succes 1c6b4fb950 Adds referral fees history and total 2022-03-15 18:48:26 -04:00
Kieran Gillen 0a033e50d8 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-wallet-adapter 2022-03-15 15:14:52 +01:00
Kieran Gillen d2b4a878bb Updates componets with useWalletModal 2022-03-15 14:59:32 +01:00
Kieran Gillen b83655a015 Adds WalletProvider 2022-03-15 14:54:26 +01:00
tjshipe 3c5a0d220c
Merge pull request #184 from rjpeterson/update-translations
Update translations
2022-03-14 11:51:19 -04:00
tjs 674d1a8316 add missing mangoClient to account page 2022-03-13 19:33:05 -04:00
tjs 597c930b98 use blockhash that expires with timeout 2022-03-13 19:26:30 -04: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
tjs 6d029f4432 remove console.logs 2022-03-09 14:47:39 -05:00
saml33 1eaef806aa account more menu mobile styling 2022-03-05 12:38:47 +11:00
saml33 a827bdec04
Merge pull request #179 from blockworks-foundation/account-more-menu
account actions more menu
2022-03-04 07:57:51 +11:00
saml33 767106c59b remove commented code 2022-03-04 07:49:42 +11:00
tjs dbb17b4e08 add trading view script in _document 2022-03-02 16:28:54 -05:00
tjs 299cdbe240 chore: update packages 2022-03-02 00:17:36 -05:00
tjs 80d876acc9 chore: fix warning from next js 12 upgrade 2022-03-02 00:17:16 -05:00
saml33 2b6f4ff1c1 account actions more menu 2022-03-02 14:30:25 +11:00
tjs 5dc40a2078 fix issue with reading pubkey from non phantom wallets on account page 2022-03-01 21:17:47 -05:00
saml33 7a9dfc2b68 align styles 2022-03-02 11:08:18 +11:00
tjs c41af04f8e fix type issue with new ExpandableRow props 2022-03-01 14:28:20 -05:00
tjs b6999cd220 add performance chart to account page 2022-03-01 14:06:39 -05:00
Riordan Panayides 04cf24ffd8 Fix title price 2022-02-28 18:22:14 +00:00
tjshipe 9717cff30c
Merge branch 'main' into missing-translations 2022-02-22 19:51:35 -05:00
saml33 8a556f63a8 merge main 2022-02-23 10:34:54 +11:00
saml33 b5efc88d30 use label component on form elements 2022-02-23 10:30:54 +11:00
tjs 6e815d96d8 remove sentry 2022-02-22 13:45:25 -08:00
tjshipe 8f0fdd2bc1
Merge branch 'main' into missing-translations 2022-02-22 13:54:44 -05:00
tjs 9df037032d decode and encode referral uri components 2022-02-22 10:47:09 -08:00
tjshipe 339e7b451f
Merge branch 'main' into translate-referrals 2022-02-22 12:58:58 -05:00
saml33 2ae323ee1c semantic headings and styles 2022-02-21 14:55:13 +11:00
rjpeterson 1ee43825a9 add alerts to account and index page locales 2022-02-19 15:55:21 -06:00
rjpeterson 5b1b3e23b6 translate referrals.json to chinese 2022-02-19 15:14:58 -06:00
rjpeterson 3d74437bd5 replace text with locale t() blocks 2022-02-19 13:36:29 -06:00
tjshipe 732c44dd39
Merge pull request #148 from blockworks-foundation/trade-nav-concept
Trade page navigation concept
2022-02-18 10:48:53 -05:00
saml33 a8e4e3ba29 remove markets page 2022-02-18 12:04:56 +11:00
saml33 95d73df500 add markets page 2022-02-17 20:44:28 +11:00
tjs 3e23633818 update wallet token decimals on swap page 2022-02-15 22:57:47 -05:00
tjs d45e7facf1 better twitter image 2022-02-15 12:14:51 -05:00
tjs 7659fd487a set twitter card image 2022-02-15 11:33:30 -05:00
tjs 86874a87e0 show fee discount in trade form 2022-02-14 17:23:57 -05:00
tjs f1e26c9a17 better layout for always showing program details 2022-02-14 15:48:40 -05:00
tjs 70464058ab always show program details 2022-02-14 14:36:04 -05:00
tjs 366d040cfc use correct balance for mngo; fix percentages 2022-02-14 14:21:06 -05:00
tjs 3965079225 update referral page to only show supported features 2022-02-14 13:22:54 -05:00
saml33 51a9b498c8 disallow spaces in id input 2022-02-14 12:17:57 -05:00
saml33 8ec666d048 add length based ID form validation 2022-02-14 12:17:48 -05:00
saml33 e7928ee117 edit incentive intro text 2022-02-14 12:17:43 -05:00
saml33 c525cce66f responsive layout 2022-02-14 12:17:38 -05:00
saml33 2eaded88f5 add padding to not enough mango panel 2022-02-14 12:17:32 -05:00
saml33 839efc730c page content and styling 2022-02-14 12:17:21 -05:00
tjs f54af5c787 add ref links 2022-02-14 12:17:11 -05:00
tjs 55b7907bfd wip 2022-02-14 12:15:46 -05:00
tjs 11f9ef806d create referral page 2022-02-14 12:15:28 -05:00
rjpeterson 57b6cb6b13 translation fixes, remove untranslated text 2022-02-13 12:01:59 -06:00
rjpeterson 448a73b387 translate risk calculator into chinese 2022-02-13 11:55:36 -06:00
rjpeterson ebddebaf81 add zh-tw calculator phrases 2022-02-13 11:55:36 -06:00
rjpeterson 7cab37ea70 add calculator locale boilerplate, add missing common translations 2022-02-13 11:55:36 -06:00
rjpeterson 9a741205e2 rebase to upstream/main 2022-02-13 11:55:36 -06:00
tjshipe 8490ef3bc8
Merge pull request #149 from blockworks-foundation/pan/delegate
Add delegate functionality
2022-02-13 12:40:58 -05:00
tjs 3ad223f95b add types to the store set function 2022-02-10 12:49:59 -05:00
Riordan Panayides 0c3c5ada98 Add delegate functionality 2022-02-09 15:11:51 +00:00
saml33 5d28deeb57 add favorites bar and change % 2022-02-09 21:55:54 +11:00
saml33 681e188caa fix conflicts 2022-02-07 21:33:22 +11:00
Tyler Shipe 0ddcf8c2c2 update order book on trade history change 2022-02-05 16:09:18 -05:00
saml33 a1664d2a58 add/remove favorites 2022-02-05 17:04:07 +11:00
Tyler Shipe 715c8fd26f show deposit and borrow rates even when not connected 2022-02-04 12:57:18 -05:00
Tyler Shipe b71a40b413 add sentry 2022-02-03 14:14:23 -05:00
Tyler Shipe 3ff9471fa1 move market.txs page to index.tsx 2022-01-31 12:48:48 -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 2355dfcaa6 store openOrders in zustand 2022-01-27 11:57:36 -05:00
Tyler Shipe 67ce0c254c prevent google translate from interfering with localization 2022-01-25 13:57:54 -05:00
Tyler Shipe 13f3828607 fix spinner 2022-01-20 11:40:54 -06:00
Tyler Shipe 6906d679dd Add view counterparty to trade history 2022-01-19 15:35:53 -06:00
saml33 9bf970b067 Merge branch 'main' into add-alerts-to-account-page 2022-01-19 11:07:25 +11:00
saml33 c24557876f add alerts modal 2022-01-19 11:06:27 +11:00
tjshipe 4836191d1c
Merge branch 'main' into swap-top-holders 2022-01-18 17:27:32 -06:00
rjpeterson 68ce89dcd2 merge from upstream 2022-01-18 14:55:11 -06:00
rjpeterson fe857554be translate close account modal 2022-01-18 12:16:18 -06:00
rjpeterson cf55bebcf0 add TOTRANSLATE markers 2022-01-18 11:22:21 -06:00
saml33 bcae2a3d70 conflicts and translations 2022-01-18 12:54:21 +11:00
saml33 54c32ca964 copy and styling tweaks 2022-01-18 11:00:10 +11:00
Tyler Shipe fe4130ca4b v3.3 supports closing mango accounts 2022-01-16 18:35:47 -06:00
Tyler Shipe 5afff3bd7e Merge branch 'v3.3' into main 2022-01-16 17:27:33 -06:00
Tyler Shipe cb266e3aa1 add pubkey url param to trade page 2022-01-16 17:16:47 -06:00
Tyler Shipe c307571624 yarn format 2022-01-16 11:13:55 -06:00
Tyler Shipe b7bf1cdda5 yarn format 2022-01-15 15:25:14 -06:00
Riordan Panayides 02734eb1f5 Add close account modal 2022-01-15 14:51:16 -06:00
Nicholas Clarke 32baad4dd2 Merge remote-tracking branch 'origin/main' into account_equity 2022-01-13 12:31:24 -08:00
saml33 a58b49c507 add top nav and page wrapper 2022-01-12 21:21:59 +11:00
tjshipe 813ad801e0
Merge pull request #129 from blockworks-foundation/max/switch-market-mobile
make market selectable on mobile when clicking market name
2022-01-11 20:34:51 -05:00
Nicholas Clarke 8c1590f724 Merge remote-tracking branch 'origin/main' into account_equity 2022-01-11 15:47:18 -08:00
saml33 db2f507830 add more insight data and buy button 2022-01-11 11:54:50 +11:00
rjpeterson 0663c321e4 add missed translations. rename common:slippage key 2022-01-09 16:31:56 -06:00
Maximilian Schneider 04e332602b delete desktop specific code 2022-01-08 21:14:22 -08:00
Maximilian Schneider 44488342e4 Merge remote-tracking branch 'origin/main' into max/switch-market-mobile 2022-01-08 21:04:14 -08:00
Maximilian Schneider 2393b2426a make market selectable on mobile when clicking market name 2022-01-08 21:00:35 -08:00
Tyler Shipe 5e7e8065f5 add global alert component 2022-01-07 17:52:16 -05:00
Nicholas Clarke c9e5c9982e Merge remote-tracking branch 'origin/main' into account_equity 2022-01-05 23:24:44 -08:00
Tyler Shipe bb170ebcb3 flip swap chart when usdc and usdt inputs 2022-01-04 14:48:49 -05:00
ImpossiblePairs 0a587edc26
Risk calculator v3 (#79)
* Push risk calculator to branch

* Fixed Enclosing on updatePriceValues

Fixed incorrect enclosing of updatePriceValues

* Clean up and commenting

* Update USDT slider response and asset/liability tabulation

* Update value assignment encapsulation error

* Risk Calculator feedback and bug fixes

* Slider Range updated to 0 - 350%

* Add icons, feedback, open orders toggle

* Remove unnecessary console log

* Update precision and short scenario summary

* Push risk calculator to branch

* Fixed Enclosing on updatePriceValues

Fixed incorrect enclosing of updatePriceValues

* Clean up and commenting

* Update USDT slider response and asset/liability tabulation

* Update value assignment encapsulation error

* Risk Calculator feedback and bug fixes

* Slider Range updated to 0 - 350%

* Add icons, feedback, open orders toggle

* Remove unnecessary console log

* Update precision and short scenario summary

* Add mangoCache check

* use getStaticProps in calculator

* allow loading unowned accounts w/ risk-calculator

* add risk calculator new bubble

* Percent move liquidation no longer relative to slider

Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-03 16:20:45 -08:00
saml33 8b7fff5727 fix conflicts 2022-01-03 12:01:04 +11:00
saml33 f68da5a17b misc fixes 2022-01-01 23:34:46 +11:00
Tyler Shipe 63adaad55d remove phantom workaround for wallet connection issues in next.js 2021-12-31 11:51:50 -05:00
rjpeterson 7abb205502 translate swap page 2021-12-29 19:04:55 -06:00
tjshipe 64f820afb7
Merge pull request #115 from blockworks-foundation/show-deposit-after-intro
show deposit modal after intro tips
2021-12-28 17:52:37 -05:00
Tyler Shipe cd49edd0b6 add error boundaries to app.tsx 2021-12-28 17:22:50 -05:00
Maximilian Schneider ba5b5bb56c rename getServerSideProps to getStaticProps 2021-12-26 07:28:46 -07:00
Nicholas Clarke 1e42f2aded Add account performance tab to the account page 2021-12-23 15:05:44 -08:00
Tyler Shipe 55d3909829 add null check for item address
null chell

moar

hide max button if not connected

fetch balances

fixes

improve swap perf
2021-12-19 01:25:33 -05:00
saml33 23c5aeabc7 show deposit modal after intro tips 2021-12-18 10:28:09 +11:00
Tyler Shipe 0f13c748e4 add jupiter ag swap 2021-12-17 16:02:02 -05:00
saml33 b716c33feb remove unnecessary window scroll 2021-12-15 09:42:02 +11:00
Tyler Shipe ae58aa5712 remove scrollbar at full height 2021-12-14 16:57:58 -05:00
Tyler Shipe c0cdb050f4 fix redirect on url market param 2021-12-08 12:47:36 -05:00
Tyler Shipe f0edd15fef move state out of parent components that were causing additional renders 2021-12-07 23:14:00 -05:00
saml33 03c9710103 improve sub-tabs layout 2021-12-08 15:00:02 +11:00
Tyler Shipe babd4fe655 move page title into it's own component 2021-12-06 21:45:10 -05:00
Tyler Shipe 855a6e6d58 add ws watching for mangoAccount 2021-12-05 20:13:23 -05:00
rjpeterson 6b223e62e1 rebase & add statsperps + account history translation 2021-11-23 22:17:17 -10:00
saml33 d102a1d3d7 add spanish translations 2021-11-24 10:08:14 +11:00
Tyler Shipe ec633992fa fix translation issues; fix pubkey viewing 2021-11-18 13:56:11 +00:00
Tyler Shipe 6ed230d900 add deposit and withdraw history to account page 2021-11-17 15:51:17 +00:00
Tyler Shipe cd7607a611 use getStaticProps for translations 2021-11-17 11:08:29 +00:00
Tyler Shipe 5935297513 ensure wallet is connected after changing markets 2021-11-16 01:34:28 +00:00
Tyler Shipe e25d62eaa5 add wallet reconnect logic to market page 2021-11-15 23:00:00 +00:00
Tyler Shipe 780ef281eb only try reconnect wallet logic if window.solana exists 2021-11-15 19:16:03 +00:00
Tyler Shipe a1e0e82990 reconnect to phantom on each page change 2021-11-15 18:27:57 +00:00
Tyler Shipe 010be224e0 remove console logs 2021-11-14 18:57:00 +00:00
Tyler Shipe 92b3ac2ce7 more improvement to load time when switching pages/markets 2021-11-14 18:37:02 +00:00
tjshipe 2067c981c8
Merge pull request #70 from dboures/view-other-mangoaccounts
View anyone's mangoAccount
2021-11-14 13:24:50 +00:00
tjshipe eb39e1cbb1
Merge branch 'main' into order-lines-translation 2021-11-13 17:32:52 +00:00
dboures 88f803bc04 view other accounts using pubkey in url 2021-11-09 18:17:03 +00:00
saml33 f3ea08c1c1 merge main 2021-11-04 20:17:39 +11:00
Tyler Shipe a2ba24e760 add apple-touch-icon link sizes to fix phantom 2021-11-03 22:04:06 -04:00
saml33 41538dcb01 history translation 2021-11-03 23:03:23 +11:00
saml33 30f971cfac fix: mobile styling to accomodate new markets 2021-11-03 22:43:34 +11:00
saml33 859432fdb2 fix: match oracle and markprice decimals to tick size 2021-11-02 20:43:28 +11:00
saml33 bccada65fe tip content 2021-10-31 22:21:22 +11:00
saml33 b8d34934d9 setup introjs tour 2021-10-29 23:05:55 +11:00
rjpeterson 0359b80e55 add translations for tradingview chart order lines 2021-10-25 11:03:00 -10: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
Tyler Shipe 71bfa3f3a5 add total funding 2021-10-17 22:34:24 -04:00
Tyler Shipe dd0592feff add more info to tooltip 2021-10-11 17:46:52 -04:00
Tyler Shipe 1c64c70249 add open graph title 2021-10-11 16:47:38 -04:00