empiricaly / empirica

Open source project to tackle the problem of long development cycles required to produce software to conduct multi-participant and real-time human experiments online.
https://empirica.ly/
Apache License 2.0
44 stars 8 forks source link

Update avatar urls #491

Open npaton opened 7 months ago

npaton commented 7 months ago

Is there an existing issue for this?

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

npaton commented 7 months ago

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/