feat: Add multi-select batch export (#76)#223
feat: Add multi-select batch export (#76)#223stephanbuettig wants to merge 2 commits intohttptoolkit:mainfrom
Conversation
Adds ZIP archive export for HTTP exchanges with 37 code snippet formats via @httptoolkit/httpsnippet. Includes format picker panel, Web Worker generation, and safe filename conventions. Features: - ZIP export with selectable snippet formats (37 languages/clients) - Format picker with category grouping and popular defaults - Web Worker-based generation for non-blocking UI - Safe filename conventions matching existing HAR export pattern New files: snippet-formats registry, export-filenames utility, download helper, zip-metadata model, zip-download-panel component. Unit tests for snippet-formats and export-filenames included. Extracted from httptoolkit#219 as requested by @pimterry.
Adds Ctrl+Click, Shift+Click, Ctrl+A multi-selection with floating toolbar for batch HAR and ZIP export of selected exchanges. Features: - Multi-select via Ctrl+Click (toggle), Shift+Click (range) - Ctrl+A to select all visible, Escape to clear - Floating selection toolbar with count, export actions, and clear - Batch HAR export and batch ZIP export for selected exchanges - Keyboard arrow navigation with Shift for range selection Integrates with upstream ARIA role='grid' and focus management improvements. Preserves all accessibility attributes. Depends on ZIP export PR. Based on feature/zip-export. Extracted from httptoolkit#219 as requested by @pimterry.
✅ Manual Test Results — 2026-04-11Both features were tested against a fresh clone of current upstream ( Batch selection (this PR)Multi-selection works via checkbox column, Ctrl+A selects all visible exchanges, and Escape clears the selection. The selection toolbar appears correctly and shows the count. Batch export (this PR + PR #222)All runs completed with 0 snippet errors:
Both batch HAR and batch ZIP export work correctly on the current upstream codebase. All test plan items verified. Ready for review and merge. |
|
The multi-select branch work has now finished and subsumed some details of this, and been merged into main 🥳 so I'm going to close this separate PR since that solves the core multi-select issue. Thanks for the contribution though! The selected row actions UI on main is very different from what you have here (it uses the right pane, instead of adding a top bar) and for now I've used just a minimal set of the options for bulk actions there (no code export) since batch code export requires the zip support from #222. Once that's finished though we can pull that functionality and the relevant details from this PR into that too, but let's focus on getting #222 finished in isolation first. |
Summary
Adds multi-select functionality with floating toolbar for batch export of selected HTTP exchanges.
This is PR 2/2 extracted from #219 as requested by @pimterry.
Test plan
Related