[PR #7492] [MERGED] Refactor GitHubStarsButton to wrap in Link component for external navigation #6852

Closed
opened 2026-02-26 15:33:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/7492
Author: @BramSuurdje
Created: 9/8/2025
Status: Merged
Merged: 9/9/2025
Merged by: @tremor021

Base: mainHead: fix-github-button-link


📝 Commits (1)

  • e996776 Refactor GitHubStarsButton to wrap in Link component for external navigation

📊 Changes

1 file changed (+31 additions, -23 deletions)

View changed files

📝 frontend/src/components/animate-ui/components/buttons/github-stars.tsx (+31 -23)

📄 Description

✍️ Description

This pull request updates the GitHubStarsButton component to improve accessibility and tracking by wrapping the button in a Link component. The link now opens the GitHub repository in a new tab and includes analytics tracking.

Component enhancement:

  • Wrapped the GithubStarsButton content in a Next.js Link component that opens the GitHub repo in a new tab, adds noopener noreferrer for security, and includes a data-umami-event attribute for analytics tracking. [1] [2] [3]

Link: #

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/7492 **Author:** [@BramSuurdje](https://github.com/BramSuurdje) **Created:** 9/8/2025 **Status:** ✅ Merged **Merged:** 9/9/2025 **Merged by:** [@tremor021](https://github.com/tremor021) **Base:** `main` ← **Head:** `fix-github-button-link` --- ### 📝 Commits (1) - [`e996776`](https://github.com/community-scripts/ProxmoxVE/commit/e996776781b8ecb49ca2d49cc3e4d5dbaa4264fc) Refactor GitHubStarsButton to wrap in Link component for external navigation ### 📊 Changes **1 file changed** (+31 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/animate-ui/components/buttons/github-stars.tsx` (+31 -23) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description This pull request updates the `GitHubStarsButton` component to improve accessibility and tracking by wrapping the button in a `Link` component. The link now opens the GitHub repository in a new tab and includes analytics tracking. **Component enhancement:** * Wrapped the `GithubStarsButton` content in a Next.js `Link` component that opens the GitHub repo in a new tab, adds `noopener noreferrer` for security, and includes a `data-umami-event` attribute for analytics tracking. [[1]](diffhunk://#diff-29f8b035c8910adb31d602ed8b9c7bcb546198cc71b6da320953c2dbf3d1e7a2R5) [[2]](diffhunk://#diff-29f8b035c8910adb31d602ed8b9c7bcb546198cc71b6da320953c2dbf3d1e7a2R75-R80) [[3]](diffhunk://#diff-29f8b035c8910adb31d602ed8b9c7bcb546198cc71b6da320953c2dbf3d1e7a2R105) ## 🔗 Related PR / Issue Link: # ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [x] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 15:33:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#6852
No description provided.