Skip to content

Commit 2a515fc

Browse files
fix(plans): Team tier gets dedicated infra (bug bash #12) (#39)
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) <noreply@anthropic.com>
1 parent b1ebf1e commit 2a515fc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

plans/plans.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ plans:
886886
alerts: true
887887
custom_domains: true
888888
sla: true
889+
dedicated: true # Team gets dedicated infra like Growth (bug bash #12)
889890
# team_yearly mirrors team exactly. $1990/yr = $199 x 10 ("2 months free" vs $199 x 12).
890891
team_yearly:
891892
display_name: "Team (yearly)"
@@ -920,6 +921,7 @@ plans:
920921
alerts: true
921922
custom_domains: true
922923
sla: true
924+
dedicated: true # mirrors team (bug bash #12)
923925
growth:
924926
display_name: "Growth"
925927
price_monthly_cents: 9900

plans/plans_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ func TestRegistry_TierHelpers(t *testing.T) {
412412
assert.Equal(t, "Pro", r.DisplayName("pro"))
413413
assert.False(t, r.IsDedicatedTier("pro"))
414414
assert.True(t, r.IsDedicatedTier("growth"))
415+
// bug bash #12: Team ($199, above Growth) also gets dedicated infra.
416+
assert.True(t, r.IsDedicatedTier("team"))
415417
// W11: hobby_plus is the mid-tier — $19/mo, custom domains, 2 apps.
416418
assert.Equal(t, 1900, r.PriceMonthly("hobby_plus"),
417419
"hobby_plus monthly price must be $19/mo (1900 cents)")

0 commit comments

Comments
 (0)