Skip to content

Conversation

@michelroegl-brunner
Copy link
Member

Problem

When filtering downloaded scripts by type with all 4 categories selected, the count showed '398 of 399 scripts' instead of '399 of 399 scripts'.

Root Cause

The TurnKey script has type 'turnkey' which doesn't match any of the four filter categories (ct, vm, addon, pve), causing it to be excluded from filtered results even when all categories are selected.

Solution

  • Map 'turnkey' script type to 'ct' (LXC Container) category in filtering logic
  • Applied fix to both DownloadedScriptsTab and ScriptsGrid components
  • TurnKey script is LXC-related so mapping to 'ct' is appropriate

Testing

  • Verified only one script has non-standard type ('turnkey')
  • Tested filtering logic to confirm fix works correctly
  • Now shows correct count: '399 of 399 scripts' when all types selected

Fixes the filtering count discrepancy issue.

- Map 'turnkey' script type to 'ct' category in filtering logic
- Fixes issue where filtering by all 4 types showed 398/399 instead of 399/399
- Applied to both DownloadedScriptsTab and ScriptsGrid components
- TurnKey script is LXC-related so mapping to 'ct' is appropriate
@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner October 20, 2025 14:03
@michelroegl-brunner michelroegl-brunner changed the title Fix script filtering count discrepancy fix/184 script filtering count discrepancy Oct 20, 2025
@michelroegl-brunner michelroegl-brunner linked an issue Oct 20, 2025 that may be closed by this pull request
@michelroegl-brunner michelroegl-brunner merged commit 86e614e into main Oct 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Count of filtered scripts is off in downloaded scripts

2 participants