-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Hide specific features from nav is dashboard tenant #51103
Conversation
// are usually "always visible" | ||
export function shouldHideFromNavigation(cfg: { | ||
isTeam: boolean; | ||
isUsageBasedBilling: boolean; |
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.
Most subscriptions nowadays should have isUsageBasedBilling=true
IIRC. The main exceptions are OSS and 14-day trials.
This means that shouldHideFromNavigation
will return true
for most customers, is this what we want?
// However, there are some cases where hiding the feature is explicitly requested. Use this as a backdoor to hide the features that | ||
// are usually "always visible" | ||
export function shouldHideFromNavigation(cfg: { | ||
isTeam: boolean; |
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 think isTeam
is hardcoded to false
now, we use instead isStripeManaged
.
We refactored things not to need to check isStripeManaged
most of the time. We should use the entitlements instead. So I think we can remove isTeam
from this function.
For reference, isStripeManaged
is used for Stripe-specific things, like showing a UI to add a credit card, downloading invoices, etc.
This PR makes an update to our logic to the "backdoor" that would keep things hidden after making updates to show most of the features to promote discoverability. Currently, we only continued to hide them if their license specified it, but this incorrectly ignored dashboard, usage based, and team tenants as well.
f217759
to
493a046
Compare
Ok, updated. thanks @mcbattirola |
Backport #51103 to branch/v16
This PR makes an update to our logic to the "backdoor" that would keep things hidden after making updates to show most of the features to promote discoverability. Currently, we only continued to hide them if their license specified it, but this incorrectly ignored dashboard, usage based, and team tenants as well.
This PR makes an update to our logic to the "backdoor" that would keep things hidden after making updates to show most of the features to promote discoverability. Currently, we only continued to hide them if their license specified it, but this incorrectly ignored dashboard, usage based, and team tenants as well.