Skip to content

Hosted: checkout from a plan card shows that plan alone; founders opt-in above the plan details - #1805

Merged
nedtwigg merged 3 commits into
mainfrom
enroll-checkout-polish
Nov 28, 2026
Merged

nedtwigg merged 3 commits into
mainfrom
enroll-checkout-polish

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Two follow-ups to #1797, from walking through /enroll on production:

  • Checkout from a plan card shows only that plan. After a card's buy button, checkout no longer brings back the "Choose a plan" radio list, so the buyer doesn't pick a plan twice. It names the picked plan alone, in the plan list's own card (OfferLine, extracted from the radio row), above its terms and the two agreement boxes. "Back to the plans" is how to change it. If the picked plan has sold out since the card was clicked, the radio list comes back. An account whose founding price lapsed sees why above the plan, as it does in the list. /checkout is unchanged.
  • The founders-row opt-in moves up on /billing. It used to sit after the plan details and "Manage billing", like a footnote, and was easy to miss. It now comes before them. An account that isn't offered the row sees no gap (empty:hidden).

The rest of the walkthrough's findings are tracked separately: #1801 (sign-in drops the enrollment) and #1803 (Pocket and a second account).

Tests: Hosted DOM and unit tests, plus the Enrollment and Billing stories in Chromium. The updated card-checkout test fails with picked removed. Expect Argos diffs on the no-plan checkout Enrollment story and the founding Billing stories. Locally, server/tests/relay-room.test.ts failed once and then hung on rerun. This branch touches no server code, so CI is the judge there.

🤖 Generated with Claude Code

…-in above the plan details

From a walkthrough of /enroll on production. A plan picked on a card no
longer meets the radio list again: checkout names it alone, and "Back to
the plans" changes it. Sold out meanwhile, the list returns. On /billing
the founders-row opt-in sat below the plan details like a footnote; it
now leads them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: e7eb937
Status: ✅  Deploy successful!
Preview URL: https://e7aeff12.mouseterm.pages.dev
Branch Preview URL: https://enroll-checkout-polish.mouseterm.pages.dev

View logs

@dormouse-bot dormouse-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the card flow, an account whose founding price lapsed no longer sees why. The billing.foundingLapsed notice only appears inside the "Choose a plan" fieldset, and a card pick now shows the plan alone. That account's billing.founding is null, so its plan cards have no Founding offer either. Before this change, checkout explained that. Now nothing on the path from card to payment does. The suggestion below shows the notice in the single-plan branch too.

Comment thread hosted/src/Checkout.tsx Resolved
nedtwigg and others added 2 commits November 28, 2026 10:20
The lapsed-founding notice lived only in the "Choose a plan" list, which a
card's checkout now skips, so show it above the single plan too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nedtwigg
nedtwigg merged commit 10aaafd into main Nov 28, 2026
20 checks passed
@nedtwigg
nedtwigg deleted the enroll-checkout-polish branch November 28, 2026 18:39

This branch was successfully deployed

1 active deployment
dormouse/preview — e7eb9371 Deployed Nov 28, 2026 by argos-ci[bot]
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.

2 participants