-
-
Notifications
You must be signed in to change notification settings - Fork 668
Add avatar refresh button for GitHub-connected users #1386
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
Add avatar refresh button for GitHub-connected users #1386
Conversation
- Add refresh button next to avatar on user profile pages - Button only visible when viewing your own profile - Button only appears if GitHub account is connected - Implement per-user rate limiting (1 request per minute) - Add ProfileController::refresh() method with proper validation - Update avatar component to support showRefresh prop - Fix method name from hasIdenticon() to hasGithubIdenticon() for consistency - Add route for avatar refresh functionality This feature allows users to manually refresh their GitHub avatar without waiting for automatic updates. The rate limiting prevents abuse while providing a better user experience.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great thanks. Just a few small remarks.
|
Oops, I just noticed Blade formatter was on — that’s why there are some style changes in |
|
Thanks! I’ll refactor it as a Livewire component and adjust the icon. |
- Replace form-based refresh with a dedicated Livewire component - Fix refresh icon position on avatar - Remove old refresh route and controller method
|
Awesome, thanks a bunch for this one! |

Summary
Adds a manual avatar refresh button that allows users to update their GitHub avatar on demand. The button only appears on a user's own profile when they have a connected GitHub account.
Changes
RefreshAvatarwith per-user rate limiting (1 request/minute)showRefreshprophasIdenticon()tohasGitHubIdenticon()for consistencyFixes #1377