feat(classroom): $12/mo tier — class codes + worksheet PNG pack - #38
Merged
Conversation
New checkouts use plan keys (monthly|annual) resolved from STRIPE_PRO_*_PRICE_ID env vars. Legacy $5/$48 Stripe price IDs stay on existing subscribers and are rejected for new checkouts. UI, pricing page, and upgrade modal updated; feature grid highlights spreadsheet import + cloud My Maps. Co-authored-by: Max <mhowe.gis@gmail.com>
Builds on the Pro $9/$72 price raise. Classroom checkout (plan: classroom) includes all Pro entitlements plus teacher tools: generate a class code bound to the current map (Supabase classroom_codes), share /class/<CODE>, and download a 3-PNG worksheet pack (answer key, blank, student). Pricing page gets a Pro + Classroom grid and a class-code join field. Existing $5/$48 subscribers remain grandfathered. Co-authored-by: Max <mhowe.gis@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mapzimus
marked this pull request as ready for review
August 1, 2026 21:54
Master landed the $9/$72 Pro raise while this branch already contained that work plus Classroom. All conflicts were same-file supersession — kept Classroom (HEAD) versions and folded in master's Cancel-anytime pricing note. Co-authored-by: Max <mhowe.gis@gmail.com>
This was referenced Aug 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Monetization sequence after A1/A2: Pro price raise, then Classroom at $12/mo for the teacher ICP — class codes + printable worksheet packs (the “classroom packs” peer paid reason).
This branch originally stacked on the Pro $9/$72 raise (#37). #37 has since merged to
master; this PR is rebased via merge with conflict resolution (Classroom supersedes the Pro-only pricing surfaces).What
Billing
plan: "classroom"→STRIPE_CLASSROOM_MONTHLY_PRICE_IDverify-subscriptionreturns{ isPro, isClassroom, tier }— Classroom includes all Pro entitlementsTeacher tools (Create → Upgrade panel when Classroom)
classroom_codestable)tappymaps.com/class/<CODE>captureMapImage():Join flow
/class/<CODE>loads the teacher’s map into CreatePricing UI
Merge conflicts (resolved)
After fetching latest
master(#37), conflicts were in:.env.example,README.md,api/stripe/create-checkout.js,scripts/checkout-plan-smoke.mjs,index.html(5 hunks).Classification: all simple — same intent (Pro $9/$72), Classroom branch is a strict superset. Kept Classroom versions; kept master’s “Cancel anytime” note on the Pro card.
Manual steps for Max
STRIPE_PRO_MONTHLY_PRICE_IDSTRIPE_PRO_ANNUAL_PRICE_IDSTRIPE_CLASSROOM_MONTHLY_PRICE_IDsupabase/migrations/20260801_user_maps.sql(A2, if not applied)supabase/migrations/20260801_classroom_codes.sql(this PR)Verification
npm run validatePASS (Block 1 unchanged at 34,471)npm run smoke:checkoutPASS (Pro + Classroom wiring)