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 the delete button copy for better UX (#65688)
Mahatthana (Kelvin) Nomsawadi8c5cac236980
diff --git a/e2e/test-component/scenarios/embedding-sdk/collection-browser.cy.spec.tsx b/e2e/test-component/scenarios/embedding-sdk/collection-browser.cy.spec.tsxindex 83a2ff7d6db..48d4ba2877c 100644--- a/e2e/test-component/scenarios/embedding-sdk/collection-browser.cy.spec.tsx+++ b/e2e/test-component/scenarios/embedding-sdk/collection-browser.cy.spec.tsx@@ -71,7 +71,7 @@ describe("scenarios > embedding-sdk > collection browser", () => {getSdkRoot().findByText("Our analytics").should("exist");});- it("should be able to delete resources (EMB-892)", () => {+ it("should be able to move resources to trash (EMB-892)", () => {mountSdkContent(<CollectionBrowser collectionId="root" />);const dashboardName = "Orders in a dashboard";@@ -80,11 +80,11 @@ describe("scenarios > embedding-sdk > collection browser", () => {cy.findByText("Our analytics").should("exist");cy.findByText("Orders in a dashboard").should("exist");- cy.log("delete the dashboard");+ cy.log("move the dashboard to trash");cy.findByText(dashboardName).closest("tr").button("Actions").click();});- H.popover().findByRole("menuitem", { name: "Delete" }).click();+ H.popover().findByRole("menuitem", { name: "Move to trash" }).click();cy.log("the deleted dashboard should be gone");getSdkRoot().findByText(dashboardName).should("not.exist");diff --git a/frontend/src/metabase/embedding/components/ArchiveButton.tsx b/frontend/src/metabase/embedding/components/ArchiveButton.tsxindex dfdd4e92e33..79469cfdeae 100644--- a/frontend/src/metabase/embedding/components/ArchiveButton.tsx+++ b/frontend/src/metabase/embedding/components/ArchiveButton.tsx@@ -50,7 +50,7 @@ export function ArchiveButton({ item }: ArchiveButtonProps) {onClick={handleArchive}className={S.archiveMenuItem}>- {t`Delete`}+ {t`Move to trash`}</Menu.Item></Menu.Dropdown></Menu>