Skip to content

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

Use generic AI chat empty-state copy when Metabot illustrations are off (#73607)

Andrei Chernykh91fcbd34746f
diff --git a/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts b/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts
index 073f28167f2..75903777dbd 100644
--- a/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts
+++ b/e2e/test/scenarios/metabot/ai-controls.cy.spec.ts
@@ -219,9 +219,9 @@ describe("AI Controls > Metabot access and customization", () => {
cy.findByTestId("metabot-empty-chat-info")
.find("svg")
.should("not.exist");
- // But the hint text should still be visible
+ // But the hint text should still be visible, with the no-illustration copy
cy.findByTestId("metabot-empty-chat-info")
- .findByText(/I can help you/)
+ .findByText(/Explore your metrics and models with AI/)
.should("be.visible");
});
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.tsx
index 62295157aeb..20f50263210 100644
--- a/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.tsx
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotChat.tsx
@@ -127,7 +127,9 @@ export const MetabotChat = ({
)}
<Text c="text-tertiary" maw="12rem" ta="center" lh="lg">
{config.emptyText ??
- t`I can help you explore your metrics and models.`}
+ (showIllustrations
+ ? t`I can help you explore your metrics and models.`
+ : t`Explore your metrics and models with AI.`)}
</Text>
</Flex>
{!config.hideSuggestedPrompts && (