From f383fe80e3682eda7677378f6e18b684fb67ffd5 Mon Sep 17 00:00:00 2001 From: Manas Srivastava Date: Tue, 2 Jun 2026 23:06:18 +0530 Subject: [PATCH] fix(plans): Team tier gets dedicated infra (bug bash #12) Add dedicated:true to team (and team_yearly, which must mirror team) in the embedded defaultYAML, so IsDedicatedTier("team") is true. Team ($199) sits above Growth ($99); it was wrongly denied isolated Postgres/Redis/Mongo because only growth had the flag. Pairs with the api plans.yaml change. Co-Authored-By: Claude Opus 4.8 (1M context) --- plans/plans.go | 2 ++ plans/plans_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plans/plans.go b/plans/plans.go index af5208d..513bdc1 100644 --- a/plans/plans.go +++ b/plans/plans.go @@ -886,6 +886,7 @@ plans: alerts: true custom_domains: true sla: true + dedicated: true # Team gets dedicated infra like Growth (bug bash #12) # team_yearly mirrors team exactly. $1990/yr = $199 x 10 ("2 months free" vs $199 x 12). team_yearly: display_name: "Team (yearly)" @@ -920,6 +921,7 @@ plans: alerts: true custom_domains: true sla: true + dedicated: true # mirrors team (bug bash #12) growth: display_name: "Growth" price_monthly_cents: 9900 diff --git a/plans/plans_test.go b/plans/plans_test.go index 7a43d8e..329d29c 100644 --- a/plans/plans_test.go +++ b/plans/plans_test.go @@ -412,6 +412,8 @@ func TestRegistry_TierHelpers(t *testing.T) { assert.Equal(t, "Pro", r.DisplayName("pro")) assert.False(t, r.IsDedicatedTier("pro")) assert.True(t, r.IsDedicatedTier("growth")) + // bug bash #12: Team ($199, above Growth) also gets dedicated infra. + assert.True(t, r.IsDedicatedTier("team")) // W11: hobby_plus is the mid-tier — $19/mo, custom domains, 2 apps. assert.Equal(t, 1900, r.PriceMonthly("hobby_plus"), "hobby_plus monthly price must be $19/mo (1900 cents)")