Skip to content

Conversation

@abdoredda
Copy link
Contributor

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

  • Added refresh button next to avatar on profile pages
  • Implemented ProfileController::refresh() with per-user rate limiting (1 request/minute)
  • Updated avatar component to support optional showRefresh prop
  • Renamed hasIdenticon() to hasGithubIdenticon() for consistency
  • Added route: POST /avatar/refresh

abdoredda and others added 2 commits October 30, 2025 00:25
- 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.
@abdoredda abdoredda closed this Oct 29, 2025
@abdoredda abdoredda reopened this Oct 29, 2025
@abdoredda abdoredda closed this Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant