Skip to content

feat(cli): update tier display names for Pricing V5#2063

Closed
simple-agent-manager[bot] wants to merge 2 commits intomainfrom
feat/pricing-v5-tier-display-names
Closed

feat(cli): update tier display names for Pricing V5#2063
simple-agent-manager[bot] wants to merge 2 commits intomainfrom
feat/pricing-v5-tier-display-names

Conversation

@simple-agent-manager
Copy link
Copy Markdown
Contributor

Summary

  • Update SubscriptionTierToString to use v5 pricing tier names: HOBBY/UNSPECIFIED -> "Starter", PERSONAL -> "Starter", TEAM -> "Enterprise", PRO -> "Pro" (unchanged)
  • Change ShowAccountData.SubscriberTier from protobuf enum type to string, using SubscriptionTierToString for human-friendly display in both CLI table output and JSON serialization
  • Add comprehensive tests for SubscriptionTierToString covering all tier values including edge cases

Display-only change; protobuf enum values are unchanged for backward compatibility (decision from DefangLabs/defang-global#36: "rename in UI only").

Closes #2054
Ref: DefangLabs/defang-global#36

Test plan

  • Verify TestSubscriptionTierToString passes (all tier mappings)
  • Verify TestWhoami passes with string-based tier display
  • Run defang whoami and confirm tier shows "Starter", "Pro", or "Enterprise"
  • Run defang whoami --json and confirm subscriberTier field is a human-readable string
  • Verify backward compatibility: CLI works with Fabric responses using any existing tier enum value

🤖 Generated with Claude Code

Rename subscription tier display strings to match v5 pricing:
- HOBBY/UNSPECIFIED -> "Starter" (was "Hobby")
- PERSONAL -> "Starter" (was "Personal", tier eliminated in v5)
- TEAM -> "Enterprise" (was "Team")
- PRO -> "Pro" (unchanged)

Change ShowAccountData.SubscriberTier from protobuf enum to string,
using SubscriptionTierToString for human-friendly display in both
table output and JSON serialization. This is a display-only change;
protobuf enum values remain unchanged for backward compatibility.

Closes #2054
Ref: DefangLabs/defang-global#36

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lionello lionello added the wip Work in progress; don't merge label Apr 22, 2026
@lionello lionello marked this pull request as draft April 22, 2026 22:37
@lionello lionello removed the wip Work in progress; don't merge label Apr 22, 2026
@raphaeltm raphaeltm closed this May 5, 2026
@simple-agent-manager
Copy link
Copy Markdown
Contributor Author

Superseded by #2088 which is a strict superset (includes all tier renames plus GPU errors, estimate modes, generate/debug descriptions).

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.

Pricing V5: Update tier display names & mode naming

3 participants