-
Notifications
You must be signed in to change notification settings - Fork 4
fix: extract avatarUrl from API response in getUserAvatar #706
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
base: develop
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
Co-authored-by: alexappleget <137813659+alexappleget@users.noreply.github.com>
Description
Before:
getUserAvatar()returned the entire API response object{ avatarUrl: "..." }instead of the URL string, causing the Avatar component to always show the fallback image.After:
Properly extracts and returns the
avatarUrlstring from the API response:Closes #574
Testing instructions
/profileand verify avatar renders in the profile cardAdditional information
Also updated test mocks in
GlobalHeader.test.tsxandUserDropdownMenu.test.tsxto return the correct response shape{ avatarUrl: '...' }rather than a plain string.[optional] Screenshots
N/A - requires authenticated session with OAuth provider
Pre-submission checklist
test #001: created unit test for __ component)Peer Code ReviewersandSenior+ Code Reviewersgroupsgis-code-questionsOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.