Add profile image#254
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideImplements a profile image for blog post cards by replacing the placeholder avatar circle with a static image and cleaning up unused gray background styling in CSS. Flow diagram for BlogPostCard profile image renderingflowchart TD
User[User views blog post list] --> BlogPostCard[BlogPostCard template]
BlogPostCard --> AvatarImage[img src /assets/apple-touch-icon.png]
AvatarImage --> RenderedCard[Rendered blog post card with author avatar]
CSS[main.css] -.->|removes .bg-gray-300| AvatarImage
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- If
--color-gray-300or.bg-gray-300are still referenced elsewhere, consider keeping or replacing them with an existing gray token to avoid inconsistent styling across components. - Consider making the avatar
alttext dynamic (e.g., including the author name) so that it conveys more useful information for screen readers. - You might want to add
loading="lazy"to the avatar image to avoid unnecessary image loads when many blog cards are rendered on the page.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- If `--color-gray-300` or `.bg-gray-300` are still referenced elsewhere, consider keeping or replacing them with an existing gray token to avoid inconsistent styling across components.
- Consider making the avatar `alt` text dynamic (e.g., including the author name) so that it conveys more useful information for screen readers.
- You might want to add `loading="lazy"` to the avatar image to avoid unnecessary image loads when many blog cards are rendered on the page.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Code Review
This pull request replaces the placeholder gray div for the blog post author's avatar with an actual image and removes the unused --color-gray-300 variable and .bg-gray-300 class from the stylesheet. Feedback suggests removing the remaining .dark .bg-gray-300 block to avoid dead CSS, and setting the avatar's alt attribute to empty (alt="") to prevent redundant announcements for screen readers.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
I am having trouble creating individual review comments. Click here to see my feedback.
public/main.css (828-830)
Removing the .bg-gray-300 class leaves .dark .bg-gray-300 on line 1122 as dead CSS. Please remove the .dark .bg-gray-300 block as well to keep the stylesheet clean and maintainable.
view/component_blog_post.templ (18)
Since the author's name is displayed immediately next to the avatar image, the image is redundant for screen readers. Having alt="Author avatar" results in repetitive announcements. It is a best practice for accessibility to use an empty alt attribute (alt="") so screen readers skip the redundant image.
<img src="/assets/apple-touch-icon.png" class="w-10 h-10 mr-3 rounded-full" alt=""/>
Summary by Sourcery
Display a real author avatar image in blog post cards instead of a generic placeholder.
New Features:
Enhancements: