Commit Graph

68 Commits

Author SHA1 Message Date
tjs db8a0324aa add tailwind prettier plugin; run yarn format 2022-03-09 15:53:11 -05:00
saml33 b5efc88d30 use label component on form elements 2022-02-23 10:30:54 +11:00
saml33 2ae323ee1c semantic headings and styles 2022-02-21 14:55:13 +11:00
saml33 0be93958c7 align input styles 2022-02-20 22:38:40 +11:00
Tyler Shipe 4a0c77a3d9 increase information density 2022-01-31 10:52:28 -05:00
Tyler Shipe 8c674ec1fd fix deposit notification when init new account 2022-01-15 19:08:42 -06:00
Tyler Shipe 02eb70bbaf close deposit modal after error catch 2022-01-08 15:52:42 -05: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
saml33 23c5aeabc7 show deposit modal after intro tips 2021-12-18 10:28:09 +11:00
saml33 670712ed98 fix: null selectedAccount error 2021-12-08 21:01:55 +11:00
rjpeterson 6b223e62e1 rebase & add statsperps + account history translation 2021-11-23 22:17:17 -10:00
Tyler Shipe 45c4f20bd7 use latest client; error msg when depositing all sol; pointer cursor on orderbook 2021-11-18 16:49:48 +00:00
saml33 7bbcbec627 improve repay borrow ux 2021-11-10 11:37:40 +11:00
saml33 ce2e32ee1a
add buttongroup and interest info to deposit/withdraw (#59) 2021-10-26 15:25:36 +01: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 7feb881bb3 rename fetchMangoAccounts to fetchAllMangoAccounts; prefer reloadMangoAccount over fetchAllMangoAccounts 2021-09-29 18:09:58 -04:00
Tyler Shipe e303c6927c add sol amount needed to create a mango account 2021-09-08 15:11:02 -04:00
Tyler Shipe ae99437cea Load all mango accounts when depositing for the first time 2021-08-31 17:50:17 -04:00
Tyler Shipe ba731617cc reload tokens after deposit 2021-08-31 14:11:41 -04:00
Tyler Shipe 4f20fc6542 use client reloadMangoAccount 2021-08-31 13:47:03 -04:00
Tyler Shipe c6e09c1ba1 fix alpha modal issue 2021-08-30 16:40:32 -04:00
Tyler Shipe f08e323e6c remove console logs 2021-08-24 16:01:43 -04:00
Tyler Shipe f7aa5b6bed fix lint errors 2021-08-17 16:48:42 -04:00
Tyler Shipe 7cf80b566c remove blur from modals 2021-08-16 13:59:44 -04:00
Tyler Shipe 00a85cded2 Merge in styling changes 2021-08-16 13:00:43 -04:00
Tyler Shipe 10a881a811 wire up init account and deposit 2021-08-13 11:31:00 -04:00
saml33 3c64b9f059 remove blur on success action 2021-08-02 15:14:24 +10:00
saml33 1f82731a85 add unsettled balances ui 2021-08-01 22:48:15 +10:00
Tyler Shipe 8207659bb1 cleanup 2021-07-23 13:07:31 -04:00
Tyler Shipe 54b6230314 fill in account asset values 2021-07-06 20:13:17 -04:00
Tyler Shipe a0ba6f44e8 update notifications, wire up account change modal 2021-07-06 18:04:20 -04:00
Tyler Shipe 671e50eba0 wip: max borrow calculations 2021-07-01 13:35:47 -04:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Tyler Shipe 6416e84828 fix deposit import 2021-06-21 09:54:56 -04:00
Tyler Shipe c4ccc37110 more errors 2021-06-20 23:22:45 -04:00
Maximilian Schneider 107c2e8ed3 add cancel perp order call and remove unused imports 2021-06-19 00:26:47 -04:00
Tyler Shipe 6e29de28ef fix deposit modal 2021-06-18 12:49:16 -04:00
Tyler Shipe 370d25f7bd fix init and deposit; fix disconnect bug 2021-06-17 21:10:47 -04:00
Tyler Shipe a16608c95d implement deposit 2021-06-17 18:39:16 -04:00
Maximilian Schneider 2307246dd0 fix deposit modal rendering 2021-06-17 14:42:39 -04:00
Maximilian Schneider 275fafa4c4 refactor deposit modal 2021-06-17 14:03:47 -04:00
saml33 e14350e624
disable 0 bal assets for deposits and fix withdraw validations (#25) 2021-06-11 14:23:51 -04:00
Tyler Shipe a1d572048b removed leverage indicator on deposit and withdraw modals 2021-06-05 14:01:00 -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 d239416364 more cleanup and add txid link when transaction error 2021-05-22 01:00:39 +03:00
Ralfs 329a2cd302 removed fee discount tab and sol retain deposit 2021-05-21 23:58:01 +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
Tyler Shipe f61c9b5fa8 Merge remote-tracking branch 'origin/alerts-modal' into main 2021-05-01 18:09:44 -04:00
Tyler Shipe 9755aef1be load orderbook for market 2021-05-01 16:30:05 -04:00