Skip to content

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

fix(embed-js): copywriting improvements for embed flow (#63126)

Phoomparin Mano92267df8368e
diff --git a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.ts b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.ts
index 399b44c2d48..696ebc2375d 100644
--- a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.ts
+++ b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.ts
@@ -40,7 +40,7 @@ H.describeWithSnowplow(suiteTitle, () => {
});
getEmbedSidebar()
- .findByLabelText("Allow users to drill through on data points")
+ .findByLabelText("Allow people to drill through on data points")
.should("be.checked");
cy.log("drill-through should be enabled in the preview");
@@ -51,7 +51,7 @@ H.describeWithSnowplow(suiteTitle, () => {
cy.log("turn off drill-through");
getEmbedSidebar()
- .findByLabelText("Allow users to drill through on data points")
+ .findByLabelText("Allow people to drill through on data points")
.click()
.should("not.be.checked");
@@ -146,7 +146,7 @@ H.describeWithSnowplow(suiteTitle, () => {
});
getEmbedSidebar()
- .findByLabelText("Allow users to drill through on data points")
+ .findByLabelText("Allow people to drill through on data points")
.should("be.checked");
cy.log("drill-through should be disabled by default in chart preview");
@@ -157,7 +157,7 @@ H.describeWithSnowplow(suiteTitle, () => {
cy.log("turn off drill-through");
getEmbedSidebar()
- .findByLabelText("Allow users to drill through on data points")
+ .findByLabelText("Allow people to drill through on data points")
.click()
.should("not.be.checked");
@@ -244,7 +244,7 @@ H.describeWithSnowplow(suiteTitle, () => {
cy.log("set drills to false");
getEmbedSidebar()
- .findByLabelText("Allow users to drill through on data points")
+ .findByLabelText("Allow people to drill through on data points")
.should("be.checked")
.click()
.should("not.be.checked");
@@ -333,7 +333,7 @@ H.describeWithSnowplow(suiteTitle, () => {
.should("not.be.checked");
H.getSimpleEmbedIframeContent().within(() => {
- cy.findByText("New Dashboard").should("not.exist");
+ cy.findByText("New dashboard").should("not.exist");
});
cy.log("turn on editing (set read-only to false)");
@@ -348,7 +348,7 @@ H.describeWithSnowplow(suiteTitle, () => {
});
H.getSimpleEmbedIframeContent().within(() => {
- cy.findByText("New Dashboard").should("be.visible");
+ cy.findByText("New dashboard").should("be.visible");
});
cy.log("snippet should be updated");
@@ -364,7 +364,7 @@ H.describeWithSnowplow(suiteTitle, () => {
cy.log("brand color should be visible");
getEmbedSidebar().within(() => {
- cy.findByText("Brand Color").should("be.visible");
+ cy.findByText("Brand color").should("be.visible");
});
cy.log("reset button should not be visible initially");
diff --git a/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts b/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts
index 57e6a52569f..d23bfc77ece 100644
--- a/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts
+++ b/e2e/test/scenarios/embedding/sdk-iframe-embedding/view-and-curate-content.cy.spec.ts
@@ -43,7 +43,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
setupEmbed('<metabase-browser initial-collection="root" />');
H.getSimpleEmbedIframeContent()
- .findByText("New Exploration")
+ .findByText("New exploration")
.should("be.visible")
.click();
@@ -89,7 +89,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
`);
H.getSimpleEmbedIframeContent()
- .findByText("New Exploration")
+ .findByText("New exploration")
.should("not.exist");
});
});
@@ -101,7 +101,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
);
H.getSimpleEmbedIframeContent()
- .findByText("New Dashboard")
+ .findByText("New dashboard")
.should("be.visible")
.click();
@@ -121,7 +121,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
.findByText("Our analytics")
.should("be.visible");
- H.getSimpleEmbedIframeContent().findByText("New Dashboard").click();
+ H.getSimpleEmbedIframeContent().findByText("New dashboard").click();
H.getSimpleEmbedIframeContent().within(() => {
cy.log("change collection to save dashboard in");
@@ -160,7 +160,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
);
H.getSimpleEmbedIframeContent()
- .findByText("New Exploration")
+ .findByText("New exploration")
.should("be.visible")
.click();
@@ -175,7 +175,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
'<metabase-browser initial-collection="root" read-only="false" />',
);
- H.getSimpleEmbedIframeContent().findByText("New Exploration").click();
+ H.getSimpleEmbedIframeContent().findByText("New exploration").click();
cy.log("select data model");
H.getSimpleEmbedIframeContent().findByText("Orders").click();
@@ -205,7 +205,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
`);
H.getSimpleEmbedIframeContent()
- .findByText("New Dashboard")
+ .findByText("New dashboard")
.should("not.exist");
});
@@ -215,7 +215,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
);
H.getSimpleEmbedIframeContent()
- .findByText("New Dashboard")
+ .findByText("New dashboard")
.should("be.visible")
.click();
@@ -287,7 +287,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
`);
H.getSimpleEmbedIframeContent()
- .findByText("New Exploration")
+ .findByText("New exploration")
.should("not.exist");
});
@@ -300,7 +300,7 @@ describe("scenarios > embedding > sdk iframe embedding > view and curate content
/>
`);
- H.getSimpleEmbedIframeContent().findByText("New Exploration").click();
+ H.getSimpleEmbedIframeContent().findByText("New exploration").click();
cy.log("should show data picker with limited entity types");
H.getSimpleEmbedIframeContent()
diff --git a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/components/MetabaseBrowser.tsx b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/components/MetabaseBrowser.tsx
index 60fa1252e91..5f76877d4bd 100644
--- a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/components/MetabaseBrowser.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/components/MetabaseBrowser.tsx
@@ -161,7 +161,7 @@ export function MetabaseBrowser({ settings }: MetabaseBrowserProps) {
const handleNewExploration = () => {
setCurrentView({ type: "exploration" });
- reportLocation({ type: "question", id: "new", name: "New Exploration" });
+ reportLocation({ type: "question", id: "new", name: "New exploration" });
};
return (
@@ -185,7 +185,7 @@ export function MetabaseBrowser({ settings }: MetabaseBrowserProps) {
<Group gap="sm">
{(settings.withNewQuestion ?? true) && (
<Button justify="center" onClick={handleNewExploration}>
- {t`New Exploration`}
+ {t`New exploration`}
</Button>
)}
@@ -194,7 +194,7 @@ export function MetabaseBrowser({ settings }: MetabaseBrowserProps) {
justify="center"
onClick={() => setCurrentView({ type: "create-dashboard" })}
>
- {t`New Dashboard`}
+ {t`New dashboard`}
</Button>
)}
</Group>
diff --git a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/types/embed.ts b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/types/embed.ts
index 859a3f4bd43..e8210d9b043 100644
--- a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/types/embed.ts
+++ b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk/types/embed.ts
@@ -108,10 +108,10 @@ export interface BrowserEmbedOptions {
/** Which entities to show on the question's data picker */
dataPickerEntityTypes?: EmbeddingEntityType[];
- /** Whether to show the "New Exploration" button. Defaults to true. */
+ /** Whether to show the "New exploration" button. Defaults to true. */
withNewQuestion?: boolean;
- /** Whether to show the "New Dashboard" button. Defaults to true. Only applies when readOnly is false. */
+ /** Whether to show the "New dashboard" button. Defaults to true. Only applies when readOnly is false. */
withNewDashboard?: boolean;
template?: never;
diff --git a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsx b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsx
index cc8edcdde26..62d5a236eed 100644
--- a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsx
+++ b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsx
@@ -42,7 +42,7 @@ export const SelectEmbedOptionsStep = () => {
<Stack gap="md">
{isQuestionOrDashboardEmbed && (
<Checkbox
- label={t`Allow users to drill through on data points`}
+ label={t`Allow people to drill through on data points`}
checked={settings.drills}
onChange={(e) => updateSettings({ drills: e.target.checked })}
/>
diff --git a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/constants.ts b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/constants.ts
index 36b8c7dfcb3..b54dec9dfd7 100644
--- a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/constants.ts
+++ b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/constants.ts
@@ -22,7 +22,7 @@ export const getEmbedExperiences = () =>
{
value: "chart",
title: t`Chart`,
- description: t`Embed a single chart or visualization`,
+ description: t`Embed a single chart`,
},
{
value: "exploration",
@@ -32,7 +32,7 @@ export const getEmbedExperiences = () =>
{
value: "browser",
title: t`Browser`,
- description: t`Embed a browser to manage dashboards and questions`,
+ description: t`Embed a browser to manage dashboards and charts`,
},
] satisfies {
title: string;
diff --git a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/utils/theme-colors.ts b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/utils/theme-colors.ts
index dc2ab9f0f53..2502c631a41 100644
--- a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/utils/theme-colors.ts
+++ b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/utils/theme-colors.ts
@@ -6,17 +6,17 @@ import type { ColorName } from "metabase/lib/colors/types";
export const getConfigurableThemeColors = () =>
[
{
- name: t`Brand Color`,
+ name: t`Brand color`,
key: "brand",
originalColorKey: "brand",
},
{
- name: t`Text Color`,
+ name: t`Text color`,
key: "text-primary",
originalColorKey: "text-dark",
},
{
- name: t`Background Color`,
+ name: t`Background color`,
key: "background",
originalColorKey: "bg-white",
},