Conversation
Closes #18 Adds a web form at /contact where users can submit bug reports and feature requests with screenshots directly to k1af@ft8af.app, in addition to GitHub issues. - api/contact.js: Vercel serverless function that validates the submission and sends the email via nodemailer (SMTP) - src/pages/contact.mjs: static page template with the form HTML - public/assets/contact.css: form styles following site design tokens - public/assets/ft8af.js: client-side form handler (type switching, drag-and-drop image upload with 5-file / 2 MB limits, base64 conversion, JSON POST, success/error states) - src/i18n/en.json: contact namespace translations - build.mjs: "Feedback" nav link and updated footer "Report a bug" link - src/pages/_registry.mjs: register the new page Email delivery requires SMTP_HOST, SMTP_USER, and SMTP_PASS env vars set in Vercel. CONTACT_TO defaults to k1af@ft8af.app. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Resolved conflicts in package.json and package-lock.json by unioning the contact form's nodemailer dependency with main's activation-sharing dependencies (@neondatabase/serverless, qrcode-generator, pglite). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BdUSDtqX45DF2ny9NxoMgT
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.
Closes #18
What changed
Adds a
/contactpage with a web form that lets users submit bug reports and feature requests directly, in addition to GitHub issues.New files:
api/contact.js— Vercel serverless function that validates the form payload and sends the email via nodemailer (SMTP). Supports up to 5 image attachments (2 MB each).src/pages/contact.mjs— Page template with the full form HTML.public/assets/contact.css— Form styles following the existing site design tokens.Modified files:
public/assets/ft8af.js— Client-side handler: type-pill switching (Bug/Feature), drag-and-drop + file-picker image upload with validation, base64 conversion,fetchPOST to/api/contact, and success/error result states.src/i18n/en.json— Newcontactnamespace for all form copy; addedcommon.nav.feedbackand updated footer link text.build.mjs— Added "Feedback" link to both desktop nav and mobile menu; updated footer "Report a bug" to link to/contact(GitHub issues link kept as "Open a GitHub issue").src/pages/_registry.mjs— Registered the contact page so it is built and included in the sitemap.package.json/package-lock.json— Addednodemailerdependency.Email delivery requires three environment variables set in Vercel:
CONTACT_TOdefaults tok1af@ft8af.app.SMTP_FROMdefaults toFT8AF <noreply@ft8af.app>.SMTP_PORTdefaults to 587 (STARTTLS); setSMTP_SECURE=truefor port 465.How to test
/contact./contactand a separate "Open a GitHub issue" link still points to GitHub.