Skip to content

Update skill modal ZIP download#1015

Merged
aaronpowell merged 1 commit into
stagedfrom
skill-modal-zip-download
Mar 16, 2026
Merged

Update skill modal ZIP download#1015
aaronpowell merged 1 commit into
stagedfrom
skill-modal-zip-download

Conversation

@aaronpowell

Copy link
Copy Markdown
Contributor

Summary

  • make the skill modal download button download the full skill ZIP
  • extract shared ZIP download logic into website utilities
  • reuse the shared ZIP helper from skills and hooks page downloads

Testing

  • npm run website:build

Make the skill modal download button reuse the existing skill ZIP behavior so it downloads the full skill bundle instead of only the current file. Extract the ZIP creation into a shared utility and reuse it from the skills and hooks pages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 16, 2026 00:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the website’s download behavior so skill downloads (including from the modal) produce a bundled ZIP, and centralizes ZIP-building logic in shared utilities for reuse across pages.

Changes:

  • Added shared ZIP bundle downloader utility (downloadZipBundle) and reused it for skills and hooks page downloads.
  • Updated modal download behavior so skills download as a full ZIP bundle rather than a single file.
  • Refactored single-file download to use a shared blob-download trigger helper.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
website/src/scripts/utils.ts Adds shared ZIP download helper and refactors blob download triggering.
website/src/scripts/pages/skills.ts Replaces inline JSZip logic with shared ZIP bundle downloader for skills page.
website/src/scripts/pages/hooks.ts Replaces inline JSZip logic with shared ZIP bundle downloader for hooks page.
website/src/scripts/modal.ts Changes skill modal download to download full skill ZIP and updates download button accessibility label.

You can also share your feedback on Copilot code review. Take the survey.


return {
name: file.name,
content: await response.text(),
@aaronpowell aaronpowell merged commit 39a1a0c into staged Mar 16, 2026
11 checks passed
@aaronpowell aaronpowell deleted the skill-modal-zip-download branch March 16, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants