-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I really like the project list display with image icons in the view. However, not all projects will have this. We are using the GitHub supplied avatar_url for projects with a connected remote_repo, but for others, we need something generative or a default image.
For now, I'm using Dicebear hosted images, which ultimately are SVGs currently.
In the future, we probably want these on our domain, and it wouldn't be hard to generate these and serve the statically. We probably want to:
- Generate 50-10 images and store them in our repo
- Reference these files by some sort of hashing.
{project.pk % 50}.svg
even - Tune the look and feel of the icons, I didn't do much here yet. We could use initials too.
We might also want to do this for default user, team, and organization images. Right now we rely on gravatar for organizations (weird), lots of users have the empty face icon, and we have no visual identifier for teams besides a name.
Update
The PR attached here implements a nice replacement for projects without remote repo avatar URLs, but it did overlook some caching attacks. With an API v3 change, it would be possible to do this all from the front end side instead. I'll wait on this to continue, if someone wants to jump in on that change (it should be small, but I haven't looked yet)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status