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

Reskin | Update deterministic avatar generation library #1607

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

adamgall
Copy link
Member

@adamgall adamgall commented Apr 26, 2024

Replaces the "Jazzicon" avatars with classic "Blockie"-style avatar, to be consistent with the ecosystem.

Testing

  1. Connect an address to Fractal
  2. See how the new icon that shows up for your address
  3. Is the same generated icon that shows up for your address on Etherscan
  4. And Metamask

Fractal:
Screenshot 2024-04-25 at 8 17 44 PM

Etherscan:
Screenshot 2024-04-25 at 8 17 56 PM

Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for fractal-dev ready!

Name Link
🔨 Latest commit 0a1305e
🔍 Latest deploy log https://app.netlify.com/sites/fractal-dev/deploys/662bac31bb3ccb0008c7fda3
😎 Deploy Preview https://deploy-preview-1607.app.dev.fractalframework.xyz
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines 19 to 20
borderRadius={'50%'}
overflow={'hidden'}
Copy link
Member Author

Choose a reason for hiding this comment

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

To make them circles

Copy link
Contributor

@mudrila mudrila left a comment

Choose a reason for hiding this comment

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

Couple minor suggestions, but looks good!

return (
<Box
h={avatarSizes[size]}
w={avatarSizes[size]}
borderRadius={'50%'}
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to wrap in curly braces here, it could be just borderRadius="50%"

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair, my autocomplete sticks those braces in. Will remove.

return (
<Box
h={avatarSizes[size]}
w={avatarSizes[size]}
borderRadius={'50%'}
overflow={'hidden'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Member Author

Choose a reason for hiding this comment

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

Same

>
<Jazzicon address={address} />
<img
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we wanna use plan <img /> tag here? I think usually we're using <Image /> component from @chakra-ui/react

Copy link
Member Author

Choose a reason for hiding this comment

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

Good callout

@adamgall adamgall changed the base branch from develop to reskin/refactor-root-reskin April 26, 2024 13:32
@adamgall adamgall merged commit a3aa7ea into reskin/refactor-root-reskin Apr 26, 2024
7 checks passed
@adamgall adamgall deleted the update-blockie-avatar branch April 26, 2024 13:32
@adamgall adamgall changed the title Update deterministic avatar generation library Reskin | Update deterministic avatar generation library Apr 29, 2024
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.

3 participants