Brendan Wong
b319acd9c4
fix: info labels for extended list tokens ( #6678 )
...
* fix: info labels for extended list tokens
* test: update warning tests for new changes
* fix: function for label and padding
* fix: use warning check function
* fix: update displayWarningLabel
2023-06-07 10:15:36 -04:00
Brendan Wong
05977f950b
fix: updated celo logo ( #6676 )
...
* fix: updated celo logo
* fix: use celo logo from local fs
* fix: removed outdated comments
* fix: combine if statements in celo check
* fix: fix lint
2023-06-07 10:15:06 -04:00
Nate Wienert
5ac36d4156
feat: add link to download the uniswap wallet to the homepage ( #6690 )
...
* feat: add link to download the uniswap wallet to the homepage
2023-06-06 14:17:42 -10:00
clrdo
fb998706c2
fix: swaps with native currency destination in BNB Chain ( #6705 )
...
fix: swaps with native currency destination in BNB Chain
Co-authored-by: clrdo <clrdo@github.com>
2023-06-06 16:48:36 -05:00
eddie
c45492c890
feat: log swap errors to sentry ( #6698 )
...
* feat: log swap errors to sentry
* fix: dont stringify
2023-06-06 13:31:46 -07:00
eddie
41219b435f
feat: update content in permit2 flow ( #6699 )
2023-06-06 13:30:06 -07:00
eddie
e1321843de
fix: disable settings button when contextual chainId !== connectedChainId ( #6696 )
...
* fix: disable settings button when contextual chainId !== connectedChainId
* fix: re-enable TDP tests (#6708 )
2023-06-06 13:28:21 -07:00
Zach Pomerantz
f2af46037e
test(e2e): wallet connection ( #6661 )
2023-06-06 08:57:04 -07:00
Zach Pomerantz
20a06c9b5a
test: skip SwapDetailsDropdown tests ( #6652 )
...
* test: skip SwapDetailsDropdown tests
Tests depend on network requests, which may cause flakiness.
These tests should have the network requests mocked, then be re-enabled.
* add TODO
---------
Co-authored-by: cartcrom <cartergcromer@gmail.com>
2023-06-05 22:03:05 -07:00
Jordan Frankfurt
1cdddd1321
chore: add better documentation to a complicated hook ( #6689 )
...
* chore: add better documentation to a complicated hook
* input from eddie
* Update src/hooks/useUnmountingAnimation.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* remove jsdoc types
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-06-05 20:34:34 -05:00
Brendan Wong
f834af69fe
fix: Trust wallet loading state ( #6694 )
2023-06-05 16:25:30 -04:00
Jordan Frankfurt
08cd4bec41
fix: add '-' instead of '$0.00' when the api does not return a price for a tokens page entry ( #6691 )
...
* fix: show '-' instead of .00 when we don't have price data on a token
* explicitly handle the 0 case
* add tests to token row component
2023-06-05 14:56:49 -05:00
cartcrom
63ac64f470
fix: use coned function for chart prices ( #6693 )
2023-06-05 15:40:03 -04:00
Jordan Frankfurt
c07359362f
feat: dismiss the landing page when the account drawer is opened ( #6633 )
...
* feat: dismiss the landing page when the account drawer is opened
* remove the gradient before the page transition
* pr feedback
* clean up darkmode handling
* pr feedback from design
* update link test
---------
Co-authored-by: Jordan Frankfurt <jordan@CORN-Jordan-949.frankfurt>
2023-06-05 11:37:18 -05:00
cartcrom
ed58c39bdc
feat: parse moonpay purchases ( #6677 )
...
* feat: parse moonpay purchases
* fix: update comment
* fix: use new coned function
* refactor: simplify nested if statements
2023-06-02 16:46:57 -04:00
Nate Wienert
5d2254be27
fix: searchbar showing incorrect spacing at medium size ( #6637 )
...
* fix: searchbar showing incorrect spacing at medium size
* refactor: remove media query navSearchInputVisible into hook only useNavSearchInputVisible
* fix: disable slight blur showing incorrectly when 1100px to lg breakpoint width
* build: use repository slack secret (#6639 )
* 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
* fix: no-undefined-or in object field types (#6640 )
* feat: show affordance in swap UI when we can't fetch usd quote (#6622 )
* initial commit:
* add todo to linear
* fix: increase useBestTrade debounce time (#6631 )
* fix: increase useBestTrade debounce time
* reduce
* increase
* 350
* fix
* build: caching i18n extractor (#6619 )
* fix: do not attempt to cache i18n:extract
* fix: i18n extraction
* docs: improve comments
* fix: remove app advert on mobile safari (#6630 )
Co-authored-by: Jordan Frankfurt <jordan@CORN-Jordan-949.frankfurt>
* fix: include sw metric with web vitals (#6646 )
* build: add vscode settings for default formatter (#6644 )
build: add vscode settings for default formatter to be dbaeumer.vscode-eslint
* test(e2e): improve hardhat configuration (#6650 )
build: cache hardhat cache
* feat: permit2 flow updates (#6538 )
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* fix: correct modal state when moving between steps
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* feat: add comments explaining async state
* fix: nits
* fix: address comments
* feat: permit2 e2e tests (#6541 )
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* chore: merge
* fix: update tests for new modal
* fix: testid fix
* fix: test updates
* fix: reduce nesting
* test: remove line from test for debugging
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: reorganize test code
* test: permit2 flow component tests (#6551 )
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* fix: correct modal state when moving between steps
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: testid fix
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: reorganize test code
* feat: add l2 chain logo to modal (#6575 )
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: testid fix
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: reorganize test code
* feat: swap rejection error handling (#6576 )
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: add comment
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: reorganize test code
* feat: update content in Swap Submission Modal (#6577 )
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: update content in test
* fix: reorganize test code
* feat: permit2 animations WEB-2036 (#6590 )
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* wip: permit2 modal animations
* fix: entrance animations
* feat: step indicator transitions
* feat: icon aniamtions
* feat: fix spinner icon
* fix: re-organize new code
* fix: svg import
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: design nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: dont show loader unless onchain processing is happening
* fix: update designs and add comments
* fix: update content in test
* fix: update tests more
* fix: reorganize test code
* fix: mainnet loading indicator on last step
* fix: re-use opacity css code
* fix: testid issue with test
* fix: lint
* fix: modal height and css improvements
* fix: empty
* feat: fix help center link (#6621 )
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* wip: permit2 modal animations
* fix: entrance animations
* feat: step indicator transitions
* feat: icon aniamtions
* feat: fix spinner icon
* fix: re-organize new code
* fix: svg import
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: design nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* feat: correct help center article
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: dont show loader unless onchain processing is happening
* fix: update designs and add comments
* fix: update content in test
* fix: update tests more
* fix: reorganize test code
* fix: mainnet loading indicator on last step
* fix: re-use opacity css code
* fix: testid issue with test
* fix: lint
* fix: modal height and css improvements
* fix: empty
* fix: design nits on summary view (#6623 )
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* wip: permit2 modal animations
* fix: entrance animations
* feat: step indicator transitions
* feat: icon aniamtions
* feat: fix spinner icon
* fix: re-organize new code
* fix: svg import
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: design nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* feat: correct help center article
* fix: design nits on summary view
* fix: update test
* fix: update snapshots
* fix: update e2e test
* fix: etherscan link
* fix: update error test
* fix: dont show loader unless onchain processing is happening
* fix: update designs and add comments
* fix: update content in test
* fix: update tests more
* fix: test
* fix: reorganize test code
* fix: sentence case in one more test
* fix: mainnet loading indicator on last step
* fix: re-use opacity css code
* fix: testid issue with test
* fix: update copy
* fix: update strings in test
* fix: lint
* fix: modal height and css improvements
* fix: empty
* fix: padding on l2 badge
* fix: lint
* feat: log swap button click (#6654 )
* build: disable scheduled releases (#6651 )
* feat: [DetailsV2] Add Activity Chart Time Period Switcher (#6653 )
* add endButton and new TimePeriodSwitcher component
* add snapshot testing
* add test file
* remove switcher from TabbedComponent
* update snapshots
* update describe
* update padding
* extra return
* as const notation
* update snapshots
* no more abs positioning
* cleanup tests and add dropdown test
* add divider line to tabbed component
* update design to match new specs
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* fix: reduce ETH amount on mainnet useUSDPrice request to 50 (#6642 )
* feat: page wallet connect txn completed (#6655 )
* feat: add page to wallet_connect_txn_completed event
* feat: unit test
* fix: test
* chore: cleaning up buy button states (#6618 )
* fix: typecheck error in bagfooter (#6669 )
* feat: increased debounce swap quote rate (#6666 )
* feat: increased debounce swap quote time
* fix
* add basic test for initial useScreenSize
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Mike Grabowski <grabbou@gmail.com>
Co-authored-by: eddie <66155195+just-toby@users.noreply.github.com>
Co-authored-by: Vignesh Mohankumar <me@vig.xyz>
Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>
Co-authored-by: Jordan Frankfurt <jordan@CORN-Jordan-949.frankfurt>
Co-authored-by: Charles Bachmeier <charles@bachmeier.io>
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
Co-authored-by: Jack Short <john.short.tj@gmail.com>
2023-06-02 09:40:04 -10:00
Tina
83f4b53f55
feat: Add Circle native Arbitrum USDC to common base tokens in token selector ( #6680 )
...
* add feature flag for usdc arbitrum
* add to feature flag modal
2023-06-02 14:05:41 -04:00
Brendan Wong
4b5e2f7f16
fix: polygon bridge link leading to error page ( #6664 )
...
* fix: polygon bridge link leading to error page
* fix: fix polygon bridge to send directly to POS bridge
2023-06-02 10:03:50 -07:00
Tina
a03231d356
fix: Bug with flipping ura feature flag on/off in dev mode ( #6686 )
...
fix bug
2023-06-02 12:12:06 -04:00
Jack Short
72936322b3
feat: adding price impact modal ( #6681 )
2023-06-02 11:01:28 -04:00
Charles Bachmeier
1bc6eb9a23
feat: Add support for Sepolia ( #6610 )
...
* initial sepolia const setup
* uni sepolia
* add more consts for sepolia
* better comment
* upgrade ur sdk
* need to request BE add Ethereum sepolia to supported chains
* update weth address
* remove sepolia from defaults
* add tick lens addr
* add multicall && quoter
* use weth9 checksum
* successful wrap
* use supportedChainId over magic num
* upgrade default-token-list && deduplicate
* cleanup
* use checksum for usdc
* upgrade SOR
* placeholder setProperty
* comment cleanup
* add to anonymizeLink
* bump core-sdk
* deduplicate
* update infura fork block
* add comment
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-06-01 17:57:03 -07:00
Tina
8954aa792a
feat: Use routing-api v2 behind feature flag ( #6594 )
...
* add unified-routing-api slice
* rename legacy -> legacyAPI
* deduplicate client params and ura params
* move shared functions into utils and rename comments for unified routing API
* use feature flag
* remove eslint ignore since the function is now being used
* add typing to args
* rename ura -> routing-api v2
* update trace name and comment
* rename variables
* lint
2023-06-01 16:52:03 -04:00
eddie
379437b720
fix: remove all references to expert mode ( #6675 )
2023-06-01 12:04:16 -07:00
Nate Wienert
02c0dee089
feat: hide logo on swap currency selector modal (and other areas that use CurrencyLogo) for unsupported currencies ( #6659 )
2023-06-01 08:00:02 -10:00
eddie
c55e1af101
fix: reset confirm trade modal state when chain switches ( #6667 )
...
<!-- Your PR title must follow conventional commits: https://github.com/Uniswap/interface#pr-title -->
## Description
<!-- Summary of change, including motivation and context. -->
<!-- Use verb-driven language: "Fixes XYZ" instead of "This change fixes XYZ" -->
Resets the swap component's local state when the chain changes, to fix Confirmation Modal behavior
<!-- Delete inapplicable lines: -->
_Linear ticket:_ https://linear.app/uniswap/issue/WEB-2161/wonky-swap-modal-behavior-after-switching-chains
_Slack thread:_ https://uniswapteam.slack.com/archives/C047U65H422/p1685467094162069?thread_ts=1685459249.400839&cid=C047U65H422
<!-- Delete this section if your change does not affect UI. -->
## Screen capture
### Before
https://github.com/Uniswap/interface/assets/66155195/115e243a-858b-490d-be9e-269174cc7561
### After
https://github.com/Uniswap/interface/assets/66155195/a47b3606-08ac-490f-abc8-01acf2423efb
## Test plan
<!-- Delete this section if your change is not a bug fix. -->
### Reproducing the error
<!-- Include steps to reproduce the bug. -->
1. swap on a l2
2. via the metamask extension (or in whatever wallet), trigger a chain-change event (e.g. from optimism to mainnet)
a. this does not repro if you change chains from within the app selector.
4. fill in the input details for a new trade (ideally with different tokens so you can notice the bug easily)
5. see that the Confirm Swap modal opens automatically when it shouldn't, and it has the wrong trade details
### QA (ie manual testing)
<!-- Include steps to test the change, ensuring no regression. -->
- [x] same steps as above, ensuring the modal behaves correctly
#### Devices
<!-- If applicable, include different devices and screen sizes that may be affected, and how you've tested them. -->
### Automated testing
<!-- If N/A, check and note so it is obvious to your reviewers and does not show up as an incomplete task. -->
<!-- eg - [x] Unit test N/A -->
- [ ] Unit test
- [ ] Integration/E2E test
2023-06-01 10:02:37 -07:00
eddie
87cbd1ab38
fix: use ConfirmSwapModal in expert mode ( #6673 )
...
Fixes the swap flow for users who are still in expert mode and need permit2 approvals for a token
### test plan
added e2e test for full permit2 flow with expert mode enabled.
failing test without the change:
<img width="1394" alt="Screenshot 2023-05-31 at 2 24 12 PM" src="https://github.com/Uniswap/interface/assets/66155195/6a39e039-31b5-4bce-91d2-5e3ebc777378 ">
passing test with change in the CI of this PR
2023-05-31 14:52:04 -07:00
eddie
1090e97bb5
fix: update snapshots ( #6672 )
2023-05-31 16:37:45 -05:00
Nate Wienert
921c6b105f
fix: prevent searchbar from overflowing the bottom of the window viewport (WEB-2099) ( #6645 )
...
fix: prevent searchbar from overflowing the bottom of the window viewport, add scrolling support for inner contents
2023-05-31 10:03:02 -10:00
Vignesh Mohankumar
bc08e9263d
feat: increased debounce swap quote rate ( #6666 )
...
* feat: increased debounce swap quote time
* fix
2023-05-31 15:46:59 -04:00
Jack Short
8c8300a5de
fix: typecheck error in bagfooter ( #6669 )
2023-05-31 13:50:22 -04:00
Jack Short
3f169adcf2
chore: cleaning up buy button states ( #6618 )
2023-05-31 11:34:49 -04:00
eddie
774368f325
feat: page wallet connect txn completed ( #6655 )
...
* feat: add page to wallet_connect_txn_completed event
* feat: unit test
* fix: test
2023-05-30 11:10:16 -07:00
Vignesh Mohankumar
f83f15d37a
fix: reduce ETH amount on mainnet useUSDPrice request to 50 ( #6642 )
2023-05-30 12:30:16 -04:00
Charles Bachmeier
d9f1402576
feat: [DetailsV2] Add Activity Chart Time Period Switcher ( #6653 )
...
* add endButton and new TimePeriodSwitcher component
* add snapshot testing
* add test file
* remove switcher from TabbedComponent
* update snapshots
* update describe
* update padding
* extra return
* as const notation
* update snapshots
* no more abs positioning
* cleanup tests and add dropdown test
* add divider line to tabbed component
* update design to match new specs
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-26 16:06:36 -07:00
eddie
b57a5d7ddb
feat: log swap button click ( #6654 )
2023-05-26 10:13:28 -07:00
eddie
e2dd78fd0e
fix: design nits on summary view ( #6623 )
...
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* wip: permit2 modal animations
* fix: entrance animations
* feat: step indicator transitions
* feat: icon aniamtions
* feat: fix spinner icon
* fix: re-organize new code
* fix: svg import
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: design nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* feat: correct help center article
* fix: design nits on summary view
* fix: update test
* fix: update snapshots
* fix: update e2e test
* fix: etherscan link
* fix: update error test
* fix: dont show loader unless onchain processing is happening
* fix: update designs and add comments
* fix: update content in test
* fix: update tests more
* fix: test
* fix: reorganize test code
* fix: sentence case in one more test
* fix: mainnet loading indicator on last step
* fix: re-use opacity css code
* fix: testid issue with test
* fix: update copy
* fix: update strings in test
* fix: lint
* fix: modal height and css improvements
* fix: empty
* fix: padding on l2 badge
* fix: lint
2023-05-25 15:57:13 -07:00
eddie
96d6e00ed6
feat: fix help center link ( #6621 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* wip: permit2 modal animations
* fix: entrance animations
* feat: step indicator transitions
* feat: icon aniamtions
* feat: fix spinner icon
* fix: re-organize new code
* fix: svg import
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: design nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* feat: correct help center article
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: dont show loader unless onchain processing is happening
* fix: update designs and add comments
* fix: update content in test
* fix: update tests more
* fix: reorganize test code
* fix: mainnet loading indicator on last step
* fix: re-use opacity css code
* fix: testid issue with test
* fix: lint
* fix: modal height and css improvements
* fix: empty
2023-05-25 15:40:42 -07:00
eddie
dd29c59238
feat: permit2 animations WEB-2036 ( #6590 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* wip: permit2 modal animations
* fix: entrance animations
* feat: step indicator transitions
* feat: icon aniamtions
* feat: fix spinner icon
* fix: re-organize new code
* fix: svg import
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: design nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: dont show loader unless onchain processing is happening
* fix: update designs and add comments
* fix: update content in test
* fix: update tests more
* fix: reorganize test code
* fix: mainnet loading indicator on last step
* fix: re-use opacity css code
* fix: testid issue with test
* fix: lint
* fix: modal height and css improvements
* fix: empty
2023-05-25 15:25:07 -07:00
eddie
8c2a0f1905
feat: update content in Swap Submission Modal ( #6577 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* feat: design updates, state updates
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: text colors
* fix: add comment
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* fix: change tooltip to external link
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: comments
* fix: update tests
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: update content in test
* fix: reorganize test code
2023-05-25 14:57:04 -07:00
eddie
682fba219d
feat: swap rejection error handling ( #6576 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: correct modal state when moving between steps
* fix: proper error handling of user rejection of swap
* feat: update e2e test
* fix: typecheck
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: custom error type
* fix: testid fix
* fix: add comment
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: update e2e test
* fix: update error test
* fix: reorganize test code
2023-05-25 14:56:37 -07:00
eddie
0f5e871054
feat: add l2 chain logo to modal ( #6575 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* feat: add l2 chain logo to modal
* feat: add unit test
* fix: correct modal state when moving between steps
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: testid fix
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* fix: headerContent prop
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: address comments
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: reorganize test code
2023-05-25 14:14:35 -07:00
eddie
07527bab26
test: permit2 flow component tests ( #6551 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* wip: move approval to summary modal
* wip: not working
* feat: PendingModalContent tests
* feat: useMaxAmountIn
* fix: bad merge
* fix: naming
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* chore: merge
* fix: update tests for new modal
* fix: correct modal state when moving between steps
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: testid fix
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* feat: add comments explaining async state
* fix: test updates
* fix: nits
* fix: reduce nesting
* fix: address comments
* test: remove line from test for debugging
* fix: update tests
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: reorganize test code
2023-05-25 14:13:55 -07:00
eddie
7934777fa2
feat: permit2 flow updates ( #6538 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* fix: modal flicker when refetching trade
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: remove step indicators when only one step
* feat: move content into PendingModalContent component
* fix: lint
* fix: correct modal state when moving between steps
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
* feat: refactor approval flow into a hook
* fix: tradeMeaningfullyDiffers improvement and prepareFlow fix
* fix: address comments
* feat: add comments explaining async state
* fix: nits
* fix: address comments
* feat: permit2 e2e tests (#6541 )
* wip: move approval to summary modal
* wip: not working
* feat: working
* fix: fix flow
* feat: simplify states and build new modal UI
* feat: todos and differs fix
* feat: update tx status modal
* feat: split up approve and permit
* feat: error state
* feat: update success and error states
* feat: undo changes to TxConfirmationModal
* feat: re-order functions
* wip: move approval to summary modal
* wip: not working
* feat: update permit2 e2e tests
* feat: tests passing
* fix: swap test
* fix: bad merge
* chore: merge
* fix: update tests for new modal
* fix: testid fix
* fix: test updates
* fix: reduce nesting
* test: remove line from test for debugging
* fix: update tests
* fix: more nesting in test
* fix: update test
* fix: reorganize test code
2023-05-25 13:49:27 -07:00
Zach Pomerantz
4446eb9b84
fix: include sw metric with web vitals ( #6646 )
2023-05-25 10:12:20 -07:00
Jordan Frankfurt
d23b6e5da6
fix: remove app advert on mobile safari ( #6630 )
...
Co-authored-by: Jordan Frankfurt <jordan@CORN-Jordan-949.frankfurt>
2023-05-25 10:36:57 -05:00
Vignesh Mohankumar
e4a9764a12
fix: increase useBestTrade debounce time ( #6631 )
...
* fix: increase useBestTrade debounce time
* reduce
* increase
* 350
* fix
2023-05-24 14:44:18 -04:00
Mike Grabowski
303fa15240
feat: show affordance in swap UI when we can't fetch usd quote ( #6622 )
...
* initial commit:
* add todo to linear
2023-05-24 22:32:53 +04:00
eddie
d180aef306
fix: no-undefined-or in object field types ( #6640 )
2023-05-24 11:31:40 -07: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
github-actions[bot]
1dcafd2f2d
chore(i18n): new Crowdin translations ( #6215 )
...
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore: trigger actions
---------
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-05-23 14:39:58 -07:00
Jack Short
e398e8b950
fix: allow unsupported chain in pwat ( #6629 )
...
chore: allow unsupported chain in pwat
2023-05-23 13:36:28 -04:00
Tina
6424fdfbcd
fix: Simplify event logging for SWAP_QUOTE_RECEIVED ( #6628 )
...
* simplify event logging
* remove unused function parameter
2023-05-23 11:06:18 -04:00
eddie
95814e3271
fix: prevent race condition for swap state ( #6624 )
2023-05-22 15:57:17 -07:00
Jack Short
caa2524e27
feat: [DetailsV2] instant buy ( #6599 )
...
* initial impl
* removing isopen change
* stopping refetching
* shared button
* pending animiation
* updating shared
* updating snapshots
* adding disabled state
* isLoading in hook
* pulling out ternary
* removing fragment
* separate file for offer button
* fixing price diff check
* remove unnecessary export
* changing name to useBuyAssetCallback
2023-05-22 18:28:48 -04:00
cartcrom
f3a80c6272
feat: special case arb search ( #6584 )
...
* feat: special case arb search
* fix: check both current and existing token
2023-05-22 12:40:46 -04:00
Vignesh Mohankumar
fbc55db937
chore: remove chunkResponseStatus tag ( #6586 )
...
* chore: remove chunkResponseStatus tag
* lint
2023-05-21 17:25:58 -04:00
Jordan Frankfurt
835c62acfa
fix: use ephemeral props for styled component ( #6607 )
...
* fix: use ephemeral props for styled component
* add
2023-05-20 16:55:37 -05:00
Tina
41113e6e41
fix: Use client side router only for price fetching ( #6604 )
...
use client side router only for price fetching
2023-05-19 13:35:29 -04:00
Mike Grabowski
58b25d29a9
feat: expand settings by default when custom values are set ( #6603 )
...
feat: expand by default
2023-05-19 21:35:02 +04:00
Mike Grabowski
b62f9066a7
fix: add price impact back ( #6581 )
...
* feat: add price impact back
* chore: update tes tname
* chore: update snapshot for price impact
* fix
* fix
* update snapshot after rebase
* update snapshot
2023-05-19 09:24:06 +04:00
Zach Pomerantz
77d46c361a
test(e2e): de-flake wrap ( #6589 )
...
* test(e2e): mv swap to dir
* test(e2e): split swap/wrap/errors
* test(e2e): de-flake wrap
2023-05-18 13:47:15 -07:00
Charles Bachmeier
4fb48bdd1f
fix: only request 1 listing on NFTDetails page ( #6602 )
...
only request 1 listing
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-18 13:35:01 -07:00
cartcrom
cf2b6bf568
fix: portfolio balances after switching accounts ( #6527 )
...
* fix: handle portfolio staleness upon account change
* fix: only consider current account for tx updates
* test: add e2e test for account switching
* fix: remove unnused data-testid
* fix: added todo comment
* refactor: move test into existing folder
* fix: add account to dependency array
* todo: tx reducer
* test: update cypress config to pass in env variables
* fix: undo unintended change
* fix: use process.env
* fix: use regex instead of env
2023-05-18 16:32:35 -04:00
eddie
03095f4e48
feat: add feature flag for URA ( #6593 )
2023-05-18 10:14:18 -07:00
Charles Bachmeier
ef6d1f20ed
feat: [DetailsV2] Show data page header when nft scrolled out of view ( #6585 )
...
* show data page header when nft scrolled out of view
* add new snapshot test
* useRef for observer
* add comment
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-18 09:41:04 -07:00
Zach Pomerantz
146c5f29cf
feat: only pre-cache the document ( #6580 )
...
* test(e2e): de-flake service-worker
* feat: rm stale cache storage
* fix: put not del
* fix: staging and test
* test: include staging
* fix: log
* test: rm console.log
* fix: unregister before
* test: deflake by restoring state afterwards
2023-05-17 12:10:28 -07:00
cartcrom
15f8d34320
fix: update nonce deduplication logic ( #6588 )
...
* fix: update nonce-deduplication logic
* lint
2023-05-16 21:28:19 -04:00
eddie
504e09d3dc
feat: new review design ( #6451 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
* feat: copy review screen UI from widgetg
* fix: modal padding
* feat: add final detail row
* fix: remove widget comment
* fix: update unit tests
* fix: code style consistency
* fix: remove padding from AutoColumn
* fix: update snapshots
* fix: use semantic gaps
* fix: more px and gaps
* fix: design feedbacks
* fix: button radius in summary modal
* fix: design nits
* feat: update design of summary modal
* fix: font weight and vertical spacing
* fix: update snapshots
* fix: css nits
* fix: modal flicker when refetching trade
* fix: comments
* fix: code style improvements
* feat: require trade to be defined
* fix: remove extra props from ThemedTexts
* fix: one more trans
* fix: remove unused export
* feat: remove undefined checks and other fixes
* fix: update test
* fix: add missing dollar sign
* fix: remove null check and update test
* fix: remove max width from detail row value
* fix: remove isOpen prop
* fix: isopen
2023-05-16 15:15:30 -07:00
Vignesh Mohankumar
1f755e8b0d
feat: add retry logic for dynamic imports ( #6512 )
...
* feat: add retry logic for lazy import
* try again
* add tests
* refactor: moves retry helper to subfolder
* missing-files
* fix
* doc comment
* tsdoc
* fake timers
* fix
* add eslint rule
* try again?
* try again?
* only dynamic
* try again
* try again
* IT WORKS
* add retry
* fix
* add test
* warn -> error
* lint
* lint
* lint
* add back cache
* rm test
* try again
* real timers but really short intervals
* try returning the promise?
* try returning the promise?
* try this package
* retry
* Update src/utils/retry.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update rules/enforce-retry-on-import.js
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update rules/enforce-retry-on-import.js
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* eslint_rules
* test fixes
* name
* fix
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-05-16 16:53:22 -04:00
Vignesh Mohankumar
f45a7f921b
fix: handle switchChain failure in swap ( #6507 )
...
* fix: handle switchChain failure in swap
* comment
* fix
2023-05-16 16:47:13 -04:00
Vignesh Mohankumar
29db61ff90
fix: filter error caused by missing meta tags ( #6546 )
...
* fix: filter error caused by missing meta tags
* fix
2023-05-16 16:40:25 -04:00
Tina
8431ad9161
chore: Refactor swap request flow ( #6499 )
...
* Refactor swap quote flow with widget logic
* remove console logging
* add ignore path for serialization check and pass in native currencies for client side routing
* apply stashed changes
* revert node version change
* remove TODO comment because maybe no longer relevant
* update unit tests
* wip: add snapshot test
* add snapshot test for gas estimate badge
* address PR comments: rename variables, fix client side router initialization
* update Trade type
* add TODO comment about isExactInput util
* change | undefined convention to ?
* PR comments
* update type
* remove client side initialization logic and replace with TODO
* use routing-api for price fetching trades too
* remove QuoteType.Initialized
2023-05-16 16:33:46 -04:00
Vignesh Mohankumar
fd1aded517
fix: remove trailing slash from request url ( #6542 )
...
* fix: remove trailing slash from request url
* moves cast
* {}
2023-05-16 12:36:24 -04:00
Vignesh Mohankumar
27ad7cbd41
test: move all tests to beforeSend ( #6513 )
...
* beforeSend tests
* fix
* refactor: filterKnownErrors -> shouldRejectError (#6547 )
* refactor: filterKnownErrors -> shouldRejectError
* no unknown
* comments
2023-05-16 12:36:17 -04:00
Joshua DeCristi
01e5de436a
fix: "Minimum output" should be "Maximum output" when trade is Exact Output ( #6565 )
...
* fix: minimum output should be showing maximum input when trade type is exact output
* fix: test for minimum output should be showing maximum input when trade type is exact output
---------
Co-authored-by: Josh DeCristi <joshdecristi@Joshs-MacBook-Pro.local>
2023-05-16 12:07:39 -04:00
Charles Bachmeier
fd5aa1b51e
fix: use padding component ( #6579 )
...
* fix: rm unused const
* use component
* update snapshot
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-16 08:56:51 -07:00
Mike Grabowski
a6e1a7e6d9
feat: add slippage warning to MenuButton ( #6548 )
...
* feat: initial commit
* chore: add unit tests
* chore: move menubutton to sep. component
* chore: simplify styles and add real focused state
* chore: fix tests + some other tweaks
* chore: rename
* test: add snapshot tests
* tweaks
2023-05-16 11:41:14 +04:00
Jack Short
629fe2c144
feat: [DetailsV2] trait bubbles ( #6552 )
2023-05-15 19:17:45 -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
Charles Bachmeier
75bdf9a8d4
feat: [DetailsV2] Add left padding to trait rows and headers ( #6534 )
...
* feat: [DetailsV2] Add left padding to trait rows
* update snapshot
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-15 10:40:38 -07:00
Tina
efbe3994bb
fix: catch RouterPreference.AUTO case for routing-api usage ( #6572 )
...
catch AUTO case for routing-api
2023-05-15 13:38:59 -04:00
Vignesh Mohankumar
93fe8e4349
fix: polyfill ResizeObserver ( #6553 )
...
* polyfill
* lint
* polyfill test
* dedupe
2023-05-15 12:39:31 -04:00
Charles Bachmeier
42e3af7b5c
feat: [DetailsV2] Offer and Listing Tables ( #6515 )
...
* added home icon, basic content container with scroll behaviour
* add more struct
* add timeUntil util, add main structure of generic component, basic mock data
* propagate asset
* actual fake data
* working scroll
* proper alignment
* 1155 quantity
* small window sizes
* more action buttons
* cleanup
* update snapshot
* add tests
* add new test files
* add outline and hide usd price for certain screen sizes
* use sell order data
* update tests
* fetch multiple listings
* better price width on select screens
* mobile icon for approve
* bottom padding on mobile
* update snapshot
* use test objs in tests
* update query
* add border between rows
* update page padding
* breakpoint overlap
* simplified sellOrder check
* external link
* upstream button and better mobile padding
* add file and update tests
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-15 09:14:09 -07:00
Vignesh Mohankumar
57274a800d
fix: don't console.error for WalletConnect modal close ( #6559 )
2023-05-15 12:13:34 -04:00
Tina
5e591455b3
fix: Revert "build: upgrade to webpack 5 ( #6459 )" ( #6566 )
...
Revert "build: upgrade to webpack 5 (#6459 )"
This reverts commit ec547ab100f793d127246186d5fd60786758a862.
2023-05-15 09:48:27 -04:00
Zach Pomerantz
ec547ab100
build: upgrade to webpack 5 ( #6459 )
...
* fix: import default from json
* fix: fallback to path-browserify
* build: upgrade to webpack5
* test: update size-tests to reflect single entry
* test: increase service-worker timeout
* docs: improve comments
* build: rm MiniCssExtract workaround
* docs: even better comments
* test: back out longer test
* build: vendor chunk
* test: increase sw timeout
* fix: justified splitChunks config
* better explanation
* fix: longer timeout
* fix: caching
* merge and rm duplication
* build
2023-05-12 12:55:01 -07:00
Charles Bachmeier
9de76c69ae
feat: [DetailsV2] Data Page Header ( #6549 )
...
* hide header on mobile
* add buy and offer buttons, thumbnail, text
* handle no sell orders and add tests
* rehide on mobile
* breakpoint optimizations
* design feedback
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-12 14:48:26 -04:00
Charles Bachmeier
85d1b90197
feat: [DetailsV2] Mobile support for traits ( #6535 )
...
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-12 13:39:31 -04:00
Vignesh Mohankumar
3726b6bb47
fix: remove top-level Fragment ( #6540 )
2023-05-12 11:19:52 -04:00
Vignesh Mohankumar
bfde34c774
refactor: moves retry helper to subfolder ( #6531 )
2023-05-12 11:08:14 -04:00
Tina
bd8113d018
chore: Goodbye widget :( ( #6543 )
...
* goodbye widget :(
* remove unused function
* modify trace tests
* fix lint
* is github down?
2023-05-12 11:05:22 -04:00
Vignesh Mohankumar
4fc4bdcd55
fix: propagates user rejection errors ( #6533 )
2023-05-11 19:40:02 -04:00
Tina
7a042a5199
chore: Replace widget skeleton with internal swap skeleton ( #6524 )
...
* replace widget skeleton with internal version
* remove unuecessary div wrappers
* add snapshot test
* forgot to commit this file earlier
* remove exports
* revert(e2e): waitForAnimations
* convert values to px, refactor a bit to use flex gap instead of padding
* remove unnecessary props
* update snapshot test
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-05-11 16:58:35 -04:00
Jordan Frankfurt
6d5e17a6e7
fix: deduplicate remote and local tx lists ( #6438 )
...
* fix: deduplicate remote and local tx lists
* add nonce to local transactions
* removes local transactions that have nonces that are duplicates of remote transactions
* add e2e test
* lint fix
* fix types in test
* use supported chain id for reducer tests
* use getReceipt to remove outdated transactions via existing polling setup
* pr nits from cmcewen
* fix lint
* fix test
2023-05-11 13:16:18 -05:00
Jack Short
8301c5892c
chore: removing token type check from routing ( #6536 )
2023-05-11 13:37:28 -04:00
Vignesh Mohankumar
59b757dda0
fix: disables CMC list temporarily ( #6532 )
...
* fix: disables CMC list temporarily
* -
2023-05-10 20:32:43 -04:00
Jack Short
92a6ec67b3
feat: [DetailsV2] different media types on landing page ( #6492 )
...
* initial layout assuming media type exists
* fixing embeds
* media type function
* updated snapshot test
* initial shadow impl
* better shadows
* audio player controls
* updating tests
* content not available handlers
* errors on all media types
* removing fullscreen from iframe
* adding snapshot tests
* responding to comments
* text align center
* updating tests
2023-05-10 13:10:25 -04:00
Jack Short
01aa3291b3
chore: bubbling up pwat spender from route query ( #6481 )
...
* chore: bubbling up pwat spender from route query
* refactoring
* adding loading state
* moving to loading allowance
* responding to comments
* linting
2023-05-10 12:45:58 -04:00
Vignesh Mohankumar
e6adddbf55
refactor: return onDemandEntries instead of mediaURLs ( #6514 )
...
* refactor: return onDemandEntries instead of mediaURLs
* lint
* fix test
2023-05-10 11:46:28 -04:00
Mike Grabowski
0050b1e165
feat: new routing diagram ( #6510 )
...
* chore: initial commit
* chore: add todo to refactor and simplify if conditional in the future
* chore: update layout
* chore: ui tweaks
* chore: add todo
* chore: change todo
* chore: update UI
* chore: tmp
* feat: rename router preference
* chore: update type
* fix error
* fix one more issue
* finish UI work
* chore: remove unecessary components
* chore: update non-snapshot unit tests
* chore: fix lint
* chore: fix ts
* chore: one more time
* fix
* chore: update snapshots
* chore: add jira tickets
* chore: fix mobile popovers
* chore: add analytics event
* chore: fix padding and send event
* chore: fix loading state
* oops
* chore: address review
* chore: comment
* chore
2023-05-10 19:06:12 +04:00
lavalamp
0db9e51e41
ci: Staging deploy GH action definition ( #6455 )
...
* Staging deploy GH action definition
* Remove workflow_dispatch
* Update src/utils/env.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Restrict sentry reporting to staging environment
* Rename and change environment
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-05-10 08:28:59 -04:00
Vignesh Mohankumar
82e7925a17
fix: properly filter AbortErrors ( #6519 )
...
* fix: properly filter AbortErrors
* lol
2023-05-09 19:04:41 -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
matteen
709a70652f
feat: add tokenlist validation ( #6504 )
...
* feat: add tokenlist validation
* use alternative for spread operator
* maintain tokenlists version and use original ajv version
* bump ajv
* Revert "bump ajv"
This reverts commit b9d2dd61c61f4aeedc00faf034c5a6e89b0d28fc.
* rename vars in validator
* update gitignore
* nit fixes
* test
* add ^ back
* remove ^
* removed and readded ajv
* try require.resolve
* Revert "try require.resolve"
This reverts commit 62f58bcb7f02f1ead430a4c94ca3428a60d4d4c5.
* bump eslint-config
* yarn lock merge conflict
* bring back spread operator
* remove redundant lint ignore
2023-05-09 16:34:15 -04:00
Jack Short
5a7a041f12
feat: [DetailsV2] background for nft details ( #6496 )
...
* feat: background for nft details
* fixing top spacing
* adding new states for zindex
2023-05-09 16:08:28 -04:00
cartcrom
b60d98fc17
fix: loading spinner console bug ( #6518 )
...
fix: update svg path
2023-05-09 14:59:26 -04:00
Vignesh Mohankumar
4a015e9d0d
fix: ensure event.request is defined in trace ( #6498 )
...
* fix: ensure event.request is defined in trace
* add check for empty event
2023-05-09 11:44:07 -04:00
Mike Grabowski
c383a0a0a2
feat: new Settings menu for Swap ( #6480 )
...
* feat: initial commit
* remove extra check
* chore: divider fix
* feat: switch from boolean to routerPreference enum
* chore: align name
* chore: fix two errors
* chore: clean up
* chore: entire radio button clickable
* chore: remove unused toggle component
* Revert "chore: remove unused toggle component"
This reverts commit 42858a02b5bcd572682db38025b69f8b1426a8c1.
* feat: rewrite slippage
* feat: Slippage
* chore: tbd tomorrow
* Update src/state/user/reducer.ts
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
* feat: replace auto with Slippage enum
* chore: add todo for deadline
* chore: cleanup
* feat: improve autoslippage
* chore: replace price with auto
* chore: fix lint
* test: add coverage for Expand
* chore: fix tests
* chore: review feedback part 1
* chore: rework warning
* chore: add jira tickets
* feat: add tests for useUserSlippageTolerance
* chore: add some more
* chore: one more
* add tests for slippage
* chore: add unit tests for transactionsettings
* remove
* revet changes to improve coverage
* chore: update to figma caption
* chore
* chore
* chore: update wording
* Update src/components/Expand/index.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* fix: issue with new value, update confusing migration comment
* chore: remove opacity animation temporarily
* chore: update snapshot test
* chore: fix e2e + update comment
* chore: fix tests
* chore: fix tests
---------
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-05-09 10:33:25 -04:00
Vignesh Mohankumar
d6e92804ad
fix: filter AbortError from Sentry ( #6497 )
2023-05-08 18:25:00 -04:00
Charles Bachmeier
ff080aa957
fix: update OS listing fee ( #6505 )
...
* update OS listing fee
* remove redundancy
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-08 10:28:01 -07:00
cartcrom
04d9ff7d71
feat: update useAllTokensMultichain usage ( #6493 )
...
* feat: updates useAllTokensMultichain to return userAddedTokens
* fix: use correct types in tests
* chore: add documentation for future removal of TokenAddressMap
* fix: use doc comments
* test: add unit test for useAllTokensMultichain
* fix: check userAddedTokens for undefined
2023-05-05 18:15:27 -04:00
cartcrom
406893d99a
test(e2e): permit2 approval ( #6488 )
...
* build: upgrade cypress-hardhat
* test: reset hardhat between tests
* test: enable auto-mining
* build: upgrade cypress-hardhat again
* test: permit2 e2e tests
* test: user approval rejection
* refactor: reuse common permit util vars to reduce # of lines
* fix: var casing
* refactor: polish
* refactor: clean up comments and function names
* refactor: remove approval util and update scoping
* fix: further nits
2023-05-05 17:52:22 -04:00
Vignesh Mohankumar
4630720956
fix: handle addEventListener being unsupported on Safari <14 ( #6426 )
...
* fix: handle addEventListener being unsupported on Safari
* conditionally call
* Revert "conditionally call"
This reverts commit b6b7d2f0170caeca3aa8bf82ea97fd16a73cba44.
* comment
* fix
* callback
* add tests
* lint
* casting
* good pr comments
* fix
2023-05-05 13:36:20 -04:00
Jordan Frankfurt
e73e1540ad
fix: errors are responsible for their own grammar ( #6490 )
2023-05-05 11:38:00 -05:00
Vignesh Mohankumar
3a82642fe6
fix: update service worker to precache css/js files ( #6486 )
...
* fix: update service worker to precache css/js files
* add test
* move to utils
* working tests
* fixes
* lint
* change names
* lint
* change return type
* fix
* fix
* changes
* lint
* rename cache
* lint
* fix comments and remove string[] case
* string |
* Update src/serviceWorker/utils.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
---------
2023-05-04 14:29:13 -04:00
eddie
c8a8149127
fix: add amplitude page context to swap flow events ( #6489 )
2023-05-04 11:20:12 -04:00
Vignesh Mohankumar
38cde648cf
fix: add a catch on collect static call ( #6491 )
...
* fix: add a catch on collect static call
* comment
2023-05-04 11:07:01 -04:00
Charles Bachmeier
33c099119d
chore: refactor Bag to use scroll hook ( #6483 )
...
* chore: refactor Bag to use scroll hook
* remove outdated comment
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-03 14:19:27 -07:00
Jordan Frankfurt
40247ff7e0
test(e2e): slippage failure ( #6464 )
...
* initial draft
* remove logs
* assertions improvement
* add more comments
* add explicit call to disable automine
* test out a very long timeout
* Revert "test out a very long timeout"
This reverts commit 0fc2666d6f4cb02739d14cf2aa07f041e6046669.
* improve test reliability
* remove mock list response
* remove hardhat reset and clean up tests
* simplify assertion
* add zzmp's nits
2023-05-03 16:03:43 -05:00
eddie
30d1de8e84
fix: moonpay modal height ( #6439 )
2023-05-03 14:05:50 -04:00
Jack Short
0e5328bee9
feat: [DetailsV2] initial details landing page view ( #6453 )
...
* feat: initial view of details landing page
* gap
* dynamic font sizes
* added test
* responding to comments
* updating snapshot
* linting
2023-05-03 11:08:48 -04:00
Jordan Frankfurt
d1995bc5a6
test(e2e): deadline passed swap error state ( #6444 )
...
* chore: ignore hardhat cache files
* test: add forking hardhat config
* test: install cypress-hardhat
* build: add cypress-hardhat
* fix: lint
* build: add hardhat
* build: add @sentry/types
* fix: better origin
* test: update cypress VisitOptions to include hardhat
* fix: default to connected wallet user state
* test: add a hardhat provider
* build: update imports
* chore: comments
* fix: massage eth_sendTransaction
* feat: example swap test (#6415 )
* initial commit
* add intercept for amplitude
* fix: destructure result
* click swap submission
* fix: eth_sendTransaction via bridge
* test works
* finish chain interaction test
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* swap should render an error when a transaction fails due to a passed deadline
* use mining utils to manage transaction confirmation
* update to use new hardhat syntax and make comments more clear
* test a very long timeout in CI
* Revert "test a very long timeout in CI"
This reverts commit 141c28e15c511f2338c2b5b2b60521a7cb4c1bda.
* fiddle with automine settings
* pr feedback
* cleanup
* bump cypress-hardhat
* use setAutomine
* use setAutomine
* remove .reset
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-05-02 23:52:07 -05:00
Jordan Frankfurt
4959836c2a
test(e2e): (un/)wrap transactions ( #6474 )
...
* chore: e2e test (un/)wrap transactions
* wrap button should not be disabled (wait for enabled state)
* use automine
* pr feedback
* configure automine
* make tests stop relying on reset
2023-05-02 23:51:17 -05:00
Charles Bachmeier
ef4a80852d
chore: update to listing with seaport 1.5 ( #6485 )
...
update to listing with seaport 1.5
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-02 18:46:12 -07:00
Vignesh Mohankumar
c2a972eb75
fix: filter chrome-extension errors ( #6475 )
...
* fix: filter chrome-extension errors in Sentry
* check stack
2023-05-02 15:43:37 -04:00
eddie
47a2768d89
chore: remove unused feature flags ( #6484 )
2023-05-02 15:28:12 -04:00
eddie
ca60caf6b0
feat: use Swap Component on TDP ( #6332 )
...
* test: swap flow cypress tests
* fix: use default parameter
* feat: use Swap Component on TDP
* feat: auto nav for TDP tokens
* chore: merge
* chore: merge
* chore: merge
* chore: merge
* fix: remove extra inputCurrency URL parsing logic
* fix: undo last change
* fix: pass expected chain id to swap component
* fix: search for default tokens on unconnected networks if needed
* test: e2e test for l2 token
* fix: delete irrelevant tests
* fix: address comments
* fix: lint error
* test: update TDP e2e tests
* fix: use pageChainId for filter
* fix: rename chainId
* fix: typecheck
* fix: chainId bug
* fix: chainId required fixes
* fix: bad merge in e2e test
* fix: remove unused test util
* fix: remove unnecessary variable
* fix: token defaults
* fix: address comments
* fix: address comments and fix tests
* fix: e2e test formatting, remove Maybe<>
* fix: remove unused variable
* fix: use feature flag for swap component on TDP
* fix: back button
2023-05-02 14:39:44 -04:00
Zach Pomerantz
00ecb933ac
test(lint): separate multiline comments ( #6476 )
2023-05-02 08:26:07 -07:00
Vignesh Mohankumar
607d0d443e
fix: filter errors with OneKey in stack ( #6477 )
...
* fix: filter errors with OneKey in stack
* check stack
2023-05-01 15:32:05 -04:00
Charles Bachmeier
ff0209a78f
feat: [DetailsV2] add link and hover state to trait component ( #6472 )
...
* hide trait container when asset has no traits
* add traits header row
* trait value rows and scroll behaviour
* row with placeholder values
* add random filler values and proper scrollbar styles
* working rarity graph
* bar border radius
* move rarity graph to its own file
* always show scrim
* working scrim and move traitrow to its own file
* cleanup
* remove padding
* move scrollbar right
* add snapshot tests
* add comment about randomly generated rarities
* cleanup
* only pass traits
* justify
* not important
* cleanup scrim styles
* remove comment
* add scroll state hook
* lint
* update test
* object over map
* remove spaces
* justify content
* add ticket
* add comments
* update snapshot
* add link and hover state to trait component
* correct padding
* respond to comments
* add component and use css for vis
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-01 11:52:49 -07:00
Zach Pomerantz
924e83139b
test: keep test output clean ( #6469 )
2023-05-01 10:58:32 -07:00
Jack Short
4d5cc8267e
chore: removing pwat feature flag ( #6467 )
...
* chore: removing pwat flag
* removing it from enum
* updating test
* trade is not the same as usingPwat
2023-05-01 11:57:56 -04:00
Charles Bachmeier
6bc7cfc996
feat: [DetailsV2] Add Trait component content ( #6460 )
...
* hide trait container when asset has no traits
* add traits header row
* trait value rows and scroll behaviour
* row with placeholder values
* add random filler values and proper scrollbar styles
* working rarity graph
* bar border radius
* move rarity graph to its own file
* always show scrim
* working scrim and move traitrow to its own file
* cleanup
* remove padding
* move scrollbar right
* add snapshot tests
* add comment about randomly generated rarities
* cleanup
* only pass traits
* justify
* not important
* cleanup scrim styles
* remove comment
* add scroll state hook
* lint
* update test
* object over map
* remove spaces
* justify content
* add ticket
* add comments
* update snapshot
* correct padding
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-05-01 11:43:55 -04:00
Vignesh Mohankumar
97312bb174
fix: match OneKey more generically ( #6461 )
...
* fix: match OneKey more generically
* flip
* Update src/tracing/errors.test.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/tracing/errors.test.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/tracing/errors.test.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* backslashes
* fix
---------
2023-05-01 11:02:26 -04:00
cartcrom
d0a10fcf8d
refactor: activation hook w/ global state ( #6413 )
...
* feat: moved tryActivation to global hook/state
* test: activation hook
* fix: merge conflicts
* fix: update file path for render utils in activate.test.ts
* fix: add await for connector deactivation
* fix: pr comment fixes
* fix: update tests
* refactor: use stronger activation state type
* refactor: use global state instead of props in ConnectionErrorView
* fix: re-add uri availability check
* fix: lint
* fix: nits
* fix: css regression
* fix: update test enum usage
* fix: use native disabled attribute
* test: add snapshot tests for different Option states
* fix: zach's PR comments
* test: update snapshots/unit tests
* style: pending boolean names
* fix: updated test import
* docs: added comment explaining analytics difference in wallet connection
* test: assert console.debug calls and fix act() issues
* test: drawer close
* test: import specific drawer fn instead of whole module
2023-04-28 19:14:30 -04:00
Jack Short
6df5d3a701
chore: moving nft test fixtures to their own file ( #6456 )
...
* chore: moving nft test fixtures to their own file
* refactoring structure
* renaming file
2023-04-27 17:10:06 -04:00
lynn
2d4eafc6b3
test: unsupported currency footer unit test ( #6360 )
...
* tests are complete
* update comment
* remove console log, and test close icon
* init
* lets try something else to avoid timeout
* try splitting up last test for timeout
* undo, it wasnt working
* revert order test
* add comment for sanity check
* test another way
* try userEvent
* increase timeout
* move timeout
* init
* use test constants
* use constants
* change address
* more comprehensive tests
* merge constants and use mocked
* remove comments
* remove dual import
* Update src/components/swap/UnsupportedCurrencyFooter.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* respond comments
* update tests
* remove console log
* fixes
* add act
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-04-27 16:54:05 -04: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
Jack Short
b92b286626
chore: updating listing marketplace icons ( #6458 )
...
* chore: updating listing marketplace icons
* removing svgs from public
* responding to comments
2023-04-27 16:51:53 -04:00
lynn
a8268728d3
test: advanced swap details component unit test ( #6363 )
...
* init
* init
* init
* use test constants
* use constants
* change address
* more comprehensive tests
* move noop
* add eslint rule
* return null in noop
* merge
* checkpoint
* fixes
* add tooltip test
* remove unused file
* merge swap modal header
* add third test
* add test for syncing and loading case
* respond to comments
* more descriptive comments
* update snapshot
* update
* change to act
2023-04-27 16:36:36 -04:00
lynn
ab6debbf46
test: swap modal footer unit test ( #6353 )
...
* swap footer modal test
* remove empty test
* init
* merge main and jordan comment
* init
* use test constants
* use constants
* change address
* more comprehensive tests
* merge constants
* fix errors
* remove dual import noop
* update snapshot
* Update src/components/swap/SwapModalFooter.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* update snapshot
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-04-27 15:07:49 -04:00
matteen
4c664645c6
feat: add L2 CG tokenlists ( #6292 )
...
* feat: add L2 CG tokenlists
* remove extra line
2023-04-27 12:50:05 -04:00
Jordan Frankfurt
4416a84fd7
fix: disable bnb network option on uniwallet ( #6452 )
...
* fix: disable bnb network option on uniwallet
* use supported chain set
2023-04-27 09:16:28 -05:00
Charles Bachmeier
c178da626f
chore: add more ip infringing collections to the blocklist ( #6446 )
...
* updated blocked collections and don't allow for address search of blocked collections
* revert to array
2023-04-26 10:31:49 -07:00
Zach Pomerantz
e3c589ae41
fix: wallet connection analytics ( #6296 )
...
* test: web3
* fix: wallet connection analytics
* test: wallet connection analytics
* build: upgrade web3-react@^8.2
* test: web3
* chore: better merge
* fix: unmock
* fix: use usePrevious
* fix: naming
* fix: deps
2023-04-26 10:27:04 -07:00
Vignesh Mohankumar
6d60aca437
fix: filter OneKey related errors ( #6396 )
...
* fix: filter OneKey related errors
* fix
* .app
2023-04-26 11:57:13 -04:00
Zach Pomerantz
01684977b3
test: add a 'hardhat' mock window.ethereum ( #6395 )
2023-04-25 14:24:57 -07:00
Jack Short
0025997175
chore: updating purchasable markets from activity ( #6443 )
...
* updating purchasable markets from activity
* renaming
* adding trans + refactor
* snapshot test
* removing snapshot test and only matchin test
* deleting snap
2023-04-25 16:17:36 -04:00
Vignesh Mohankumar
acf97e042c
fix: filter WebAssembly compile errors ( #6445 )
...
* test
* fix: filter WebAssembly compilition errors
* Update src/tracing/errors.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
---------
2023-04-25 15:35:14 -04:00
Jack Short
771618b1c9
chore: updating marketplace icons ( #6424 )
...
* chore: updating marketplace icons
* removing console
* eslint
* uni logo
* nft20
* weird svg id bug
* adding gradient id to other marketplaces
* purchasable markets
* test size inc
* removing the nxyz endpoint
* adding back nxyz endpoint for testing
* graphql enum is purchasable markets
* removing nxyz
* self nit
* changing width and height to size - removing gradientId from props - updating gradient id
* removing purchasable markets
* linting
* adding tests to ensure marketplace
* better description
* needs to check for null and not undefined
2023-04-25 15:20:30 -04:00
Charles Bachmeier
63d0290a50
feat: [DetailsV2] more shared component content ( #6420 )
...
* add page break and placeholder files
* container layout
* description tabs
* add table tabs
* mobile wrap
* remove todo
* adaptive padding
* add extensible tabbed component
* add new file
* add snapshot test for empty data page
* update snapshot
* add new snapshot
* undo unrelated snapshot change
* draft: details v2 containers
* Revert "draft: details v2 containers"
This reverts commit 7c6580c974a7c749490c909778757a51a13b8e07.
* uniform padding and single tab styling
* update snapshot
* update default tab behaviour
* add trait bubble
* working chevrons
* shared bubble tab title
* add placeholder nums for offers and listings
* remove styles and update snapshot
* remove chevron and update snapshot
* use test asset for snapshot
* max width
* convert to map with keys
* remove bubbletext helper
* remove extra brace
* use styled components and memo
* update trait component height
* update snapshot
* Add count field to Tab
* add comment
* update snapshot
* move styled component to shared folder
* update snapshot
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
Co-authored-by: Jack Short <john.short.tj@gmail.com>
2023-04-25 09:40:43 -07: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
Charles Bachmeier
cd3cff0202
chore: remove graphql feature flag and old query methods ( #6384 )
...
* remove graphql feature flag and old query methods
* remove unused fn
* remove redundant names, simplify import
* explicit var naming
* column
* add comment
* update flag check
* undo
* visit /swap in uni search test
* empty array base
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-04-24 14:03:24 -07:00
Zach Pomerantz
90546fd803
fix: rm non-serializable data ( #6430 )
2023-04-24 12:59:23 -07:00
Zach Pomerantz
bee558fa1a
test: squelch console.debug ( #6429 )
2023-04-24 12:59:12 -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
Tina
545fdd2cbe
feat: Update Subhead text to match Figma spec ( #6307 )
...
* update font weight and line height to match figma
* remove unnecessary fontWeight and lineHeight props
* revert textSecondary change
* revert SubheadSmall change
* remove lineHeight from Subheader for Success screen
* add Trans wrapper to Sweep text
* reduce gap between name and address to 2px
* update snapshot tests for classnames change
* fix failing snapshot
---------
Co-authored-by: Lynn Yu <lynn.yu@uniswap.org>
2023-04-24 15:06:15 -04:00
Zach Pomerantz
201dc2ce85
refactor: keep constants insular ( #6411 )
2023-04-24 08:45:38 -07:00
Zach Pomerantz
c36d9c3d3f
test: rm flaky retry test ( #6431 )
2023-04-24 08:32:38 -07:00
Jordan Frankfurt
bc48b4fb0e
feat: reduce severity of phishing filter to allow url token names ( #6249 )
...
* feat: reduce severity of phishing filter to allow url token names
* fix # positions, prototype progressive risk check w/ list presence
* functional progressive risk check functionality
* better name for tokenList
* remove logs/todos
* make it work for mini-portfolio
* getUniqueAddressesFromPositions
* useTokenContractsConstant
* adds comment documenting the positionInfo->positionDetails type mapping
* safe->filtered positions in the Pool page
* use for loop instead of reduce
* WIP: token constants lookup table consolidating chain data and list data
* remove lookup table to pr#6268
* use NEVER_RELOAD
* use a counter on tokenList inclusion
* pr feedback - code simplification
* add tests
* tinaszheng pr feedback
* fix incorrect undefined fn signature
* forEach -> for loop
* add comment explainer to useFilterPossiblyMaliciousPositions
* simplify and comments re: filtration logic
* fix tests
2023-04-24 10:11:04 -05:00
Vignesh Mohankumar
ffdd311be9
fix: handle other types of chunk error codes ( #6423 )
...
* fix: handle other types of chunk error codes
* lint
* change regex
* letters only
2023-04-21 16:34:08 -04:00
Charles Bachmeier
3e5c0bddd7
feat: [DetailsV2] build containers for data page ( #6399 )
...
* add page break and placeholder files
* container layout
* description tabs
* add table tabs
* mobile wrap
* remove todo
* adaptive padding
* add extensible tabbed component
* add new file
* add snapshot test for empty data page
* update snapshot
* add new snapshot
* undo unrelated snapshot change
* draft: details v2 containers
* Revert "draft: details v2 containers"
This reverts commit 7c6580c974a7c749490c909778757a51a13b8e07.
* uniform padding and single tab styling
* update snapshot
* update default tab behaviour
* max width
* convert to map with keys
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
Co-authored-by: Jack Short <john.short.tj@gmail.com>
2023-04-21 12:38:07 -07:00
Tina
b161022fb1
feat: Use local reducer in Swap flow ( #6312 )
...
* test: swap flow cypress tests
* fix: use default parameter
* use local reducer in swap flow
* remove swap from global reducer
* fix: remove comments
* feat: add new test
* move token constant to fixtures file
---------
Co-authored-by: Eddie Dugan <eddie.dugan@uniswap.org>
2023-04-21 14:32:13 -04:00
eddie
a05dedd8be
fix: remove the info icon popover from the toolbar ( #6407 )
...
* fix: remove the info icon popover from the toolbar
* fix: boolean
2023-04-21 11:10:10 -07:00
Vignesh Mohankumar
916ebef480
fix: filter CSS related 499 chunk errors ( #6417 )
...
* add in css errors
* rm console
* change code
2023-04-21 13:07:50 -04:00
Jack Short
aa77a7a23a
chore: adding snapshot tests for nftCard components ( #6410 )
2023-04-21 12:28:46 -04:00
Vignesh Mohankumar
67b5896886
fix: ignore ChunkLoadingErrors if related to 499 or missing data ( #6365 )
...
* fix: ignore ChunkLoadingErrors if related to 499 or missing data
* add tests
* more tests
* types
* no syntaxerror
* handle undefined performance
* change test name
* comment
* Update src/tracing/errors.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/tracing/errors.test.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/tracing/errors.test.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* rm unnecessary
* change
* rm any
* cast earlier
* fixes
* fix: typings
* fixes
* rm mock
* rm comment
* try polyfill
* fix mocks
* rm stuff
* move mock
---------
2023-04-21 12:03:25 -04:00
cartcrom
9e31756cc6
chore: remove miniportfolio and mgtm flags ( #6416 )
...
* chore: remove miniportfolio and mgtm flags
* fix: tiny css fix
2023-04-21 12:00:09 -04:00
Jack Short
3900cdd0dc
chore: removing fallback rarity provider ( #6408 )
2023-04-21 11:56:13 -04:00
Vignesh Mohankumar
fcc6a2d560
fix: filter out all unsafe-eval
csp errors ( #6409 )
...
* update match
* Update src/tracing/errors.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* lint
* add test
---------
2023-04-21 10:58:49 -04:00
Zach Pomerantz
2268860615
test: web3 ( #6299 )
...
* build: upgrade web3-react@^8.2
* test: web3
* fix: update test name
2023-04-20 15:30:30 -07:00
eddie
cf95949406
fix: replace CMC token list URL ( #6406 )
2023-04-20 13:58:55 -07:00
eddie
d63bcca539
test: swap flow cypress tests ( #6331 )
...
* test: swap flow cypress tests
* fix: use default parameter
* fix: use shared token addresses
* fix: fix test
* fix: nits
2023-04-20 13:00:43 -07:00
Vignesh Mohankumar
671041360d
fix: filter CSP unsafe-eval errors ( #6397 )
...
* fix: filter CSP errors
* not syntax
* comment
2023-04-20 14:58:45 -04:00
Vignesh Mohankumar
36bdf5dd3e
fix: show empty state on /add and /remove ( #6346 )
...
* fix: handle invalid chainId on position page
* fix
* add test
* Revert "add test"
This reverts commit d18742aa506b210a6600d6ec2e8b5166d514f988.
* fix: prevent crashes on /add and /remove on unsupported chains
* handle v3 rm
* chainId
* lint
* Update src/pages/RemoveLiquidity/V3.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-04-20 14:54:27 -04:00
lynn
8b1a0e99ee
test: swap modal header unit test ( #6361 )
...
* init
* init
* use test constants
* use constants
* change address
* more comprehensive tests
* move noop
* add eslint rule
* return null in noop
* merge
* fixes
2023-04-20 11:21:57 -04:00
cartcrom
a68a7e1bb4
fix: updated uniswap wallet images ( #6390 )
...
* fix: updated uniswap wallet images
* fix: revert unintended css update
* feat: use updated app icon w/ border
2023-04-20 10:54:33 -04:00
yyip-dev
95b9624bca
feat: Update to app store link with tracking params ( #6398 )
...
Update to app store link with tracking params
2023-04-19 18:35:05 -04:00
Jack Short
55f1e35ffc
fix: pwat not setting correct spender ( #6320 )
...
* fix: pwat not setting correct spender
* todo
* responding to comments
2023-04-19 13:43:37 -04:00
lynn
01a3aa1c92
chore: add constants for testing ( #6367 )
...
* init
* use constants
* change address
* move noop
* add eslint rule
* return null in noop
* fixes
2023-04-19 12:21:30 -04:00
Zach Pomerantz
135cb8fb34
fix: translate "Get started" on landing page ( #6371 )
...
* fix: translate "Get started" on landing page
* lint: html
2023-04-17 14:03:38 -07:00
cartcrom
bf50582d38
test: local activity tests ( #6341 )
...
* refactor: move MP files into subfolders
* refactor: consolidate MP subfolder file-naming scheme
* test: add tests for parseLocal.ts
* refactor: update existing parseLocal tests
2023-04-17 13:03:43 -07:00
lynn
110e23d6eb
fix: fix padding for transaction toast notifications ( #6373 )
...
* padding fixes, special casing for txn
* add drop shadow, change width to 348px, remove debug code
* opacity animation
* address comments
* one more change
* respond to tina comments
* name change
* add $ to padding
2023-04-17 14:39:38 -04:00
Vignesh Mohankumar
4e99cc4d93
build: send url without hash to sentry ( #6352 )
...
* build: send url without hash to sentry
* comments
* Update src/tracing/index.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/tracing/index.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* add test
* move files around
2023-04-13 17:49:29 -04:00
Vignesh Mohankumar
6d29815f59
fix: ignore error caused by Cloudflare HTML response ( #6356 )
...
* fix: ignore error caused by Cloudflare HTML response
* add test
* Update src/tracing/errors.test.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/tracing/errors.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/tracing/errors.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* multiline
2023-04-13 17:48:50 -04:00
Zach Pomerantz
4888fe23df
test: add jest.asMock ( #6310 )
...
* test: add jest.asMock
* test: use mocked instead
* test: split test-utils to prevent interaction
* test: whoops missed one
* Merge but actually this time
2023-04-13 12:44:06 -07:00
Zach Pomerantz
ef9ecd9ce2
build: optimize build by splitting out typechecking and linting ( #6323 )
...
* build: move typecheck/lint out of build
* build: add typecheck to test action
* build: fix lint to use gitignore
* fix: correctly lint/check
* fix: simplify lint
* build: back out eslint array-ification
* test(lint): add comment RE config/typings
* build: clarify craco webpack plugin mods
* build: simplify craco webpack with functional methods
* build: rm unused IgnorePlugin
* test(lint): order imports
2023-04-13 12:43:47 -07:00
Jack Short
f5d0804c46
feat: creating feature flag for details v2 page ( #6359 )
...
* feat: creating feature flag for details v2 page
* eslint ignore
* moving details v2 under trace
2023-04-13 15:43:14 -04:00
Vignesh Mohankumar
0bac257254
fix: handle invalid chainId on position page ( #6338 )
...
* fix: handle invalid chainId on position page
* fix
* add test
* Revert "add test"
This reverts commit d18742aa506b210a6600d6ec2e8b5166d514f988.
* pr comments
* rename
* fix
2023-04-13 15:40:31 -04:00
lynn
a77752ab83
fix: re-implement dark mode for connector icons ( #6329 )
...
* init
* init
* Update src/connection/index.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/components/Identicon/StatusIcon.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update src/components/Identicon/StatusIcon.test.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* address comments
* unit test + remove _url in names
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-04-13 11:17:48 -04:00
cartcrom
bf31ca4f06
feat: updated banner ( #6355 )
...
* feat: updated banner
* fix: linted
* feat: add download link to overflow menu
* feat: hover animation
* fix: update landing screen hide logic
* feat: added descriptor comment for stopPropogation
* fix: translations & responsiveness of button text
* fix: icon sizing / padding + word casing
* fix: Learn more casing
2023-04-12 22:00:05 -04:00
Charles Bachmeier
ed8afbd851
fix: App crashing when changing sorting or toggling usd price on trneding NFTs table ( #6354 )
...
* fix app breaking when changing sorting or toggling usd price
* compare floor change correctly
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-04-12 15:49:04 -07:00
Vignesh Mohankumar
47b6a7c4d5
build: add chainId as tag in sentry ErrorBoundary ( #6345 )
...
* build: add chainId to sentry tags
* set it in web3provider
* set before sending
2023-04-12 14:43:37 -04:00
cartcrom
086fc65457
feat: remove /wallet route ( #6350 )
...
* feat: replace internal microsite routes with links to external site
* feat: use updated analytics events from events repo
* fix: remove unnused empty wallet page
2023-04-12 13:55:53 -04:00
cartcrom
7df53f30a0
feat: uniwallet banner ( #6344 )
...
* feat: update wallet banner display logic
* fix: linted
* fix: learn more link
2023-04-12 12:03:00 -04:00
Jack Short
66497a0108
fix: last sale nan ( #6337 )
...
* fix: last sale nan
* correct formatted price
* responding to comments
* refactoring for readability
2023-04-12 11:45:48 -04:00
cartcrom
e0eb701bc0
feat: log connection activation/errors ( #6333 )
...
* feat: log connection activation/errors in console.debug
* fix: remove now-redundant comment
2023-04-12 10:36:01 -04:00
cartcrom
36cb0668a3
fix: use updated wallet links/language ( #6343 )
...
fix: use updated links/language
2023-04-11 18:36:34 -04:00
eddie
810f42136e
fix: auto-dismiss MP bottom sheet after Buy Crypto click ( #6298 )
2023-04-11 14:46:28 -07:00
Charles Bachmeier
39b5bb37cd
feat: hide looksrare until we can support their sdk ( #6339 )
...
* hide looksrare until we can support their sdk
* remove commented code
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
2023-04-11 13:13:55 -07:00
cartcrom
feed63b1b3
refactor: reorganize mini-portfolio file names ( #6336 )
...
* refactor: move MP files into subfolders
* refactor: consolidate MP subfolder file-naming scheme
2023-04-11 15:26:27 -04:00
Vignesh Mohankumar
ee56382956
fix: ignores "user rejected transaction" errors ( #6330 )
...
* ignore user rejected errors
* test
* fix
* use util
2023-04-11 14:28:30 -04:00
lynn
64e396d9e0
fix: update empty state svg icons ( #6326 )
...
* update icons
* add snapshot test for empty states
* update failing snapshot
2023-04-11 13:37:05 -04:00
Tina
2ffc8a0bdf
chore: Remove SWAP_TRANSACTION_COMPLETED event ( #6328 )
...
remove swap completed event
2023-04-10 17:27:02 -07:00
eddie
5ec9cdc5c4
fix: redo MP drawer layout changes with mobile fixed ( #6280 )
...
* fix: redo MP drawer layout changes with mobile fixed
* fix: mobile fix and another test
* fix: comments
2023-04-10 12:53:58 -07:00
eddie
4d85775d90
fix: update CurrencyList unit tests ( #6321 )
...
* fix: testing snapshot updates
* fix: remove inline style and update snapshots tests
2023-04-10 12:18:54 -07:00
eddie
c1c59ca692
refactor: rename WalletDropdown to AccountDrawer ( #6313 )
...
* feat: rename WalletDropdown to Portfolio
* fix: update after rebase
* feat: rename from Portfolio to AccountDrawer
* fix: fix test
2023-04-10 11:26:05 -07:00
lynn
c9c3329bc3
fix: switch back buttons in mini portfolio ( #6327 )
...
switch back header
2023-04-10 12:57:31 -04:00
eddie
13d0b70fa8
fix: remove "Received Swap Quote" field from Connect Wallet event ( #6316 )
2023-04-10 09:18:07 -07:00
lynn
b852e4e64a
feat: adding analytics for fiat on ramp buy button feature ( #6272 )
...
* init
* testing if it works
* wip
* tooltip still not working correctly
* modal still not triggered after initial buy click
* remove invalid import
* region check fixed
* add disabled buy button treatment
* simplify and fix toggle twice bug
* no more state mgmt bugs finally
* rename vars for clarity and add todos
* add feature flag, remove toast
* keep wallet drawer open upon repeated buy clicks
* remove from feature flag modal for now
* unused vars
* first round respond to tina comments
* respond to tina padding comments, fix padding in response to cal feedback
* last round tina comments
* init pending element names being added to analytics events repo
* update event names
* add tooltip delay requested by fred and cal
* middle of revisions, fiat buy flow readability wip
* hook logic refactor done + added basic unit test
* rename enum and add todo for unit tests
* mouseover tooltip disable properly
* fix mouseover tooltip not working, ensure dot working as expected, rename buyFiatClicked to buyFiatFlowCompleted
* change developer doc comment
* respond comments
* update snapshot test
* lint fix
* remove unnecessary changes
2023-04-07 13:02:07 -04:00
lynn
55bd3555be
feat: Web 2996 add fiat on ramp buy flow to swap modal on the interface ( #6240 )
...
* init
* testing if it works
* wip
* tooltip still not working correctly
* modal still not triggered after initial buy click
* remove invalid import
* region check fixed
* add disabled buy button treatment
* simplify and fix toggle twice bug
* no more state mgmt bugs finally
* rename vars for clarity and add todos
* add feature flag, remove toast
* keep wallet drawer open upon repeated buy clicks
* remove from feature flag modal for now
* unused vars
* first round respond to tina comments
* respond to tina padding comments, fix padding in response to cal feedback
* last round tina comments
* add tooltip delay requested by fred and cal
* middle of revisions, fiat buy flow readability wip
* hook logic refactor done + added basic unit test
* rename enum and add todo for unit tests
* mouseover tooltip disable properly
* fix mouseover tooltip not working, ensure dot working as expected, rename buyFiatClicked to buyFiatFlowCompleted
* change developer doc comment
* respond comments
* update snapshot test
* comments
* small changes + unit tests
* dedup
* remove enzyme
* Remove unecessary line
* simplify
* more cleanup
* add missing await
* more comments
* more comment responses
* more comment responses
* delay show fixes and respond to comments
* fix logic for show
* remove tooltip delay, unit test changes
* Update src/components/Popover/index.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* remove delay on tooltip
* missed one
* Update src/components/swap/SwapBuyFiatButton.test.tsx
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
* comments
* .
* lint error
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
2023-04-06 17:06:50 -04:00
Zach Pomerantz
972a65066c
fix: do not double-report i18n exception ( #6308 )
2023-04-06 13:18:01 -07:00
eddie
39a212f762
fix: catch json parse error in fetchTokenList ( #6278 )
...
* fix: catch json parse error in fetchTokenList
* fix: refactor fetchTokenList and add more tests
* fix: import in test
* fix: comments and names
* fix: comment format
* fix: comment formatting
2023-04-06 11:15:39 -07:00
Jack Short
c362f4fe39
chore: removing unnecessary data in assets query ( #6301 )
...
* chore: removing unnecessary data in assets query
* no smallimageurl
* disabling nft drawer loading initially on nft pages
* removed too much
* renaming
* fix missing rank
2023-04-06 14:04:16 -04:00
eddie
271ef580e1
fix: make token list version bump error quieter ( #6271 )
...
* fix: use console.debug for expected transient error
* fix: add tests
* fix: name and lints
2023-04-06 10:26:56 -07:00
cartcrom
ab214a8133
fix: only use local txs for current account ( #6284 )
...
* fix: only use local txs for current account
* refactor: remove unecessary try/catch
* fix: add back try/catch
2023-04-06 11:43:39 -04:00
eddie
1b2d86ae3a
feat: remove amplitude swap error logging ( #6306 )
2023-04-05 16:09:07 -07:00
eddie
709fad0804
test: add unit test coverage to some redux state files ( #6285 )
2023-04-04 09:46:24 -07:00
Zach Pomerantz
573f4c873a
fix: omit failed eth_blockNumber calls from sentry ( #6267 )
...
* build: upgrade sentry
* fix: omit failed eth_blockNumber calls from sentry
* test: beforeSend
* fix: bring to parity with #6281
* docs: type filterKnownErrors to beforeSend
2023-04-03 15:12:33 -07:00
eddie
d300db669f
fix: z index issue with socks icon ( #6295 )
2023-04-03 15:12:22 -07:00
eddie
fb8217ddea
fix: dont block trade when price impact is favorable ( #6261 )
...
* fix: dont block trade when price impact is favorable
* fix: add comment
2023-04-03 14:13:27 -07:00
Jordan Frankfurt
7b9a23d920
feat: reduce severity of phishing filter to allow url token names ( #6282 )
...
* feat: reduce severity of phishing filter to allow url token names
* tests
* remove unused var from test
* test rendering mini portfolio pools list
* update owner
* update variable names to match cmcewen's suggestions
* checkStringForURL -> hasURL
2023-03-31 12:59:02 -05:00
Connor McEwen
120ad935fa
revert: "fix: mini portfolio layout fixes" ( #6279 )
...
Revert "fix: mini portfolio layout fixes (#6260 )"
This reverts commit fb05439d321c9f8e26800738092add2e8ccd0c8f.
2023-03-30 18:47:42 -04:00
cartcrom
4eaf16b624
fix: injection detection bug ( #6276 )
...
* fix: use functions to check injection status rather than static vars
* fix: unnused field
* fix: don't prompt mm install for generics
* fix: generic injector function
* fix: display name for MM on cb browser
* fix: re-add ios mobile check for uniswap wallet
* fix: reword comment
* fix: refactor delayed-injection test
* feat: added comments
* fix: revert to minimal changes
* fix: update tests
2023-03-30 17:50:20 -04:00
eddie
fb05439d32
fix: mini portfolio layout fixes ( #6260 )
...
* fix: mini portfolio layout fixes
* feat: refactor MP drawer CSS
2023-03-30 12:07:02 -07:00
eddie
fb7eade70b
fix: l2 icon borders in MP ( #6254 )
...
* fix: l2 icon borders in MP
* fix: bool logic
* fix: comments and add test
* fix: change variable name
* fix: split l2 icon into two components
2023-03-30 11:59:46 -07:00
eddie
bd2b2c487a
fix: close MP drawer on nft nav ( #6251 )
...
* fix: close MP drawer on nft nav
* fix: make callbacks optional, rename props
* fix: improve card API
* fix: add e2e test
2023-03-29 15:08:30 -07:00
eddie
2f004ed1d9
fix: remove deprecated default imports from zustand ( #6270 )
...
* fix: replace default imports from zustand
* fix: add eslint rule
* fix: typo
o
2023-03-29 13:25:30 -07:00
Zach Pomerantz
db257c73f2
fix: improve chain id error ( #6266 )
...
* build: upgrade sentry
* fix: improve chain id error
2023-03-29 12:38:33 -07:00
Zach Pomerantz
7c37b9d00e
build: upgrade sentry ( #6264 )
...
* build: upgrade sentry
* chore: comment nits
2023-03-29 11:05:13 -07:00
eddie
06dd41a9cd
fix: getCurrency crash when token not found ( #6263 )
...
* fix: getCurrency crash when token not found
* fix: comments and add test
* fix: remove extra whitespace in unit test
* fix: make e2e test pass
2023-03-28 18:44:48 -07:00
eddie
850fec40a9
fix: remove price tag from nft cards in the side drawer ( #6252 )
...
* fix: remove price tag from nft cards in the side drawer
* fix: decouple price from display logic
* fix: missing file chaneg
* fix: add tests
2023-03-28 09:26:32 -07:00
Jordan Frankfurt
048607080c
feat: add query param to disable the nft sections of the app ( #6225 )
...
* feat: add queryparam to disable the nft sections of the app
* fix
* include mini portfolio
* add comments explaining nft disable atom usage and suggesting future work
* add subtitle exception to landing page and correct the bool
* update comment
* comment syntax nits
2023-03-27 20:54:39 -05:00
eddie
a0f20c54d8
feat: implement new designs for tx notifs ( #6232 )
...
* feat: re-add transaction activity popups
* feat: implement new designs for tx notifs
* fix: address comments
* fix: remove color from alert icon
* fix: nits
* fix: remove null check
* fix: fix
2023-03-27 13:56:52 -07:00
Zoltan Arvai
da79abbc0d
feat: adds Ledger Connect to non-MetaMask wallet list ( #6257 )
...
feat: add Ledger Connect to non-MetaMask wallet list
2023-03-27 16:16:30 -04:00
Vignesh Mohankumar
5ac08e1142
fix: link to lowercase chain name from position page ( #6195 )
...
* fix: link to lowercase chain name from position page
* fix: use existing const
2023-03-27 14:41:03 -04:00
eddie
d330eea375
feat: re-add transaction activity popups ( #6223 )
2023-03-27 10:07:41 -07:00
Vignesh Mohankumar
8ce8e17f62
fix: Revert to previous Nav menu ( #6258 )
...
* fix: revert nav
* lint
* fix
* fix
2023-03-27 12:32:01 -04:00
Vignesh Mohankumar
eb105b6ec7
fix: align /pools CTAs to the top ( #6253 )
...
* fix: align /pools CTAs to the top
* connor comments
* Revert "connor comments"
This reverts commit e8f25e8fa1ad013bb33084d77d1474883cd1dd9b.
2023-03-24 18:33:28 -04:00
eddie
267e7de2b6
feat: remove unicon tooltip entirely ( #6250 )
2023-03-24 13:11:21 -07:00
lynn
ab9f2af054
fix: modify mini portfolio pools row event properties ( #6248 )
...
* init
* use memo
2023-03-24 15:49:38 -04:00
lynn
281dbf4305
feat: remove tax service toast, modal, and menu item ( #6244 )
...
* init
* fix
2023-03-24 11:50:07 -04:00
lynn
369f2d7dfa
fix: update tax copy again ( #6241 )
...
init
2023-03-23 20:29:37 -04:00
Jordan Frankfurt
803c749b13
fix: remove backend name check from badge flag ( #6236 )
...
* fix: remove backend name check from badge flag
* drop undefined check
* drop bool cast
2023-03-23 17:01:09 -05:00
lynn
8818dadf24
fix: update tax services copy ( #6239 )
...
init
2023-03-23 17:39:22 -04:00
Jordan Frankfurt
d179fc6b84
fix: don't show the add liquidity warning when no position currently … ( #6238 )
...
fix: don't show the add liquidity warning when no position currently exists
2023-03-23 16:18:35 -05:00
Jordan Frankfurt
18ec675c52
feat: warn when adding liquidity to an unowned LP position ( #6219 )
...
* feat: warn when adding liquidity to an unowned LP position
* update boolean name
* use a better address equivalence check
2023-03-23 12:09:22 -05:00
lynn
1a79bac893
feat: add additional mini portfolio events ( #6233 )
...
* add events
* update nft logging
* fix lint
* mikes comments
2023-03-23 12:34:59 -04:00
Jordan Frankfurt
7ee41abd99
feat: design refresh on pool list items ( #6230 )
...
* update LP tags
* design feedback
2023-03-22 20:48:31 -05:00