* don't need undo logic
* maybe need to return connector
* make sure the urlChainId doesn't equal existing chainId
* fix network switching
* add back revert logic
* undo changes to switchChain
* move revert logic into the hook
* feat: show injected options in wallet browsers
* initial testing
* more mocking
* mock more
* mobile tests
* updates
* add data test
* finally got the mock to work
* WORKING
* uncomment
* rm console.log
* fix
* check length
* fix tests to use useWeb3React
* rm
* rename tests
* use data-testid
* findByTestId
test -> it
add types
temp
rm exclude
get -> find
* Revert "findByTestId"
This reverts commit 1e1c483ef90596b41f649443be1b191414ab3876.
* rm some test ids
* fix
* fix: set content-type on cached document
* fix: delete old content-types
* fix: avoid immutable headers
* test: content-type
* fix: do not destructure response
* test: serve from cache with vercel
* fix: inject cache marker into body
* fix: serviceworker request path
Always requests the app-shell from the same path as the cache key, in
order to guarantee that the etags will match should the cache be valid.
* fix: avoid returning redirects
* fix: show no price impact eth to weth
Fixed the price estimate values to reflect the correct price estimates depending on whether it is a wrapped trade
* fix: show no price impact eth to weth
Fixed to display the correct price estimates depending on whether it is a wrapped trade (eth -> weth should show no price impact)
* Added ETH->wETH testing
Added a Cypress test to check wrapped value swap has no price impact
* make Cypress test cleaner
* fix: always-fresh service worker cache
* chore: clarify service-worker
* fix: cache in CacheStorage
* feat: set __isDocumentCached
* add back in manifest precaching
* add unit tests (incomplete)
* test: simplify test env
* test: add service-worker cypress test
* test: service-worker document handler
* fix: CachedDocument ctor
* fix: Readable for ReadableStream in jest
* build: clean up module loading
* fix: rename commands->ethereum
* build: simplify package.json deps
* build: clean up cypress usage
* build: clean up yarn.lock
* build: record cypress runs
* build: disable chromeWebSecurity in cypress tests
* build: rm babel
* build: disable sw in ci cypress
* build: nits
* build: update workbox version
* chore: fix merge
* test: cache
* test: cypress-ify the before hook
* test: clear sw before each test
* fix: cy then
* test: cypress shenanigans
* style: lint
* chore: rm todo
* test: fail fast for service worker with dev builds
* docs: update contributing to tests
* fix: clean up tests after merge
- Add fast fail in case of dev server, which lacks ServiceWorker
* fix: inject ethereum
* test: service worker
* test: increase sw timeout
* test: sw state
* test: run cypress in chrome
* feat: add on-demand caching to improve sw startup time
* test: test dynamically
* fix: simplify cached doc
* fix: optional sw
* fix: expose response on cached doc
* fix: stub out sw req
* fix: intercept
Co-authored-by: Christine Legge <christine.legge@uniswap.org>
* fix: fix scroll on page navigation
* fix: scroll to top when navigating in whole app
* fix: refactor to use useHistory hook
* fix: change scrollToTop component to hook
Co-authored-by: Lynn Yu <lynn.yu@uniswap.org>
* fix: use simple toggle instead of toggle with text init commit
* fix: also change toggle in voting page and list toggle used in manage token list
* fix: simplify all toggle components into one configurable toggle
* fix: add ease-in animations for toggle
* fix: remove animation from toggle on initial page load to reduce thrash
Co-authored-by: Lynn Yu <lynn.yu@UNISWAP-MAC-015.local>
Co-authored-by: Lynn Yu <lynn.yu@uniswap.org>
* fix: use simple toggle instead of toggle with text init commit
* fix: also change toggle in voting page and list toggle used in manage token list
* fix: simplify all toggle components into one configurable toggle
* fix: add ease-in animations for toggle
Co-authored-by: Lynn Yu <lynn.yu@UNISWAP-MAC-015.local>
Co-authored-by: Lynn Yu <lynn.yu@uniswap.org>
* fix: add animated loading bars and ensure sorted tokens upon load
* refactor: undo refactor of token selector component in CurrencySearch
* fix: fix styling as per design, still need to respond to other comments in review
* fix: add timeout to token loader of 2 seconds
* fix: add snapshot test and styling changes as per fred rec
* refactor: simplify function in currency list test
* fix: increase loading bars time from 2 seconds to 3 sec
* fix: respond to zach's comments
* fix: fix import errors
Co-authored-by: Lynn Yu <lynn.yu@UNISWAP-MAC-015.local>
* Add 'hide closed positions' to mobile pool view
* Update 'Hide closed positions' mobile font size
* add new toggle from design spec
* change off toggle button color
* Update SimpleToggle.tsx
* update wrapping position for toggle, improve component naming
* change usdcPrice in swap modal to use fixed decimals instead of significant formatting
* change text for fiatValue as well
* change decimal points condition to 1.05
* (m) missed one value
- fix: handle non existing inputCurrency from url
oppening an url swap?inputCurrency=not_existing_address
cause a state where you are not able to change input currency