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
Fix: #63258 + UXW-570 Fix truncated dashboard notifications (#63726)
Brad Anderson4a59711053ca
diff --git a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.ts b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.tsindex 4078f80334e..01162caad62 100644--- a/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.ts+++ b/e2e/test/scenarios/dashboard-filters-2/dashboard-filters-3-stage.cy.spec.ts@@ -403,6 +403,8 @@ describe("scenarios > dashboard > filters > query stages", () => {.click();});+ H.undoToast().icon("close").click();+H.getDashboardCard(1).findByText("Select…").click();H.popover().within(() => {QSHelpers.getPopoverItem("Product → Category", 1)diff --git a/e2e/test/scenarios/dashboard-filters-2/shared/dashboard-filters-query-stages.ts b/e2e/test/scenarios/dashboard-filters-2/shared/dashboard-filters-query-stages.tsindex 1f8b5f9373a..313ca874f0a 100644--- a/e2e/test/scenarios/dashboard-filters-2/shared/dashboard-filters-query-stages.ts+++ b/e2e/test/scenarios/dashboard-filters-2/shared/dashboard-filters-query-stages.ts@@ -655,14 +655,13 @@ export function setup2ndStageBreakoutFilter() {H.popover().within(() => {getPopoverItem("Product → Category", 1).scrollIntoView().click();});+ closeToasts();H.getDashboardCard(1).findByText("Select…").click();H.popover().within(() => {getPopoverItem("Product → Category", 1).scrollIntoView().click();});- closeToasts();-H.getDashboardCard(2).findByText("Select…").click();H.popover().within(() => {getPopoverItem("Product → Category").scrollIntoView().click();diff --git a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.jsindex 0c8ebd271e5..18d3c785624 100644--- a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js+++ b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js@@ -656,8 +656,7 @@ describe("issue 28756", () => {const TOAST_TIMEOUT_SAFETY_MARGIN = 1000;const TOAST_TIMEOUT = DASHBOARD_SLOW_TIMEOUT + TOAST_TIMEOUT_SAFETY_MARGIN;- const TOAST_MESSAGE =- "Would you like to be notified when this dashboard is done loading?";+ const TOAST_MESSAGE = "Want to get notified when this dashboard loads?";function restrictCollectionForNonAdmins(collectionId) {cy.request("GET", "/api/collection/graph").then(diff --git a/frontend/src/metabase/common/components/UndoListing.styled.tsx b/frontend/src/metabase/common/components/UndoListing.styled.tsxindex fdfeb3d808a..bd25a32cbfc 100644--- a/frontend/src/metabase/common/components/UndoListing.styled.tsx+++ b/frontend/src/metabase/common/components/UndoListing.styled.tsx@@ -70,6 +70,7 @@ export const UndoButton = styled(Link)`padding: 4px 12px;margin-left: ${space(1)};border-radius: 8px;+ white-space: nowrap; /* Prevents button from truncating message */:hover {background-color: ${() => alpha(color("bg-white"), 0.3)};diff --git a/frontend/src/metabase/dashboard/containers/DashboardApp/use-slow-card-notification.ts b/frontend/src/metabase/dashboard/containers/DashboardApp/use-slow-card-notification.tsindex 472bfe72b76..25fbc34b8d9 100644--- a/frontend/src/metabase/dashboard/containers/DashboardApp/use-slow-card-notification.ts+++ b/frontend/src/metabase/dashboard/containers/DashboardApp/use-slow-card-notification.ts@@ -54,9 +54,9 @@ export const useSlowCardNotification = () => {addUndo({id: slowToastId,timeout: false,- message: t`Would you like to be notified when this dashboard is done loading?`,+ message: t`Want to get notified when this dashboard loads?`,action: onConfirmToast,- actionLabel: t`Turn on`,+ actionLabel: t`Notify me`,}),);}