Skip to content

feat: warn merchants to add contact email in openapi.json#967

Merged
onchainlu merged 31 commits into
mainfrom
merchant-contact-info
Jun 11, 2026
Merged

feat: warn merchants to add contact email in openapi.json#967
onchainlu merged 31 commits into
mainfrom
merchant-contact-info

Conversation

@onchainlu

@onchainlu onchainlu commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Onboarding checklist dialog — post-registration dialog redesigned as a numbered 3-step checklist with completion tracking:
    1. Review your API page (checkmark on click)
    2. Test your endpoints (checkmark on click)
    3. Get free feedback from our team — inline email input, or "Schedule a call" if email already in openapi.json
  • Email persistence — new email column on ResourceOrigin (Prisma migration). Populated during registration from info.contact.email, or manually via the dialog.
  • updateEmail tRPC mutation — public endpoint for the dialog to save merchant email (with NOT_FOUND guard)
  • contactEmailFields() helper — DRYs the conditional spread in both registration handlers
  • Yellow warning during discovery when info.contact.email is missing, with copy-prompt CTA
  • Discovery hub: "Your merchant pages" section describing /m/ and /p/ pages
  • Discovery docs, agent prompts, and examples updated with the recommended field
  • All post-registration links open in new tabs
  • Copyable merchant page link at bottom of dialog

Why

Merchants register and disappear — 80% are pseudonymous. The checklist guides them through setup, captures their email for follow-up, and offers a free consultation. Email is persisted to the origin for future contact and page customization.

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
x402scan Ready Ready Preview, Comment Jun 11, 2026 10:16pm

Request Review

onchainlu added 12 commits June 10, 2026 15:33
Surface info.contact.email throughout registration flows to nudge
merchants toward adding their contact email. This unlocks their free
Poncho merchant dashboard (usage analytics, endpoint health, shareable
onboarding link).

- Yellow warning during discovery when info.contact.email is missing
- Post-registration CTA: green if email detected, yellow nudge if not
- API responses include contactEmail or warning string
- Docs and agent prompts updated with recommended field + examples
- Bump @agentcash/discovery to 1.7.4 (reads contactEmail natively)
The ProbeResult card and its sibling sections (warnings, skipped
endpoints) were not hidden after registration, causing duplicate
"endpoint skipped" collapsibles and a cluttered layout. Added
!activeBulkResult guard to the discovery/probe IIFE block so only
the DiscoveryPanel success section shows post-registration.
- Moved the info.contact.email warning inside the ProbeResult card
  (after favicon warning, before endpoint list) to match mppscan
- Added "Have your agent add it with this prompt" copy button using
  DiscoveryActions with a custom contact-email-specific prompt
- "Learn more" now links to /discovery#merchant-dashboard (added anchor)
- Contact email fix also included in the consolidated DiscoveryFixHint
  prompt via missingContactEmail prop
…efront links

Replace the verbose two-variant dialog with clean action links.
With contact email: API page + dashboard + share link.
Without: API page + share link + nudge to add email.
…tract feature list

Replace "usage analytics, endpoint health, shareable onboarding link" with
concrete tryponcho.com/m/ and /p/ URLs across discovery hub, integration spec,
agent prompts, registration warnings, and API responses.
…ecommended not required

Pages exist for every registered origin regardless of contact email.
Reframe all messaging: /m is the API storefront, /p is health metrics.
Remove "log in with same email" and conditional /p link logic.
- Redesign post-registration dialog as numbered 3-step checklist with completion tracking
- Step 1: Review API page (checkmark on click)
- Step 2: Test endpoints (checkmark on click)
- Step 3: Email input or "Schedule a call" (if email already in openapi.json)
- Add email column to ResourceOrigin (Prisma migration)
- Persist contact email during registration from OpenAPI info.contact.email
- Add updateEmail tRPC mutation for manual email submission from dialog
@onchainlu onchainlu merged commit e6719ae into main Jun 11, 2026
3 checks 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