Skip to content

chore(cleanup): delete dead pricing scaffolding (28 files)#44

Open
abdout wants to merge 1 commit into
mainfrom
chore/delete-dead-pricing-scaffolding
Open

chore(cleanup): delete dead pricing scaffolding (28 files)#44
abdout wants to merge 1 commit into
mainfrom
chore/delete-dead-pricing-scaffolding

Conversation

@abdout
Copy link
Copy Markdown
Contributor

@abdout abdout commented Apr 25, 2026

Summary

  • Delete ~28 files of SaaS-Starter clone-artifact scaffolding in `marketing/pricing/` that nothing live uses (Class 1 audit findings).
  • The actual rendered pricing surface is small and self-sufficient. Everything else referenced broken imports (`@/components/platform/`, `@/components/onboarding/`, `@/components/invoice/*`, `@/components/atom/modal`, `@react-email/components`, `db.subscriptionTier`, `from 'types'`).
  • TS errors: 36 → 18 (-18).

What's deleted

Group Files
Billing UI `billing-info`, `pricing-faq` (commented out)
Auth forms `forms/{user-role-form, user-role.action, user-name.action, user-auth-form, newsletter-form}`
Modals `modals/{delete-account-modal, sign-in-modal, providers}`
Email `emails/magic-link-email`, `lib/{email, user, validations/auth, validations/user}`
Subscription helper `lib/get-tier-id` (referenced `db.subscriptionTier` model that doesn't exist)
Avatar `shared/user-avatar`
Stripe actions `actions/{update-user-name, update-user-role}` (kept `generate-user-stripe` — live)
Landing sections `sections/{features, hero-landing, info-landing, bentogrid, testimonials}`
Config `config/{docs, landing, marketing, site}` (live counterparts in `template/site-header/constant.ts`)

What's modified

  • `pricing/lib/utils.ts` — drop `constructMetadata` (only imported, never called) + `getBlurDataURL` (no callers) + `siteConfig` import. Keep all live utilities.
  • `pricing/content.tsx` — drop unused imports

Test plan

  • `pnpm build` succeeds
  • `/en/pricing` and `/ar/pricing` render: header, cards, compare-plans, FAQ, enterprise
  • Stripe checkout flow still works (`generate-user-stripe` action retained)
  • `pnpm tsc --noEmit` shows ~18 fewer errors

If you wanted to keep templates

`git revert` brings the directory back. The 8+ broken external module imports (`@/components/platform/`, `@/components/onboarding/`, etc.) would still need to be created or stubbed though.

Closes #43

🤖 Generated with Claude Code

The marketing/pricing/ module had ~28 files of SaaS-Starter
clone-artifact scaffolding that nothing live uses. Files reference
"miickasmt", "SaaS Starter", $15/$25 plans — copied from
mickasmt/next-saas-stripe-starter, never wired up.

Live pricing surface is small and self-sufficient (pricing-header,
pricing-cards, compare-plans, pricing-faqs, enterprise-section, card,
billing-toggle, plus shared utilities). Everything else was orphan
code with broken imports (Class 1 audit findings).

Deleted (28 files):
- billing-info, pricing-faq (commented out)
- forms/{user-role-form, user-role.action, user-name.action, user-auth-form, newsletter-form}
- modals/{delete-account-modal, sign-in-modal, providers}
- emails/magic-link-email
- lib/{email, get-tier-id, user, validations/auth, validations/user}
- shared/user-avatar
- actions/{update-user-name, update-user-role}
- sections/{features, hero-landing, info-landing, bentogrid, testimonials}
- config/{docs, landing, marketing, site} (live counterparts exist in template/site-header/constant.ts)

Modified:
- lib/utils.ts: drop constructMetadata + getBlurDataURL + siteConfig
  import. Keep cn, formatDate, absoluteUrl, nFormatter, timeAgo,
  fetcher, capitalize, truncate, placeholderBlurhash
- content.tsx: drop unused imports

TS errors: 36 → 18 (the remaining 18 are addressed by other open PRs
including LayoutProps and Class 4/3/2 fixes).

Closes #43

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

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

Project Deployment Actions Updated (UTC)
marketing Ready Ready Preview, Comment Apr 25, 2026 3:59pm

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.

chore(cleanup): delete dead pricing scaffolding (SaaS-Starter clone artifacts)

1 participant