-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat: 👤 Implement gravatar #1268
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/components/ChatsList/components/ChatsListItem/hooks/useGravatar.ts The changes in this file are of moderate risk. The developer has added a new hook to compute the gravatar URL. However, the const [gravatarUrl, setGravatarUrl] = useState<string>(computeGravatarUrl(session?.user.email)); 🔍🔗🚫 Powered by Code Review GPT |
domains: [ | ||
"www.quivr.app", | ||
"quivr-cms.s3.eu-west-3.amazonaws.com", | ||
"www.gravatar.com", |
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.
You would also need to add the gravatar url to the ContentSecurityPolicy in frontend/next.config.js
so it won't be blocked in preview and prod
|
||
return ( | ||
<Link aria-label="account" className={sidebarLinkStyle} href={"/user"}> | ||
<MdPerson className="text-4xl" /> | ||
<div className="relative w-8 h-8"> | ||
<Image |
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.
So what happens when it doesnt exist on gravatar ?
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.
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Screenshots (if appropriate):
If the user already has a gravatar corresponding to her email :
Otherwise, the default :