Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ArSvgies package + cache images in localStorage for wallets and contacts #230

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

7i7o
Copy link
Contributor

@7i7o 7i7o commented Feb 17, 2024

This PR replaces the dynamic generative script with the @7i7o/arsvgies package to generate fallback avatars for wallets and contacts
This package includes an update to generate colors from a hash to clearly distinguish wallets that create a similar shape

It also stores the generated images in localStorage for wallets and contacts to avoid processing the generative art everytime a contact or wallet component in mounted in the UI

The PR unifies all the images shapes for wallets into squircles, removing the rounded images that were used in some places for contacts

Copy link
Contributor

@nicholaswma nicholaswma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

I think previously added contacts/wallets aren't getting svgies passed to them but other than that everything looks good!

@7i7o
Copy link
Contributor Author

7i7o commented Feb 23, 2024

I think previously added contacts/wallets aren't getting svgies passed to them

You are right! I'm only generating the cached image for the ones being added 🤦
I'll get to this after I finish with my other tasks 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants