Skip to content

ref: Add plan family to package#219

Merged
noahsmartin merged 3 commits intomainfrom
addPlanFamily
Apr 29, 2026
Merged

ref: Add plan family to package#219
noahsmartin merged 3 commits intomainfrom
addPlanFamily

Conversation

@noahsmartin
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedApr 28, 2026, 4:44 AM

Comment on lines +34 to +41
enum PlanFamily {
PLAN_FAMILY_UNSPECIFIED = 0;
PLAN_FAMILY_DEVELOPER = 1;
PLAN_FAMILY_TEAM = 2;
PLAN_FAMILY_BUSINESS = 3;
PLAN_FAMILY_ENTERPRISE = 4;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this enum should actually be defined on the proto interface. What's the reasoning behind this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the user facing elements that reflect the plan family. Like the title of the subscription page (we aren't building that yet) or the line item on the invoice (that's why I came across this). I also considered adding something like string plan_title but that started to feel too much like server driven UI which tends to be over engineered. I could imagine many copy variants all driven by this family and didn't want to require updating the proto definition every time we found a new UI element driven by this. What do you think? Any other preferred way of handling it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would much rather put string plan_title on the package and let the package service decide how to deal with it rather than the proto. It's why I moved SKU definitions out of the protos and into the package service so we wouldn't have to update something in two places.

Also at the moment I don't think we're worrying about the checkout page so let's cross that bridge when we get there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shows on the invoice though, something like "Subscription to Team". I'm fine with adding it as a plan_title

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated!

@noahsmartin noahsmartin merged commit 71288a1 into main Apr 29, 2026
12 checks passed
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.

2 participants