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