Commit Graph

509 Commits

Author SHA1 Message Date
Adrian Brzeziński d19e5658ba Revert "move close delegate and edit account to top bar"
This reverts commit c101fce1ce.
2022-12-30 00:29:44 +01:00
Adrian Brzeziński c101fce1ce move close delegate and edit account to top bar 2022-12-29 20:04:19 +01:00
tylersssss 49bf8a7a76
Merge pull request #43 from blockworks-foundation/trade-form-ux
trade form ux improvements
2022-12-29 00:49:16 -05:00
tjs d603d6e973 show the count next to perp positions; use latest client 2022-12-27 18:15:57 -05:00
saml33 0d2d597c9e align activity/swap history loaders 2022-12-27 21:10:42 +11:00
saml33 be35e23dbe show perp trade value as a neutral color in activity feed 2022-12-27 20:57:23 +11:00
saml33 201a8ad62a trade form ux improvements 2022-12-22 15:19:00 +11:00
saml33 39cf4b9411 improve account page on mobile 2022-12-21 22:07:17 +11:00
saml33 b2bb1b685b horizontal scroll trade tabs on overflow 2022-12-21 15:04:08 +11:00
saml33 4cbe60671b show create account for account actions when no account 2022-12-21 10:38:56 +11:00
saml33 57e8128c45 allow viewing account action modals when not connected 2022-12-21 10:30:00 +11:00
saml33 79f9538067 add missing $ sign 2022-12-20 22:41:41 +11:00
saml33 2c76ed268a update swap activity feed value 2022-12-20 21:01:49 +11:00
saml33 0e64de2993 hide onboarding tours 2022-12-20 20:13:24 +11:00
tjs aae95b6b4a fix call to swap history api 2022-12-19 13:48:59 -05:00
saml33 a0ab23a596 account actions button component 2022-12-19 12:47:01 +11:00
saml33 28b148030d add copy address to accounts list modal 2022-12-19 11:54:30 +11:00
saml33 d7ccc7b4a6 combine borrow and repay modals 2022-12-18 23:30:49 +11:00
saml33 13cdf408ef combine deposit and withdraw to single modal 2022-12-17 23:37:00 +11:00
saml33 0bead4c97e algin link/button list styles 2022-12-16 22:44:21 +11:00
saml33 344f1958bd fix account page grid 2022-12-15 19:53:46 +11:00
saml33 30b86aaa23 merge main 2022-12-14 10:16:50 +11:00
saml33 de642675e5 Merge branch 'main' into new-font-expanded 2022-12-14 10:16:14 +11:00
tjs e55619237a remove acct leverage until we have a better calculation 2022-12-13 12:38:59 -05:00
saml33 e2e08fe829 use expanded font for large numbers 2022-12-13 22:05:01 +11:00
saml33 ece65c9b7d remove expanded font 2022-12-13 16:20:45 +11:00
saml33 d6747c88ed tt commons font poc 2022-12-13 12:51:26 +11:00
saml33 70ad72c0cc replace icon 2022-12-13 09:53:04 +11:00
tjs 06ccb7c3c2 only show in unsettled if perp position has pnl 2022-12-12 01:01:49 -05:00
tjs 41223e846c allow setting the amount out in jupiter swap 2022-12-07 16:33:38 -05:00
saml33 7b58e9ce6d add token stats charts 2022-12-06 22:58:22 +11:00
saml33 f006023ba4 improve activity filter form layout 2022-12-06 09:13:49 +11:00
saml33 9d0bdf4c1a fix calling activity feed when mango account changes 2022-12-05 14:46:31 +11:00
saml33 c4363a07d7 fix heading alignment 2022-12-05 10:34:17 +11:00
tjs 3b41277099 fix so error messages show txid 2022-12-02 18:47:08 -05:00
saml33 4af775a1c3 use new theme vars 2022-12-01 14:46:37 +11:00
saml33 209490752c better var names and hsl colors 2022-12-01 14:32:32 +11:00
saml33 02495833e5 filter by spot market base 2022-11-30 16:30:18 +11:00
saml33 f32b17c1c8 simplify filters ui 2022-11-30 13:06:09 +11:00
saml33 eb406e47df add perp trades to activity feed 2022-11-30 10:15:25 +11:00
saml33 b4b2198af6 full width account tabs on mobile 2022-11-29 21:58:50 +11:00
saml33 63e3d187b1 add swaps to activity feed 2022-11-29 21:33:15 +11:00
saml33 75f2fd720b componentize settings page 2022-11-25 13:39:14 +11:00
saml33 c355c3c13a add setting for number scroll 2022-11-24 13:30:20 +11:00
saml33 e74559bc42 add character limit to create account 2022-11-21 21:54:31 +11:00
tjs eb3d915916 wip: add unsettled perp 2022-11-20 21:29:54 -05:00
saml33 ba35bc0ee8 improve repay modal 2022-11-21 13:22:45 +11:00
saml33 a95afffadc use latest account value in charts 2022-11-21 11:50:25 +11:00
tjs 372fe381d1 fix trade form; more eslint refactor 2022-11-20 18:35:59 -05:00
tjs cb0b90dfb5 refactor to use mango group hook 2022-11-20 15:32:38 -05:00
saml33 d60360ccc5 fix alignment 2022-11-20 22:13:44 +11:00
saml33 7f57e59f44 use table components 2022-11-20 21:44:14 +11:00
saml33 281de2a024 use $ for account change values 2022-11-20 20:08:12 +11:00
tjs 561eba493b fix all eslint errors 2022-11-19 14:20:36 -05:00
saml33 982662c5f5 pnl and interest change 2022-11-19 22:28:06 +11:00
tjs 203c571bc5 use jupiter api and hooks 2022-11-18 18:19:04 -05:00
tjs 5727d0bc7f add a useMangoAccount hook 2022-11-18 12:09:39 -05:00
saml33 777e020648 add low sol balance warnings 2022-11-18 15:43:23 +11:00
tjs 7b48469827 patch merge issues 2022-11-17 17:08:45 -05:00
tylersssss 95df906a76
Merge branch 'main' into repay-modal 2022-11-17 16:47:27 -05:00
saml33 903884b732 add sol balance hook 2022-11-17 12:53:33 +11:00
tjs 57f009aa2e add delegate modal 2022-11-16 11:59:34 -05:00
saml33 41e1c16fea add repay borrow modal 2022-11-16 23:14:53 +11:00
tjs 59b5570e35 fix new subaccount 2022-11-15 23:12:57 -05:00
saml33 7000eea155 fix activity feed date range filter 2022-11-15 21:47:11 +11:00
saml33 2f3afa7a4a use green/red for activity feed values 2022-11-14 22:46:48 +11:00
saml33 8db5b732f5 fix account onboarding tour 2022-11-14 14:21:45 +11:00
saml33 fca7d81dda merge main 2022-11-14 09:57:19 +11:00
tylersssss 451eef3543
Merge pull request #25 from blockworks-foundation/feature/fix-mango-accounts-after-reconnection
mango accounts reaload on wallet change
2022-11-13 17:24:59 -05:00
saml33 8a6706e142 merge main 2022-11-11 22:39:14 +11:00
saml33 782168283d more background 2022-11-11 22:24:24 +11:00
saml33 49667afdc1 add warning when not enough sol to create account 2022-11-10 16:22:01 +11:00
saml33 5f4f4f82a9 update copied address text 2022-11-10 13:35:12 +11:00
Adrian Brzeziński 8613fa5bb4 mango accounts reaload on wallet change 2022-11-03 16:59:21 +00:00
saml33 4383fefd1f add copy account address 2022-11-02 15:50:03 +00:00
tjs 7d15e8e798 better is number check 2022-10-31 16:39:43 +00:00
tjs 1c4eddb48e more perp order stuff 2022-10-29 21:46:56 -04:00
tjs 818bbc0252 fix zustand nextjs 13 issues 2022-10-28 17:46:38 -04:00
tjs 9269b4e18f fix yarn.lock, undo next upgrade 2022-10-28 15:24:05 -04:00
saml33 bb62181a1b prevent activity feed double load 2022-10-28 23:23:28 +11:00
saml33 ba7b7d852f disable deposit/withdraw when no account 2022-10-28 20:46:29 +11:00
tjs 4ef23e60ff url param to view other mango accounts 2022-10-27 16:58:58 -04:00
tjs a118d18564 use legacy next/image 2022-10-26 16:01:31 -04:00
saml33 555f5625eb fix leverage display on account summary 2022-10-26 14:11:31 +11:00
saml33 75653c2ed4 fix leverage display 2022-10-26 13:57:28 +11:00
saml33 2e7c850551 fix create account selection 2022-10-26 13:39:11 +11:00
saml33 84bcdded62 account value spacing 2022-10-25 22:22:24 +11:00
saml33 a0a020f7aa mango account list modal errors 2022-10-25 20:53:50 +11:00
tylersssss bb3c9b2b54
Merge branch 'main' into mango-accounts-modal 2022-10-24 17:34:13 -04:00
saml33 6d85da0ab5 misc styling 2022-10-22 23:14:25 +11:00
tjs a6aca2a30d use dynamic imports for recharts 2022-10-10 22:16:41 -04:00
tjs 7ad023653f fix bug with modals 2022-10-07 18:27:36 -04:00
tjs 7d975b6407 fix deposit input issue 2022-10-07 16:02:11 -04:00
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 40bf21992f add mango accounts list modal 2022-10-07 22:47:15 +11:00
saml33 84cff1613e change total interest value to total interest earned 2022-10-07 14:52:06 +11:00
saml33 1bcde660b3 account, swap and trade tabs 2022-10-07 14:16:11 +11:00
tjs ebd0bc796c nvm 2022-10-06 22:10:15 -04:00
tjs 9f073e6b87 update acct leverage to match ftx calc 2022-10-06 21:08:08 -04:00
saml33 490d7feaeb reset performance and interest data on disconnect 2022-10-07 10:06:49 +11:00
tjshipe 0b3594f036
Merge branch 'main' into activity-feed 2022-10-06 17:54:31 -04:00
saml33 e053f57c2f tooltip positioning 2022-10-06 23:08:29 +11:00
saml33 b14e5c569a show interest chart button when value is > 1 2022-10-06 16:12:56 +11:00
saml33 6820d0e6e7 fix one-day change values 2022-10-06 16:11:28 +11:00
saml33 9f7518ffed align pop over bg colors 2022-10-06 11:04:16 +11:00
saml33 1fbd948e30 add missing font-mono classes 2022-10-06 10:14:11 +11:00
saml33 706de963af add max amount button component 2022-10-06 10:03:10 +11:00
saml33 0997bcc710 remove double border 2022-10-05 21:29:11 +11:00
saml33 2682141c93 add trigger delay to tooltips 2022-10-05 21:25:47 +11:00
saml33 c43569ae2d add one-day interest value change 2022-10-05 21:16:32 +11:00
saml33 f99763fb1b add one-day pnl change 2022-10-05 16:12:52 +11:00
saml33 dbcad96f70 add leverage and total collateral to account page 2022-10-05 15:47:50 +11:00
tjs 7a5c635e25 update tooltip 2022-10-04 23:31:21 -04:00
tjs cc2d32eced add leverage to account summary 2022-10-04 23:30:19 -04:00
tjs d3d803daca add total collateral 2022-10-04 22:45:06 -04:00
tjs a2394d2d28 shrink tooltip hit box 2022-10-04 14:17:18 -04:00
tjshipe c0bb9ddcda
Merge branch 'main' into onboarding-tours 2022-10-04 13:23:29 -04:00
saml33 53cf3cced0 improve account info chart buttons 2022-10-04 09:45:46 +11:00
saml33 da69b3c47b fix tooltip triggering 2022-10-03 11:55:01 +11:00
saml33 90dc83e0e9 only show reset button when active params 2022-10-03 10:47:21 +11:00
saml33 34ebab181e improve reset filters and missing translation keys 2022-10-02 22:21:09 +11:00
saml33 0faaa07bf3 add disclosure panel for small breakpoints 2022-10-01 22:36:39 +10:00
saml33 cff49ded6f merge main 2022-09-30 22:55:28 +10:00
saml33 bc55ef9204 mrege main 2022-09-30 22:39:38 +10:00
saml33 502b643d53 update date filter format 2022-09-30 22:31:22 +10:00
saml33 363d7f116a update activity on account change 2022-09-30 13:51:22 +10:00
saml33 41b7af6cc2 add advanced filters 2022-09-30 13:22:55 +10:00
saml33 a04b7cc630 add basic filters 2022-09-29 13:35:34 +10:00
tjs 6b737f03c7 support passing in a count to tabbuttons 2022-09-28 16:45:08 -04:00
saml33 50aa9afc0c add mobile table 2022-09-28 23:04:58 +10:00
saml33 b6513b70d1 add activity details view 2022-09-28 16:17:06 +10:00
saml33 ab2749cea0 add basic table 2022-09-27 16:22:51 +10:00
saml33 faf78be5df tooltip positioning 2022-09-26 10:37:04 +10:00
saml33 9750b82e9c save hasSeen tour to db 2022-09-23 14:00:42 +10:00
saml33 f5abb4d381 add tours and copy 2022-09-22 14:25:24 +10:00
saml33 dcd26ac1b6 update tab copy 2022-09-20 14:39:17 +10:00
saml33 da6c09aca2 account page tooltips 2022-09-20 13:12:34 +10:00
saml33 56a24c0a8d add padding to account charts 2022-09-20 09:57:58 +10:00
tjs 0950cbbbb8 add pnl back to account page 2022-09-19 19:14:58 -04:00
saml33 637f14a8a3 fix swap empty states 2022-09-19 20:43:38 +10:00
saml33 2b4f3410d2 align account page layout to swap/trade 2022-09-19 13:53:52 +10:00
saml33 9ed74880b2 align tabs to trade page 2022-09-15 16:06:23 +10:00
saml33 17b52d242d change copy on swap page to be swap oriented and rename files 2022-09-15 11:06:00 +10:00
tjs 9780a94ce1 Test matching swap page with advanced trade page 2022-09-14 15:38:25 -04:00
tjs 86d79a7541 allow maxwidth in tooltip props; add health tooltip to acct page 2022-09-14 11:30:02 -04:00
tjs 4270ad8d3b use latest client; fix merge conflicts 2022-09-14 10:52:18 -04:00
tjshipe 83dc98ad25
Merge branch 'main' into onboarding-tour 2022-09-14 10:11:13 -04:00
saml33 3d832bc300 improve mask positions 2022-09-13 21:27:04 +10:00
saml33 bd6a0e8ced use thin scroll on fund account 2022-09-13 16:21:19 +10:00
tjs c2f1f02829 use alias imports 2022-09-12 12:04:20 -04:00
tjs d4cc454824 move mangoAccount state dep from sidenav into account summary component 2022-09-12 11:30:47 -04:00
saml33 6cfc397dd2 fix loaders 2022-09-09 11:00:47 +10:00
saml33 a1f01b7866 add chart time range component 2022-09-08 16:25:32 +10:00
saml33 99b6d79808 add icon for 0% change 2022-09-08 12:49:12 +10:00
saml33 c90802d729 fix token list on mobile 2022-09-08 12:36:39 +10:00
saml33 dd8f188a34 add percentage change component 2022-09-08 11:52:47 +10:00
saml33 89704f18d5 add icons to buttons 2022-09-08 10:47:59 +10:00
tjshipe b826bd74ed
Merge pull request #9 from blockworks-foundation/update-heroicons
update heroicons to latest version
2022-09-07 14:19:51 -04:00
saml33 3ccde1bd02 fix account summary layout 2022-09-07 22:00:21 +10:00
saml33 9e858968b2 update heroicons to latest version 2022-09-07 14:36:35 +10:00
saml33 de76d68f18 change tab title to balances 2022-09-05 16:32:10 +10:00
tjs b655f6176c use latest account equity for change percent 2022-09-01 13:53:57 -04:00
tjs 48670290e8 fix account value updating 2022-09-01 13:33:29 -04:00
tjs 43b1febc1a update client and handle undefined health values 2022-08-31 16:17:17 -04:00
tjs 647454dc50 remove liquidation from health label 2022-08-25 18:03:38 -04:00
tjs 0d23ceaa7a remove withdraw health in favor of free collateral 2022-08-24 18:22:04 -04:00
tjs cd2ad18ade update health labels 2022-08-24 11:58:01 -04:00
tjs f3f47a102e add init health to account summary box 2022-08-23 14:13:30 -04:00
tjs 5bde89ee81 sort deposit withdraw tokens by usdc value 2022-08-22 22:23:26 -04:00
tjs 8011f4ff8e fix buy/sell links in actions menu 2022-08-21 00:08:07 -04:00
tjs 501510eb43 fix max numbers shown in modals and swap form 2022-08-20 20:09:36 -04:00
tjs bea7dee84c move constants out of mangoStore.ts 2022-08-20 14:17:57 -04:00
tjs cade8d7872 latest client; fix health ratio in summary panel 2022-08-20 14:05:00 -04:00
tjs 5feb27c408 fix health after swap 2022-08-20 02:25:50 -04:00
tjs c7f071641d fix more issues with wallet connect and account loading 2022-08-18 18:26:03 -04:00
tjs ae324a6da5 update to latest client and program version 2022-08-18 16:50:34 -04:00
saml33 3e48d7cbc0 add max borrow amount to borrow modal list 2022-08-18 15:58:44 +10:00
tjs a7b915d071 add sheen loader for price on swap chart 2022-08-17 16:06:45 -04:00
tjs c035bc4655 remove animation from main lists 2022-08-16 18:29:24 -04:00
saml33 5dd424c8da set mango account load to false if no accounts 2022-08-16 22:20:53 +10:00
saml33 9c67b18eff single component for account charts 2022-08-16 10:16:21 +10:00
tjs 6ead35fd8a wire up borrow modal; use maint health 2022-08-15 18:18:23 -04:00
saml33 dfbed69bcf add pnl 2022-08-15 15:43:15 +10:00
saml33 7d3b16496d add interest value to token list 2022-08-14 15:11:02 +10:00
saml33 5ec3d74500 add cumulative interest chart 2022-08-13 20:44:13 +10:00
saml33 b419098e6c move trade history data to store 2022-08-13 16:06:09 +10:00
saml33 e7af834a2d move account stats fetching to store 2022-08-12 22:14:28 +10:00
tjs d17fb5dcd4 show max health ratio of 100 2022-08-11 12:29:07 -07:00
microwavedcola1 c148f5640a Adapt to latest ts/client changes
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-11 18:00:39 +02:00
saml33 284443204e update state variable names 2022-08-11 19:52:02 +10:00
saml33 51a00534f4 add total interest value 2022-08-11 16:23:18 +10:00
saml33 cc7ca4680f add account value api to portfolio 2022-08-11 14:09:58 +10:00
tjs 39ee93fb37 use updated trade history fields 2022-08-10 14:52:28 -07:00
tjs d83d29b418 use selected mango account for trade history api 2022-08-10 14:33:28 -07:00
saml33 6cc89d7386 add trade history 2022-08-10 21:17:10 +10:00
saml33 4bcf4dee72 add other account details to portfolio 2022-08-03 22:13:40 +10:00
saml33 96fa045564 add account summary 2022-08-03 12:15:17 +10:00
tjs ba39db5b9f fix link buttons 2022-08-02 15:20:27 -04:00
tjs d6d29e072b filter swap list by tokens in group 2022-08-02 14:09:29 -04:00
saml33 a560b4294e add icon to link button 2022-08-02 12:05:38 +10:00
saml33 c8330008d3 add edit account name 2022-07-28 22:13:42 +10:00
saml33 04a6722ef1 add close account modal 2022-07-28 20:51:36 +10:00
saml33 7c49882fcc more onboarding and load mango account 2022-07-28 16:35:18 +10:00
saml33 1ba4e0156d use popover for account summary 2022-07-26 21:15:07 +10:00
saml33 286a4964a0 icon drop menu 2022-07-24 21:48:55 +10:00
saml33 e5e691d9a4 add sheen loader/chart load state 2022-07-24 14:27:54 +10:00
saml33 b304ea208f start onboarding flow 2022-07-21 14:50:56 +10:00
saml33 97300d9a92 misc styling, organizing components 2022-07-15 21:09:23 +10:00
saml33 12e7b48275 add portfolio header 2022-07-15 15:20:20 +10:00