Commit Graph

142 Commits

Author SHA1 Message Date
Jared Vu
b4cc5f87ec
Add href prop to button component (#164)
* Add href prop to button component

* Use ButtonType.Link
2023-11-27 12:39:57 -08:00
Bill
549ae558e7
Default Locale to EN if not supported (#163) 2023-11-27 08:57:57 -08:00
aleka
e3da2ee4b1
update copy and other polish (#157)
* update copy and other polish

* fix mobile nav menu nested buttons

* feedback
2023-11-22 15:06:21 -05:00
Jared Vu
1dedc93a56
Mobile friendly Toast: Collapse/Close (#159) 2023-11-21 19:24:19 -08:00
Jared Vu
1427b55728
MarketsTable: Sort OpenInterest by notional, Display 24h volume as fiat value (#158)
* Fix Sort by notional, Display fiat for volume

* OpenInterest notional on top
2023-11-21 16:10:23 -08:00
Jared Vu
20521b5b3f
Add button to stack/unstack Toast notifications (#149)
* Add button to stack/unstack

* Button -> Toggle button, add offset for notifs
2023-11-20 15:12:38 -08:00
Jared Vu
532df49a06
Use new redux tradeFormInputs object for TradingForm input display values (#144)
* Redux slice for TradeFormInputs

* Move sideEffects from TradeForm to hook in Trade
2023-11-20 11:56:09 -08:00
aleka
fb65db633a
move buttons to footer in ack terms (#155) 2023-11-20 13:21:06 -05:00
aleka
0def18db07
fix sorting 24h price change in markets table (#152) 2023-11-13 09:36:32 -05:00
Jared Vu
818574cedb
Change dep in hook to fix input bug (#150) 2023-11-13 09:11:54 -05:00
aleka
3be0429a60
add back border to toggle buttons (#148) 2023-11-11 20:46:04 -08:00
aleka
b8e72246b9
add manage funds dialog and transfers form styling (#147)
* add manage funds dialog and transfers form styling

* add sticky footer backdrop

* add testnet deposit toggle
2023-11-10 20:56:27 -08:00
Jared Vu
99e708a984
Notifications Refresh (#135)
* Remove X button from tablet/mobile Notification menu

* Toast styling

* missed in merge

* .env.example

* Update abacus@1.0.9

* Add notif strings, and abaucs notif state

* Update Notification hooks, add Notification Preference controls

* Consolidate Notification into single component

* withLabel -> withTrigger prop

* nits

* OrderStatusChanged -> AbacusGenerated

* Notification OnClick

* Move Notification -> Components

* withAnimation -> $withAnimation

* Notification styling and click handle

* load state, onClick, localStorage

* add error count

* Rez localStorage Notifications

* Update TransferStatus UI

* Use Notification component for other abacusNotifs

* fix uselocalnotif query

* Default to Notification from NotificationMenu

---------

Co-authored-by: Bill He <bill@dydx.exchange>
2023-11-10 20:55:34 -08:00
aleka
876f620ada
Account menu and components improvements (#145)
* better copy button

* hide sign into mobile for production and use new copy icon button

* new checkbox
2023-11-10 22:07:29 -05:00
Bill
b9550890da
Add additional onboarding entry points (#146)
* Add additional onboarding entry points

* flex-wrap
2023-11-10 19:05:46 -08:00
aleka
3732b955f5
add sample terms of use (#138)
* add sample terms of use

* add back article mixin
2023-11-10 14:58:26 -05:00
aleka
253bfc0eff
update nav menu dropdown behavior to click instead of hover to open (#142) 2023-11-10 14:58:17 -05:00
Bill
d4bcfc0428
Fix status empty bug (#143) 2023-11-10 09:55:54 -08:00
aleka
7dec32df5e
fix 24h sort in market dropdown, table styling (#141) 2023-11-09 16:40:27 -05:00
aleka
e09d574d5b
show deposit form in mainnet onboarding (#140) 2023-11-09 15:33:16 -05:00
Bill
944fc6dc95
Handle squid rout errors (#139)
* Handle squid route errors

* bump abacus

* add dep

* address comments

* fix max

* disable slippage editor

* parse error message in abacus
2023-11-09 10:34:22 -08:00
aleka
91a97a1c68
add network select menu in restriction modals (dev) (#137) 2023-11-09 09:10:12 -05:00
aleka
c5f736d805
fix deposit dialog logic (#136) 2023-11-08 14:01:16 -05:00
Jared Vu
edc9fadfee
Add TestFlags provider and class (#132)
* Add TestFlags provider and class

* import order nit

* markets is an object and not array

* Use null coalescing op
2023-11-07 20:28:42 -08:00
aleka
5e2d426cd1
Send native tokens inclusive fee (#118)
* send dv4tnt inclusive of fees
2023-11-07 22:42:41 -05:00
Bill
766209baf1
Onboarding fixes (#131)
* Onboarding fixes

* address comments

* rebase
2023-11-07 17:18:16 -08:00
aleka
906faa554d
Surface close position input errors (#130)
* show abacus close position validation errors

* bump abacus version
2023-11-07 19:11:08 -05:00
aleka
bd03fb73ca
update mintscan tx link on transfer history table (#128)
* update mintscan tx link on transfer history table

* bump localization + fix icon button padding in header
2023-11-07 16:00:22 -05:00
John Huang
8d5bf1a721
TRCL-3128 TradePlaceOrder and TradeCancelOrder are now tracked by Abacus (#115) 2023-11-07 10:34:06 -08:00
aleka
7f3d57b46a
support multiple modes (#125) 2023-11-07 12:13:59 -05:00
Bill
c292c84c2c
Fix decimal overflow bug (#127)
* Fix decimal overflow bug

* use decimals:
2023-11-06 17:48:19 -08:00
Bill
2d37ff676b
do not use TESTNET_CHAIN_ID (#126) 2023-11-06 17:39:02 -08:00
aleka
aac024fd5e
showing negative buying power as - (#119) 2023-11-06 13:31:41 -05:00
Bill
b0db577b28
Configurable squid integrator id (#120)
* Configurable squid integrator id

* bump abacus
2023-11-03 14:18:15 -07:00
Bill
9815437a80
Account dropdown onboarding entrypoints (#113)
* Account dropdown onboarding entrypoints

* Update based on latest designs
2023-10-31 14:29:36 -07:00
aleka
890a4b2c0e
Padding fixes, markets data null fix, update .env.example (#112)
* update .env.example for token migration

* bump icon size in icon button

* add padding in rewards / fees page, panel changes

* fix markets data crashing

* fix market details overflow on tablet

* fix market filters

* prevent fees table overflow

* remove notifications close button on mobile

* fix nested button console warning

* update ToggleGroup value change logic

* panel hover impact button hover

* update dropdown icon in header
2023-10-31 17:11:46 -04:00
Bill
8d3cc76d14
Configurable URLs (#107)
* Configurable URLs

* add learnmore to tooltip

* Learnmore -> LearnMore
2023-10-31 11:02:45 -07:00
aleka
2fe6c2bb3b
reorder header, center align header, update collapse caret icons (#110) 2023-10-27 23:32:51 -04:00
aleka
e6858ca917
show loading state instead of "Unavailable" for place order button (#104)
* show loading instead of unavailable for place order button
2023-10-27 17:39:12 -04:00
aleka
d92b49f4fa
bump packages, fix missing asset symbol (#106) 2023-10-27 16:47:34 -04:00
aleka
e7da21962a
add entry point to token migration (#98)
* update migrate panel

* address feedback
2023-10-27 16:14:34 -04:00
aleka
b479531e34
update v4 docs link (#102) 2023-10-27 16:13:48 -04:00
Bill
0d4c5a547a
Abort key derivation if second signature fails (#109) 2023-10-27 11:41:00 -07:00
aleka
3fd71558c0
fix trading view error (#96)
* fix trading view error

* only init trading view if market id is first defined, and nits re fills table with empty asset
2023-10-24 17:06:00 -04:00
aleka
575856b77b
remove asset symbol for account balance logic (#95) 2023-10-23 17:51:13 -04:00
Bill
5ca923984d
Update acknowledge copies (#94)
* update acknowledgement dialog with new copies

* update
2023-10-23 13:59:04 -07:00
Bill
d97626f543
Fix auto-deposit (#93) 2023-10-23 12:02:05 -07:00
Jared Vu
835f82dbcc
Support Intercom (#92)
* Add ChatIcon

* FooterDesktop Help&Support

* HelpDialog w/ triggers

* Add other links

* item gap css var passing

* inject script

* Add quotes to script

* Close modal on select

* Remove feedback form
2023-10-20 16:30:22 -07:00
Bill
051bdda73a
update v4-client init in useDydxClient (#91)
* update v4-client init in useDydxClient

* fix nit
2023-10-20 11:00:03 -07:00
Bill
27b79957d4
Bump v4 clients (#89)
* Have tokens be configurable, bump v4-client

* bump

* chain -> chaintoken

* use cancelRawOrder

* address comments

* add TODO
2023-10-19 11:01:12 -07:00
aleka
4bacc901dc
use wallet connect config from envs (#88)
* use wallet connect config from envs

* update readme
2023-10-19 11:35:17 -04:00
aleka
82d32a91a9
fix dialog not showing up (#87) 2023-10-19 07:16:13 -07:00
aleka
2a794f9459
add empty terms + privacy pages (#80)
* add empty terms + privacy pages

* nit
2023-10-18 19:44:15 -04:00
Jared Vu
e4991cc31d
Update Abacus 0.7.0 & Misc. bug fixes (#84)
* Add Notification icon w/ stroke

* Update to abacus0.7.0

* Fix goodTilTime string

* Fix tradingView initial load

* Temp remove notif onClick

* remove isConnected state from dydxClient
2023-10-18 11:08:39 -07:00
aleka
da908c826a
Revert "Revert "remove offline message for testnet4 (#76)" (#78)" (#85)
This reverts commit 14316163e4.
2023-10-18 13:04:25 -04:00
Jared Vu
ea58b55152
Bump localStorage version to wipe EvmDerivedAddresses (#79) 2023-10-17 14:49:51 -07:00
aleka
54d65bb81c
override walletconnect explorer recs (#81) 2023-10-17 17:42:41 -04:00
aleka
14316163e4
Revert "remove offline message for testnet4 (#76)" (#78)
This reverts commit ac619a9da1.
2023-10-17 13:37:26 -04:00
aleka
ac619a9da1
remove offline message for testnet4 (#76) 2023-10-17 13:03:50 -04:00
Bill
cb7f542a99
Onboarding status do not rely on squidAPI to determine if deposit/withdraw (#73) 2023-10-16 17:35:07 -07:00
aleka
bc5569c4c9
testnet4 followup, switch offline msg (#75) 2023-10-16 17:26:29 -04:00
aleka
348e82293e
show exchange offline dialog for testnet reset (#71) 2023-10-16 13:08:54 -04:00
Jared Vu
48a48b4d70
Screen (#56)
* useDydxClient: Add screen endpoint

* Screen api in onboarding flow

* PnlChart rounding

* UnauthorizedDialog

* Add RateLimitDialog

* Update dialog open logic

* nits

* Screen before Transfer

* Validate network, remove input autofill color

* Use screenAddresses from dydxClient

* Check recipientAddresses

* lock-file

* Change Wallet Restricted Dialog to v4-blocked message

* nits

* Unused param

* consolidate environment validateFn

* Remove extra space, simplify WithdrawForm error msg

* Simply map logic, rearrange priority of screened messages

* WalletRestricted -> RestrictedWallet

* Update restriction modal title and add something went wrong

* Handle 429 rate limit
2023-10-16 09:36:09 -07:00
Bill
944cea0d3d
Hide wallet options (#70)
* Hide wallet options

* remove WC 1

* gitignore .env

* remove .env

* remove wc1
2023-10-16 09:07:35 -07:00
aleka
c40f5eb549
update about wallets link and localized string nits (#69)
* update about wallets link and localized string nits

* udpate wallet connect2 metadata
2023-10-12 17:10:51 -04:00
Bill
a05d88136d
Polishes for Onboarding (#57)
* Polishes for Onboarding

* update string

* bump packages

* address nit
2023-10-09 09:34:49 -07:00
Jared Vu
f1ca86326d
Fix GoodTil var changes (#64) 2023-10-09 08:02:32 -07:00
aleka
5d1d734c59
add config for sign typed data domain name and action for networks (#62) 2023-10-09 10:51:47 -04:00
aleka
9ba6b3d6ba
fix typo in walletconnect wallet type (#63) 2023-10-06 15:50:52 -07:00
Jared Vu
62eeab06f5
Fix marketDetails stringKey, do not update state with markets not tracked by Abacus (#61) 2023-10-06 14:12:40 -07:00
Bill
0730e71109
Do not hide rewardpage on prod (#58) 2023-10-04 22:57:39 -07:00
Bill
fdd3fbd774
Reward page (#52)
* Implement Rewards Page

* more rewards page panels

* add keplr dialog

* Finish up rewards page

* bump localization

* add to nav

* address comments

* Comment out migration work

* rename

* address comments

* add TODO
2023-10-04 13:11:35 -04:00
Jared Vu
15bf8a1b34
Update Abacus v0.6.0 (#55)
* Abacus 6: New init, deprecate asset.symbol

* deprecate asset.symbol

* Update networks constants

* filesystem

* Update networks.ts

* 0.6.0 -> 0.6.3

* Remove Market filter
2023-10-03 13:10:55 -07:00
Bill
6508a8b857
Add all squid evm networks to wagmi (#50)
* Add all squid evm networks to wagmi

* remove alchemy

* address nit
2023-10-02 18:50:39 -04:00
aleka
e10e7c10e0
fix dialog area too long on mobile (#54) 2023-10-02 13:57:41 -04:00
Bill
6c63e66bd6
bump abacus (#48)
* bump abacus

* bump again
2023-09-27 13:54:22 -04:00
Bill
50606a750f
Add Rewards abacus transactions and trade form receipt (#47)
* temp

* add into reciept

* bump localization

* add tag
2023-09-25 17:45:46 -04:00
Bill
fe46a4d927
Do not poll evm unless addressOrDenom is provided (#46) 2023-09-25 14:56:20 -04:00
Bill
68e5cb8680
Do not get token balance on withdraw (#45) 2023-09-22 17:12:54 -07:00
Bill
dea36da7bf
Use abacus for simulate transactions and balance polling (#43)
* Use abacus for simulate transactions and balance polling

* address comment

* use dydx gas token

* address nits
2023-09-22 14:21:42 -07:00
Jared Vu
f7d052f52e
Abacus Transactions Protocol (#38)
* Merge main

* MarketLinks: add key to map

* Merge stashed changes

* fix callback usage to fulfill success/error cbs

* Add Abacus analytics class

* Bump Abacus 0.4.27, Update cancelOrder to use Abacus

* Cancel order loading states

* Use latestOrderChanged to determine whether an order has been committed

* nits

* restore uncommittedOrderClientIds

* bump abacus@0.5.0

* fix for handling null testMarket
2023-09-21 09:19:01 -07:00
Bill
51906f1096
Onboarding testnet 3 and error handling (#42)
* temp

* Onboarding error handling

* address comments
2023-09-20 10:29:02 -07:00
aleka
9a230401cd
enable conditional orders in order type dropdown in prod (#41) 2023-09-18 11:19:56 -04:00
aleka
342bd2d334
remove offline exchange dialog from testnet3 prod (#40) 2023-09-15 17:49:15 -04:00
aleka
1462e37c43
temporarily shut down prod FE (#37)
* shut down fe for testnet3 prod
2023-09-13 17:01:42 -04:00
Jared Vu
986a134d07
handle composite client error (#33) 2023-09-13 09:15:22 -07:00
Jared Vu
ab454d5928
eslint (#26)
* eslint - hooks

* eslint - icons

* eslint - styles

* eslint - state
2023-09-12 09:42:38 -07:00
aleka
0f1491ac33
show exchange offline dialog for testnet2 (#32) 2023-09-12 11:29:38 -04:00
Jared Vu
1f73f3a884
v4-abacus (#31) 2023-09-11 16:56:13 -07:00
Jared Vu
419d05a0e1
Satoshi font 2 (#30)
* Use Satoshi in TvChart

* update tradingview.tgz
2023-09-11 15:59:43 -07:00
Jared Vu
0c4b605666
Add base position notional (#29) 2023-09-11 15:15:03 -07:00
James Jia - Test
4b86068d8f
Initial commit 2023-09-08 13:52:13 -07:00