zeta: Remove predict-edits-launch feature flag (#24829)

This PR removes the `predict-edits-launch` feature flag that was added
in #24720.

We don't need this anymore now that we've launched!

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-02-13 16:48:09 -05:00 committed by GitHub
parent 8af54c589b
commit c38deb1430
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 19 deletions

View file

@ -64,12 +64,6 @@ impl FeatureFlag for PredictEditsFeatureFlag {
const NAME: &'static str = "predict-edits"; const NAME: &'static str = "predict-edits";
} }
/// A feature flag that controls things that shouldn't go live until the predictive edits launch.
pub struct PredictEditsLaunchFeatureFlag;
impl FeatureFlag for PredictEditsLaunchFeatureFlag {
const NAME: &'static str = "predict-edits-launch";
}
pub struct PredictEditsRateCompletionsFeatureFlag; pub struct PredictEditsRateCompletionsFeatureFlag;
impl FeatureFlag for PredictEditsRateCompletionsFeatureFlag { impl FeatureFlag for PredictEditsRateCompletionsFeatureFlag {
const NAME: &'static str = "predict-edits-rate-completions"; const NAME: &'static str = "predict-edits-rate-completions";

View file

@ -4,7 +4,6 @@ use crate::{onboarding_event, ZED_PREDICT_DATA_COLLECTION_CHOICE};
use anyhow::Context as _; use anyhow::Context as _;
use client::{Client, UserStore}; use client::{Client, UserStore};
use db::kvp::KEY_VALUE_STORE; use db::kvp::KEY_VALUE_STORE;
use feature_flags::FeatureFlagAppExt as _;
use fs::Fs; use fs::Fs;
use gpui::{ use gpui::{
ease_in_out, svg, Animation, AnimationExt as _, ClickEvent, DismissEvent, Entity, EventEmitter, ease_in_out, svg, Animation, AnimationExt as _, ClickEvent, DismissEvent, Entity, EventEmitter,
@ -288,16 +287,12 @@ impl Render for ZedPredictModal {
)), )),
)); ));
let blog_post_button = cx let blog_post_button = Button::new("view-blog", "Read the Blog Post")
.has_flag::<feature_flags::PredictEditsLaunchFeatureFlag>() .full_width()
.then(|| { .icon(IconName::ArrowUpRight)
Button::new("view-blog", "Read the Blog Post") .icon_size(IconSize::Indicator)
.full_width() .icon_color(Color::Muted)
.icon(IconName::ArrowUpRight) .on_click(cx.listener(Self::view_blog));
.icon_size(IconSize::Indicator)
.icon_color(Color::Muted)
.on_click(cx.listener(Self::view_blog))
});
if self.user_store.read(cx).current_user().is_some() { if self.user_store.read(cx).current_user().is_some() {
let copy = match self.sign_in_status { let copy = match self.sign_in_status {
@ -449,7 +444,7 @@ impl Render for ZedPredictModal {
.full_width() .full_width()
.on_click(cx.listener(Self::accept_and_enable)), .on_click(cx.listener(Self::accept_and_enable)),
) )
.children(blog_post_button), .child(blog_post_button),
) )
} else { } else {
base.child( base.child(
@ -468,7 +463,7 @@ impl Render for ZedPredictModal {
.full_width() .full_width()
.on_click(cx.listener(Self::sign_in)), .on_click(cx.listener(Self::sign_in)),
) )
.children(blog_post_button), .child(blog_post_button),
) )
} }
} }