Skip to content

Commit 9cc63dd

Browse files
authored
fix(site): remove the home page email signup, privacy section and claude code mention (#62387)
1 parent fc4793c commit 9cc63dd

73 files changed

Lines changed: 24 additions & 2475 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎services/site/DESIGN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To add a rule, add one line under its group. Mark a rule that is still being dec
2525
- Use OpenTUI Mono (`--font-mono`), Anomaly's own font, for nav, labels, titles and code, and Inter (`--font-sans`) for body and reading text. → [Fonts](/dev/components#fonts)
2626
- Serve only fonts we own or that are openly licensed (OpenTUI Mono, the OpenCode font, Inter), never a commercial face. `test/fonts.test.ts` enforces it.
2727
- Step text once, at 960px. Only page titles (`--fs-h1`) and display titles are fluid. → [Type scale](/dev/components#type-scale)
28-
- Set inputs with `--fs-input`, 16px on touch, so iOS doesn't zoom. → [Signup form](/dev/components#signup)
28+
- Set inputs with `--fs-input`, 16px on touch, so iOS doesn't zoom.
2929
- Give section titles `--title-size` with the `--title-stroke` faux medium; the current nav item gets the same stroke.
3030
- Keep reading text within `--measure` (about 70 characters a line).
3131
- Let hero and product leads run as two long lines, with no max-width cap. Why — the cap was tried and removed by David.

‎services/site/README.md‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,6 @@ dev.opencode.ai, `opencode-site-production` on opencode.ai), its bindings and it
4848
pushes to `dev` and `production` (`.github/workflows/deploy-site.yml`). Production takes no routes until
4949
`productionOwnsRoot` is switched on.
5050

51-
### Email sign-up
52-
53-
The home page's sign-up adds addresses to the OpenSend newsletter list (`src/lib/opensend.ts`) with
54-
the `OPENSEND_API_KEY` secret, a live OpenSend API key with manage permission. `cloudflare.config.ts`
55-
declares it, so a deploy fails until it's set on the Worker:
56-
57-
```bash
58-
read -s OPENSEND_API_KEY
59-
bunx cf workers secrets update OPENSEND_API_KEY --worker opencode-site-dev --text "$OPENSEND_API_KEY"
60-
```
61-
62-
In `bun run dev`, export `OPENSEND_API_KEY` to send real sign-ups; without it the form answers as if
63-
it worked and says nothing was sent.
64-
6551
The V2 docs at `/v2` are part of this app (`src/docs/`, see `src/docs/AGENTS.md`). `script/build.ts` prerenders
6652
them into the Worker's assets after `vite build`.
6753

‎services/site/cloudflare.config.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ export default defineConfig(({ mode }) => {
3232
env: {
3333
ASSETS: bindings.assets(),
3434
STAGE: bindings.text(dev ? "dev" : "production"),
35-
// The email sign-up's OpenSend key (lib/opensend.ts). A deploy fails until it's set on the Worker.
36-
OPENSEND_API_KEY: bindings.secret(),
3735
},
3836
triggers:
3937
dev || productionOwnsRoot

‎services/site/script/check-worker-start.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ const modules = Object.fromEntries(
4040
}),
4141
),
4242
)
43-
// The site binds its assets, text values and secrets only; another kind of binding needs emulating
44-
// here first. A secret gets a placeholder: its calls go nowhere (see below).
43+
// The site binds its assets and text values only; another kind of binding needs emulating here first.
4544
const env = Object.fromEntries(
4645
Object.entries(config.env ?? {}).map(([name, binding]) => {
4746
if (binding.type === "text") return [name, { type: "text" as const, value: binding.value }]
48-
if (binding.type === "secret") return [name, { type: "text" as const, value: "check-worker-start" }]
4947
if (binding.type === "assets") return [name, { type: "assets" as const }]
5048
throw new Error(`check-worker-start: the ${binding.type} binding ${name} is not emulated`)
5149
}),

‎services/site/src/component/site/announcement.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
export const announcements = [
55
// v2.2.0: "Create, install and share Desktop plugins (experimental)".
66
{ text: "Create, install and share desktop plugins.", link: "See what's new in 2.2", href: "/changelog/v2.2.0" },
7-
// v2.2.3: "Use Claude Code in OpenCode".
8-
{ text: "Use your Claude Code login in OpenCode.", link: "See v2.2.3", href: "/changelog/v2.2.3" },
97
// v2.2.4: "Persistent Desktop Terminals".
108
{ text: "Desktop terminals now survive restarts.", link: "See v2.2.4", href: "/changelog/v2.2.4" },
119
// v2.2.1: "Generate Images".

‎services/site/src/component/site/design-mode.tsx‎

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ export const copyVariants = {
146146
`OpenCode is MIT licensed. ${config.stats.contributors} contributors have made ${config.stats.commits}+ commits, and ${config.stats.monthlyUsers} developers use it every month.`,
147147
],
148148
},
149-
"home.privacy.title": { label: "Privacy title", lines: 1, options: ["Your code stays yours"] },
150-
"home.privacy.body": {
151-
label: "Privacy",
152-
lines: 1,
153-
options: [
154-
"OpenCode runs on your computer and keeps your sessions there. Your code goes only to the model provider you choose. If you choose a model hosted by OpenCode, its training and retention terms are listed in the docs.",
155-
],
156-
},
157149
"home.faq.a3": {
158150
label: "FAQ: extra subscriptions",
159151
lines: 1,
@@ -180,23 +172,6 @@ export const copyVariants = {
180172
"OpenCode runs on your computer and keeps your sessions there. Your code goes only to the model provider you choose. If you choose a model hosted by OpenCode, its training and retention terms are listed in the docs.",
181173
],
182174
},
183-
// The home email sign-up (signup.tsx); its own copy is the first option.
184-
"home.signup.title": {
185-
label: "Sign-up title",
186-
lines: 1,
187-
options: ["Stay in the loop", "Release notes", "Get the updates"],
188-
},
189-
"home.signup.body": {
190-
label: "Sign-up intro",
191-
lines: 1,
192-
options: [
193-
"Release notes and new products by email, when they ship. No spam, and you can unsubscribe at any time.",
194-
"One email when something ships: new releases and new products. Nothing else.",
195-
"Be the first to hear about new releases and products. Every email has an unsubscribe link.",
196-
],
197-
},
198-
// Sign-up style "sentence": the button that shows once the address is valid.
199-
"home.signup.button": { label: "Sign-up button", lines: 1, options: ["Get early access", "Let me know", "Join"] },
200175
// The home page's "New" bar (announcement.ts): each option keeps its own link.
201176
"home.announcement": { label: "Announcement", lines: 1, options: announcements.map(announcementCopy) },
202177
// "Get started" (lib/get-started.ts); the first option is the page's own copy.
@@ -220,7 +195,7 @@ export const copyVariants = {
220195
label: "Own subs line",
221196
lines: 1,
222197
options: [
223-
"Log in with ChatGPT Plus or Pro, GitHub Copilot or Claude Code. Or use an OpenCode subscription.",
198+
"Log in with ChatGPT Plus or Pro or GitHub Copilot. Or use an OpenCode subscription.",
224199
"Log in with OpenAI to use your ChatGPT Plus or Pro account, or with GitHub to use your Copilot account.",
225200
"Log in with ChatGPT or GitHub Copilot, add any API key, or subscribe to OpenCode Go.",
226201
],

‎services/site/src/component/site/design-overlay.tsx‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ import {
9090
statsModes,
9191
ossProofs,
9292
ossVariants,
93-
signupStyles,
9493
avatarAnimations,
9594
toolsAnimations,
9695
avatarLinks,
@@ -233,7 +232,6 @@ const settingControls: Record<string, Control> = {
233232
stats: setting("stats", "Stats", () => statsModes),
234233
ossProof: setting("ossProof", "Open source proof", () => ossProofs),
235234
ossVariant: setting("ossVariant", "Open source variant", () => ossVariants),
236-
signupStyle: setting("signupStyle", "Sign-up style", () => signupStyles),
237235
avatarAnimation: setting("avatarAnimation", "Avatar animation", () => avatarAnimations),
238236
avatarLink: setting("avatarLink", "Avatar links", () => avatarLinks),
239237
avatarStagger: setting("avatarStagger", "Avatar stagger ms", () => [20, 30, 35, 40, 50, 60, 80]),
@@ -273,7 +271,6 @@ const settingControls: Record<string, Control> = {
273271
whatColumns: setting("whatColumns", "Body columns", () => sectionColumns),
274272
toolsColumns: setting("toolsColumns", "Body columns", () => sectionColumns),
275273
openSourceColumns: setting("openSourceColumns", "Body columns", () => sectionColumns),
276-
privacyColumns: setting("privacyColumns", "Privacy width", () => sectionColumns),
277274
faqColumns: setting("faqColumns", "FAQ width", () => sectionColumns),
278275
consoleColumns: setting("consoleColumns", "Body columns", () => sectionColumns),
279276
whatCopyColumns: setting("whatCopyColumns", "Copy columns", () => sectionColumns),

‎services/site/src/component/site/home-order.tsx‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ const selectors: Record<HomeSection, string> = {
2727
tools: '[data-section="tools"]',
2828
// Open source proof as its own section moves with the stats, right after them.
2929
openSource: ':is([data-section="openSource"], [data-section="openSourceProof"])',
30-
privacy: '[data-section="privacy"]',
3130
faq: '[data-section="faq"]',
32-
signup: '[data-section="signup"]',
3331
console: '[data-section="console"]',
3432
}
3533

@@ -41,9 +39,7 @@ const labels: Record<HomeSection, string> = {
4139
byos: "Bring your own subs",
4240
tools: "Bring your own tools",
4341
openSource: "Open source",
44-
privacy: "Privacy",
4542
faq: "FAQ",
46-
signup: "Email sign-up",
4743
console: "Console",
4844
}
4945

‎services/site/src/component/site/page-settings.tsx‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import {
4747
statsModes,
4848
ossProofs,
4949
ossVariants,
50-
signupStyles,
5150
avatarAnimations,
5251
toolsAnimations,
5352
avatarLinks,
@@ -77,7 +76,6 @@ const sectionColumnSettings = [
7776
{ key: "whatColumns", label: "What is OpenCode?", copy: "whatCopyColumns" },
7877
{ key: "toolsColumns", label: "Bring your own tools", copy: "toolsCopyColumns" },
7978
{ key: "openSourceColumns", label: "Open source", copy: "openSourceCopyColumns" },
80-
{ key: "privacyColumns", label: "Privacy" },
8179
{ key: "faqColumns", label: "FAQ" },
8280
{ key: "consoleColumns", label: "Console", copy: "consoleCopyColumns" },
8381
] as const
@@ -640,18 +638,6 @@ export default function PageSettings(props: { home?: boolean; terminal?: boolean
640638
value={siteSettings.ossProof}
641639
onChange={(value) => setSiteSetting("ossProof", value)}
642640
/>
643-
<SettingsSelect
644-
label="Sign-up section"
645-
options={toggles}
646-
value={siteSettings.signupSection}
647-
onChange={(value) => setSiteSetting("signupSection", value)}
648-
/>
649-
<SettingsSelect
650-
label="Sign-up style"
651-
options={signupStyles}
652-
value={siteSettings.signupStyle}
653-
onChange={(value) => setSiteSetting("signupStyle", value)}
654-
/>
655641
<SettingsSelect
656642
label="Avatar animation"
657643
options={avatarAnimations}

‎services/site/src/component/site/preload-settings.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ const preloadRules: [string, string, (s: SiteSettings, el: HTMLElement, d: SiteS
176176
],
177177
['ul[data-component="tools"]', "data-settling", (s, el, d) => (s.toolTiles !== d.toolTiles ? "" : undefined)],
178178
['dl[data-component="stats"]', "data-settling", (s, el, d) => (s.stats !== d.stats ? "" : undefined)],
179-
['section[data-section="signup"]', "data-off", (s) => (s.signupSection === "off" ? "" : undefined)],
180-
['[data-component="signup"]', "data-settling", (s, el, d) => (s.signupStyle !== d.signupStyle ? "" : undefined)],
181179
[
182180
"section[data-console-height]",
183181
"data-settling",

0 commit comments

Comments
 (0)