• eddie's avatar
    feat: swap rejection error handling (#6576) · 682fba21
    eddie authored
    * 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
    682fba21
swapErrorToUserReadableMessage.tsx 3.36 KB