Skip to content

chore: remove legacy plan tiers (starter/plus/pro/max) - #107

Merged
paulocastellano merged 1 commit into
mainfrom
chore/remove-legacy-plans
Jun 22, 2026
Merged

chore: remove legacy plan tiers (starter/plus/pro/max)#107
paulocastellano merged 1 commit into
mainfrom
chore/remove-legacy-plans

Conversation

@paulocastellano

Copy link
Copy Markdown
Contributor

Summary

Removes the dead legacy plan tiers (Starter / Plus / Pro / Max) now that every customer is on the single Workspace plan and the old plan rows were already deleted in production.

  • App\Enums\Plan\Slug reduced to Workspace only.
  • PlanFactory defaults to the Workspace plan (was a random legacy case).
  • PlanSeeder, config/trypost.php, .env.example, and the billing i18n were already Workspace-only — no changes needed there.

Tests

  • StripeEventListenerTest reworked around the single Workspace plan — its monthly + yearly price ids still exercise plan-by-price mapping, trial clearing, deletion, idempotency, and previous-plan propagation. The cross-plan "swap" and "archived legacy plan" cases were dropped (no longer possible with one plan).
  • The remaining tests that referenced the starter/pro slugs now point at the seeded Workspace plan.
  • Full suite green (2188 passed, 2 skipped). Pint clean.

Notes

  • No DB migration: production plan rows were already cleaned up manually, and the test suite seeds only the Workspace plan.

All customers were migrated to the single Workspace plan and the old plan rows
were deleted in production, so drop the now-dead legacy tiers from the code:
reduce the Plan Slug enum to Workspace only and default the PlanFactory to it.
Rework StripeEventListenerTest around the single Workspace plan (its monthly and
yearly price ids still exercise plan-by-price mapping, trial clearing, deletion,
and previous-plan propagation), and point the remaining tests that referenced
the starter/pro slugs at the seeded Workspace plan.
@paulocastellano
paulocastellano merged commit 0275604 into main Jun 22, 2026
2 checks passed
@paulocastellano
paulocastellano deleted the chore/remove-legacy-plans branch June 22, 2026 18:41
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