Skip to content

Allow a poll's uploaded report PDF through the download proxy - #119

Merged
xrendan merged 1 commit into
mainfrom
feat/poll-report-pdf
Oct 19, 2026
Merged

xrendan merged 1 commit into
mainfrom
feat/poll-report-pdf

Conversation

@xrendan

@xrendan xrendan commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds report_pdf_en / report_pdf_fr to the poll download proxy's allowed assets.
  • York Factory (Publish Surveyor's report PDF and stop generating poll report files york_factory#146) now serves an uploaded Report PDF as a poll's analysis_pdf when one is attached, in place of the generated report and the crosstab Excel/JSON. The proxy only forwards known asset names, so without this the "Download Report (PDF)" link would 404.
  • Removes crosstabs_pdf_en/fr (and its label and type), which York Factory no longer has.
  • No UI change: PollDetails already renders "Download Report (PDF)" from downloads.analysis_pdf, and hides the crosstab links when York Factory omits them.

Testing

  • npm run test:polls: 15 pass, including a new test that a report_pdf_en URL maps through the proxy as the report download.

Merge with or after BuildCanada/york_factory#146.

🤖 Generated with Claude Code

York Factory now serves an uploaded report PDF (report_pdf_en/fr) as a
poll's analysis_pdf when one is attached, in place of the generated
report and the crosstab Excel/JSON. The proxy only forwards known assets,
so it must accept the new names. The poll page needs no change: the
existing "Download Report (PDF)" link points at whichever file York
Factory names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@xrendan
xrendan merged commit 59cf53d into main Oct 19, 2026
1 check passed
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