Skip to content

Claude/template letter form iu i2t#25

Open
RonLanzilotta wants to merge 17 commits intojdabank:masterfrom
RonLanzilotta:claude/template-letter-form-IuI2t
Open

Claude/template letter form iu i2t#25
RonLanzilotta wants to merge 17 commits intojdabank:masterfrom
RonLanzilotta:claude/template-letter-form-IuI2t

Conversation

@RonLanzilotta
Copy link

No description provided.

RonLanzilotta and others added 17 commits December 7, 2022 13:46
Replaces the Random Cat API exercise with a single-page form that lets
users fill in their name, draw or upload a signature, and generate a
filled PDF of the LPC support letter. Clicking the submit button
downloads the PDF and opens a pre-addressed email draft to RFE@lpc.nyc.gov.

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
Deploys on every push to master. Once Pages is enabled in repo
Settings → Pages (source: GitHub Actions), the site will be live at
https://ronlanzilotta.github.io/random-cat-api/

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
Single-page site: users enter their name, draw or upload a signature,
preview the filled letter, then generate a PDF and open an email draft
to RFE@lpc.nyc.gov with subject 'Letter of Support for Joseph Fallert Brewery'.

Includes GitHub Actions workflow for automatic GitHub Pages deployment.

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
…IuI2t

Claude/template letter form iu i2t
…IuI2t

Claude/template letter form iu i2t
The previous commit switched from <a href> to <button> + window.location.href,
which browsers often block for mailto: links. This reverts to an <a> element
whose href is set to the mailto URL when the PDF is generated.

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
Rather than pre-rendering a hidden button and setting its href dynamically,
create the <a> element with the full mailto URL baked into the href at the
moment the PDF is generated. This guarantees the link is present and correct.

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
Simplified post-generation UX to just a confirmation notice telling users
to email the PDF manually to RFE@lpc.nyc.gov.

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
- Removed site header (Letter of Support title block)
- Removed footer (Questions? contact line)
- Added canonical link tag pointing to https://ronlanzilotta.github.io/joseph-fallert-letter
- Cleaned up orphaned header/footer CSS

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
Content was silently clipped at page 1 boundary, cutting off paragraphs
and the signature. Added checkPageBreak() before each paragraph and the
closing/signature block to insert a new page when needed.

https://claude.ai/code/session_01BmEJdM5rf1JB5BZEACUCFn
@RonLanzilotta RonLanzilotta marked this pull request as draft March 14, 2026 22:00
@RonLanzilotta RonLanzilotta marked this pull request as ready for review March 14, 2026 22:00
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