docs(home): footer newsletter, wired to the public subscribe endpoint - #177
Draft
soamdesai-tfh wants to merge 1 commit into
Draft
docs(home): footer newsletter, wired to the public subscribe endpoint#177soamdesai-tfh wants to merge 1 commit into
soamdesai-tfh wants to merge 1 commit into
Conversation
…be endpoint The Docs 3.0 footer includes 'Subscribe to World Developers Newsletter'. The block was staged behind a comment because a static Mintlify site cannot hold world.org's server-side Braze token; it now ships as a real form posting to POST https://world.org/api/subscribe (worldcoin/company-website#4481). Single attempt with a 10s bound and explicit success/error states — no retries (a retry could double-fire the marketing pipeline) and no silent failures. Stacks below 900px.
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
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.
Part of the Docs 3.0 QA round 2 series (with #171–#176). Draft — blocked on worldcoin/company-website#4481.
Change
The Docs 3.0 footer includes the Subscribe to World Developers Newsletter block. It has been staged behind a comment since #163 because world.org's own form submits through a Next.js server action holding a server-side Braze token — a static Mintlify site can't keep that secret, and shipping a form with nowhere to post is a silent failure.
This PR turns the staged markup into a real component (
/snippets/newsletter-form.jsx) posting toPOST https://world.org/api/subscribe— the public endpoint proposed in worldcoin/company-website#4481:type=emailvalidation, privacy-notice consent copy per the design, stacks to one column below 900px.Merge only after worldcoin/company-website#4481 (plus its rate-limit rule) is live.
Design
Implementation (local render, wired to the pending endpoint)