Skip to content

Use user profile image instead of gravatar when available #5545

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

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

GordonBeeming
Copy link
Contributor

☕️ Reasoning

Users wanted to see their GitButler profile image instead of the gravatar one when they've suppled one

🧢 Changes

Updated locations where gravatarUrl were referenced for various git artifacts to check the users email, and if it's a match, then use the users profile

🎫 Affected issues

Fixes: #2589

NOTE: I've never worked with this tech stack, but am trying to learn... and really want to contribute to GitButler, so starting small.

If I've completely missed the mark on how to implement this change, please let me know and I'll do some more learning 😅

Copy link

vercel bot commented Nov 14, 2024

@GordonBeeming is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

@GordonBeeming GordonBeeming changed the title feat: Use user profile image instead of gravatar when available Use user profile image instead of gravatar when available Nov 14, 2024
Copy link
Contributor

@estib-vega estib-vega left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!
It looks overall great, just a couple of small changes and should be good to go!

Refactor the author image URL logic in multiple components to use 
derived stores for better reactivity and cleaner code. This change 
eliminates redundant code and ensures that the author image URL 
updates automatically when the user or commit data changes.
@GordonBeeming
Copy link
Contributor Author

@estib-vega updated, thanks for the help, I learnt new things 💪

@estib-vega
Copy link
Contributor

Merging this.
Thanks so much again for the contribution (specially at late hours of the night in Australia!).
Keep those changes coming! :)

@estib-vega estib-vega merged commit 827932b into gitbutlerapp:master Nov 15, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profile picture doesn't get updated at all places
2 participants