daneden / Zeitgeist

👁 An iOS app for keeping an eye on your Vercel deployments
http://zeitgeist.daneden.me
Apache License 2.0
190 stars 7 forks source link

Seeing “x” icon instead of Team profile photo #68

Closed perryraskin closed 2 years ago

perryraskin commented 2 years ago

Would love to see my Team profile photo instead of the “X” icon. My personal profile photo shows up, but the one for my Team does not. Thanks!

daneden commented 2 years ago

Hey Perry! This definitely sounds like a decoding bug: either the avatar image is in an unexpected format, or the team data is in an unexpected format. Would you mind playing around with the Vercel API and letting me know the response of the /v2/teams/{teamId} endpoint?

https://vercel.com/docs/rest-api#teams

perryraskin commented 2 years ago

Hey thanks for your quick response! I'm not sure I want to post the response here, but I do see an avatar value which appears to be some string with random characters. What should I be looking for?

daneden commented 2 years ago

@perryraskin so far so good, that sounds like what I'd expect in the response but it may be that the image format is unusual (e.g. an SVG, WebP, or some other relatively uncommon format). Could you share the "avatar" value here?

perryraskin commented 2 years ago

@daneden sure - 74cc7ef80c76c9e11b470801b9355c6484f5ba71

daneden commented 2 years ago

@perryraskin thanksI I think this should be fixed in 8dfabe55f1229a8d86fa6099a1d8ee275fb95c09, app version 2.2.2 (which I'll submit this week). It used to be that you needed to pass the team ID rather than avatar ID for team avatars, but I guess that's no longer the case!