WAIT: Add "Download all" button to forms and handouts callout pages#1832
Open
maebeale wants to merge 1 commit into
Open
WAIT: Add "Download all" button to forms and handouts callout pages#1832maebeale wants to merge 1 commit into
maebeale wants to merge 1 commit into
Conversation
Registrants previously had to open and download each document one at a time. A single header-bar button now fires every file in the group: the handout PDFs, and on the forms page the W-9 and letter (the invoice has no stored PDF, so it opens its print-to-PDF page in a new tab). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
maebeale
commented
Jun 22, 2026
| @@ -122,6 +126,16 @@ def build_form_cards | |||
| cards | |||
| end | |||
|
|
|||
Collaborator
Author
There was a problem hiding this comment.
🤖 From Claude: The invoice has no stored PDF (it is rendered HTML printed via window.print()), so it can't be bundled as a file download — newTab: true opens its print-to-PDF page instead. Everything else is a real file.
maebeale
commented
Jun 22, 2026
| this.itemsValue.forEach((item, index) => { | ||
| setTimeout(() => this.trigger(item), index * this.delayValue) | ||
| }) | ||
| } |
Collaborator
Author
There was a problem hiding this comment.
🤖 From Claude: Staggered by delay ms — browsers suppress multiple downloads fired synchronously in one tick, so the burst is spread out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR, suggested 👤 review level: 📖 Read — light-logic: small new endpoint data + a Stimulus controller, view-only chrome
Adds a Download all button in the top-right of the forms and handouts callout cards so a registrant can grab every document in one click instead of opening each one.
Why this shape
window.print(), so it can't be bundled as a file — it opens in a new tab instead.Notes
download-allStimulus controller fires each{ href, newTab }item; file items download via a temporary anchor, new-tab itemswindow.open.:header_actionslot in the shared_callout_pagechrome; only forms/handouts populate it.resource_download_paththe existing per-card download button uses (same auth context).Tests
spec/requests/events/callouts_spec.rbcovers the button bundling W-9 + invoice, the letter appearing only when attached, handout items, and the button being omitted when no handout has a file.