Add refinements to the AI onboarding flow (#33738)
This includes making sure that both the agent panel and Zed's edit prediction have a consistent narrative when it comes to onboarding users into the AI features, considering the possible different plans and conditions (such as being signed in/out, account age, etc.) Release Notes: - N/A --------- Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
parent
9a20843ba2
commit
4476860664
33 changed files with 1465 additions and 1215 deletions
|
@ -20,7 +20,7 @@ use crate::application_menu::{
|
|||
|
||||
use auto_update::AutoUpdateStatus;
|
||||
use call::ActiveCall;
|
||||
use client::{Client, UserStore};
|
||||
use client::{Client, UserStore, zed_urls};
|
||||
use gpui::{
|
||||
Action, AnyElement, App, Context, Corner, Element, Entity, Focusable, InteractiveElement,
|
||||
IntoElement, MouseButton, ParentElement, Render, StatefulInteractiveElement, Styled,
|
||||
|
@ -656,8 +656,9 @@ impl TitleBar {
|
|||
let user_login = user.github_login.clone();
|
||||
|
||||
let (plan_name, label_color, bg_color) = match plan {
|
||||
None => ("None", Color::Default, free_chip_bg),
|
||||
Some(proto::Plan::Free) => ("Free", Color::Default, free_chip_bg),
|
||||
None | Some(proto::Plan::Free) => {
|
||||
("Free", Color::Default, free_chip_bg)
|
||||
}
|
||||
Some(proto::Plan::ZedProTrial) => {
|
||||
("Pro Trial", Color::Accent, pro_chip_bg)
|
||||
}
|
||||
|
@ -680,7 +681,7 @@ impl TitleBar {
|
|||
.into_any_element()
|
||||
},
|
||||
move |_, cx| {
|
||||
cx.open_url("https://zed.dev/account");
|
||||
cx.open_url(&zed_urls::account_url(cx));
|
||||
},
|
||||
)
|
||||
.separator()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue