Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
title_bar: Put plan behind `new-billing` feature flag (#29540)
Marshall Bowerse98e6c7426d8
diff --git a/crates/feature_flags/src/feature_flags.rs b/crates/feature_flags/src/feature_flags.rsindex 0bb6713199c..71c967d5584 100644--- a/crates/feature_flags/src/feature_flags.rs+++ b/crates/feature_flags/src/feature_flags.rs@@ -59,6 +59,16 @@ impl FeatureFlag for Assistant2FeatureFlag {const NAME: &'static str = "assistant2";}+pub struct NewBillingFeatureFlag;++impl FeatureFlag for NewBillingFeatureFlag {+ const NAME: &'static str = "new-billing";++ fn enabled_for_staff() -> bool {+ false+ }+}+pub struct PredictEditsRateCompletionsFeatureFlag;impl FeatureFlag for PredictEditsRateCompletionsFeatureFlag {const NAME: &'static str = "predict-edits-rate-completions";diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rsindex 9c80633fb4a..5819a0cab91 100644--- a/crates/title_bar/src/title_bar.rs+++ b/crates/title_bar/src/title_bar.rs@@ -18,7 +18,7 @@ use crate::platforms::{platform_linux, platform_mac, platform_windows};use auto_update::AutoUpdateStatus;use call::ActiveCall;use client::{Client, UserStore};-use feature_flags::{FeatureFlagAppExt, ZedProFeatureFlag};+use feature_flags::{FeatureFlagAppExt, NewBillingFeatureFlag};use gpui::{Action, AnyElement, App, Context, Corner, Decorations, Element, Entity, InteractiveElement,Interactivity, IntoElement, MouseButton, ParentElement, Render, Stateful,@@ -663,7 +663,7 @@ impl TitleBar {.anchor(Corner::TopRight).menu(move |window, cx| {ContextMenu::build(window, cx, |menu, _, cx| {- menu.when(cx.has_flag::<ZedProFeatureFlag>(), |menu| {+ menu.when(cx.has_flag::<NewBillingFeatureFlag>(), |menu| {menu.action(format!("Current Plan: {}",