Skip to content

🎨 Palette: Improve alt text on profile picture#88

Open
amar-295 wants to merge 2 commits into
mainfrom
palette-profile-pic-alt-text-7630681974151242554
Open

🎨 Palette: Improve alt text on profile picture#88
amar-295 wants to merge 2 commits into
mainfrom
palette-profile-pic-alt-text-7630681974151242554

Conversation

@amar-295

@amar-295 amar-295 commented Mar 11, 2026

Copy link
Copy Markdown
Owner

💡 What: Updated the alt text attribute of the profile picture in src/pages/About.jsx from a developer-centric, code-like constant ("PROFILE_PICTURE") to natural, human-readable sentence case ("Profile picture").
🎯 Why: Code constants like "PROFILE_PICTURE" are awkward for screen readers to pronounce naturally (e.g., "profile underscore picture"). Human-readable text significantly improves the accessibility and user experience for those relying on assistive technologies.
📸 Before/After: Screen reader announcement changes from "PROFILE_PICTURE" to "Profile picture". Visually identical to the user.
♿ Accessibility: Improves screen reader compatibility and semantic value of image elements.


PR created automatically by Jules for task 7630681974151242554 started by @amar-295

Summary by CodeRabbit

  • Accessibility Improvements
    • Updated profile picture alt text to be human-readable and more descriptive for screen readers.
  • Chores
    • Added JSX accessibility linting to the development tooling to enforce accessibility best practices.

Co-authored-by: amar-295 <233091910+amar-295@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Mar 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-portfolio Error Error Mar 11, 2026 5:38pm

Copilot AI review requested due to automatic review settings March 11, 2026 17:32
@coderabbitai

coderabbitai Bot commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: be7f082c-cb0b-40e9-b7d4-63dd67d03196

📥 Commits

Reviewing files that changed from the base of the PR and between 3426d6d and 1c24bc3.

⛔ Files ignored due to path filters (1)
  • bun.lockb is excluded by !**/bun.lockb
📒 Files selected for processing (3)
  • eslint.config.js
  • package.json
  • src/pages/About.jsx

📝 Walkthrough

Walkthrough

Updates add human-readable alt text for a profile picture (About page and changelog) and integrate the JSX accessibility ESLint plugin by updating eslint.config.js and package.json.

Changes

Cohort / File(s) Summary
Changelog
\.Jules/palette.md
Added entry "2026-03-11 - Improve Profile Picture Alt Text" documenting the alt text change.
UI / Accessibility
src/pages/About.jsx
Replaced PROFILE_PICTURE constant alt text with a human-readable string "Amarnath's profile".
Linting config
eslint.config.js, package.json
Added eslint-plugin-jsx-a11y devDependency and registered/merged its recommended rules into ESLint config for JSX accessibility checks.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I nibbled code with careful sight,
Alt text tuned to make things right,
Linting ears now listen too,
Screen readers hum a clearer tune,
Carrots for accessible light 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main change: improving the alt text on a profile picture for accessibility purposes, which aligns with the primary objective of the PR.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch palette-profile-pic-alt-text-7630681974151242554

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the About page profile/hero image alt text to be more screen-reader-friendly, and records the accessibility learning in the project’s palette log.

Changes:

  • Changed the <img> alt text in src/pages/About.jsx from "PROFILE_PICTURE" to "Profile picture".
  • Added a palette log entry documenting the alt text improvement.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/pages/About.jsx Updates alt text on the About page image to be more human-readable for screen readers.
.Jules/palette.md Documents the accessibility learning/action taken for the alt text change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/pages/About.jsx Outdated

<img
alt="PROFILE_PICTURE"
alt="Profile picture"

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image source here is ../assets/About.svg, which is an illustration (desk/laptop), not an actual profile photo. Using alt text "Profile picture" is misleading for screen readers; consider updating the alt text to describe the illustration (or use empty alt if it’s purely decorative).

Suggested change
alt="Profile picture"
alt="Illustration of a desk with a laptop"

Copilot uses AI. Check for mistakes.
Comment thread .Jules/palette.md
Comment on lines +24 to +26
## 2026-03-11 - Improve Profile Picture Alt Text
**Learning:** The `alt` text on the profile picture was originally a code constant (`PROFILE_PICTURE`), which is not user-friendly for screen readers.
**Action:** Converted the code-like constant into natural, human-readable sentence case (`Profile picture`) for better a11y.

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This palette entry describes the About page image as a "profile picture", but src/assets/About.svg is an illustration (desk/laptop). To keep this log accurate and actionable, consider rewording the learning/action to reflect that the improvement was changing code-like alt text to human-readable alt text, without implying the asset is a real profile photo.

Suggested change
## 2026-03-11 - Improve Profile Picture Alt Text
**Learning:** The `alt` text on the profile picture was originally a code constant (`PROFILE_PICTURE`), which is not user-friendly for screen readers.
**Action:** Converted the code-like constant into natural, human-readable sentence case (`Profile picture`) for better a11y.
## 2026-03-11 - Improve About Illustration Alt Text
**Learning:** The `alt` text on the About page illustration (desk and laptop) was originally a code-like constant-style string, which is not user-friendly or descriptive for screen readers.
**Action:** Replaced the code-like constant with a concise, human-readable description of the illustration (for example, “Illustration of a developer workspace”) to improve accessibility.

Copilot uses AI. Check for mistakes.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/pages/About.jsx (1)

19-27: Consider a more descriptive alt text for better accessibility.

The change from PROFILE_PICTURE to "Profile picture" is a good improvement for screen readers. However, for optimal accessibility, alt text should describe what the image depicts rather than what type of image it is.

Since this is a personal portfolio "About Me" section, consider using more descriptive alt text such as:

  • "Photo of Amar" (or the developer's name)
  • "Portrait photo of the developer"

This provides screen reader users with the same contextual information that sighted users receive.

💡 Suggested improvement
 <img
-  alt="Profile picture"
+  alt="Photo of Amar"
   className="w-full h-full object-cover hover:scale-105 transition-transform transition-opacity duration-700 block"
   src={aboutMeImage}
   loading="lazy"
   decoding="async"
   width="400"
   height="400"
 />
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pages/About.jsx` around lines 19 - 27, Update the img alt prop in
About.jsx to a descriptive phrase that conveys the image content (e.g., replace
alt="Profile picture" with alt="Photo of Amar" or alt="Portrait photo of the
developer") so screen readers get contextual information; modify the alt
attribute on the <img ... src={aboutMeImage} ... /> element to a more specific
description while leaving other attributes (loading, decoding, className,
width/height) unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/pages/About.jsx`:
- Around line 19-27: Update the img alt prop in About.jsx to a descriptive
phrase that conveys the image content (e.g., replace alt="Profile picture" with
alt="Photo of Amar" or alt="Portrait photo of the developer") so screen readers
get contextual information; modify the alt attribute on the <img ...
src={aboutMeImage} ... /> element to a more specific description while leaving
other attributes (loading, decoding, className, width/height) unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d6e5bb57-d9e9-468f-b118-a7527f3b2b73

📥 Commits

Reviewing files that changed from the base of the PR and between 04e107b and 3426d6d.

📒 Files selected for processing (2)
  • .Jules/palette.md
  • src/pages/About.jsx

Co-authored-by: amar-295 <233091910+amar-295@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants