Skip to content

Add a GitHub repo link to the nav (#35)#52

Open
aivanchenk wants to merge 2 commits into
mainfrom
35-github-link
Open

Add a GitHub repo link to the nav (#35)#52
aivanchenk wants to merge 2 commits into
mainfrom
35-github-link

Conversation

@aivanchenk

Copy link
Copy Markdown
Collaborator

Fixes #35.

Adds a GitHub icon-link to the nav so people can jump to the source repo.

What

  • New GitHubIcon (matches the existing 16px icon set).
  • IconButton gains an optional href prop: when set, it renders an <a target="_blank" rel="noreferrer noopener"> with the same styling instead of a <button>.
  • NavActions renders the icon-link (label "View source on GitHub") pointing at https://github.com/EarthyScience/EarthPrints, placed before the About dropdown and theme toggle.

Verify

  • eslint clean on the changed files.
  • tsc --noEmit shows only pre-existing errors in mapLabels.test.ts, none from this change.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request adds a GitHub link to the navigation actions. To support this, the IconButton component is updated to render an anchor (<a>) tag when an href prop is provided, and a new GitHubIcon component is introduced. The review feedback correctly points out that when href is provided, any passed onClick handler is ignored, and suggests forwarding the onClick prop to the anchor tag.

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.

Comment thread src/components/ui/IconButton.tsx
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

🚀 Vercel preview deployed

Preview URL: https://earth-prints-exqp6guoq-anastasiia-s-projects10.vercel.app

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.

GitHub link

1 participant