Repository navigation
Polish trade page and inquiry form copy (#122) - #123
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's GuideThis copy-only PR polishes the Flow diagram for the polished trade inquiry experienceflowchart TD
TradePage[Trade page] --> Intro[Updated brewery and trade-account copy]
Intro --> InquirySection[Send an inquiry section]
InquirySection --> Form[Trade inquiry form]
Form -->|valid submission| Success[Receipt confirmation and follow-up message]
Form -->|validation or server error| FriendlyError[Customer-friendly error message]
Form -.-> Invariants[Existing fields, analytics, accessibility, and submission behavior]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
10 tasks done
The /trade journey read like generic B2B copy. Rewrites the page intro, "What to expect" bullets, form section heading, field labels (sentence case to match the tour inquiry dialog; "Your name", "Business type"), submit button, and success message in the brewery's voice. Optional fields are now marked, and the server-side validation errors shown verbatim in the form no longer leak camelCase API field names. No behavioral, schema, analytics, or backend changes; venueType values and server-side validation semantics are untouched. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
spizeck
force-pushed
the
copy/issue-122-trade-page
branch
from
September 24, 2026 00:46
8002a04 to
150e6c4
Compare
This branch was successfully deployed
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.
Summary
Rewrites the customer-facing copy across the
/tradejourney — page intro, "What to expect" bullets, form heading, labels, submit button, success state, and the API error strings the form displays verbatim — so it reads like Deep Dive Brewing rather than generic B2B filler. No functional, schema, analytics, or backend changes.Closes #122
Changes
app/(pages)/trade/page.tsxcomponents/trade-inquiry-form.tsxlib/trade-leads-common.ts+app/api/trade-inquiry/route.ts— error strings the form displays verbatim:Please enter a valid email address.(Trade inquiry API accepts malformed email addresses #117), the 429 message, and all behavior/ordering are unchanged.Tests: updated for intentional wording changes only —
tests/lib/trade-leads.test.ts(new error strings, still asserting status/submit-call invariants),smoke-tests/{smoke,accessibility,analytics}.spec.ts(new labels/button name; the success test now asserts the actual success copy instead of a weak/inquiry/imatch).Docs:
docs/admin/trade-inquiries.mdfield table updated to the new displayed labels.Verification
npx tsc --noEmit— cleannpm run lint— clean (one pre-existingjsx-ast-utilsnotice, also onmain)npm test— 350 passnpm run test:rules— 29 passnpm run build— succeedsnpx playwright test— 117 passnpm run check:md-links— all resolvenpm run check:react-versions— matchnpm audit --omit=dev— 0 vulnerabilitiesok: true), and a 400 validation error all render cleanly; no wrapping/overflow issues; cookie banner dismissed for shots.Risk / deployment notes
names, submitted values (venueTypeoptions unchanged), analytics events (trade_form_start/success/error), honeypot, rate limiting, and accessibility semantics (labels,required,role="status") are all unchanged.Generated with Devin
Summary by Sourcery
Polish the trade and wholesale inquiry experience with consistent, customer-friendly copy across the page, form, API responses, tests, and documentation.
Enhancements:
Documentation:
Tests: