-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(billing): show usage for temporarily free products #23417
Conversation
@@ -277,6 +281,23 @@ export const BillingProduct = ({ product }: { product: BillingProductV2Type }): | |||
</div> | |||
</Tooltip> | |||
</div> | |||
) : isTemporaryFreeProduct ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: do you need isTemporaryFreeProduct
. It seems to be an unneeded complication. Given this will be removed on August 8th and it's specific to the data warehouse, maybe just use that as the check?
It's not really needed until we support the content of this box to be dynamic from billing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do actually want to keep it there and not make it specific to DW. I think the way we are doing this launch is something we will prob do in the future with other launches - roll out pricing for everyone, give beta users 30 days notice, during which they will need to see their usage. The notice on the interior is specific to data warehouse launch, but it'll be specific to every product launch, so I don't really know how to make it more reusable right now. And I don't really want to add a bunch of fields to billing data to fill it out.
Size Change: 0 B Total Size: 1.06 MB ℹ️ View Unchanged
|
Problem
Data warehouse pricing will be launching for users shortly. Beta users will get 30 days notice. We are tracking their usage and want to tell them what their forecasted usage is. Our billing page doesn't currently support this.
Changes
For "temporarily free" product plans, (ie plans without pricing and no free allocation and not inclusion_only), show a gauge with current and projected usage.
For people on the specific data warehouse plan, show a notice saying when we will start to charge them.
Also adds some stories for BillingProduct because we have none.
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
N/A
How did you test this code?
Added stories