-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
fix: add trial expired warning for enterprise #3997
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -104,7 +104,7 @@ export const InstanceStatus: FC = ({ children }) => { | |||
return ( | |||
<> | |||
<ConditionallyRender | |||
condition={isBilling && Boolean(instanceStatus)} | |||
condition={Boolean(instanceStatus)} |
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.
If I understood this correctly, we want isBilling
to only represent plans that we show the billing page for (invoices, etc). That's why we removed it from this condition and have not added ENTERPRISE to the billing plans.
I think this is a safe change, both the bar and the dialog should only get displayed in case we have specific information from the instance status (e.g. has expired).
I would recommend removing isBilling
from the destructor above since it's now unused.
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 would recommend removing isBilling from the destructor above since it's now unused.
Yes!
@@ -82,6 +82,7 @@ export const BillingPlan: FC<IBillingPlanProps> = ({ instanceStatus }) => { | |||
[InstancePlan.PRO]: 80, | |||
[InstancePlan.COMPANY]: 0, | |||
[InstancePlan.TEAM]: 0, | |||
[InstancePlan.ENTERPRISE]: 0, |
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.
According to https://github.com/Unleash/unleash/pull/3997/files#r1232089348 I don't think we need this.
[InstancePlan.ENTERPRISE]: 0, |
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.
LGTM, added a few comments.
Adds the trial expired warning for enterprise as well.