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
UXW-2519 Update Data Studio icon/logo (#66782)
Brad Anderson87eed4d7c94c
diff --git a/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.css b/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.cssindex f9d4eda4a0b..2076c912ff4 100644--- a/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.css+++ b/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.module.css@@ -6,6 +6,13 @@width: 300px;}+.logo {+ width: 32px;+ height: 32px;+ margin: 0 -8px;+ display: block;+}+.icon {color: var(--mb-color-text-secondary);}@@ -50,8 +57,9 @@.showOnHover {position: absolute;- left: 0.5rem;- top: 0.75rem;+ top: 50%;+ left: 50%;+ transform: translate(-50%, -50%);opacity: 0;transition: opacity 400ms ease;}diff --git a/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.tsx b/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.tsxindex 020198a4149..fb9cb6b44fa 100644--- a/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.tsx+++ b/enterprise/frontend/src/metabase-enterprise/data-studio/app/pages/DataStudioLayout/DataStudioLayout.tsx@@ -2,6 +2,7 @@ import cx from "classnames";import type { ReactNode } from "react";import { t } from "ttag";+import DataStudioLogo from "assets/img/data-studio-logo.svg";import { ForwardRefLink } from "metabase/common/components/Link";import { useUserKeyValue } from "metabase/common/hooks/use-user-key-value";import { useSelector } from "metabase/lib/redux";@@ -223,12 +224,7 @@ function DataStudioNavbarToggle({bdrs="md"onClick={() => !isNavbarOpened && onNavbarToggle(true)}>- <FixedSizeIcon- name="data_studio"- size={27}- mx="-5px"- className={cx(S.hideOnHover)}- />+ <img src={DataStudioLogo} className={cx(S.hideOnHover, S.logo)} /><FixedSizeIconname="sidebar_open"className={S.showOnHover}diff --git a/frontend/src/metabase/ui/components/icons/Icon/icons/data_studio.svg b/frontend/src/metabase/ui/components/icons/Icon/icons/data_studio.svgindex 5fd48da2c1d..771fb5fda84 100644--- a/frontend/src/metabase/ui/components/icons/Icon/icons/data_studio.svg+++ b/frontend/src/metabase/ui/components/icons/Icon/icons/data_studio.svg@@ -1,6 +1,4 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">- <circle cx="8" cy="3.8" r="1.8" fill="#358cd9" />- <circle opacity="0.7" cx="8" cy="12.2" r="1.8" fill="#358cd9" />- <circle opacity="0.7" cx="3.8" cy="8" r="1.8" fill="#358cd9" />- <circle opacity="0.7" cx="12.2" cy="8" r="1.8" fill="#358cd9" />+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M4.545 10.12a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zm6.788 0a1.213 1.213 0 1 1 0 2.426 1.213 1.213 0 0 1 0-2.425zM7.939 6.728a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zM4.545 3.333a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zm6.788 0a1.212 1.212 0 1 1 0 2.425 1.212 1.212 0 0 1 0-2.425z" fill="#1871BF"/>+ <path d="M8 13.576A1.212 1.212 0 1 1 8 16a1.212 1.212 0 0 1 0-2.424zm0-3.394a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zM1.212 6.788a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zm3.394 0a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zm6.789 0a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zm3.393 0a1.212 1.212 0 1 1 0 2.424 1.212 1.212 0 0 1 0-2.424zM8 3.394a1.213 1.213 0 1 1-.002 2.425A1.213 1.213 0 0 1 8 3.394zM8 0a1.212 1.212 0 1 1 0 2.424A1.212 1.212 0 0 1 8 0z" fill="#A7CEEF"/></svg>diff --git a/resources/frontend_client/app/assets/img/data-studio-logo.svg b/resources/frontend_client/app/assets/img/data-studio-logo.svgnew file mode 100644index 00000000000..dabad2c0a14--- /dev/null+++ b/resources/frontend_client/app/assets/img/data-studio-logo.svg@@ -0,0 +1,4 @@+<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M9.954 19.712a2.121 2.121 0 1 1 0 4.242 2.121 2.121 0 0 1 0-4.242zm11.879 0a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.243zm-5.94-5.94a2.122 2.122 0 1 1-.001 4.244 2.122 2.122 0 0 1 .002-4.244zM9.955 7.833a2.121 2.121 0 1 1 0 4.242 2.121 2.121 0 0 1 0-4.242zm11.879 0a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.243z" fill="#509EE3"/>+ <path d="M16 25.758A2.121 2.121 0 1 1 16 30a2.121 2.121 0 0 1 0-4.242zm0-5.94a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.243zm-11.879-5.94a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.242zm5.94 0a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.242zm11.878 0a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.242zm5.94 0a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.242zM16 7.94a2.121 2.121 0 1 1 0 4.243 2.121 2.121 0 0 1 0-4.243zM16 2a2.121 2.121 0 1 1 0 4.243A2.121 2.121 0 0 1 16 2z" fill="#BCDAF4"/>+</svg>