Skip to content

Fix: Include 'New' scripts in Download All Filtered when no filters are active#278

Merged
michelroegl-brunner merged 1 commit intomainfrom
fix/253
Nov 7, 2025
Merged

Fix: Include 'New' scripts in Download All Filtered when no filters are active#278
michelroegl-brunner merged 1 commit intomainfrom
fix/253

Conversation

@michelroegl-brunner
Copy link
Copy Markdown
Member

Problem

When no filters are active, clicking 'Download All Filtered' only downloads scripts from the lower section (main grid) and excludes scripts from the 'Newest Scripts' carousel.

Solution

Modified handleDownloadAllFiltered to include all scripts when no filters are active:

  • When no filters are active: Combines filteredScripts and newestScripts (deduplicated by slug)
  • When filters are active: Uses filteredScripts as before (maintains existing behavior)

Changes

  • Updated handleDownloadAllFiltered in ScriptsGrid.tsx to check if filters are active
  • When no filters are active, merges both filtered and newest scripts to ensure all scripts are included
  • Ensures no duplicate scripts are downloaded

Testing

  • ✅ No filters active: All scripts (including 'New' carousel) are downloaded
  • ✅ Filters active: Only filtered scripts are downloaded (existing behavior maintained)

…re active

- Modified handleDownloadAllFiltered to combine filteredScripts and newestScripts when no filters are active
- Ensures all scripts including those in the 'Newest Scripts' carousel are downloaded
- Maintains existing behavior when filters are active
- Fixes issue where 'New' scripts were excluded from downloads
@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner November 7, 2025 11:43
@michelroegl-brunner michelroegl-brunner linked an issue Nov 7, 2025 that may be closed by this pull request
@michelroegl-brunner michelroegl-brunner merged commit 9fc61bb into main Nov 7, 2025
4 checks passed
@michelroegl-brunner michelroegl-brunner deleted the fix/253 branch November 13, 2025 15:23
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.

Download All Filtered Misses New

1 participant