Skip to content

TASK-24171: retire the waitlist, redirect /shhhhh to /peanut-card - #4113

Draft
kushagrasarathe wants to merge 7 commits into
devfrom
chore/24171-retire-waitlist
Draft

kushagrasarathe wants to merge 7 commits into
devfrom
chore/24171-retire-waitlist

Conversation

@kushagrasarathe

Copy link
Copy Markdown
Contributor

Problem

TASK-24171 retires the waitlist. /shhhhh was a second card landing page, and the app still had a physical-card list (with rank), a QR "Get notified / You're on the list" flow that sent nothing, a country drawer that promised a notification, queue-themed loading words and skip-the-line badge copy.

Change

Routes and attribution

  • /shhhhh, /shhhhh/*, /sh, /sh/*, /lp/card → 308 to /peanut-card in one hop (redirects.json). The query is kept.
  • The /peanut-card CTA (usePeanutCardCta) now handles badge campaigns (?badge_campaign=, ?campaign=, ?campaignTag=) like the old page: it queues them before the store hand-off, so the deferred install carries them. A signed-in visitor gets the claim, then /card. A campaign never gates the card.
  • src/app/shhhhh is deleted. Its signup-continuation helper moved to src/features/card/card-campaign-acquisition.ts (still settles legacy in-flight markers).
  • Content links to /shhhhh resolve to /peanut-card; peanut-card is a locale-neutral content route.
  • Sitemap inventory, llms.txt, llms-full.txt and signup-attribution paths are updated.

Native

  • shhhhh left NATIVE_EXPORT_ROOTS (no page). A legacy /shhhhh link opens the web in the in-app browser, and the web redirects. Universal links never claimed /shhhhh.

Retired mechanisms

  • Physical-card list: screen, route, service calls, analytics events, Your-card entry. /card/physical → /card (307).
  • QR not-supported modal: shows a Close button only, with no notify promise.
  • Country drawer stays (demand-signal work keeps it); its copy no longer promises a notification.
  • Loading words "Skipping/Cutting the line" removed. Dead card.eligibility door strings and setup.residenceStep.restricted notify strings removed.
  • shhhhh i18n namespace trimmed to faq (/peanut-card's FAQ). FAQ q8 no longer invites physical-card interest.
  • Badge copy (WAITLIST_SKIP, CARD_CLOSED_BETA, CARD_PIONEER) is neutral historical copy, matching the API. Badges stay.

API contract (api-contract skill)

  • Stops calling GET/POST /rain/cards/{cardId}/physical-waitlist. peanut-api-ts#2155 makes POST answer 410 and GET return nulls.
  • No other service changes. api.openapi.json is not regenerated here; the daily sync picks up api#2155 after staging.

Tests

  • New src/lib/seo/__tests__/card-redirects.test.ts: each legacy path → /peanut-card permanently, the destination does not redirect, and no static redirect in the table chains or loops (Next's own matcher).
  • usePeanutCardCta.test.tsx: the campaign is queued before the hand-off, guest signup fallback, signed-in claim for every outcome, claim failure still opens /card, badge_campaign param.
  • Native routes, content links, QR modal, country drawer and card screen tests are updated.
  • e2e: card-public.spec.ts opens /shhhhh?campaign=…, expects /peanut-card, and checks that dest=/card and the campaign ride the Play referrer. button-press-physics.spec.ts moved from /shhhhh to /setup and /en/help.
  • Local: typecheck clean; full jest 1434 suites / 21,759 tests pass; next build passes; screens node tests match origin/dev (6 failures there too, from a missing jose worker dependency).
  • Built app (next start) curl: /shhhhh, /shhhhh/, /sh, /sh/, /lp/card → 308 /peanut-card (query kept); /card/physical → 307 /card; /peanut-card 200.

Deploy order

Independent of api#2155. The mono content branch (links → /peanut-card) can publish any time; /peanut-card is already live.

Not verified

  • Playwright specs locally (CI runs them). Real devices and older installed native bundles (they keep old copy until the next native/OTA release).
  • Scheduled OneSignal campaigns that link /shhhhh.

Open decisions (for Kush)

  1. Country drawer: keep (default) or remove.
  2. Rename /help/waitlist-invite-codes with a redirect (follow-up).
  3. /peanut-card is English only; translated /shhhhh visitors now see English.

🤖 Generated with Claude Code

/shhhhh, /shhhhh/ and its aliases (/sh, /lp/card) now 308 straight to
/peanut-card, so there is one card landing page and no redirect chain.
The /peanut-card CTA takes over badge-campaign handling (queue before the
store hand-off, claim when signed in), so old campaign links keep their
attribution. Native drops /shhhhh from the export; a legacy link opens
the web, which redirects.

Remove the physical-card list (no physical card exists, so joining it was
a false promise), the unsupported-QR 'Get notified' flow (nothing was
ever sent), queue-themed loading words and dead door/notify strings. The
country drawer stays (demand-signal work keeps it) but stops promising a
notification.
Skip Pass, Closed Beta and Card Pioneer copy still promised a skipped
waitlist, secret access or future perks. Holders keep the badges; the
copy now only says what they did. The API sends its own localized copy,
which the API PR changes to match.
prebuild rewrote this generated file during a local build. It is not
part of this change.
- Keep only shhhhh.faq: /peanut-card reads it; the rest of the old page's
  copy was dead weight on every marketing route.
- Drop the /card/physical screen-catalogue entry: with no page behind it
  the route fell into the marketing catch-all and leaked marketing code
  into captured screens.
- One badge-campaign claim at a time across the page's CTAs.
- The e2e checks that the campaign rides the store hand-off.
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
peanut-wallet Ready Ready Preview Nov 16, 2026 8:36am UTC

Request Review

@notion-workspace

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Code-analysis diff

Painscore total: 11090.26 → 11070.62 (-19.64)
Findings: -10 net (+35 new, -45 resolved)

🆕 New findings (35)

  • critical complexity — src/lib/content.ts — CC 117, MI 58.04, SLOC 429
  • critical complexity — src/services/rain.ts — CC 105, MI 57.53, SLOC 393
  • critical complexity — src/components/Global/QRScannerOverlay/index.tsx — CC 82, MI 43.02, SLOC 399
  • critical complexity — src/components/Card/YourCardScreen.tsx — CC 60, MI 58.43, SLOC 205
  • critical method-complexity — src/components/Global/QRScannerOverlay/index.tsx:202 — CC 60 SLOC 239
  • critical complexity — src/constants/analytics.consts.ts — CC 1, MI 26.46, SLOC 300
  • critical complexity — src/dev/screens/pages.ts — CC 1, MI 22.37, SLOC 328
  • high hotspot — src/constants/analytics.consts.ts — 128 commits, +604/-146 lines since 6 months ago
  • high hotspot — src/hooks/useZeroDev.ts — 75 commits, +829/-555 lines since 6 months ago
  • high hotspot — src/services/rain.ts — 61 commits, +949/-252 lines since 6 months ago
  • high method-complexity — src/services/rain.ts:555 — rainRequest CC 42 SLOC 81
  • high complexity — src/lib/seo/url-inventory.ts — CC 37, MI 52.26, SLOC 273
  • high method-complexity — src/components/Card/YourCardScreen.tsx:82 — CC 35 SLOC 143
  • medium react-long-component — src/components/Global/QRScannerOverlay/index.tsx:171 — QRScannerOverlay is 370 lines — split it
  • medium high-mdd — src/components/Global/QRScannerOverlay/index.tsx:171 — QRScannerOverlay: MDD 107.5 (uses across many lines from declarations)
  • medium high-mdd — src/components/Card/YourCardScreen.tsx:82 — YourCardScreen: MDD 95.9 (uses across many lines from declarations)
  • medium high-mdd — src/lib/seo/url-inventory.ts:61 — getIndexablePages: MDD 85.3 (uses across many lines from declarations)
  • medium high-mdd — src/components/Global/QRScannerOverlay/index.tsx:202 — processQRCode: MDD 75.3 (uses across many lines from declarations)
  • medium high-dlt — src/components/Global/QRScannerOverlay/index.tsx:171 — QRScannerOverlay: DLT 51 (calls 51 distinct functions — high context load)
  • medium high-mdd — src/components/Global/QRScannerOverlay/index.tsx:63 — QrResultModal: MDD 48.4 (uses across many lines from declarations)

…and 15 more.

✅ Resolved (45)

  • src/lib/content.ts — CC 117, MI 58.09, SLOC 427
  • src/services/rain.ts — CC 107, MI 57.77, SLOC 405
  • src/components/Global/QRScannerOverlay/index.tsx — CC 83, MI 43.55, SLOC 416
  • src/components/Card/YourCardScreen.tsx — CC 61, MI 58.82, SLOC 209
  • src/components/Global/QRScannerOverlay/index.tsx:215 — CC 60 SLOC 239
  • src/constants/analytics.consts.ts — CC 1, MI 26.34, SLOC 303
  • src/dev/screens/pages.ts — CC 1, MI 22.26, SLOC 331
  • src/constants/analytics.consts.ts — 127 commits, +604/-143 lines since 6 months ago
  • src/hooks/useZeroDev.ts — 74 commits, +827/-553 lines since 6 months ago
  • src/app/shhhhh/ShhhhhLandingPage.tsx — 64 commits, +1672/-1343 lines since 6 months ago
  • src/services/rain.ts:560 — rainRequest CC 42 SLOC 81
  • src/lib/seo/url-inventory.ts — CC 37, MI 52.13, SLOC 276
  • src/components/Card/YourCardScreen.tsx:82 — CC 35 SLOC 145
  • src/components/Global/QRScannerOverlay/index.tsx:184 — QRScannerOverlay is 374 lines — split it
  • src/components/Global/QRScannerOverlay/index.tsx:184 — QRScannerOverlay: MDD 107.7 (uses across many lines from declarations)
  • src/components/Card/YourCardScreen.tsx:82 — YourCardScreen: MDD 99.5 (uses across many lines from declarations)
  • src/app/shhhhh/ShhhhhLandingPage.tsx:42 — ShhhhhLandingPage: MDD 91.8 (uses across many lines from declarations)
  • src/lib/seo/url-inventory.ts:61 — getIndexablePages: MDD 85.6 (uses across many lines from declarations)
  • src/components/Global/QRScannerOverlay/index.tsx:215 — processQRCode: MDD 75.3 (uses across many lines from declarations)
  • src/components/Global/QRScannerOverlay/index.tsx:65 — QrResultModal: MDD 55.1 (uses across many lines from declarations)

…and 25 more.

📈 Painscore deltas (top movers)

File Before After Δ
src/features/card/card-campaign-acquisition.ts 0.0 2.4 +2.4
src/components/Marketing/StarLp/pages/usePeanutCardCta.ts 5.4 7.3 +1.8
src/app/shhhhh/page.tsx 2.2 0.0 -2.2
src/app/(mobile-ui)/card/physical/page.tsx 2.5 0.0 -2.5
src/app/shhhhh/shhhhh-acquisition.ts 2.6 0.0 -2.6
src/components/Card/PhysicalCardScreen.tsx 7.2 0.0 -7.2
src/app/shhhhh/ShhhhhLandingPage.tsx 10.3 0.0 -10.3

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🧪 UI test report — ✅ all green

Suites

  • ✅ unit: 21764 ran, 0 failed, 0 skipped, 10.9m

📊 Coverage (unit)

metric %
statements 88.5%
branches 81.8%
functions 82.7%
lines 90.0%
⏱ 10 slowest test cases
time test
🐢 32.1s scripts/__tests__/screens-adapter.test.js › runs the existing synthetic screen adapter Node acceptance suite
🐢 19.4s src/features/deposit-accounts/__tests__/AddMoneyArgentinaCountry.acceptance.test.tsx › keeps unavailable Argentina searchable and opens its residence explanation with Enter
🐢 18.3s src/features/deposit-accounts/__tests__/AddMoneyArgentinaCountry.acceptance.test.tsx › keeps unavailable Argentina searchable and opens its residence explanation with pointer
🐢 17.0s src/features/deposit-accounts/__tests__/AddMoneyArgentinaCountry.acceptance.test.tsx › keeps unavailable Argentina searchable and opens its residence explanation with Space
🐢 10.7s src/features/deposit-accounts/__tests__/AddMoneyArgentinaCountry.acceptance.test.tsx › preserves ordinary Argentina selection for residence null
🐢 9.9s src/features/deposit-accounts/__tests__/AddMoneyArgentinaCountry.acceptance.test.tsx › preserves ordinary Argentina selection for residence AR
🐢 9.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › Network failure keeps loading while retries remain, then shows the generic error
🐢 7.5s scripts/__tests__/signup-attribution-paths.test.ts › includes newly published articles and locale fallbacks without editing the manifest
🐢 7.2s scripts/__tests__/indexable-urls.test.ts › excludes missing locale files, drafts, redirects, and retired pages from crawl and submission lists
4.5s src/components/Card/share-asset/__tests__/shareAssetLayout.test.ts › never places two stickers in heavy overlap (broad seed sweep)
📍 Inline annotations are in the **Unit test report** check above. Coverage artifact: `coverage-unit`. Generated by `.github/workflows/tests.yml`.

The pinned content still links /shhhhh. With the page gone, the link
check called it broken, although the route now 308s to /peanut-card and
the resolver rewrites the link. The mono content branch moves the links.

This branch was successfully deployed

1 active deployment
Preview — 7875fe1a Deployed Nov 16, 2026 by vercel[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.

1 participant