Add link to docs in the toolbar plus menu

This commit is contained in:
Danilo Leal 2025-08-25 13:17:05 -03:00
parent 2dc4f156b3
commit c143e927fc
2 changed files with 11 additions and 1 deletions

View file

@ -9,6 +9,7 @@ use agent_servers::AgentServerSettings;
use agent2::{DbThreadMetadata, HistoryEntry};
use db::kvp::{Dismissable, KEY_VALUE_STORE};
use serde::{Deserialize, Serialize};
use zed_actions::OpenBrowser;
use zed_actions::agent::ReauthenticateAgent;
use crate::acp::{AcpThreadHistory, ThreadHistoryEvent};
@ -2679,6 +2680,15 @@ impl AgentPanel {
}
menu
})
.when(cx.has_flag::<GeminiAndNativeFeatureFlag>(), |menu| {
menu.separator().link(
"Build Your Own Agent",
OpenBrowser {
url: zed_urls::account_url(cx), // TODO: Add final URL
}
.boxed_clone(),
)
});
menu
}))

View file

@ -561,7 +561,7 @@ impl ContextMenu {
action: Some(action.boxed_clone()),
handler: Rc::new(move |_, window, cx| window.dispatch_action(action.boxed_clone(), cx)),
icon: Some(IconName::ArrowUpRight),
icon_size: IconSize::Small,
icon_size: IconSize::XSmall,
icon_position: IconPosition::End,
icon_color: None,
disabled: false,