Skip to content

Make the signup view's requireEmail and sendReminders required - #1143

Merged
richshaw merged 2 commits into
mainfrom
claude/issue-1140-signup-view-defaults
Nov 27, 2026
Merged

richshaw merged 2 commits into
mainfrom
claude/issue-1140-signup-view-defaults

Conversation

@richshaw

Copy link
Copy Markdown
Owner

Fixes #1140.

Session: https://claude.ai/code/session_016YZ9STne8cnngC1cj9tcAD

The problem

SignupViewSignup marked requireEmail and sendReminders as optional, and SignupViewBody filled them in with ?? true and ?? false. No live render ever reached those fallbacks: toSignupViewSignup always sets both from the signup's settings. They were a second copy of the settings defaults, and the reminders one (false) was the opposite of sendsReminders, which returns true when the key is missing. The home page's showcase card was the only reason the fields were optional.

The fix

  • src/app/s/[slug]/signup-view-types.ts: both fields are now required, with one comment saying toSignupViewSignup fills them.
  • src/app/s/[slug]/public-signup.ts: toSignupViewSignup returns SignupViewSignup, because Required<> is now redundant.
  • src/app/s/[slug]/signup-view.tsx: passes both values straight through, without ??.
  • src/app/(site)/_components/HomeExampleCard.tsx: the showcase literal sets both to true, with a note that showcase mode never reads them. The card's markup doesn't change.

Nothing anyone sees changes, so this has no CHANGELOG entry.

Tests

  • signup-view.test.tsx: the shared SIGNUP now carries requireEmail: true, sendReminders: true. The Trip literal spreads SIGNUP. emailHelp takes a boolean. The undefined reminders case is gone, since no real page can pass one.
  • grep -rn "requireEmail ??\|sendReminders ??" src finds nothing.
  • These passed: pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test (252 files, 3887 tests), plus pnpm build && pnpm budgets, with every page within its budget.

Generated by Claude Code

SignupViewBody filled in its own defaults for the two settings, and the
reminders one (false) was the opposite of the schema's sendsReminders
(true when the key is missing). Every live render already gets both from
toSignupViewSignup, so the fields are now required and passed straight
through. The home page's showcase card sets them; it never reads them.

Fixes #1140.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9STne8cnngC1cj9tcAD
@richshaw richshaw added pipeline:tophat pipeline:working A session is working on it right now and removed pipeline:working A session is working on it right now labels Nov 27, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Tophat: passed

What changes for people: Nothing. The sign-up dialog and the home page's example card look and read the same as before.

Check Result What I saw
Home page example card ✅ Renders its six slots and Sign up buttons. No console errors.
Make, publish and sign up to a signup with the default settings ✅ The dialog asks for Email (required) and has no help line. Signing up as Sam Example shows "saved your spot".
Email optional, reminders on, slot in 2030, desktop and phone ✅ "We'll email you your link to change or cancel, and a reminder before your slot. …"
Email optional, reminders off ✅ "We'll email you your link to change or cancel. …" (no reminder promise), the same text word for word on the base 2c037aa.
Console and server log ✅ No browser console errors. The only server errors come from the health check's worker query, because no worker was running.

No card, since nothing anyone sees changes and nothing on the high-risk list is touched.

Ran cfbf232 against 2c037aa locally, Chromium at 1280×900 and 390×844, made-up data. https://claude.ai/code/session_016YZ9SW9wbz4ipqewrnw7B5


Generated by Claude Code

@richshaw richshaw added pipeline:review pipeline:working A session is working on it right now and removed pipeline:tophat pipeline:working A session is working on it right now labels Nov 27, 2026 — with Claude

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Review: passed (round 1)

requireEmail and sendReminders are now required on SignupViewSignup, the view passes them straight through, and the home card's showcase literal sets both. Every item in #1140's outline and "Done when" is done: grep -rn "requireEmail ??\|sendReminders ??" src finds nothing, Required<> is gone, and no test passes undefined. The only live caller, toSignupViewSignup, already set both, so pages render the same. The shared test SIGNUP gaining sendReminders: true changes no test, because the help line that reads it only shows when email is optional, and emailHelp always sets it.

Blocking (0)
Optional (0)
Earlier threads: none
Checks: CI green on cfbf232 (lint-type-test, e2e, CodeQL). The tophat passed on this SHA.

Not UX and not high-risk, so it goes straight to merge.

https://claude.ai/code/session_016YZ9SW9wbz4ipqewrnw7B5


Generated by Claude Code

@richshaw richshaw added pipeline:merge pipeline:working A session is working on it right now and removed pipeline:review pipeline:working A session is working on it right now labels Nov 27, 2026 — with Claude
@richshaw
richshaw merged commit 5ae5cea into main Nov 27, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-1140-signup-view-defaults branch November 27, 2026 12:34
@richshaw richshaw removed pipeline:merge pipeline:working A session is working on it right now labels Nov 27, 2026 — with Claude
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.

The signup page keeps its own "email required" and "reminders on" defaults, and the reminders one is the opposite of the schema's

2 participants