Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Rename Metabot chat admin label and page title to AI chat (#73323)

Andrei Chernykha7d38f6e9943
diff --git a/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts b/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts
index 1d3b9050225..08b653895d3 100644
--- a/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts
+++ b/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts
@@ -262,11 +262,11 @@ describe("AI Controls > Metabot access and customization", () => {
cy.visit("/admin/metabot/1/system-prompts/metabot-chat");
cy.findByRole("heading", {
- name: "Metabot chat prompt instructions",
+ name: "AI chat prompt instructions",
level: 1,
}).should("be.visible");
- cy.findByRole("textbox", { name: /Metabot chat prompt instructions/ })
+ cy.findByRole("textbox", { name: /AI chat prompt instructions/ })
.should("be.visible")
.click()
.type("Be concise and helpful.");
@@ -276,7 +276,7 @@ describe("AI Controls > Metabot access and customization", () => {
// Reload and verify persistence
cy.reload();
cy.findByRole("textbox", {
- name: /Metabot chat prompt instructions/,
+ name: /AI chat prompt instructions/,
}).should("contain.value", "Be concise and helpful.");
});
diff --git a/enterprise/frontend/src/metabase-enterprise/ai-controls/nav.tsx b/enterprise/frontend/src/metabase-enterprise/ai-controls/nav.tsx
index 9ead9d06554..6cb0996fc11 100644
--- a/enterprise/frontend/src/metabase-enterprise/ai-controls/nav.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/ai-controls/nav.tsx
@@ -43,7 +43,7 @@ export function AiControlsNavItems() {
disabled={!isConfigured}
>
<AdminNavItem
- label={t`Metabot chat`}
+ label={t`AI chat`}
path={`/admin/metabot/${FIXED_METABOT_IDS.DEFAULT}/system-prompts/metabot-chat`}
disabled={!isConfigured}
/>
diff --git a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.tsx b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.tsx
index e509afaa074..a4b2a527b75 100644
--- a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.tsx
@@ -71,7 +71,7 @@ export function MetabotChatPromptPage() {
return (
<SystemPromptPage
- title={t`Metabot chat prompt instructions`}
+ title={t`AI chat prompt instructions`}
description={t`Add instructions here for the sidebar AI chat experience in ${applicationName}. You might want to give instructions about tone, types of entities to prefer, and things like that.`}
settingKey="metabot-chat-system-prompt"
/>
diff --git a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.unit.spec.tsx b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.unit.spec.tsx
index 5f575126fd6..861c9c5f8d5 100644
--- a/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.unit.spec.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/ai-controls/pages/MetabotSystemPromptsPage/MetabotSystemPromptsPage.unit.spec.tsx
@@ -46,7 +46,7 @@ describe("MetabotSystemPromptsPage", () => {
});
expect(
- await screen.findByText("Metabot chat prompt instructions"),
+ await screen.findByText("AI chat prompt instructions"),
).toBeInTheDocument();
});
@@ -58,7 +58,7 @@ describe("MetabotSystemPromptsPage", () => {
});
const textarea = await screen.findByRole("textbox", {
- name: "Metabot chat prompt instructions",
+ name: "AI chat prompt instructions",
});
await waitFor(() => {
@@ -73,7 +73,7 @@ describe("MetabotSystemPromptsPage", () => {
});
const textarea = await screen.findByRole("textbox", {
- name: "Metabot chat prompt instructions",
+ name: "AI chat prompt instructions",
});
await userEvent.type(textarea, "New instructions");