Charles Bachmeier
beef7f2d86
feat: Condense color extraction logic and improve fallback ( #7347 )
...
* refactor: move getColor to src
* refactor useColor to use getColor function
* remove consts
* refactor files
* clean up color convert fn
* move getColor test and import test images
* hardcode array buffers for images
* add invalid png
2023-09-22 10:09:05 -07:00
eddie
e81b0a4d1f
test: unit tests for activity tab createGroups, and update cloud test snapshots ( #7364 )
...
* test: unit tests for activity tab createGroups
* fix: update cloud test snapshots
2023-09-21 12:03:10 -07:00
Nate Wienert
aeef2c2356
fix: Fix visual issues in Spore ( #7240 )
...
* feat: make meta theme-color adapt to new spore background colors
* fix: make glow behind swap modal use a blur strategy rather than box shadow for a more squared glow
* test: grainy bg
* fix: make pool liquidity add input focus border same as swap
* remove svg grain
2023-09-20 09:44:25 -10:00
Charles Bachmeier
13f57d8d73
feat: block dynamic link previews for blocked collections ( #7344 )
...
* feat: block link previews for blocked collections
* update collection test
* single invalid
* move blocklist to its own const file
* rename file to blocklist
2023-09-19 11:07:07 -07:00
Jordan Frankfurt
5c53d8237d
test: update cloud test snapshots ( #7311 )
...
fix: -u on cloud tests
2023-09-14 12:27:58 -05:00
Zach Pomerantz
16cefb9cdb
test: fix cloud tests ( #7280 )
2023-09-08 10:53:22 -07:00
Nate Wienert
59db4c5b02
feat: Spore colors refresh ( #7118 )
...
* Add colors and type and fix everywhere
* fix text.tsx
* Color and text adjustments
* Further tweaks
* Removed promotional gradient
Changed to pink
* Add new icons and tweak broken colors
* Kill shadows
Removes shadows from NFT cards, Pools and Tokens tables
* Update icons
Update filled and info icons to filled versions
* Update bag icon
Changed to fill style
* Change share icon
Changed to the new filled arrow
* Fix merge errors
* update tests
* Complete find and replace old colors
* Fix colors on pool pages
* Update index.test.tsx.snap
* fix header hover states
* update test
* Update connect button hover state
* Update styles design bash
* Update tests
* Update fonts
* fix buy button font weight
* update tests
* fix jumping input boxes
* lint
* lints
* update tests
* redo auth header
* fix issues
* fix snapshots
* use individual weights instead of variable for nicer $ signn
* update tests
* make dark mode glow distinct
* remove commented out code
* icons in react
* update textSecondary
* fix feedback
* port over token test fix
* lint
* fix: make popups appear above drawer and near top conditionally only when drawer is open
* Revert "fix: make popups appear above drawer and near top conditionally only when drawer is open"
This reverts commit 994697144374ae3fc0cdf9275bce538fda5fc8de.
---------
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
Co-authored-by: pp-hh-ii-ll <111304124+pp-hh-ii-ll@users.noreply.github.com>
Co-authored-by: Callil Capuozzo <callil@uniswap.org>
2023-08-24 17:14:24 -10:00
Brendan Wong
e893bc2685
fix: make line height bigger for token preview ( #7186 )
...
* make line height bigger
* Update [[index]].tsx
2023-08-17 17:20:18 -04:00
Brendan Wong
cccf6ac680
fix: add assets to public folder ( #7153 )
...
* fix: add assets to public folder
* Update global-teardown.ts
* update assets
* resize logos
2023-08-17 16:15:17 -04:00
Brendan Wong
966b02b2de
fix: add distance check from white for token rich link previews ( #7152 )
...
* feat: lower white levels if too close
* testing and parameterization
* Update getColor.ts
* Update getColor.test.ts
* Update getColor.ts
* Update getColor.test.ts
* Update getColor.test.ts
2023-08-17 13:30:58 -04:00
Brendan Wong
0feddebcc3
feat: add CodeCov to cloud tests ( #7154 )
...
* feat: add CodeCov to cloud tests
* Update codecov.yml
* Update codecov.yml
* get cov to 80%
* remove unneeded test
2023-08-17 11:30:56 -04:00
Brendan Wong
51dc10b467
fix: remove flakey tests from cloud functions and overall deflake ( #7156 )
...
* fix: remove flakey tests
* increase setup time
* reduce max workers
* Update .github/workflows/test.yml
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update functions/global-setup.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update global-teardown.ts
* add retry time
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-08-14 16:50:49 -04:00
Brendan Wong
b98e62cac8
fix: remove description from custom rich link previews ( #7142 )
...
* fix: remove description from custom rich link previews
* add static assets to prepare for prep
* remove added assets
2023-08-11 18:53:48 -04:00
Brendan Wong
6cd1f04584
fix: remove lowering opacity for token previews ( #7145 )
...
Update [[index]].tsx
2023-08-11 18:32:16 -04:00
Brendan Wong
2ce7b08244
feat: custom colors for rich link previews ( #7141 )
...
* add custom color logic
* increase timeout
2023-08-11 12:27:46 -04:00
Brendan Wong
f47e1f16d7
fix: color extraction for rich link previews ( #7138 )
...
* feat: add token and nft injection
* feat: basic tests
* fix: get jest configured properly
* fix: change timeout
* fix: uninstall port ready
* fix: readd port ready
* fix: local tests work
* Update yarn.lock
* add lint disable for setup files
* fix: update dependencies
* fix: basic test suite for nfts/tokens
* feat: collection data
* fix: make tests more comprehensive
* fix: change matches to contains
* fix: tests for twitter alt image tag
* fix: image gen
* fix: add patch-package
* fix: update yarn install
* feat: basic image gen for nfts and collections
* fix: remove vibrant attempt
* use watermark asset
* dynamically grab color
* modularize code and prototype for token preview
* refactor code
* finalize css
* fix color grabber
* update tests
* fix up css
* refactor code a bit more
* remove console logs
* tests
* update tests
* update images based on design feedback
* network logos
* update lint
* slight refactoring
* more refactoring
* fix packages
* Update yarn.lock
* remove dynamically generated image stuff
* Revert "remove dynamically generated image stuff"
This reverts commit a80241edb3a970a724b9a07ce36e492ff8a1c2af.
* change image reference and revamp tests
* cleanup return values
* Create README.md
* Revert "Create README.md"
This reverts commit 7a91c98d384995fba914c9bf9a2fb3072793621f.
* First round of feedback
* comments
* feat: cache
* Update test.yml
* Update test.yml
* Update test.yml
* feedback round 2
* final feedback
* final final feedback
* add coverage and other options
* Update test.yml
* start typecheck
* update cache
* update snapshots?
* Update jest.config.json
* Update jest.config.json
* give timeout some buffer
* update import
* upgrade ts
* fix typing for apollo deps
* finalize typechecks
* downgrade typescript to original version
* add cache directory to jest
* remove coverage
* remove google analytics from tests
* merge main
* remove timeout
* update tests
* update graphql queries
* review changes
* try cache setup
* Update cache.test.ts
* make cache helper function
* cache test
* remove unneeded test causing issues
* feat: parallelize cache (#6930 )
* feat: parallelize cache?
* remove graph query from concurrency await
* most of feedback
* move tests
* update token tests
* singleton cache
* restructuring res and cache promise
* abstract away repeated graph logic
* update tests and functions
* refactor
* update typing, parallelize, and start tests
* fix one tsc issue
* final feedback
* Update yarn.lock
* final final feedback
* add svgs
* try and setup svg
* stashing changes
* cleanup!
* prepare for start of feedback?
* LESS GOO
* modify versioning
* fix: update wrangler version
* Update yarn.lock
* downgrade wrangler
* Update yarn.lock
* Update yarn.lock
* fix type error
* update github test
* cleanup tests
* Delete custom.d.ts
* fix: cloudfunctions
* update tests
* final touchups
* lint
* change github action
* Update yarn.lock
* styling updates
* nate's feedback
* feedback p1
* typing feedback
* update yarn
* Create wrangler.toml
* move wrangler.toml location
* last try
* Delete wrangler.toml
* use 2.20?
* remove comment
* Update yarn.lock
* change compatibility date
* update wrangler and fix bugs
* Update colorthief+2.4.0.patch
* build: cleanup flags
* cleaner patches
* update compatibility date
* quick tweeks
* cleanup rendering and lint
* patch things up
* fix: color extraction
* DONE!
* tests and other qol updates
* lint
* add more tests
* feedback
* simplify getcolors
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-08-10 18:32:08 -04:00
Brendan Wong
9954f9502d
feat: dynamically generated images for rich link previews ( #6902 )
...
* feat: add token and nft injection
* feat: basic tests
* fix: get jest configured properly
* fix: change timeout
* fix: uninstall port ready
* fix: readd port ready
* fix: local tests work
* Update yarn.lock
* add lint disable for setup files
* fix: update dependencies
* fix: basic test suite for nfts/tokens
* feat: collection data
* fix: make tests more comprehensive
* fix: change matches to contains
* fix: tests for twitter alt image tag
* fix: image gen
* fix: add patch-package
* fix: update yarn install
* feat: basic image gen for nfts and collections
* fix: remove vibrant attempt
* use watermark asset
* dynamically grab color
* modularize code and prototype for token preview
* refactor code
* finalize css
* fix color grabber
* update tests
* fix up css
* refactor code a bit more
* remove console logs
* tests
* update tests
* update images based on design feedback
* network logos
* update lint
* slight refactoring
* more refactoring
* fix packages
* Update yarn.lock
* remove dynamically generated image stuff
* Revert "remove dynamically generated image stuff"
This reverts commit a80241edb3a970a724b9a07ce36e492ff8a1c2af.
* change image reference and revamp tests
* cleanup return values
* Create README.md
* Revert "Create README.md"
This reverts commit 7a91c98d384995fba914c9bf9a2fb3072793621f.
* First round of feedback
* comments
* feat: cache
* Update test.yml
* Update test.yml
* Update test.yml
* feedback round 2
* final feedback
* final final feedback
* add coverage and other options
* Update test.yml
* start typecheck
* update cache
* update snapshots?
* Update jest.config.json
* Update jest.config.json
* give timeout some buffer
* update import
* upgrade ts
* fix typing for apollo deps
* finalize typechecks
* downgrade typescript to original version
* add cache directory to jest
* remove coverage
* remove google analytics from tests
* merge main
* remove timeout
* update tests
* update graphql queries
* review changes
* try cache setup
* Update cache.test.ts
* make cache helper function
* cache test
* remove unneeded test causing issues
* feat: parallelize cache (#6930 )
* feat: parallelize cache?
* remove graph query from concurrency await
* most of feedback
* move tests
* update token tests
* singleton cache
* restructuring res and cache promise
* abstract away repeated graph logic
* update tests and functions
* refactor
* update typing, parallelize, and start tests
* fix one tsc issue
* final feedback
* Update yarn.lock
* final final feedback
* add svgs
* try and setup svg
* stashing changes
* cleanup!
* prepare for start of feedback?
* LESS GOO
* modify versioning
* fix: update wrangler version
* Update yarn.lock
* downgrade wrangler
* Update yarn.lock
* Update yarn.lock
* fix type error
* update github test
* cleanup tests
* Delete custom.d.ts
* fix: cloudfunctions
* update tests
* final touchups
* lint
* change github action
* Update yarn.lock
* styling updates
* nate's feedback
* feedback p1
* typing feedback
* update yarn
* Create wrangler.toml
* move wrangler.toml location
* last try
* Delete wrangler.toml
* use 2.20?
* remove comment
* Update yarn.lock
* change compatibility date
* update wrangler and fix bugs
* Update colorthief+2.4.0.patch
* build: cleanup flags
* cleaner patches
* update compatibility date
* quick tweeks
* cleanup rendering and lint
* final color update
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-08-10 15:29:37 -04:00
Brendan Wong
b14831be12
fix: downgrade wrangler ( #7128 )
...
* downgrade wrangler
* remove report
* comment and update test
* update comment
2023-08-09 20:20:02 -04:00
Brendan Wong
097ef6a3df
feat: fallback metadata injection ( #7070 )
...
* feat: fallback metadata
* fix lint
* Update tsconfig.json
* feedback
* fix: cloudfunctions
* update test
2023-08-08 15:50:52 -04:00
Brendan Wong
984cf81911
fix: cleanup cloud function environment ( #7085 )
...
* cleanup!
* update comments
* fix: cloudfunctions
2023-08-08 15:21:30 -04:00
Brendan Wong
2ccd228f23
fix: cloud tests broken by path based ( #7100 )
...
fix: cloudfunctions
2023-08-07 20:18:14 -04:00
Brendan Wong
f845695f6e
feat: caches GraphQL queries for Cloudflare workers ( #6929 )
...
* feat: add token and nft injection
* feat: basic tests
* fix: get jest configured properly
* fix: change timeout
* fix: uninstall port ready
* fix: readd port ready
* fix: local tests work
* Update yarn.lock
* add lint disable for setup files
* fix: update dependencies
* fix: basic test suite for nfts/tokens
* feat: collection data
* fix: make tests more comprehensive
* fix: change matches to contains
* fix: tests for twitter alt image tag
* fix: image gen
* fix: add patch-package
* fix: update yarn install
* feat: basic image gen for nfts and collections
* fix: remove vibrant attempt
* use watermark asset
* dynamically grab color
* modularize code and prototype for token preview
* refactor code
* finalize css
* fix color grabber
* update tests
* fix up css
* refactor code a bit more
* remove console logs
* tests
* update tests
* update images based on design feedback
* network logos
* update lint
* slight refactoring
* more refactoring
* fix packages
* Update yarn.lock
* remove dynamically generated image stuff
* cleanup return values
* Create README.md
* Revert "Create README.md"
This reverts commit 7a91c98d384995fba914c9bf9a2fb3072793621f.
* First round of feedback
* comments
* feat: cache
* Update test.yml
* Update test.yml
* Update test.yml
* feedback round 2
* final feedback
* final final feedback
* add coverage and other options
* Update test.yml
* start typecheck
* update cache
* update snapshots?
* Update jest.config.json
* Update jest.config.json
* give timeout some buffer
* update import
* upgrade ts
* fix typing for apollo deps
* finalize typechecks
* downgrade typescript to original version
* add cache directory to jest
* remove coverage
* remove google analytics from tests
* review changes
* try cache setup
* Update cache.test.ts
* make cache helper function
* cache test
* remove unneeded test causing issues
* feat: parallelize cache (#6930 )
* feat: parallelize cache?
* remove graph query from concurrency await
* most of feedback
* move tests
* update token tests
* singleton cache
* restructuring res and cache promise
* abstract away repeated graph logic
* final feedback
* Update yarn.lock
* final final feedback
* final final final feedback!
* final final final final feedback?
2023-08-04 14:12:20 -04:00
Brendan Wong
cd43e0beaa
fix: failing token cloud function tests ( #7074 )
...
* fix: failing token cloud function tests
* utilize enum from chains
2023-08-03 12:30:50 -04:00
Brendan Wong
ace81ecc84
fix: remove flakey token test ( #7029 )
2023-07-28 13:31:19 -04:00
Zach Pomerantz
a2e56aaabd
revert: "fix: update token tests for cloudflare functions" ( #7027 )
...
Revert "fix: update token tests for cloudflare functions (#7026 )"
This reverts commit b58d4b72ab06673761e8a0406877f360ea015c4b.
2023-07-27 09:49:18 -07:00
Brendan Wong
b58d4b72ab
fix: update token tests for cloudflare functions ( #7026 )
...
fix: update tests
2023-07-26 17:58:56 -04:00
Brendan Wong
22112c763c
feat: automated testing for cloud functions ( #6931 )
...
* feat: add token and nft injection
* feat: basic tests
* fix: get jest configured properly
* fix: change timeout
* fix: uninstall port ready
* fix: readd port ready
* fix: local tests work
* Update yarn.lock
* add lint disable for setup files
* fix: update dependencies
* fix: basic test suite for nfts/tokens
* feat: collection data
* fix: make tests more comprehensive
* fix: change matches to contains
* fix: tests for twitter alt image tag
* fix: image gen
* fix: add patch-package
* fix: update yarn install
* feat: basic image gen for nfts and collections
* fix: remove vibrant attempt
* use watermark asset
* dynamically grab color
* modularize code and prototype for token preview
* refactor code
* finalize css
* fix color grabber
* update tests
* fix up css
* refactor code a bit more
* remove console logs
* tests
* update tests
* update images based on design feedback
* network logos
* update lint
* slight refactoring
* more refactoring
* fix packages
* Update yarn.lock
* remove dynamically generated image stuff
* cleanup return values
* Create README.md
* Revert "Create README.md"
This reverts commit 7a91c98d384995fba914c9bf9a2fb3072793621f.
* First round of feedback
* comments
* Update test.yml
* Update test.yml
* Update test.yml
* feedback round 2
* final feedback
* final final feedback
* add coverage and other options
* Update test.yml
* start typecheck
* update cache
* update snapshots?
* Update jest.config.json
* Update jest.config.json
* give timeout some buffer
* update import
* upgrade ts
* fix typing for apollo deps
* finalize typechecks
* downgrade typescript to original version
* add cache directory to jest
* remove coverage
* remove google analytics from tests
* review changes
2023-07-25 15:12:13 -04:00
Brendan Wong
b230cb62f4
feat: readme for cloud functions ( #6914 )
...
* feat: add token and nft injection
* feat: basic tests
* fix: get jest configured properly
* fix: change timeout
* fix: uninstall port ready
* fix: readd port ready
* fix: local tests work
* Update yarn.lock
* add lint disable for setup files
* fix: update dependencies
* fix: basic test suite for nfts/tokens
* feat: collection data
* fix: make tests more comprehensive
* fix: change matches to contains
* fix: tests for twitter alt image tag
* fix: image gen
* fix: add patch-package
* fix: update yarn install
* feat: basic image gen for nfts and collections
* fix: remove vibrant attempt
* use watermark asset
* dynamically grab color
* modularize code and prototype for token preview
* refactor code
* finalize css
* fix color grabber
* update tests
* fix up css
* refactor code a bit more
* remove console logs
* tests
* update tests
* update images based on design feedback
* network logos
* update lint
* slight refactoring
* more refactoring
* fix packages
* Update yarn.lock
* remove dynamically generated image stuff
* cleanup return values
* Create README.md
* Revert "Create README.md"
This reverts commit 7a91c98d384995fba914c9bf9a2fb3072793621f.
* Revert "Revert "Create README.md""
This reverts commit d0a4f5b95115e8ad47b6b3fd01b47806d68ad3d7.
* add docs for html rewriter
* Update README.md
* remove previously removed files
2023-07-25 15:06:28 -04:00
Brendan Wong
ef28667d13
feat: cloudflare worker to inject meta tags ( #6901 )
...
* feat: add token and nft injection
* feat: basic tests
* fix: get jest configured properly
* fix: change timeout
* fix: uninstall port ready
* fix: readd port ready
* fix: local tests work
* Update yarn.lock
* add lint disable for setup files
* fix: update dependencies
* fix: basic test suite for nfts/tokens
* feat: collection data
* fix: make tests more comprehensive
* fix: change matches to contains
* fix: tests for twitter alt image tag
* fix: image gen
* fix: add patch-package
* fix: update yarn install
* feat: basic image gen for nfts and collections
* fix: remove vibrant attempt
* use watermark asset
* dynamically grab color
* modularize code and prototype for token preview
* refactor code
* finalize css
* fix color grabber
* update tests
* fix up css
* refactor code a bit more
* remove console logs
* tests
* update tests
* update images based on design feedback
* network logos
* update lint
* slight refactoring
* more refactoring
* fix packages
* Update yarn.lock
* remove dynamically generated image stuff
* cleanup return values
* Create README.md
* Revert "Create README.md"
This reverts commit 7a91c98d384995fba914c9bf9a2fb3072793621f.
* First round of feedback
* comments
* feedback round 2
* final feedback
* final final feedback
* nest twitter:image:alt in image check
* better title handling
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-07-18 12:35:29 -04:00
Brendan Wong
ef5065de48
feat: wrangler infra and test environment ( #6797 )
...
* feat: add token and nft injection
* feat: basic tests
* fix: get jest configured properly
* fix: change timeout
* fix: uninstall port ready
* fix: readd port ready
* fix: local tests work
* fix: remove other stuff to make this pr smaller
* fix: remove unneeded dependencies
* fix: remove port-ready
* Update yarn.lock
* fix: add lint disable due to module exports for jest
* fix: added waitPort
* fix: deduplicated things?
* Update package.json
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* update typing
* change tests to typescript instead of javascript
* changing typing of globalThis servers
* yarn deduplicate
* Update functions/global-teardown.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update functions/global.d.ts
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update functions/tsconfig.json
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update functions/tsconfig.json
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* Update package.json
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* change dependencies to dev dependencies
* final touches
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-07-07 11:41:09 -04:00