Skip to content

feat: add per-file download button#1

Open
mkitti wants to merge 2 commits into
mainfrom
test
Open

feat: add per-file download button#1
mkitti wants to merge 2 commits into
mainfrom
test

Conversation

@mkitti
Copy link
Copy Markdown
Collaborator

@mkitti mkitti commented May 30, 2026

Summary

  • Adds a download icon button (HiArrowDownTray) to each file row in EntryList
  • Clicking the button fetches the entry bytes via zip.readBytes, wraps them in a Blob URL, and triggers a browser download
  • A CSS spinner replaces the icon while the download is in flight
  • stopPropagation prevents the row click from also opening the file preview
  • The downloaded filename uses just the last path segment (e.g. image.tiff rather than subdir/image.tiff)

Test plan

  • Open a ZIP archive and confirm a download icon appears on each file row
  • Click a download button — file should save to disk with the correct filename
  • Confirm the spinner appears during download for larger files
  • Confirm clicking the download button does not open the file preview
  • Confirm directory rows have no download button
  • Confirm filter mode still shows download buttons on matching file rows

🤖 Generated with Claude Code

mkitti and others added 2 commits May 30, 2026 12:35
Adds a HiArrowDownTray icon button on each file row. Clicking it fetches
the entry bytes via zip.readBytes, wraps them in a Blob URL, and triggers
a browser download using a temporary anchor element. A CSS spinner replaces
the icon while the download is in flight, and stopPropagation prevents the
row click from also opening the preview.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rkflow

Replaces the artifact-based deploy-pages approach with
JamesIves/github-pages-deploy-action so that multiple branches can each
own a subdirectory of the gh-pages branch without wiping each other.

- deploy.yml (main): deploys to root of gh-pages, clean-exclude: test
- deploy-test.yml (test): deploys to test/ subdirectory at /zipglancer/test/

Requires changing the GitHub Pages source to "Deploy from a branch:
gh-pages" in the repository settings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant