The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Update data apps upsell (#81786)
Timofey Kachalov819670163661
diff --git a/e2e/test/scenarios/data-apps/admin.cy.spec.ts b/e2e/test/scenarios/data-apps/admin.cy.spec.tsindex 86cb88f3ba4..616263583c2 100644--- a/e2e/test/scenarios/data-apps/admin.cy.spec.ts+++ b/e2e/test/scenarios/data-apps/admin.cy.spec.ts@@ -93,7 +93,7 @@ describe("scenarios > data apps > admin management", () => {// cy.visit("/admin/settings/apps");//// H.main().within(() => {-// cy.findByText("Build apps on your data").should("be.visible");+// cy.findByText("Build custom data apps").should("be.visible");// cy.findByText("Try for free").should("be.visible");// });// });@@ -129,7 +129,7 @@ describe("scenarios > data apps > no token (OSS)", { tags: "@OSS" }, () => {cy.findByText("The page you asked for couldn't be found.").should("be.visible",);- cy.findByText("Build apps on your data").should("not.exist");+ cy.findByText("Build custom data apps").should("not.exist");});});});diff --git a/frontend/src/metabase/admin/settings/components/SettingsPages/DataAppsSettingsPage.tsx b/frontend/src/metabase/admin/settings/components/SettingsPages/DataAppsSettingsPage.tsxindex 30c58e5e573..5c6d8ce0ed0 100644--- a/frontend/src/metabase/admin/settings/components/SettingsPages/DataAppsSettingsPage.tsx+++ b/frontend/src/metabase/admin/settings/components/SettingsPages/DataAppsSettingsPage.tsx@@ -21,7 +21,7 @@ export function DataAppsManagePage() {// if (!hasDataApps) {// return (// <SettingsPageWrapper title={t`Data apps`}>- // <UpsellDataApps location="settings-data-apps" />+ // <UpsellDataApps source="settings-data-apps" />// </SettingsPageWrapper>// );// }diff --git a/frontend/src/metabase/admin/upsells/UpsellDataApps.tsx b/frontend/src/metabase/admin/upsells/UpsellDataApps.tsxindex 696d3034fef..e8963e31eb0 100644--- a/frontend/src/metabase/admin/upsells/UpsellDataApps.tsx+++ b/frontend/src/metabase/admin/upsells/UpsellDataApps.tsx@@ -1,16 +1,16 @@import { t } from "ttag";-import { UpsellBanner } from "metabase/common/components/upsells/components";+import { UpsellBigCard } from "metabase/common/components/upsells/components";import { UPGRADE_URL } from "metabase/common/components/upsells/constants";import { useHasTokenFeature } from "metabase/common/hooks";import { PLUGIN_ADMIN_SETTINGS } from "metabase/plugins";-export const UpsellDataApps = ({ location }: { location: string }) => {+export const UpsellDataApps = ({ source }: { source: string }) => {const hasDataApps = useHasTokenFeature("data-apps");const campaign = "data-apps";const { triggerUpsellFlow } = PLUGIN_ADMIN_SETTINGS.useUpsellFlow({campaign,- location,+ location: source,});if (hasDataApps) {@@ -18,15 +18,18 @@ export const UpsellDataApps = ({ location }: { location: string }) => {}return (- <UpsellBanner- title={t`Build apps on your data`}+ <UpsellBigCard+ title={t`Build custom data apps`}campaign={campaign}buttonText={t`Try for free`}buttonLink={UPGRADE_URL}- location={location}+ source={source}+ illustrationSrc="app/assets/img/upsell-data-apps.png"onClick={triggerUpsellFlow}>- {t`Ship interactive apps powered by your data, served right inside Metabase.`}- </UpsellBanner>+ <span>+ {t`Build custom user interfaces, forms, and other tools that write back to your database. Automate chores, manage back-office work, and set up workflows to act on your data, all built with AI on top of your semantic layer.`}+ </span>+ </UpsellBigCard>);};diff --git a/resources/frontend_client/app/assets/img/upsell-data-apps.png b/resources/frontend_client/app/assets/img/upsell-data-apps.pngnew file mode 100644index 00000000000..6d327802927Binary files /dev/null and b/resources/frontend_client/app/assets/img/upsell-data-apps.png differ