mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-25 04:35:50 +03:00
[PR #143] [MERGED] Fix script counter inconsistencies #234
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/143
Author: @michelroegl-brunner
Created: 10/14/2025
Status: ✅ Merged
Merged: 10/14/2025
Merged by: @michelroegl-brunner
Base:
main← Head:fix/counters📝 Commits (1)
e82a832fix: correct script counters to use deduplicated counts📊 Changes
1 file changed (+31 additions, -4 deletions)
View changed files
📝
src/app/page.tsx(+31 -4)📄 Description
Problem
The script counters in the tab headers don't match the actual counts displayed in the UI:
Root Cause
The main
page.tsxcounter logic doesn't deduplicate scripts, while the individual tab components do. This creates confusion for users who see different numbers in the tab headers versus the content areas.Solution
Changes Made
Fixed Available Scripts Counter (
src/app/page.tsxlines 73-88):slugbefore countingScriptsGrid.tsxFixed Downloaded Scripts Counter (
src/app/page.tsxlines 90-117):slugDownloadedScriptsTab.tsxDeduplication Logic
slugas the unique identifierResult
Testing
Fixes the counter discrepancies shown in the UI where users see different numbers in tab headers versus the actual content areas.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.