[AI Chat] [Content Agent] String updates Leo -> AI (#32744)
* [AI Chat] [Content Agent] String updates Leo -> AI
This commit is contained in:
@@ -600,9 +600,9 @@ constexpr flags_ui::FeatureEntry::Choice kVerticalTabCollapseDelayChoices[] = {
|
||||
}, \
|
||||
{ \
|
||||
"brave-ai-chat-agent-profile", \
|
||||
"Brave AI Chat Agent Profile", \
|
||||
"Enables Leo's content agent features and only in a separate " \
|
||||
"built-in profile.", \
|
||||
"Brave's AI browsing", \
|
||||
"Enables Ai browsing features and only in a separate built-in " \
|
||||
"profile.", \
|
||||
kOsWin | kOsMac | kOsLinux, \
|
||||
FEATURE_VALUE_TYPE(ai_chat::features::kAIChatAgentProfile), \
|
||||
}, \
|
||||
|
||||
@@ -148,7 +148,7 @@ IN_PROC_BROWSER_TEST_F(AIChatAgentProfileBrowserTest,
|
||||
// Verify the built-in profile title is set as the local user name
|
||||
ProfileAttributesEntry* profile_attributes =
|
||||
GetProfileAttributesFromProfile(ai_chat_browser->profile());
|
||||
EXPECT_EQ(u"Leo AI Content Agent", profile_attributes->GetLocalProfileName());
|
||||
EXPECT_EQ(u"AI browsing", profile_attributes->GetLocalProfileName());
|
||||
|
||||
// Verify the AI Chat browser has the side panel opened to Chat UI
|
||||
VerifyAIChatSidePanelShowing(ai_chat_browser);
|
||||
@@ -326,12 +326,12 @@ class AIChatAgentProfileWebUIContentBrowserTest
|
||||
|
||||
bool IsAIChatAgentProfileLaunchButtonPresent(Browser* browser) {
|
||||
return IsElementInSidePanel(browser,
|
||||
"[title=\"Open Leo AI Content Agent Window\"]");
|
||||
"[title=\"Open AI browsing profile window\"]");
|
||||
}
|
||||
|
||||
void WaitForAIChatAgentProfileLaunchButton(Browser* browser) {
|
||||
WaitForElementInSidePanel(browser,
|
||||
"[title=\"Open Leo AI Content Agent Window\"]");
|
||||
"[title=\"Open AI browsing profile window\"]");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace {
|
||||
const SkColor kAIChatAgentProfileThemeColor = SkColorSetRGB(253, 58, 122);
|
||||
#endif
|
||||
|
||||
const char16_t kAIChatAgentProfileName[] = u"Leo AI Content Agent";
|
||||
const char16_t kAIChatAgentProfileName[] = u"AI browsing";
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ import styles from './style.module.scss'
|
||||
|
||||
const cards = [
|
||||
{
|
||||
title: getLocale(S.AI_AGENT_NTP_ABOUT_THE_LEO_PROFILE_CARD_TITLE),
|
||||
title: getLocale(S.AI_AGENT_NTP_ABOUT_THE_AI_PROFILE_CARD_TITLE),
|
||||
description: getLocale(
|
||||
S.AI_AGENT_NTP_ABOUT_THE_LEO_PROFILE_CARD_DESCRIPTION,
|
||||
S.AI_AGENT_NTP_ABOUT_THE_AI_PROFILE_CARD_DESCRIPTION,
|
||||
),
|
||||
icon: 'leo-cursor',
|
||||
},
|
||||
|
||||
@@ -224,7 +224,7 @@ describe('input box', () => {
|
||||
)
|
||||
|
||||
const contentAgentLaunchButton = screen.queryByTitle(
|
||||
'Open Leo AI Content Agent Window',
|
||||
S.CHAT_UI_AI_BROWSING_TOGGLE_BUTTON_LABEL,
|
||||
)
|
||||
const contentAgentTooltip = screen.queryByTestId('agent-profile-tooltip')
|
||||
|
||||
|
||||
@@ -416,7 +416,7 @@ function InputBox(props: InputBoxProps) {
|
||||
fab
|
||||
kind='plain-faint'
|
||||
onClick={handleContentAgentToggle}
|
||||
title={'Open Leo AI Content Agent Window'}
|
||||
title={getLocale(S.CHAT_UI_AI_BROWSING_TOGGLE_BUTTON_LABEL)}
|
||||
>
|
||||
<Icon name='leo-cursor' />
|
||||
</Button>
|
||||
|
||||
@@ -3,22 +3,22 @@
|
||||
<message name="IDS_AI_AGENT_NTP_AGENT_MODE_BUTTON_LABEL" translateable="true" desc="Agent mode button text for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
Agent mode
|
||||
</message>
|
||||
<message name="IDS_AI_AGENT_NTP_ABOUT_THE_LEO_PROFILE_CARD_TITLE" translateable="true" desc="About the Leo profile card title for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
About the Leo profile
|
||||
<message name="IDS_AI_AGENT_NTP_ABOUT_THE_AI_PROFILE_CARD_TITLE" translateable="true" desc="About the AI profile card title for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
About the AI browsing profile
|
||||
</message>
|
||||
<message name="IDS_AI_AGENT_NTP_ABOUT_THE_LEO_PROFILE_CARD_DESCRIPTION" translateable="true" desc="About the Leo profile card description for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
To protect your data, this isolated Brave profile limits AI access to your main browsing profile. Leo AI has extra permissions here to visit and interact with sites, so you can try giving it tasks and browsing together to boost productivity.
|
||||
<message name="IDS_AI_AGENT_NTP_ABOUT_THE_AI_PROFILE_CARD_DESCRIPTION" translateable="true" desc="About the AI profile card description for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
To protect your data, this isolated AI browsing profile ensures the AI agent has no access to your main browsing profile, with permissions only to visit and interact with sites as needed. You can boost your productivity by giving it tasks and letting it browse for you.
|
||||
</message>
|
||||
<message name="IDS_AI_AGENT_NTP_YOUR_DATA_AND_SESSIONS_CARD_TITLE" translateable="true" desc="Your data and sessions card title for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
Your data and sessions
|
||||
</message>
|
||||
<message name="IDS_AI_AGENT_NTP_YOUR_DATA_AND_SESSIONS_CARD_DESCRIPTION" translateable="true" desc="Your data and sessions card description for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
When you log into a website using this profile, Leo can see the information on that site if it's open, either when it visits the site itself or when you ask it to do something there.
|
||||
When you log into a website using this profile, Brave's AI browsing agent can see the information on that site if it's open, either when it visits the site itself or when you ask it to do something there.
|
||||
</message>
|
||||
<message name="IDS_AI_AGENT_NTP_SWITCHING_BACK_CARD_TITLE" translateable="true" desc="Switching back card title for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
Switching back
|
||||
</message>
|
||||
<message name="IDS_AI_AGENT_NTP_SWITCHING_BACK_CARD_DESCRIPTION" translateable="true" desc="Switching back card description for the Brave AI Agent mode New Tab Page" formatter_data="webui=AiChatAgentNtp">
|
||||
You can switch back to your regular profile at any time from the main menu or the Leo avatar in your toolbar. Agent mode will always open in this profile.
|
||||
You can switch back to your regular profile at any time from the main menu or by using the profile menu on the toolbar. AI browsing will always open in the AI browsing profile.
|
||||
</message>
|
||||
</grit-part>
|
||||
|
||||
@@ -459,8 +459,11 @@
|
||||
<message name="IDS_CHAT_UI_SEND_CHAT_BUTTON_LABEL" desc="A button label for sending a chat message" formatter_data="webui=AiChat">
|
||||
Send message to Leo
|
||||
</message>
|
||||
<message name="IDS_CHAT_UI_AI_BROWSING_TOGGLE_BUTTON_LABEL" desc="A button label for opening AI browsing mode" formatter_data="webui=AiChat">
|
||||
Open AI browsing profile window
|
||||
</message>
|
||||
<message name="IDS_CHAT_UI_CONTENT_AGENT_PROFILE_BUTTON_LABEL" desc="Tooltip for when the AI content agent is not disableable in the current profile" formatter_data="webui=AiChat">
|
||||
Leo AI Content Agent is always enabled in this profile
|
||||
AI browsing is always enabled in this profile
|
||||
</message>
|
||||
<message name="IDS_CHAT_UI_STOP_GENERATION_BUTTON_LABEL" desc="A button label for stopping generation" formatter_data="webui=AiChat">
|
||||
Stop answering
|
||||
|
||||
Reference in New Issue
Block a user