Refine assistant config UI (#17871)
This PR does a little bit of a touch-up on the copywriting on the assistant config UI. I had friends reporting to me that some of the writing could be clearer, and hopefully, this goes into that direction! Release Notes: - N/A
This commit is contained in:
parent
cdc3791544
commit
29a5def12c
8 changed files with 42 additions and 21 deletions
|
@ -446,11 +446,10 @@ impl ConfigurationView {
|
|||
impl Render for ConfigurationView {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
const GOOGLE_CONSOLE_URL: &str = "https://aistudio.google.com/app/apikey";
|
||||
const INSTRUCTIONS: [&str; 4] = [
|
||||
"To use the Google AI assistant, you need to add your Google AI API key.",
|
||||
"You can create an API key at:",
|
||||
"",
|
||||
"Paste your Google AI API key below and hit enter to use the assistant:",
|
||||
const INSTRUCTIONS: [&str; 3] = [
|
||||
"To use Zed's assistant with Google AI, you need to add an API key. Follow these steps:",
|
||||
"- Create one by visiting:",
|
||||
"- Paste your API key below and hit enter to use the assistant",
|
||||
];
|
||||
|
||||
let env_var_set = self.state.read(cx).api_key_from_env;
|
||||
|
@ -472,7 +471,6 @@ impl Render for ConfigurationView {
|
|||
)
|
||||
)
|
||||
.child(Label::new(INSTRUCTIONS[2]))
|
||||
.child(Label::new(INSTRUCTIONS[3]))
|
||||
.child(
|
||||
h_flex()
|
||||
.w_full()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue