eddie
b6bdbcf587
test: mock http requests in jest ( #7394 )
...
* test: try no coverage for unit tests
* test: onlychanged
* test: try parallel
* fix: no http in unit tests
* fix: deduplicate
* fix: nock only
* fix: maxworkers 2
* fix: remove nock
* fix: restore nock
* fix: comment
* fix: try again with jest-offline
* fix: remove jest-offline
* test: try 2 again
* fix: 100%
2023-10-03 14:37:27 -07:00
Tina
c7a8e9e5a7
feat: Quick routes ( #7348 )
...
* wip, added PreviewTrade and now amending request arg type
* updates
* update logic to progress to swap review screen
* add token tax info to preview trades
* add loading component
* add feature flag and fix analytics and perf stuff
* update debounce amount
* add latencyMs measure
* change types
* add inline comments
* actually pass in feature flags
* dep array
* fix snapshot and unit tests
* fix unit tests
* update font color for loading text
* remove all chains feature flag
* remove from feature flag modal
* dont flicker review modal when allowance is loading
* remove comment
* add snapshot tests
* triple equals
* add comment
* change cast
2023-09-29 12:20:10 -04:00
Zach Pomerantz
ed87df6269
feat: account suspense ( #7337 )
...
* feat: eagerly connect outside of react lifecycle
* test: reflect selected wallet in localStorage
* test: spy only on portfolio balances
* feat: connectionReady
* feat: connecting state
* feat: leave space for address
* fix tests
* better meta
* fix
* fix wallet change
* add interactivity earlier
* add validation
* update localstorage key in cypress setup
* even less thrash
* load per account
* simplify, hopefully
* explanatory
* inf render
* whoopsie
* ordering
2023-09-22 09:57:35 -07:00
Zach Pomerantz
08501234a8
build: replace babel with swc ( #7056 )
...
* chore: refactor ms.macro to ms
* build: upgrade lingui@4
* chore: avoid styled-components/macro
* build: replace babel loader with swc
* build: upgrade vanilla-extract
* build: simplify e2e config
* build: migrate jest to swc
* build: dedup
* whoops
* fix: initial translations
* build: coverage
* build: ignore static extract warning
* build: rm old babel pkg
* test: rm e2e codecov
* build: fix swc cache
* cleanup
* fix visible t9ns
* cleanup
* cleanup setup
* crank it
* actual merge conflict resolution
* fix: restore locale initialization
2023-08-08 10:38:37 -07:00
cartcrom
f55062f9a9
test: mock quotes to avoid errors logged ( #7031 )
2023-07-28 11:39:49 -04:00
Mike Grabowski
c07c401189
feat: add animation to Settings menu ( #6617 )
...
* feat: add price impact back
* chore: update tes tname
* chore: update snapshot for price impact
* fix
* fix
* update snapshot after rebase
* update snapshot
* chore: finish
* chore: remove snapshot
* feat: add test matcher
* cleanup
* chore: add animation test
* add comment
* update comment
2023-05-24 22:02:59 +04:00
Vignesh Mohankumar
d73763ce75
refactor: imports shared polyfills in setupTests ( #6571 )
2023-05-15 17:11:28 -04:00
Zach Pomerantz
fe6df38997
build: upgrade to webpack5 with polyfilled Buffer ( #6568 )
...
* fix: Revert "fix: Revert "build: upgrade to webpack 5 (#6459 )" (#6566 )"
This reverts commit 5e591455b38c9618c750a23bc2a63cdcc30dba57.
* build: polyfill Buffer
* docs: fix comment negation
2023-05-15 14:07:05 -07:00
Vignesh Mohankumar
93fe8e4349
fix: polyfill ResizeObserver ( #6553 )
...
* polyfill
* lint
* polyfill test
* dedupe
2023-05-15 12:39:31 -04:00
Vignesh Mohankumar
2f80646ddd
fix: add chunkResponseStatus tag ( #6509 )
...
* fix: add chunkResponseStatus tag
* add-tests
* fix tests
* tests
* description
* comments
* comment
* move
* comment
* lint
2023-05-09 17:44:58 -04:00
Zach Pomerantz
924e83139b
test: keep test output clean ( #6469 )
2023-05-01 10:58:32 -07:00
lynn
9b52fea58a
test: swap details dropdown unit test ( #6349 )
...
* init for swap details dropdown test
* more tests
* complete tests, ready for review
* add to dev deps
* init
* merge main
* init
* use test constants
* use constants
* change address
* more comprehensive tests
* merge with constants
* move noop
* add eslint rule
* return null in noop
* merge
* update snapshot
* constant name
* snapshot change
* lint
* undo eslint change
* Update src/components/swap/SwapDetailsDropdown.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/components/swap/SwapDetailsDropdown.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/components/swap/SwapDetailsDropdown.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* respond comments
* update snapshot
* merge main
* user event instead
* add act
* import fix
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-04-27 16:53:45 -04:00
Zach Pomerantz
963121f19b
test: prevent async debounce updates ( #6427 )
...
* test: prevent async debounce updates
* lint
* fix: actually fix
* fix: rm unused act
* fix: synchronously update popper
* lint
* way better
2023-04-24 16:26:28 -07:00
Zach Pomerantz
4966ee56dd
fix: mock useWeb3React ( #6422 )
...
* fix: mock useWeb3React
* fix: pr nits
* fix: do not import for perf
* fix: update snaps
* fix: import type
* Revert "fix: import type"
This reverts commit d7da5a04d1951a50d997005059077e482dd6e97c.
2023-04-24 12:43:55 -07:00
cartcrom
32e6237624
feat: ✨ 🤑 Portfolios 🖼 ✨ ( #6216 )
...
* feat: squash mgtm differences w/ public repo into new base commit to fix rebase issues going forward
* feat: new settings menu (#85 )
* feat: new settings flow
* feat: add statsig geo gate for MGTM assets (#91 )
* init
* feat: geo-gate mgtm features & wallet tab
* feat: new theme toggle (#86 )
* feat: new theme toggle
* fix: import
* refactor: polish
* refactor: use enum instead of string union
* feat: mini portfolio tabs (#88 )
* feat: mini portfolio tabs
* feat: feature flag
* feat: portfolio query (#89 )
* feat: portfolio balance query
* polish
* fix: added todo for api key
* feat: tokens mini-portfolio tab (#93 )
* feat: tokens tab
* fix: lint
* fix: pr comment polish
* fix: snapshot update
* feat: common portfolio row component (#99 )
* feat: porfolio row component
* fix: updated layout
* feat: update token row design (#100 )
* feat: porfolio row component
* fix: updated layout
* fix: updated tokens tab to latest design
* fix: unnused export
* feat: dropdown drawer (#95 )
* inital drawer
* feat: animated drawer
* fix: attempt animation perf fix
* fix: lint
* feat: better animations
* fix: scrim
* refactor: const name
* test: update chain switcher test
* test: update chain switcher test id
* feat: Add NFT tab for mini porftolio (#104 )
* add NFT tab
* add min width to verified icon size
* add keyArgs to nftBalances query so that different callers dont override query cache
* revert yarn node changes
* use flex shrink
* move styled components to top
* navigate to nft page
* update snapshot test after adding gap to Row
* Update src/components/WalletDropdown/MiniPortfolio/NFT.tsx
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
---------
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
* fix scroll behavior (#105 )
* feat: portfolio loading state (#106 )
* feat: loading state for token row
* fix: revert hardcoded loading states
* fix: removed unused component
* feat: activity feed tab (#103 )
* init
* feat: ens avatars
* feat: etherscan api experiment
* fix: ignore error policy
* polish
* fix: query pageSize
* fix: revert redux change
* fix: small polish item
* fix: pr comments
* fix: translated activity titles
* fix: typing and todo comment
* todo comment
* fix: accidental chain name mismatch
* feat: remove dropdown chevron (#110 )
* feat: small drawer UI updates (#109 )
* feat: small changes
* fix: resize status icon w/ ens
* fix: commented css
* feat: activity loading state (#108 )
* feat: activity loading state
* fix: unused wrapper
* fix: activity/nftbalance cache overlap
* fix: mp sidebar width adjustment (#112 )
* fix: mp sidebar width adjustment
* fix: navbar breakpoints
* feat: nav bar MenuDropdown updates (#107 )
* feat: nav bar MenuDropdown updates
* fix: pool breakpoints
* fix: pool in menu dropdown
* fix: lints
* fix: tests
* feat: swap click updates (#111 )
* feat: swap click updates
* fix: updates
* fix: simplify
* fix: snapshots
* fix: snapshots
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* fix: MP scrollbar (#115 )
* feat: hide small balances in token list (#116 )
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* chore: merge
* fix: updates
* feat: show the hidden tokens at the bottom
* feat: empty balance state for tokens (#118 )
* feat: empty balance state for tokens
* fix: balance change check
* fix: token inputs on TDP widget (#120 )
* feat: remove quick swap button (#125 )
* fix: nft activity descriptor (#119 )
* fix: improper substring usage error
* pr comments + small fix
* feat: add mini portfolio events (#126 )
* add events
* fix failing snapshot test
* incorporate eddie comment
* fix chain switching (#127 )
* feat: pre-parse activity to catch errors (#129 )
* feat: update wallet option icons (#128 )
* feat: update wallet option icons
* feat: theme-aware injected logo, svg logos
* fix: rabby extension
* feat: uni icons avatars (#130 )
* feat: update wallet option icons
* feat: theme-aware injected logo, svg logos
* fix: rabby extension
* feat: update avatar / icon logic
* fix: remove testing hardcoded socks balance
* fix: add isTrustWallet check
* feat: pools tab (#122 )
* init
* feat: working cross-chain calls
* feat: inline range text
* feat: better multicall perf
* feat: loading state
* feat: pools persist between mounts
* feat: polish
* fix: small refactors
* remove stuff to split into sep pr
* fix: remove comment
* fix: judo PR comments
* fix: currencyKey case
* fix: eddie's comment
* fix (#134 )
* feat: removed microsite content, updated responsiveness for wallet tab (#137 )
* fix: injector unit tests (#136 )
* fix: injector unit tests
* fix: lint
---------
Co-authored-by: cartcrom <cartergcromer@gmail.com>
* feat: toggle closed positions (#138 )
* rename file
* refactored hidden row to use for closed positions
* fix: remove unnused atom
* fix: lint
* feat: MP tab empty states (#132 )
* feat: squash mgtm differences w/ public repo into new base commit to fix rebase issues going forward
* feat: new settings menu (#85 )
* feat: new settings flow
* feat: add statsig geo gate for MGTM assets (#91 )
* init
* feat: geo-gate mgtm features & wallet tab
* feat: new theme toggle (#86 )
* feat: new theme toggle
* fix: import
* refactor: polish
* refactor: use enum instead of string union
* feat: mini portfolio tabs (#88 )
* feat: mini portfolio tabs
* feat: feature flag
* feat: portfolio query (#89 )
* feat: portfolio balance query
* polish
* fix: added todo for api key
* feat: tokens mini-portfolio tab (#93 )
* feat: tokens tab
* fix: lint
* fix: pr comment polish
* fix: snapshot update
* feat: common portfolio row component (#99 )
* feat: porfolio row component
* fix: updated layout
* feat: update token row design (#100 )
* feat: porfolio row component
* fix: updated layout
* fix: updated tokens tab to latest design
* fix: unnused export
* feat: dropdown drawer (#95 )
* inital drawer
* feat: animated drawer
* fix: attempt animation perf fix
* fix: lint
* feat: better animations
* fix: scrim
* refactor: const name
* test: update chain switcher test
* test: update chain switcher test id
* feat: Add NFT tab for mini porftolio (#104 )
* add NFT tab
* add min width to verified icon size
* add keyArgs to nftBalances query so that different callers dont override query cache
* revert yarn node changes
* use flex shrink
* move styled components to top
* navigate to nft page
* update snapshot test after adding gap to Row
* Update src/components/WalletDropdown/MiniPortfolio/NFT.tsx
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
---------
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
* fix scroll behavior (#105 )
* feat: portfolio loading state (#106 )
* feat: loading state for token row
* fix: revert hardcoded loading states
* fix: removed unused component
* feat: activity feed tab (#103 )
* init
* feat: ens avatars
* feat: etherscan api experiment
* fix: ignore error policy
* polish
* fix: query pageSize
* fix: revert redux change
* fix: small polish item
* fix: pr comments
* fix: translated activity titles
* fix: typing and todo comment
* todo comment
* fix: accidental chain name mismatch
* feat: remove dropdown chevron (#110 )
* feat: small drawer UI updates (#109 )
* feat: small changes
* fix: resize status icon w/ ens
* fix: commented css
* init
* feat: working cross-chain calls
* feat: inline range text
* feat: better multicall perf
* feat: activity loading state (#108 )
* feat: activity loading state
* fix: unused wrapper
* feat: loading state
* feat: pools persist between mounts
* fix: activity/nftbalance cache overlap
* fix: mp sidebar width adjustment (#112 )
* fix: mp sidebar width adjustment
* fix: navbar breakpoints
* feat: nav bar MenuDropdown updates (#107 )
* feat: nav bar MenuDropdown updates
* fix: pool breakpoints
* fix: pool in menu dropdown
* fix: lints
* fix: tests
* feat: swap click updates (#111 )
* feat: swap click updates
* fix: updates
* fix: simplify
* fix: snapshots
* fix: snapshots
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* fix: MP scrollbar (#115 )
* feat: hide small balances in token list (#116 )
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* chore: merge
* fix: updates
* feat: show the hidden tokens at the bottom
* feat: empty balance state for tokens (#118 )
* feat: empty balance state for tokens
* fix: balance change check
* fix: token inputs on TDP widget (#120 )
* feat: polish
* fix: small refactors
* remove stuff to split into sep pr
* fix: remove comment
* feat: remove quick swap button (#125 )
* fix: nft activity descriptor (#119 )
* fix: improper substring usage error
* pr comments + small fix
* feat: add mini portfolio events (#126 )
* add events
* fix failing snapshot test
* incorporate eddie comment
* fix chain switching (#127 )
* feat: pre-parse activity to catch errors (#129 )
* fix: activity/nftbalance cache overlap
* fix: mp sidebar width adjustment (#112 )
* fix: mp sidebar width adjustment
* fix: navbar breakpoints
* feat: nav bar MenuDropdown updates (#107 )
* feat: nav bar MenuDropdown updates
* fix: pool breakpoints
* fix: pool in menu dropdown
* fix: lints
* fix: tests
* feat: swap click updates (#111 )
* feat: swap click updates
* fix: updates
* fix: simplify
* fix: snapshots
* fix: snapshots
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* fix: MP scrollbar (#115 )
* feat: hide small balances in token list (#116 )
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* chore: merge
* fix: updates
* feat: show the hidden tokens at the bottom
* feat: empty balance state for tokens (#118 )
* feat: empty balance state for tokens
* fix: balance change check
* fix: token inputs on TDP widget (#120 )
* feat: remove quick swap button (#125 )
* fix: nft activity descriptor (#119 )
* fix: improper substring usage error
* pr comments + small fix
* feat: add mini portfolio events (#126 )
* add events
* fix failing snapshot test
* incorporate eddie comment
* fix chain switching (#127 )
* feat: pre-parse activity to catch errors (#129 )
* feat: start empty state updates
* feat: update wallet option icons (#128 )
* feat: update wallet option icons
* feat: theme-aware injected logo, svg logos
* fix: rabby extension
* feat: empty wallet states w/ good positioning
* feat: finish empty states w/ theme aware icons
* fix: judo PR comments
* fix: currencyKey case
* feat: uni icons avatars (#130 )
* feat: update wallet option icons
* feat: theme-aware injected logo, svg logos
* fix: rabby extension
* feat: update avatar / icon logic
* fix: remove testing hardcoded socks balance
* fix: add isTrustWallet check
* fix: eddie's comment
* feat: pools tab (#122 )
* init
* feat: working cross-chain calls
* feat: inline range text
* feat: better multicall perf
* feat: loading state
* feat: pools persist between mounts
* feat: polish
* fix: small refactors
* remove stuff to split into sep pr
* fix: remove comment
* fix: judo PR comments
* fix: currencyKey case
* fix: eddie's comment
* fix (#134 )
* feat: removed microsite content, updated responsiveness for wallet tab (#137 )
* fix: injector unit tests (#136 )
* fix: injector unit tests
* fix: lint
---------
Co-authored-by: cartcrom <cartergcromer@gmail.com>
* fix: pool loading state
* fix: simplify pools loading state
* fix: removed unused var
* feat: toggle closed positions (#138 )
* rename file
* refactored hidden row to use for closed positions
* fix: remove unnused atom
* fix: lint
* fix: dry
* fix: lint
* fix: address review comments
* fix: lints
* fix: bad merge
---------
Co-authored-by: cartcrom <cartergcromer@gmail.com>
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
Co-authored-by: lynn <41491154+lynnshaoyu@users.noreply.github.com>
* make sure mp is above tax service banner (#142 )
* feat: add git version number to settings menu (#141 )
* fix: remove unicon tooltip (#146 )
* feat: remove unicon tooltip from mobile and timer prop
* fix: flip bool logic
* fix: small nits for mp from fred (#150 )
* fixes
* fix
* feat: Local tx activity (#148 )
* local swap working
* feat: cross-chain
* fix: revert query changes
* feat: local approvals
* feat: wrapped activity
* feat: local lp tx history
* fix: add doc comment
* fix: linted
* fix: no pools render error (#152 )
* feat: mp activity feed design tweaks (#145 )
* feat: squash mgtm differences w/ public repo into new base commit to fix rebase issues going forward
* feat: new settings menu (#85 )
* feat: new settings flow
* feat: add statsig geo gate for MGTM assets (#91 )
* init
* feat: geo-gate mgtm features & wallet tab
* feat: new theme toggle (#86 )
* feat: new theme toggle
* fix: import
* refactor: polish
* refactor: use enum instead of string union
* feat: mini portfolio tabs (#88 )
* feat: mini portfolio tabs
* feat: feature flag
* feat: portfolio query (#89 )
* feat: portfolio balance query
* polish
* fix: added todo for api key
* feat: tokens mini-portfolio tab (#93 )
* feat: tokens tab
* fix: lint
* fix: pr comment polish
* fix: snapshot update
* feat: common portfolio row component (#99 )
* feat: porfolio row component
* fix: updated layout
* feat: update token row design (#100 )
* feat: porfolio row component
* fix: updated layout
* fix: updated tokens tab to latest design
* fix: unnused export
* feat: dropdown drawer (#95 )
* inital drawer
* feat: animated drawer
* fix: attempt animation perf fix
* fix: lint
* feat: better animations
* fix: scrim
* refactor: const name
* test: update chain switcher test
* test: update chain switcher test id
* feat: Add NFT tab for mini porftolio (#104 )
* add NFT tab
* add min width to verified icon size
* add keyArgs to nftBalances query so that different callers dont override query cache
* revert yarn node changes
* use flex shrink
* move styled components to top
* navigate to nft page
* update snapshot test after adding gap to Row
* Update src/components/WalletDropdown/MiniPortfolio/NFT.tsx
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
---------
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
* fix scroll behavior (#105 )
* feat: portfolio loading state (#106 )
* feat: loading state for token row
* fix: revert hardcoded loading states
* fix: removed unused component
* feat: activity feed tab (#103 )
* init
* feat: ens avatars
* feat: etherscan api experiment
* fix: ignore error policy
* polish
* fix: query pageSize
* fix: revert redux change
* fix: small polish item
* fix: pr comments
* fix: translated activity titles
* fix: typing and todo comment
* todo comment
* fix: accidental chain name mismatch
* feat: remove dropdown chevron (#110 )
* feat: small drawer UI updates (#109 )
* feat: small changes
* fix: resize status icon w/ ens
* fix: commented css
* feat: activity loading state (#108 )
* feat: activity loading state
* fix: unused wrapper
* fix: activity/nftbalance cache overlap
* fix: mp sidebar width adjustment (#112 )
* fix: mp sidebar width adjustment
* fix: navbar breakpoints
* feat: nav bar MenuDropdown updates (#107 )
* feat: nav bar MenuDropdown updates
* fix: pool breakpoints
* fix: pool in menu dropdown
* fix: lints
* fix: tests
* feat: swap click updates (#111 )
* feat: swap click updates
* fix: updates
* fix: simplify
* fix: snapshots
* fix: snapshots
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* fix: MP scrollbar (#115 )
* feat: hide small balances in token list (#116 )
* feat: collapse button (#113 )
* feat: collapse button
* fix: esc keypress and animation
* chore: merge
* fix: updates
* feat: show the hidden tokens at the bottom
* feat: empty balance state for tokens (#118 )
* feat: empty balance state for tokens
* fix: balance change check
* fix: token inputs on TDP widget (#120 )
* feat: remove quick swap button (#125 )
* fix: nft activity descriptor (#119 )
* fix: improper substring usage error
* pr comments + small fix
* feat: add mini portfolio events (#126 )
* add events
* fix failing snapshot test
* incorporate eddie comment
* fix chain switching (#127 )
* feat: pre-parse activity to catch errors (#129 )
* feat: update wallet option icons (#128 )
* feat: update wallet option icons
* feat: theme-aware injected logo, svg logos
* fix: rabby extension
* wip
* feat: uni icons avatars (#130 )
* feat: update wallet option icons
* feat: theme-aware injected logo, svg logos
* fix: rabby extension
* feat: update avatar / icon logic
* fix: remove testing hardcoded socks balance
* fix: add isTrustWallet check
* feat: pools tab (#122 )
* init
* feat: working cross-chain calls
* feat: inline range text
* feat: better multicall perf
* feat: loading state
* feat: pools persist between mounts
* feat: polish
* fix: small refactors
* remove stuff to split into sep pr
* fix: remove comment
* fix: judo PR comments
* fix: currencyKey case
* fix: eddie's comment
* fix (#134 )
* wip with activity status icons
* feat: removed microsite content, updated responsiveness for wallet tab (#137 )
* fix: injector unit tests (#136 )
* fix: injector unit tests
* fix: lint
---------
Co-authored-by: cartcrom <cartergcromer@gmail.com>
* temp
* in progress
* text, and activity status changes working. missing logo changes
* fix lint issues
* refactor: square logo location
* feat: merge other activity changes
---------
Co-authored-by: cartcrom <cartergcromer@gmail.com>
Co-authored-by: cartcrom <39385577+cartcrom@users.noreply.github.com>
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
Co-authored-by: eddie <66155195+just-toby@users.noreply.github.com>
* feat: portfolio polling/refetching/performance (#154 )
* init
* feat: implement asset polling & tx updating balances
* add refetching to activity tab
* fix: re-add error policy
* fix: add TODO
* fix: fix scroll + console warnings on mini portfolio nfts (#155 )
* fixes
* rename
* init (#158 )
* fix: browser wallet icons (#156 )
* fix: moved border radius css (#157 )
* feat: token details state for BNB (#151 )
* fix: update token details missing flow
* refactor
* fix: lint
* fix: add bnb to queries
* feat: add comment explaining unsupported chains
* fix: remove buy crypto animation (#160 )
* fix: price display pools tab (#159 )
* fix: price display pools tab
* fix: lint
* feat: pools tab performance (#123 )
* init
* fix: pr comments
* update cache return type
* refactor: rename type
* fix: further pr comments
* fix: remove stringify
* refactor: readability and caching
* fix: zach pr comments
* fix: removed hardcoded value
* feat: catch position errors for chains
* fix: add todo comment for followup ticket
* fix: build issue from merge conflict
* refactor: split up token caching function
* feat: separate array slicing into util with tests
* feat: close wallet drawer on wallet connection (#161 )
* feat: close wallet drawer on wallet connection
* feat: added comment explaining fetchPolicy
* fix: only close if open
* refactor: add comment about ref
* fix: revert change to useAllTokens & rename with more descriptive name (#163 )
* fix: square Arbitrum logo design changes (#162 )
* feat: close wallet drawer on wallet connection
* feat: added comment explaining fetchPolicy
* fix: only close if open
* init
* fixes
* fix border radius
---------
Co-authored-by: cartcrom <cartergcromer@gmail.com>
* fix: token loading state (#165 )
* fix: remove unnused code and comments
* fix: privacy policy date
* fix: revert readme change
* fix: remove unnused FOR file
* fix: missed query id
* fix: add id to portfolios query
* fix: widget cypress test
---------
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
Co-authored-by: eddie <66155195+just-toby@users.noreply.github.com>
Co-authored-by: lynn <41491154+lynnshaoyu@users.noreply.github.com>
2023-03-22 11:29:26 -04:00
Vignesh Mohankumar
4649051843
build: add global jest-styled-components config ( #4148 )
...
* add test.config.ts
* don't need per file
* comment
* ts -> js
* rm test.config.js?
* update snapshots
* update jest-styled-components
2022-07-20 15:27:40 -04:00
Zach Pomerantz
c16e49e774
feat: service worker with etag cache ( #3897 )
...
* fix: always-fresh service worker cache
* chore: clarify service-worker
* fix: cache in CacheStorage
* feat: set __isDocumentCached
* add back in manifest precaching
* add unit tests (incomplete)
* test: simplify test env
* test: add service-worker cypress test
* test: service-worker document handler
* fix: CachedDocument ctor
* fix: Readable for ReadableStream in jest
* build: clean up module loading
* fix: rename commands->ethereum
* build: simplify package.json deps
* build: clean up cypress usage
* build: clean up yarn.lock
* build: record cypress runs
* build: disable chromeWebSecurity in cypress tests
* build: rm babel
* build: disable sw in ci cypress
* build: nits
* build: update workbox version
* chore: fix merge
* test: cache
* test: cypress-ify the before hook
* test: clear sw before each test
* fix: cy then
* test: cypress shenanigans
* style: lint
* chore: rm todo
* test: fail fast for service worker with dev builds
* docs: update contributing to tests
* fix: clean up tests after merge
- Add fast fail in case of dev server, which lacks ServiceWorker
* fix: inject ethereum
* test: service worker
* test: increase sw timeout
* test: sw state
* test: run cypress in chrome
* feat: add on-demand caching to improve sw startup time
* test: test dynamically
* fix: simplify cached doc
* fix: optional sw
* fix: expose response on cached doc
* fix: stub out sw req
* fix: intercept
Co-authored-by: Christine Legge <christine.legge@uniswap.org>
2022-06-14 15:40:52 -04:00
Zach Pomerantz
22136b2708
build: clean up module loading ( #3898 )
...
* build: clean up module loading
* fix: rename commands->ethereum
* build: simplify package.json deps
* build: clean up cypress usage
* build: clean up yarn.lock
* build: record cypress runs
* build: disable chromeWebSecurity in cypress tests
* build: rm babel
* build: disable sw in ci cypress
* build: use dev env for e2e
* build: reenable web security
2022-06-09 14:39:38 -04:00
Justin Domingue
cd22955817
feat: routing api integration ( #2116 )
...
* initial routing api integration
* add routing api slice
* display route in dialog
* addressed pr feedback
* improved routing
* switch to `get`
* first pass at integration new MultiRouteTrade
* initial implementation of RoutingDiagram
* add RoutingDiagram tests
* improve tests in RoutingDiagram
* integrate with v3-sdk 3.3.1
* removed references to MultiRouteTrade
* revert swapcallback
* fix abi compilation error
* added useRoute hook to build a Route from edges and nodes
* added react-hooks-testing-library
* integrated latest changes
* renamed router hook to routerTrade
* improve integration
* fixed routing
* usability
* mock RoutingDiagram children to reduce size
* undo mocked children
* adjust ui
* better support long routes
* use routing api logo and adjust ux
* set default percent to 0
* added intermediary hook to combine local and routing api trades
* added intermediary hook to combine local and routing api trades
* make account optional
* improve ux
* improve router
* fixed duplicate pool bug and inputAmount undefined bug
* extract input/outputAmounts from routes
* add todo
* fixed uninitialized issue and added %
* fixed tests
* fix duplicate pool bug
* added routing api setting
* change router label based on router version
* improve useRoutes and fix duplicate pool bug
* debounce routing api/local routing
* removed single hop setting
* fix bug when moving between v2/v3
* consider isUnitialized non loading
* ui fixes
* reverted change to usedebounce
* use new route schema
* visual updates
* log quoteId for polish session
* fix: persist advanced swap details toggle state
* fix no route found
* poll every 10s
* derive currencies from pool rather than input
* polish query status handling in useRouterTrade
* removed RouterVersion
* update ui
* update ui
* update loading state
* animate auto router
* apply loading treatment to out
* disable routing api on l2 and support auto slippage
* use opacity on the whole element
* show loading card when syncing
* updated gradient
* polished ui
* create routerlabel component
* disable router on all bu mainnet
* polish
* feat: [draft] routing api polish (#2224 )
* show loading card when syncing
* updated gradient
* polished ui
* create routerlabel component
* disable router on all bu mainnet
* polish
* polished loading state
* add dashes
* fixed tooltip styles
* fixed merge conflict
* few updates
* polish
* updated yarn.lock
* fixed styles
* updated routing diagram
* Fix code style issues with ESLint
* routing api enabled without localstorage upgrade
* fixed lint error
* Fix code style issues with ESLint
* refined mocks in routing diagram tests
* addressed pr feedback
* polish
* revert sending eth
* improved loading animation
* handle stale routing api
* Fix code style issues with ESLint
* updated yarn.lock
* support native eth
* Compute gas adjusted quote for V2 trade and compare to V3 gas adjusted quote
* Incorporate approval gas cost estimate
* feat: simplify routing api ux (#2258 )
* support native eth
* simplified ui
* perf optimization
* implement realized lp fee
* improved route realized lp fee
* fix lp realized fee
* fix auto router gradient
* initial route overlay
* add auto router svg
* adjusted ux to mocks
* fix lp fee
* upddated routing diagram
* optimize tradeBetter hook
* adjust type and name
* add useBetterTrade
* useBetterTrade takes gasEstimateWei
* implement gasEstimateForApproval
* import state from react
* use gas estimate
* improve integration with gas estimate comparison
* remove dependency on account
* fix currency switch bug
* improve syncing state
* add loadingbar
* style tooltip container
* updated tooltip styles
* increase opacity range
* always keep dependent currency input interactable
* show placeholders in tooltips
* Revert v2 gas estimates and approval estimates
* Add debug logs
* refactor
* fix bug
* removed comment
* update engish key
* add try-catch
* addressed pr feedback
* remove loading bar for price impact
* addressed pr feedback and bug bash feedback
* fix: use url to force version
* addressed pr feedback and bug bash feedback
* stop fetching when losing focus
* only show auto router label when activated
* avoid showing syncing status
* move V3TradeSTate to own file
* make useRoutes a function rather than hook
* use logo from active list when possible
* renamed and refactored hook
* renamed and refactored hook
* update status
* polish
* remove unused import
* fixed merge error
* updated combined trade tests
* remove priceimpact while loading
* Design tweaks
* polish latest design
* removed some styles
* log gaevent on tooltip open and clean up origin
* Small tweaks
* addressed pr feedback
* wrap route length in a loading container
* renamed local to clientside
* fix percent and token logo
* addressed pr feedback
* avoid comparing trades when v3 not ready
* some refactor
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Will Pote <will@uniswap.org>
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-09-16 10:50:58 -04:00
Justin Domingue
8dfd143208
test: set up component snapshot testing ( #2102 )
...
* set up snapshot testing
* improvements
* add tests for TextInput as an example
* Fix code style issues with ESLint
* add comment to custom-test-env file
* only set up needed providers
* include style rules in snapshots
* disable redux storage warning
* added setupTests to avoid boilerplate
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2021-07-26 10:41:08 -07:00