Skip to content

feat(contact): wire up the resume contact form - #39

Closed
danielheene wants to merge 1 commit into
developfrom
worktree-contact-form
Closed

feat(contact): wire up the resume contact form#39
danielheene wants to merge 1 commit into
developfrom
worktree-contact-form

Conversation

@danielheene

Copy link
Copy Markdown
Owner

Summary

The ResumeContact block previously rendered only a title/caption with a commented-out mail link — there was no actual form. This wires up a working contact form.

  • Added ContactForm.client.tsx: name/email/message inputs plus a hidden honeypot field, driven by useActionState against a new server action.
  • Added submitContactForm server action: validates input with zod, silently no-ops if the honeypot is filled, looks up the recipient address from GlobalUserSettings, and sends the message via the existing useSendAdapter through payload.sendEmail, with the submitter set as replyTo. Failures are logged server-side and reported to the client as a generic message so no upstream details leak.
  • Wired ContactForm into ResumeContactBlockClientRenderer in place of the commented-out button.

Test plan

  • pnpm vitest run — full suite (271 tests) passes, including 6 new tests covering: successful send, invalid email, empty message, honeypot short-circuit, missing recipient config, and send failure not leaking error details.
  • biome check — clean on all new/changed files.
  • tsc --noEmit — no new errors (pre-existing unrelated PageProps codegen errors only).

🤖 Generated with Claude Code

The ResumeContact block previously rendered only a title/caption with a
commented-out mail link — no actual form existed.

- Add ContactForm.client.tsx: name/email/message inputs plus a hidden
  honeypot field, driven by useActionState against a server action.
- Add submitContactForm server action: validates input with zod, rejects
  silently on a filled honeypot, looks up the recipient email from
  GlobalUserSettings, and sends via the existing useSendAdapter through
  payload.sendEmail, with the submitter set as replyTo. Errors are logged
  server-side and reported to the client as a generic message so upstream
  details never leak.
- Wire ContactForm into ResumeContactBlockClientRenderer in place of the
  commented-out button.
@danielheene
danielheene marked this pull request as ready for review August 16, 2026 09:12
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