Skip to content

Conversation

@Riyanshverma
Copy link

@Riyanshverma Riyanshverma commented Dec 13, 2025

Overview

  • This PR fixes the issue where project links on the Projects page were not clickable and did not direct users to the correct external repositories.

Details

  • Updated the project cards to use an anchor tag for each project link.
  • Links now open in a new tab (target="_blank") and use (rel="noopener noreferrer") for security.
  • Improved accessibility and user experience for navigating to project repositories.

Related Issue
Closes #433

Summary by CodeRabbit

  • Bug Fixes
    • Project links are now properly clickable with enhanced functionality. Links open in new browser tabs and include improved styling with hover effects and dark mode support.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Dec 13, 2025

@Riyanshverma is attempting to deploy a commit to the AOSSIE Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link

coderabbitai bot commented Dec 13, 2025

Walkthrough

Updated the projects page to convert a project link container from a paragraph element to a semantic anchor element. The anchor element uses the project's href attribute, includes proper security attributes for external links, and applies updated styling with hover effects and dark mode support.

Changes

Cohort / File(s) Change Summary
Projects page link refactoring
src/pages/projects.jsx
Replaced paragraph wrapper with anchor element for project links in CardActions, adding proper href routing, security attributes (rel="noopener noreferrer"), and enhanced styling including hover effects and dark mode variants.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5–10 minutes

  • Verify anchor element attributes (href, rel) are correctly implemented
  • Ensure styling (hover effects, dark mode) renders consistently across browsers and devices
  • Confirm security best practices for external links are maintained

Poem

🐰 A paragraph once held the link so tight,
Now an anchor tag shines bold and bright!
With hover effects and dark mode cheer,
Navigation flows crystal clear.
hops away contentedly 🌟

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR modifies project card links but issue #441 requests a footer section implementation; the changes do not address the linked issue's objectives. Either link the correct issue related to project link fixes or implement the footer section as specified in issue #441.
Out of Scope Changes check ⚠️ Warning The project link modifications in CardActions are out of scope for issue #441, which requests a footer section with navigation links and contact information. Verify the PR is linked to the correct issue or implement the footer section specified in issue #441 instead.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly describes the main change: making project links clickable and opening in a new tab.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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

86-95: LGTM with suggestions for accessibility and defensive coding.

The anchor implementation correctly uses target="_blank" and rel="noopener noreferrer" for security. However, consider these improvements:

  1. Accessibility: Add screen reader indication that the link opens in a new tab:
  <a
    href={project.link.href}
    target="_blank"
    rel="noopener noreferrer"
+   aria-label={`${project.link.label} (opens in new tab)`}
    className="relative z-10 mt-6 flex text-md font-semibold font-mono text-zinc-600 transition hover:text-[#00843D] dark:hover:text-yellow-400 dark:text-zinc-200 items-center"
    style={{ textDecoration: 'none' }}
  >
  1. Defensive coding: Add validation to prevent runtime errors if data is incomplete:
+ {project.link?.href && (
  <a
    href={project.link.href}
    target="_blank"
    rel="noopener noreferrer"
    className="relative z-10 mt-6 flex text-md font-semibold font-mono text-zinc-600 transition hover:text-[#00843D] dark:hover:text-yellow-400 dark:text-zinc-200 items-center"
    style={{ textDecoration: 'none' }}
  >
    <LinkIcon className="h-6 w-6 flex-none scale-110" />
    <span className="ml-2">{project.link.label}</span>
  </a>
+ )}
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dfb8668 and 2ea5f76.

📒 Files selected for processing (1)
  • src/pages/projects.jsx (1 hunks)

Comment on lines +86 to +95
<a
href={project.link.href}
target="_blank"
rel="noopener noreferrer"
className="relative z-10 mt-6 flex text-md font-semibold font-mono text-zinc-600 transition hover:text-[#00843D] dark:hover:text-yellow-400 dark:text-zinc-200 items-center"
style={{ textDecoration: 'none' }}
>
<LinkIcon className="h-6 w-6 flex-none scale-110" />
<span className="ml-2">{project.link.label}</span>
</p>
</a>
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Critical: PR references wrong issue number.

The PR title claims to fix issue #441, but according to the PR objectives, issue #441 is about implementing a footer section with navigation links, social media handles, and contact information. This PR actually fixes non-clickable project links on the Projects page, which is unrelated to footer implementation. Please update the PR to reference the correct issue number.

🤖 Prompt for AI Agents
In src/pages/projects.jsx around lines 86 to 95 the PR incorrectly references
issue #441 in its title/body while the change actually fixes non-clickable
project links on the Projects page; update the PR metadata to reference the
correct issue for this bug (locate the issue that tracks "non-clickable project
links" or create one if missing), change the PR title and description to mention
that issue number, update any closing keywords (e.g., "Fixes #<correct-number>")
so GitHub links it properly, and amend the commit message or changelog entry if
necessary to reflect the correct issue reference.

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.

Broken Links in Project Cards

1 participant