[PR #1681] [MERGED] Refactor Sidebar component to display unique scripts count #3158

Closed
opened 2025-11-20 05:33:42 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/1681
Author: @BramSuurdje
Created: 1/22/2025
Status: Merged
Merged: 1/22/2025
Merged by: @michelroegl-brunner

Base: mainHead: fix-script-count-issue


📝 Commits (1)

  • f609a73 Refactor Sidebar component to display unique scripts count

📊 Changes

1 file changed (+34 additions, -26 deletions)

View changed files

📝 frontend/src/app/scripts/_components/Sidebar.tsx (+34 -26)

📄 Description

✍️ Description

This pull request includes changes to the Sidebar component in the frontend/src/app/scripts/_components/Sidebar.tsx file to improve the handling and display of unique scripts. The most important changes include importing the Script type and modifying the script counting logic to ensure only unique scripts are counted.

Type import and script counting logic:


  • Related Issue: fixing #1664
  • Related PR: #
  • Related Discussion: #

Prerequisites

The following steps must be completed for the pull request to be considered:

  • Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
  • Testing performed (I have thoroughly tested my changes and verified expected functionality.)

🛠️ Type of Change

Please check the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change unexpectedly)
  • New script (a fully functional and thoroughly tested script or set of scripts)

📋 Additional Information (optional)

Provide any extra context or screenshots about the feature or fix here.


🔄 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/1681 **Author:** [@BramSuurdje](https://github.com/BramSuurdje) **Created:** 1/22/2025 **Status:** ✅ Merged **Merged:** 1/22/2025 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `fix-script-count-issue` --- ### 📝 Commits (1) - [`f609a73`](https://github.com/community-scripts/ProxmoxVE/commit/f609a735d24a508fc9ca295feb837e66c9dc744f) Refactor Sidebar component to display unique scripts count ### 📊 Changes **1 file changed** (+34 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/app/scripts/_components/Sidebar.tsx` (+34 -26) </details> ### 📄 Description ## ✍️ Description This pull request includes changes to the `Sidebar` component in the `frontend/src/app/scripts/_components/Sidebar.tsx` file to improve the handling and display of unique scripts. The most important changes include importing the `Script` type and modifying the script counting logic to ensure only unique scripts are counted. Type import and script counting logic: * [`frontend/src/app/scripts/_components/Sidebar.tsx`](diffhunk://#diff-f907406a605cef175a92b4353b3138bba39cc4c6507c0791eb1a25ec8fbcdb28R15-R29): Introduced a `uniqueScripts` array to count only unique scripts and updated the total scripts display to use this array. - - - - Related Issue: fixing #1664 - Related PR: # - Related Discussion: # - - - ## ✅ Prerequisites The following steps must be completed for the pull request to be considered: - [x] Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.) - [x] Testing performed (I have thoroughly tested my changes and verified expected functionality.) ## 🛠️ Type of Change Please check the relevant options: - [x] Bug fix (non-breaking change that resolves an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change unexpectedly) - [ ] New script (a fully functional and thoroughly tested script or set of scripts) --- ## 📋 Additional Information (optional) Provide any extra context or screenshots about the feature or fix here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 05:33:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#3158