Commit Graph

271 Commits

Author SHA1 Message Date
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
Maximilian Schneider 93abdab9f6 Merge remote-tracking branch 'origin/main' into max/stoploss 2021-10-05 23:02:01 +02:00
Tyler Shipe 6925a46df8 Revert "Revert "add interest earned table to account page""
This reverts commit 03dc3cd001.
2021-10-01 11:42:42 -04:00
saml33 dbbb415060
Default market settings (#45)
* add default market settings to settings modal

* redirect to default market
2021-10-01 12:05:42 +02:00
Tyler Shipe 03dc3cd001 Revert "add interest earned table to account page"
This reverts commit 0f6d39043f.
2021-09-28 11:58:15 -04:00
Tyler Shipe 0f6d39043f add interest earned table to account page 2021-09-28 00:13:40 -04:00
saml33 659e48c99f mobile styles for new features 2021-09-26 23:20:51 +10:00
Riordan Panayides 9891c8688b
Add market name and price in title (#20)
* Add market name and price in title

* Reorder title, ensure price always displays on market pages

Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2021-09-25 12:17:35 +02:00
saml33 1830986e40 remove swipeable tabs from desktop views 2021-09-20 13:21:55 +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 9b3faddc3d fix negative borrow amount 2021-09-14 11:32:36 +10:00
Tyler Shipe c91d65e933 only show 100 recent trades in history tab 2021-09-13 12:28:53 -04:00
saml33 00d02ccde1 stats table mobile 2021-09-09 23:14:20 +10:00
Riordan Panayides 5c752cca78 Add funding rate and open interest graphs 2021-09-06 12:59:13 -04:00
Tyler Shipe 494ea98e33 add default width; add show zero balances 2021-09-05 20:20:21 -04:00
saml33 50380107cf improve balances table 2021-09-05 16:50:16 -04:00
Tyler Shipe 0c95f263f5 remove v3 alert in top bar 2021-09-03 13:59:14 -04:00
dd 4b7aadd72f fixed typo in top banner; updated mango client 2021-09-02 15:53:10 -04:00
Tyler Shipe 800e7e6049 add alert message to top of spot and perp pages 2021-09-01 10:15:43 -04:00
Tyler Shipe b96c60a166 remove alert at top of page 2021-09-01 10:06:06 -04:00
Tyler Shipe 33959a0e74 fix sol collateral avail and add alpha banner 2021-08-31 21:27:13 -04:00
Tyler Shipe 5aaf079122 add navbar message 2021-08-31 18:21:30 -04:00
Tyler Shipe c6e09c1ba1 fix alpha modal issue 2021-08-30 16:40:32 -04:00
Tyler Shipe 2c50835a21 update alpha message 2021-08-30 14:50:37 -04:00
Tyler Shipe 3ef85d773b add individual spot asset stats 2021-08-30 14:41:42 -04:00
Tyler Shipe 6630e29707 upgrade nextjs 2021-08-30 00:56:27 -04:00
Tyler Shipe 3c47775de9 only clear current market if it's for a different market then whatsin the store 2021-08-23 14:04:18 -04:00
saml33 51741bc9a3 loading states for connect wallet 2021-08-20 23:17:02 +10:00
Tyler Shipe 0af7a8b8ee more trade form improvements 2021-08-18 16:15:17 -04:00
Tyler Shipe c598f79a4a remove fee tab; set trade form price on page load 2021-08-18 10:24:29 -04:00
Tyler Shipe 7cf80b566c remove blur from modals 2021-08-16 13:59:44 -04:00
Tyler Shipe 5f5c703c5d wire up positions box 2021-08-14 16:05:31 -04:00
Tyler Shipe 654f9487c5 add trade history to account page 2021-08-13 16:02:12 -04:00
saml33 1f82731a85 add unsettled balances ui 2021-08-01 22:48:15 +10:00
Tyler Shipe 5703cbdc82 only show account name if it exists 2021-07-30 16:37:00 -04:00
Tyler Shipe caa4a29b23 add account naming 2021-07-30 16:33:03 -04:00
saml33 e810c5c215 improve theme and misc styling 2021-07-29 23:19:32 +10:00
saml33 e278b9d07f merge main 2021-07-29 12:30:25 +10:00
saml33 d95c2843c4 add portfolio view 2021-07-25 23:54:25 +10:00
saml33 e96d11e437 merge main 2021-07-24 21:56:57 +10:00
saml33 7f53a44345 add name account ui 2021-07-24 21:49:18 +10:00
Tyler Shipe f79bc1639f remove alerts from v3 2021-07-23 13:14:18 -04:00
saml33 d0797bf194 connect wallet empty states 2021-07-22 21:34:03 +10:00
Tyler Shipe 05a46993ba add basic stats page 2021-07-21 17:26:18 -04:00
Tyler Shipe 562753f937 Merge branch 'main' into stats-page 2021-07-21 17:12:04 -04:00
Tyler Shipe 5c48d96775 don't try load market before group is loaded 2021-07-21 13:40:42 -04:00
Tyler Shipe 6e0018e251 reduce x padding 2021-07-19 23:04:26 -04:00
saml33 f06d14d8f6 switch markets via base asset drop menu 2021-07-17 23:49:52 +10:00
Riordan Panayides 0ad4fccf20 Add basic perp stats component 2021-07-13 14:52:48 +01:00
Riordan Panayides 03349b7892 Merge remote-tracking branch 'origin/main' into stats-page 2021-07-13 14:46:09 +01:00
Tyler Shipe 53163e07a8 add more account values 2021-07-07 00:34:21 -04:00
Tyler Shipe 54b6230314 fill in account asset values 2021-07-06 20:13:17 -04:00
Riordan Panayides aea7b84b21 WIP stats page, market header oracle price 2021-07-03 02:18:57 +01:00
Riordan Panayides a17ec8b464 Update stats page 2021-07-02 13:07:24 +01:00
Tyler Shipe cd031b06f6 fix build errors 2021-06-24 13:28:23 -04:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Tyler Shipe c4ccc37110 more errors 2021-06-20 23:22:45 -04:00
saml33 c1638183db merge main 2021-06-11 11:12:35 +10:00
saml33 a3d74a5488 total deposit/borrow value charts, new chart styles 2021-06-11 00:09:25 +10:00
Tyler Shipe 956664b91f show accounts in select when length is greater than two 2021-06-09 12:28:33 -04:00
Tyler Shipe 1afe59e4e0 update modal with sol srm info 2021-06-08 10:59:39 -04:00
Tyler Shipe f4efd78b9d better spacing between accounts on alert page 2021-06-07 13:14:58 -04:00
Tyler Shipe ba8ef82703 update acct labels 2021-06-07 13:03:51 -04:00
saml33 3b5f22b815
User account page (#22)
* layout, overview, start on assets, borrows and open orders

* trade history, sortable data hook for tables, borrow page

* handle deposit and withdraw buttons

* borrow modal ui and integration + settle borrow for individual assets

* in orders balance to asset table and totals, responsive css, new connected wallet button + small tweaks

* account switch/creation flow

* accounts modal, update to usebalances hook

* handle settle, deposit before settle, save last account

* disable borrow/withdraw button when no account
2021-06-05 10:11:44 -04:00
Ralfs a9ad62ee83
use the 5_token USDC group (#16) 2021-05-26 16:35:45 +03:00
Ralfs 7a110f9ea5 Fixed build bugs 2021-05-20 23:43:18 +03:00
Maximilian Schneider 935129c45e
simulate withdraw operation so we can preview equity & coll (#10)
* show margin details in withdraw ui

Co-authored-by: saml33 <slam.uke@gmail.com>
2021-05-18 19:27:09 +03:00
saml33 a49f7e2fe9
add market data header to trade page (#9)
* add market data header to trade page
2021-05-18 08:33:04 +03:00
saml33 806b527502
Bring alert details and notifications into the UI (#5)
* hook to get alerts, add triggered alerts to alerts list
* alerts page, count unseen alerts, clear alerts from nav view
* consolidate components, add custom value to alert modal dropdown, sort margin accounts alphanumerically
* ring bell when count increments and ping animation on count
* create/fetch alerts from store, filter by account, populate modal state from triggered alert
* fix alert sorting
* enable MA selection also for re-activate
2021-05-07 22:41:26 +03:00
Maximilian Schneider 9c0c94eb4b fix broken margin account selector invocation 2021-05-02 15:58:12 +03:00
Tyler Shipe 90d219e83c hide select if no margin accounts 2021-05-02 00:51:55 -04:00
Tyler Shipe f18d61b216 add margin account selector 2021-04-26 01:26:12 -04:00
Tyler Shipe 2d489b29c4 add Lagzda's alerts 2021-04-24 22:10:28 -04:00
saml33 fc751fe00c
More timeframes to charts and chart theming (#2)
* topbar action tooltips. flip refresh icon. max with borrow button
* more timeframes and chart theming
* fix asymmetric header button
2021-04-25 01:02:13 +03:00
saml33 4285339e5a responsive tables and start on stats page 2021-04-21 00:19:08 +10:00
Tyler Shipe ea015a4dc9 fix saved grid layout and add formatting for some large nums 2021-04-17 20:04:18 -04:00
saml33 f66710f14a font styling 2021-04-16 21:50:56 +10:00
Tyler Shipe b5d72c0b55 remove ant library and fix tailwind config for lato 2021-04-15 23:32:03 -04:00
Tyler Shipe ecf81a41b8 fix issue with wallet disconnect when changing pages 2021-04-15 17:54:42 -04:00
Tyler Shipe e33bc5feca add alpha popup message 2021-04-15 12:34:59 -04:00
Tyler Shipe faa466ca17 prevent extra rerenders 2021-04-15 02:16:36 -04:00
Tyler Shipe a674ff74d3 texting fixes 2021-04-14 18:46:36 -04:00
Tyler Shipe 062ac4105a all the fixes 2021-04-13 19:41:04 -04:00
Tyler Shipe 132802fe12 add manifest and fix favicon 2021-04-13 16:45:07 -04:00
Tyler Shipe d97f63ced8 add favicons 2021-04-13 16:34:06 -04:00
Tyler Shipe d2fe9ce4c0 set default theme for netlify 2021-04-13 16:23:28 -04:00
Tyler Shipe 08e3c7a6a7 testing netlify deploy 2021-04-13 15:48:36 -04:00
Tyler Shipe 59f1156703 Add UiLock toggle and themed the stats page 2021-04-13 12:51:42 -04:00
Tyler Shipe e0370f4b0f Merge branch 'ui-styling-2' into main 2021-04-13 10:42:42 -04:00
saml33 f5cf996c41 more theme updates and ui tweaks 2021-04-14 00:10:57 +10:00
Tyler Shipe 56c0372a7f wire up trade history 2021-04-13 00:40:26 -04:00
Tyler Shipe ff260643dd Add switch component and replaced classes with theme vars 2021-04-12 18:15:15 -04:00
Tyler Shipe 6605cbdd48 convert trade form inputs to tailwind and continue theming 2021-04-12 16:01:55 -04:00
Tyler Shipe 932b52f649 remove xwind and convert to className prop 2021-04-12 12:49:02 -04:00
Tyler Shipe 70d4240b74 Merge branch 'ui-styling' into main 2021-04-12 10:19:37 -04:00
saml33 d9c27cca3c support for more than two themes 2021-04-12 23:32:01 +10:00
Tyler Shipe 799b9d843c add notifications 2021-04-12 00:17:23 -04:00
cryptopherhitchens 4e06be9bb8 theme start 2021-04-12 07:25:01 +10:00
Tyler Shipe 10e4fff211 add stats page 2021-04-07 19:06:02 -04:00
Tyler Shipe a0c0768473 add market select dropdown 2021-04-06 18:11:42 -04:00
Tyler Shipe f03f1919a4 add trade form component 2021-04-02 14:26:21 -04:00
Tyler Shipe 37cf5bae14 create next app with trading view form and orderbook 2021-03-30 18:47:08 -04:00
Tyler Shipe f8825bd246 Initial commit from Create Next App 2021-03-26 12:44:55 -04:00