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

Update avatar urls #491

Open
2 tasks done
npaton opened this issue Jan 9, 2024 · 1 comment
Open
2 tasks done

Update avatar urls #491

npaton opened this issue Jan 9, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@npaton
Copy link
Contributor

npaton commented Jan 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

The avatar service we use in our experiment template has changed. See https://github.com/orgs/dicebear/discussions/374.

We should update the template with the new url format in the next release.

Steps To Reproduce

No response

Empirica Version

No response

What OS are you seeing the problem on?

No response

What browser are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@npaton npaton added the bug Something isn't working label Jan 9, 2024
@npaton
Copy link
Contributor Author

npaton commented Jan 9, 2024

For anyone wanting to change this in their existing experiment, change this url in client/src/components/Avatar.jsx from:

https://avatars.dicebear.com/api/identicon/${player.id}.svg

To:

https://api.dicebear.com/7.x/identicon/svg?seed=${player.id}

Note that you can this avatar service offers other avatars if you prefer. You just need to change the name of the avatar kind from identicon to what you chose, such as big-ears. Check them out here: https://www.dicebear.com/playground/

@npaton npaton added the good first issue Good for newcomers label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant