Files
ask-form/examples/api-keys/spec.json
gabrielvidalandClaude Opus 5.5 ffce9e1fd6 feat(examples): mockup choices in the demo forms, a team-vote demo
New project (home screen), Code review (the invoice table on a phone) and
API keys (pricing page) each get a mockup choice, the same ones the landing
shows. /examples/team-vote is a multi-answer form with an optional email.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:10:15 +01:00

162 lines
5.7 KiB
JSON

{
"title": "Stripe + Sentry: keys and settings",
"order": 3,
"summary": "Credentials without the chat: secret fields go straight into .env, the agent only learns they're set.",
"description": "The billing code is ready on `feat/billing`; it needs your keys. **Secret fields never reach me**: I only learn they're set and how long they are, and they go straight into `.env.local`. Test-mode keys are fine for now.",
"fields": [
{
"type": "markdown",
"group": "Stripe",
"label": "Where to find them",
"text": "Stripe dashboard → **Developers → API keys**, test mode on. The webhook secret can wait: if you leave it empty, I create the endpoint with the Stripe CLI and fill it in myself."
},
{
"key": "stripe_secret_key",
"label": "Stripe secret key (`sk_test_…`)",
"type": "secret",
"required": true,
"group": "Stripe"
},
{
"key": "stripe_webhook_secret",
"label": "Webhook signing secret (`whsec_…`)",
"type": "secret",
"group": "Stripe"
},
{
"key": "billing_model",
"label": "What do people pay for?",
"type": "radio",
"required": true,
"group": "Stripe",
"default": "monthly",
"options": [
{
"value": "one-time",
"label": "A one-time purchase"
},
{
"value": "monthly",
"label": "A monthly subscription"
},
{
"value": "monthly-yearly",
"label": "Monthly or yearly",
"description": "Yearly = two months free"
}
]
},
{
"key": "pricing_page",
"label": "Pricing page",
"type": "radio",
"required": true,
"group": "Stripe",
"default": "toggle",
"help": "If people can pay yearly, the toggle shows the saving up front.",
"options": [
{
"value": "one",
"label": "One plan",
"html": "<div style=\"width:240px;height:320px;box-sizing:border-box;padding:16px 14px;background:hsl(var(--card));color:hsl(var(--foreground));font:12px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;display:flex;flex-direction:column;gap:9px;align-items:center;text-align:center;\"><div style=\"font-weight:750;font-size:16px;margin-bottom:2px\">Pro</div><div style=\"font-size:34px;font-weight:800;letter-spacing:-.02em\">€9<small style=\"font-size:13px;color:hsl(var(--muted-foreground));font-weight:500\">/mo</small></div><div style=\"height:9px;width:70%;border-radius:5px;background:hsl(var(--muted))\"></div><div style=\"height:9px;width:60%;border-radius:5px;background:hsl(var(--muted))\"></div><div style=\"height:9px;width:50%;border-radius:5px;background:hsl(var(--muted))\"></div><div style=\"margin-top:auto;width:100%;border-radius:9px;background:hsl(var(--primary));color:#fff;font-weight:700;padding:9px 0\">Subscribe</div></div>"
},
{
"value": "toggle",
"label": "Monthly / yearly toggle",
"html": "<div style=\"width:240px;height:320px;box-sizing:border-box;padding:16px 14px;background:hsl(var(--card));color:hsl(var(--foreground));font:12px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;display:flex;flex-direction:column;gap:9px;align-items:center;text-align:center;\"><div style=\"display:flex;border:1px solid hsl(var(--border));border-radius:99px;padding:3px;font-size:11px;font-weight:600\"><span style=\"padding:3px 10px;color:hsl(var(--muted-foreground))\">Monthly</span><span style=\"padding:3px 10px;border-radius:99px;background:hsl(var(--primary));color:#fff\">Yearly</span></div><div style=\"font-size:34px;font-weight:800;letter-spacing:-.02em\">€90<small style=\"font-size:13px;color:hsl(var(--muted-foreground));font-weight:500\">/yr</small></div><div style=\"font-size:11px;font-weight:700;color:hsl(140 55% 36%)\">2 months free</div><div style=\"height:9px;width:60%;border-radius:5px;background:hsl(var(--muted))\"></div><div style=\"height:9px;width:50%;border-radius:5px;background:hsl(var(--muted))\"></div><div style=\"margin-top:auto;width:100%;border-radius:9px;background:hsl(var(--primary));color:#fff;font-weight:700;padding:9px 0\">Subscribe</div></div>"
}
],
"aspect": "3/4"
},
{
"key": "price",
"label": "Price per month",
"type": "number",
"required": true,
"group": "Stripe",
"min": 1,
"step": 0.5,
"default": 9
},
{
"key": "currency",
"label": "Currency",
"type": "select",
"group": "Stripe",
"default": "eur",
"options": [
{
"value": "eur",
"label": "EUR (€)"
},
{
"value": "usd",
"label": "USD ($)"
},
{
"value": "gbp",
"label": "GBP (£)"
}
]
},
{
"key": "stripe_tax",
"label": "Let Stripe Tax work out VAT and sales tax",
"type": "checkbox",
"group": "Stripe",
"default": true
},
{
"key": "sentry_dsn",
"label": "Sentry DSN",
"type": "text",
"required": true,
"group": "Sentry",
"placeholder": "https://…@o123456.ingest.sentry.io/789",
"help": "Sentry → Project settings → Client Keys. Not a secret: it ships in the browser bundle."
},
{
"key": "sentry_auth_token",
"label": "Sentry auth token, for uploading source maps",
"type": "secret",
"group": "Sentry",
"help": "Optional. Without it, stack traces point into minified code."
},
{
"key": "environments",
"label": "Report errors from",
"type": "multiselect",
"group": "Sentry",
"default": [
"production",
"staging"
],
"options": [
{
"value": "production",
"label": "Production"
},
{
"value": "staging",
"label": "Staging"
},
{
"value": "local",
"label": "Local dev"
}
]
},
{
"key": "trace_rate",
"label": "Share of requests to trace (%)",
"type": "slider",
"group": "Sentry",
"min": 0,
"max": 100,
"step": 5,
"default": 10,
"help": "10 % stays well inside the free plan's quota at your traffic."
}
]
}