Commit Graph

532 Commits

Author SHA1 Message Date
saml33 214ece99d9 focus on modal close last in tab order 2023-04-17 11:51:53 +10:00
saml33 0711c6088a full width notifications on mobile 2023-04-11 20:50:51 +10:00
tlrsssss d3b9b3ab08
Merge pull request #109 from blockworks-foundation/margin-toggle-size
retain size when toggling margin
2023-04-10 20:52:11 -04:00
tlrsssss 3d2b485cf7
Merge pull request #114 from blockworks-foundation/use-birdeye-prices
Use birdeye prices
2023-04-07 16:41:32 -04:00
saml33 cbbc1e6a1f implement pr feedback 2023-04-06 22:54:37 +10:00
saml33 ea80f1698a implement pr feedback 2023-04-06 13:24:29 +10:00
saml33 a0e4efa5bb merge main 2023-04-06 09:21:31 +10:00
Adrian Brzeziński 3bf2a7d470
list tokens from ui (#107)
* governance wip

* governance store + helpers wip

* get voter weight

* on boarding realms component

* token list wip

* pyth oracle get

* adv fields

* hidden adv fields

* create proposal fcn + mangolana

* register market wip

* list market fixes wip

* translations

* register to register trustless + layout changes

* fix layout

* match switchboard oracle

* loaders

* validation

* style components

* change icon

* copy update

* translations keys

* fix translation

* fix warning create open book market

* fix

* fix transaltion

* fix

* fix

* fix pr

* fix onboarding translation

* fix token owner record error in console

* remove axios

* generic vsr idl

* fix pr

* remove mangolana

* small folder ref

* additional prop in onboarding component

* fix translation

* fix navbar

* change order of governance in navbar

* fix proposal index

* fix pr

* remove link without href for mint

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-04-05 23:59:30 +02:00
saml33 6aec6fd144 expand perp trade activity feed details 2023-04-05 14:21:01 +10:00
saml33 3aa5b46e8d use birdeye for spot markets table 2023-04-03 21:01:17 +10:00
saml33 4ff68b31a5 retain size when toggling margin 2023-04-03 09:52:00 +10:00
saml33 dd0ba043e6 update focus styles 2023-03-27 14:11:10 +11:00
tlrsssss dda6c07903
Merge pull request #100 from blockworks-foundation/account-funding
show funding on account page
2023-03-25 14:29:09 -04:00
saml33 7cd26e9da5 add focus states and improve keyboard navigation 2023-03-24 23:22:29 +11:00
saml33 8caa115388 submit trade form on enter button press 2023-03-24 14:06:16 +11:00
saml33 7750942ca5 fix -ve available to borrow and token stats value decimals 2023-03-22 10:00:51 +11:00
saml33 e5e096ebb4 add account funding total and hourly chart 2023-03-21 21:27:37 +11:00
saml33 f8fc155225 fix wbtc token page 2023-03-20 15:40:08 +11:00
saml33 c56fc05216 swap history mobile display 2023-03-19 21:28:13 +11:00
saml33 ed157d7d09 use disclosure for mobile expanding rows 2023-03-18 23:15:01 +11:00
saml33 dcd761137a align icon size 2023-03-16 00:01:34 +13:00
saml33 31b241be19 align balances table and token list on mobile 2023-03-15 23:59:42 +13:00
saml33 f7db0c6f92 add oracle price to perp positions 2023-03-15 22:31:30 +13:00
saml33 4d5ac94b9d change perp trade labels to long/short 2023-03-11 22:35:13 +13:00
tjs 0713c3ffd7 reduce tooltip delay 2023-03-10 13:01:47 -05:00
tjs fd061dcdbf move delegate checks into useUnownedAccount hook 2023-03-04 14:17:34 -05:00
tjs e6fb6da6b0 remove backdrop brightness prop and hardcode instead 2023-03-03 09:32:28 -05:00
tjs 1d7b488cb3 margin swap modal explainer 2023-03-02 12:02:26 -05:00
tjs 3bed60af56 turn on lint errors for typescript any 2023-02-28 02:20:11 -05:00
tjs abb408678e replace any type with more defined types 2023-02-25 19:22:39 -05:00
tjs 09852aa007 improve typing to fix errors with recent trades and history 2023-02-23 16:44:54 -05:00
saml33 d33457aa91 fix available to borrow 2023-02-16 22:02:26 +11:00
tjs 57f927fc15 improve speed of updating open orders after websocket change 2023-02-13 22:38:57 -05:00
tjs 52a84a7268 more precision in chart data minmax 2023-02-13 22:35:07 -05:00
saml33 b15067a17a fix custom notification position 2023-02-14 12:57:06 +11:00
saml33 6a05e60376 hide action buttons for unowned accounts 2023-02-13 13:46:41 +11:00
saml33 508c4213a1 fix account performance data 2023-02-11 23:40:23 +11:00
tjs 0974463f00 tweak yaxis for chart data 2023-02-10 13:50:32 -05:00
saml33 180d7bf79c improve detailed charts 2023-02-10 23:55:06 +11:00
tjs 5a02f4a6f0 better y padding in acct charts 2023-02-03 16:37:52 -05:00
saml33 0e44f3a172 fix first tokenlist menu clipping 2023-02-03 21:36:44 +11:00
saml33 ad74809568 add orders to account tabs 2023-02-02 12:21:24 +11:00
saml33 d8970b02c6 add hook for banks and balances 2023-01-30 15:13:38 +11:00
saml33 52e871e566 let tables scroll horizontal if they need to 2023-01-30 10:15:03 +11:00
saml33 1288f6f659 simplify amoutwithvalue component 2023-01-29 12:13:36 +11:00
tylersssss 98c36682bd
Merge pull request #74 from blockworks-foundation/borrow-page
add borrow page
2023-01-27 21:57:12 -05:00
saml33 c1c795cb40 add borrow page 2023-01-26 23:12:03 +11:00
saml33 6a9a40f95e remove trimdecimals 2023-01-25 14:11:42 +11:00
saml33 ebf9bddfc9 remove formatfixeddecimals 2023-01-25 11:54:24 +11:00
saml33 fc1aac89e1 split functions for value/currency 2023-01-25 11:14:51 +11:00
saml33 add1924920 add to balances table 2023-01-24 16:17:08 +11:00
saml33 7f597681fd add to maxamountbuttons 2023-01-24 14:04:05 +11:00
saml33 84277736ec add to other amoutwithvalue components 2023-01-24 13:09:14 +11:00
saml33 aec60a1288 add format numeric value component 2023-01-24 12:26:14 +11:00
tjs f94bd3c656 better handle display around very small balances 2023-01-20 18:21:57 -05:00
saml33 1231a0be44 fix trade success animation for trade 2023-01-20 22:03:31 +11:00
saml33 b97a501527 disable connect buttons until group loads 2023-01-20 14:33:02 +11:00
saml33 71b40fbaf5 fix table states for unowned account 2023-01-20 14:10:15 +11:00
saml33 211bd40de1 add connect wallet empty states 2023-01-20 12:45:08 +11:00
saml33 bfaecd1716 fix chart loader heights 2023-01-20 11:56:22 +11:00
tjs 83c7382153 fix first and last padding 2023-01-19 18:17:54 -05:00
tjs 397595e501 fixes commit that shrank table padding for smaller screens 2023-01-19 18:02:48 -05:00
tjs 009b0cb59e add view counterpart to trade history table 2023-01-19 14:36:44 -05:00
tylersssss f0db2495fe
Merge branch 'main' into daily-pnl-history 2023-01-18 19:05:21 -05:00
tylersssss 3c83103b30
Merge pull request #62 from blockworks-foundation/paginate-trade-history
paginate trade history
2023-01-18 18:58:35 -05:00
tjs fd048ecfc6 fix perp position side badge 2023-01-16 22:50:31 -05:00
saml33 2c12f5c5ea add daily pnl history 2023-01-16 16:13:34 +11:00
saml33 35cd56b9fc fix trade form balance click 2023-01-16 12:27:51 +11:00
saml33 bdd03b0e0c merge main 2023-01-15 20:58:07 +11:00
saml33 ea636b8df4 add missing icon 2023-01-15 20:53:34 +11:00
tjs 38a3db06df refactor to use hook useSelectedMarket 2023-01-15 00:01:30 -05:00
saml33 c35e70ec15 format account chart y-axis 2023-01-14 22:53:28 +11:00
saml33 cb96bb1823 allow tables to scroll horizontally 2023-01-13 12:46:36 +11:00
tjs 15e0e781cf dont hardcode height width if size isn't passed into iconbutton 2023-01-11 16:34:59 -05:00
tylersssss c3f107820e
Merge branch 'main' into trade-success-animation 2023-01-11 13:11:03 -05:00
saml33 70e42b1ca0 fix flipping chart gradient direction 2023-01-11 15:39:02 +11:00
saml33 23fac7895a animate simple area chart 2023-01-11 15:32:48 +11:00
tylersssss 034d82f11d
Merge pull request #57 from blockworks-foundation/token-vault-warnings
improve token vault warnings
2023-01-10 13:32:20 -05:00
saml33 154ec6ba78 fix negative value display in detailed chart 2023-01-10 15:24:55 +11:00
saml33 ea7e148578 improve token vault warnings 2023-01-10 10:47:18 +11:00
saml33 8b00e67159 add amount with value component 2023-01-09 14:38:09 +11:00
saml33 93738b0dcc fix formatfixeddecimals rounding 2023-01-09 12:50:46 +11:00
tjs 59b724e431 add openbook history 2023-01-06 19:26:06 -05:00
tjs 50fc7593ec remove console log 2023-01-06 14:42:21 -05:00
saml33 02e3e6d132 fix country not allowed button 2023-01-06 21:55:51 +11:00
saml33 da78529b2e more rounding fixes 2023-01-06 21:32:54 +11:00
saml33 5410d12071 fix account page rounding 2023-01-06 20:30:29 +11:00
saml33 209de8a666 repay and withdraw formatting and sol balance warning spacing 2023-01-06 20:14:54 +11:00
tjs 079e622624 cleanup 2023-01-06 00:26:56 -05:00
tjs 8a04998374 show slippage msg in notifications 2023-01-05 19:44:37 -05:00
tjs a76a3f93ba Merge branch 'main' into alpha 2023-01-05 14:32:15 -05:00
tjs 8e77c37468 use latest client 2023-01-05 14:16:00 -05:00
saml33 2e736ebaf2 prevent user setup modal from closing when dismissing a notification 2023-01-05 22:21:30 +11:00
tjs d279ddfd05 fix trade history side 2023-01-04 14:36:48 -05:00
saml33 b2257d2ca1 add active connect buttons 2023-01-03 22:06:37 +11:00
tjs 1ff61d3318 check for unsettled and inorders in balances 2023-01-02 15:43:31 -05:00
saml33 3c91bbf1ef add swap success animation to trade 2023-01-02 23:19:30 +11: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
saml33 d1b2bf5c87 add withdraw context to borrow 2022-12-29 11:45:09 +11:00
saml33 48e8b2ecb9 fix modal heights and align inline notification position 2022-12-27 23:07:02 +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 dff0df6c8b remove unwanted border 2022-12-21 14:48:06 +11:00
saml33 da1ea7c5ce give open orders more horizontal space on mobile 2022-12-21 14:11:38 +11:00
saml33 20502bcd14 improve user setup on mobile 2022-12-21 12:14:35 +11:00
saml33 3df2f06fd6 full screen modals on mobile 2022-12-21 10:14:01 +11:00
saml33 2d75701050 align trade history table styles 2022-12-20 11:42:13 +11:00
tjs 2901cc804f add back token vault balance warning 2022-12-19 19:09:06 -05:00
tjs e9b9342325 add time and maker side to perp trade history 2022-12-19 12:41:11 -05:00
tjs b5a10b8909 show successful tx for 10 secs 2022-12-18 16:06:05 -05:00
tjs 6051f64215 clear opposite swap input when clicking on a balance 2022-12-18 14:44:02 -05:00
tjs 0600070db3 faster swap transition 2022-12-16 12:32:01 -05:00
tjs 6eb2d8b199 fix swap page balance click to prefill 2022-12-16 12:30:46 -05:00
saml33 82cefb7137 add theme switcher 2022-12-16 22:26:42 +11:00
saml33 4fd02a4014 finish delegate modal 2022-12-16 14:16:05 +11:00
tjs 1f7c6667f7 update fn name to better describe functionality and return value 2022-12-14 16:24:08 -05:00
tjs 49001d5ae8 handle updating price for tradeForm when on limit vs market order 2022-12-14 15:54:30 -05:00
tjs 5095f5534b fix detailed area chart fill gradient 2022-12-13 22:23:54 -05:00
tylersssss 0fbafa9c07
Merge pull request #37 from blockworks-foundation/new-font-expanded
New font expanded
2022-12-13 22:23:35 -05:00
saml33 0013266d3a fix spacing 2022-12-14 13:23:01 +11:00
saml33 52a5c08292 token stats chart height 2022-12-14 12:25:30 +11:00
saml33 30b86aaa23 merge main 2022-12-14 10:16:50 +11: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 776c581c75 update copy and icon 2022-12-12 10:21:40 +11:00
saml33 255a6ff73d remove console.log 2022-12-11 21:12:54 +11:00
saml33 fda8dac2b2 handle empty token/stats api data 2022-12-11 21:10:11 +11:00
tjs e0af9766c5 fix LogoWithFallback 2022-12-09 18:08:15 -05:00
tjs a9716a2181 add LogoWithFallback 2022-12-09 17:58:49 -05:00
saml33 536939df1c style dashboard 2022-12-09 14:07:28 +11:00
saml33 084c945bd4 add borrow tooltips to swap review 2022-12-09 10:42:55 +11:00
tjs 6696594cdb add dashboard 2022-12-08 17:13:06 -05:00
saml33 f4871fe8d2 tweak trade form spacing 2022-12-08 22:55:31 +11:00
saml33 17156fd87f move swap borrow amount info 2022-12-08 22:15:16 +11:00
tjs 20af1810b0 wip: perp position settle funds 2022-12-08 01:47:32 -05:00
tjs b53c4830f9 use new funding rate api endpoint
fix balance underline; simplify health impact by removing confusing parenthesis
2022-12-07 22:24:18 -05:00
saml33 6c58288995 handle null values in chart 2022-12-08 10:19:18 +11:00
tjs 41223e846c allow setting the amount out in jupiter swap 2022-12-07 16:33:38 -05:00
saml33 4088011a71 fix chart font size 2022-12-07 09:52:36 +11:00
saml33 7b58e9ce6d add token stats charts 2022-12-06 22:58:22 +11:00
saml33 5102129a49 add total deposit/borrow value charts 2022-12-06 14:23:22 +11:00
saml33 8dd1363212 olive and high contrast theme 2022-12-05 21:59:56 +11:00
saml33 1768483ca1 use theme css vars instead of hardcoded rgba 2022-12-04 20:21:32 +11:00
saml33 e553b07dbd more theme color changes 2022-12-02 22:28:46 +11:00
saml33 4660d04041 add order value to trade form 2022-12-02 13:16:59 +11:00
saml33 a9526cff9e merge main 2022-12-02 10:14:10 +11:00
saml33 2b27464d6e use select for theme selection 2022-12-01 16:21:28 +11: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 443858dc36 add market favorites 2022-11-30 15:01:55 +11:00
saml33 44022ae602 token vault balance warnings 2022-11-27 23:36:12 +11:00
saml33 f9f86b529d add slippage to trade form 2022-11-25 21:10:23 +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 37df58f959 use settings for slider or buttons to swap 2022-11-23 14:31:50 +11:00
saml33 973e72ca2e round balance table click to minordersize/ticksize 2022-11-23 12:45:26 +11:00
saml33 890c9f23aa open orders mobile 2022-11-23 10:43:25 +11:00
saml33 51fde8723a interest earned rounding 2022-11-22 16:14:35 +11:00
tjs 529709f30e slightly better error messages 2022-11-21 17:06:40 -05:00
saml33 378c86ef8b open orders mobile styling 2022-11-21 21:37:31 +11:00
saml33 e83e26c17d align balance table formatting to token list 2022-11-21 16:01:44 +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
tjs 2608a661e5 refactor to use selected market hook 2022-11-20 15:20:27 -05:00
saml33 aa244735b1 use $ value for chart change 2022-11-20 22:23:23 +11:00
saml33 7f57e59f44 use table components 2022-11-20 21:44:14 +11:00
tjs 561eba493b fix all eslint errors 2022-11-19 14:20:36 -05: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
tjs 185ab4748b revert to coingecko for swap and prices.
we'll use birdeye only for candles
2022-11-18 11:29:37 -05:00
saml33 777e020648 add low sol balance warnings 2022-11-18 15:43:23 +11:00
tjs 27f821c51c simplify balance click feature 2022-11-17 17:47:22 -05:00
tjs 1de3e4756e render Balances component 2022-11-17 17:28:02 -05:00
tjs 1d95b280e2 update balances table name to be clearer 2022-11-17 17:16:45 -05:00
tjs 7b48469827 patch merge issues 2022-11-17 17:08:45 -05:00
tylersssss 6c95cf19fb
Merge pull request #29 from blockworks-foundation/trade-balance-click
populate trade form from balances table
2022-11-17 16:51:08 -05:00
tylersssss 95df906a76
Merge branch 'main' into repay-modal 2022-11-17 16:47:27 -05:00
saml33 8bd4d2e976 fix market price 2022-11-17 20:17:58 +11:00
saml33 c4e55e2a7e fix low sol balance warning 2022-11-17 14:51:08 +11:00
saml33 c9b94f4e55 fix modals 2022-11-17 13:18:50 +11:00
saml33 903884b732 add sol balance hook 2022-11-17 12:53:33 +11:00
tjs e33592fb77 use latest headlessui modal layout 2022-11-16 10:23:44 -05:00
saml33 41e1c16fea add repay borrow modal 2022-11-16 23:14:53 +11:00
saml33 332dacbad3 populate trade form from balances table 2022-11-16 16:09:55 +11:00
tylersssss f78ebae5c8
Merge branch 'main' into use-birdeye-api 2022-11-14 19:59:21 -05:00
saml33 7041b3b4d1 fix trade page responsive 2022-11-14 21:18:38 +11:00
saml33 2650622fe3 add health impact tooltip 2022-11-14 15:56:18 +11:00
saml33 fca7d81dda merge main 2022-11-14 09:57:19 +11:00
saml33 8a6706e142 merge main 2022-11-11 22:39:14 +11:00
saml33 28c0fed1c7 use birdeye for serum market price history 2022-11-05 18:13:24 +00:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
saml33 68226acaa0 balances empty state 2022-11-04 13:14:50 +00:00
saml33 bdbad18b9f Merge branch 'main' into onboarding-redesign 2022-11-02 16:24:54 +00:00
saml33 4383fefd1f add copy account address 2022-11-02 15:50:03 +00:00
saml33 f3dc836b0a redirect to account page on new account 2022-11-02 12:58:40 +04:00
saml33 e6ff01a1df clear all notifications 2022-11-02 10:53:26 +04:00
saml33 de32ecd586 basic layout 2022-11-02 08:41:12 +04:00