[PR #11281] [MERGED] Frontend: use github-versions.json for version display #9239

Closed
opened 2026-02-05 08:57:30 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/11281
Author: @MickLesk
Created: 1/28/2026
Status: Merged
Merged: 1/28/2026
Merged by: @MickLesk

Base: mainHead: fix/version-display


📝 Commits (3)

  • 760603d fix(frontend): use github-versions.json for version display
  • 649ad2c feat(frontend): show tooltip for pinned versions
  • 29cf802 fix(api): add github-versions endpoint and fix legacy versions route

📊 Changes

6 files changed (+75 additions, -23 deletions)

View changed files

frontend/src/app/api/github-versions/route.ts (+36 -0)
📝 frontend/src/app/api/versions/route.ts (+7 -3)
📝 frontend/src/app/scripts/_components/script-item.tsx (+19 -8)
📝 frontend/src/hooks/use-versions.ts (+3 -9)
📝 frontend/src/lib/data.ts (+1 -1)
📝 frontend/src/lib/types.ts (+9 -2)

📄 Description

✍️ Description

  • Update AppVersion type to match new format with slug field
  • Switch from versions.json to github-versions.json API
  • Simplify version matching by direct slug comparison
  • Remove 'Loading versions...' text - show nothing if no version found
  • add an tooltip for "pinned" scripts

Fixes #

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/11281 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 1/28/2026 **Status:** ✅ Merged **Merged:** 1/28/2026 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `fix/version-display` --- ### 📝 Commits (3) - [`760603d`](https://github.com/community-scripts/ProxmoxVE/commit/760603da54ad87ab50f4b3803e84ea5029ff56c9) fix(frontend): use github-versions.json for version display - [`649ad2c`](https://github.com/community-scripts/ProxmoxVE/commit/649ad2cc8b7115b767f67d5d8ea9eaf90f207188) feat(frontend): show tooltip for pinned versions - [`29cf802`](https://github.com/community-scripts/ProxmoxVE/commit/29cf802a9a5dab30261652ecfd992420b3825f20) fix(api): add github-versions endpoint and fix legacy versions route ### 📊 Changes **6 files changed** (+75 additions, -23 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/app/api/github-versions/route.ts` (+36 -0) 📝 `frontend/src/app/api/versions/route.ts` (+7 -3) 📝 `frontend/src/app/scripts/_components/script-item.tsx` (+19 -8) 📝 `frontend/src/hooks/use-versions.ts` (+3 -9) 📝 `frontend/src/lib/data.ts` (+1 -1) 📝 `frontend/src/lib/types.ts` (+9 -2) </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 - Update AppVersion type to match new format with slug field - Switch from versions.json to github-versions.json API - Simplify version matching by direct slug comparison - Remove 'Loading versions...' text - show nothing if no version found - add an tooltip for "pinned" scripts ## 🔗 Related Issue Fixes # ## ✅ 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) - [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [x] ✨ **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>
OVERLORD added the pull-request label 2026-02-05 08:57:30 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#9239