Skip to content

feat: Add Aossie github link on navbar (#16)#17

Open
akshat3410 wants to merge 2 commits intoAOSSIE-Org:mainfrom
akshat3410:feature/issue-16
Open

feat: Add Aossie github link on navbar (#16)#17
akshat3410 wants to merge 2 commits intoAOSSIE-Org:mainfrom
akshat3410:feature/issue-16

Conversation

@akshat3410
Copy link

@akshat3410 akshat3410 commented Mar 6, 2026

This PR adds a GitHub social link to the PictoPy navigation bar, linking directly to the AOSSIE-Org/PictoPy repository.

Why add this?
Our code is open-source, and as a project under AOSSIE, it's really important that we make it as easy as possible for users and potential contributors to find our source code.

By having a visible GitHub icon directly in the navbar:

  • Increases Visibility: Users can instantly see that the project is open-source.
  • Encourages Contributions: It provides a frictionless way for developers exploring the site to jump straight into the codebase, report bugs, or submit their own PRs.
  • Builds Trust: Linking to the repository promotes transparency and shows that we are proud of the work the community is building together.

Changes Made:

  • Imported the GitHub icon from lucide-react.
  • Added the GitHub link with hover animations to both the Desktop and Mobile navigation menus, right next to the "Home" link.

Screenshot:
Navbar Update

Summary by CodeRabbit

  • New Features
    • GitHub repository links are now integrated into the navigation bar. Users can access the project repository directly from both desktop and mobile navigation menus. All links open in new tabs for seamless browsing, offering convenient quick access to the GitHub project from anywhere within the application.

@github-actions github-actions bot added no-issue-linked PR is not linked to any issue frontend Changes to frontend code javascript JavaScript/TypeScript code changes size/S Small PR (11-50 lines changed) first-time-contributor First PR of an external contributor pending-coderabbit-review labels Mar 6, 2026
@github-actions github-actions bot added the configuration Configuration file changes label Mar 8, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 8, 2026

Walkthrough

Added GitHub repository links to the navbar component in both desktop and mobile navigation views, including a Github icon import and accessibility attributes for the new desktop link.

Changes

Cohort / File(s) Summary
Navbar GitHub Integration
src/Pages/Landing page/Navbar.tsx
Added Github icon import from lucide-react and integrated GitHub repository links in desktop navigation (icon button with aria-label) and mobile menu (entry with icon and label). Both links open in new tabs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested labels

Typescript Lang

Poem

🐰 A GitHub link hops into the navbar with glee,
Both desktop and mobile can now easily see,
The icon guides visitors to the repository's door,
A small change, but one that opens up more! 🚀

🚥 Pre-merge checks | ✅ 2
✅ 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 specifically describes the main change: adding a GitHub link to the navbar for the AOSSIE organization.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/Pages/Landing` page/Navbar.tsx:
- Around line 149-160: Extract the duplicated GitHub URL string into a single
constant (e.g., GITHUB_REPO_URL) and replace the hard-coded URL in both anchor
tags in the Navbar component so both desktop and mobile links reference that
constant; add the constant near the top of Navbar.tsx (or in a shared constants
file) and update the href attributes in the anchors that render the Github icon
to use GITHUB_REPO_URL.
- Around line 210-221: The "GitHub" label in the Navbar anchor is hardcoded;
update the Navbar component to use the i18n resource lookup instead (e.g.,
t('github') or a shared strings object) in place of the literal "GitHub", add
the corresponding key ("github": "GitHub") to the translation/resource files for
supported locales, and ensure the anchor still calls setIsOpen(false) and
renders the Github icon component exactly as before; also provide a sensible
fallback if the i18n key is missing.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4627df73-964a-48d7-babb-8e32c9317166

📥 Commits

Reviewing files that changed from the base of the PR and between 1496367 and 78dda42.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • src/Pages/Landing page/Navbar.tsx

Comment on lines +149 to +160
{/* GitHub Repository Link */}
<a
href="https://github.com/AOSSIE-Org/PictoPy"
target="_blank"
rel="noopener noreferrer"
className="text-gray-800 dark:text-gray-300
hover:text-black dark:hover:text-white
transition-colors duration-300"
aria-label="AOSSIE PictoPy GitHub Repository"
>
<Github className="h-5 w-5" />
</a>
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Consider extracting the GitHub URL to a constant.

The GitHub repository URL https://github.com/AOSSIE-Org/PictoPy is duplicated in both the desktop (line 151) and mobile (line 211) navigation sections. Extracting it to a constant improves maintainability.

♻️ Proposed refactor

Add a constant at the top of the component or in a shared constants file:

const GITHUB_REPO_URL = "https://github.com/AOSSIE-Org/PictoPy";

Then reference it in both links:

 <a
-  href="https://github.com/AOSSIE-Org/PictoPy"
+  href={GITHUB_REPO_URL}
   target="_blank"

Also applies to: 210-221

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/Pages/Landing` page/Navbar.tsx around lines 149 - 160, Extract the
duplicated GitHub URL string into a single constant (e.g., GITHUB_REPO_URL) and
replace the hard-coded URL in both anchor tags in the Navbar component so both
desktop and mobile links reference that constant; add the constant near the top
of Navbar.tsx (or in a shared constants file) and update the href attributes in
the anchors that render the Github icon to use GITHUB_REPO_URL.

Comment on lines +210 to +221
<a
href="https://github.com/AOSSIE-Org/PictoPy"
target="_blank"
rel="noopener noreferrer"
className="text-gray-700 dark:text-gray-300 text-lg font-medium
hover:text-black dark:hover:text-white
transition duration-300 flex items-center space-x-2"
onClick={() => setIsOpen(false)}
>
<Github className="h-5 w-5" />
<span>GitHub</span>
</a>
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Externalize the user-visible string for i18n.

The "GitHub" text on line 220 is hardcoded. Per coding guidelines, user-visible strings should be externalized to resource files for internationalization.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/Pages/Landing` page/Navbar.tsx around lines 210 - 221, The "GitHub" label
in the Navbar anchor is hardcoded; update the Navbar component to use the i18n
resource lookup instead (e.g., t('github') or a shared strings object) in place
of the literal "GitHub", add the corresponding key ("github": "GitHub") to the
translation/resource files for supported locales, and ensure the anchor still
calls setIsOpen(false) and renders the Github icon component exactly as before;
also provide a sensible fallback if the i18n key is missing.

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

Labels

configuration Configuration file changes first-time-contributor First PR of an external contributor frontend Changes to frontend code javascript JavaScript/TypeScript code changes no-issue-linked PR is not linked to any issue pending-coderabbit-review size/S Small PR (11-50 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant