From 5f58f8ac0948ed9410fa2a1eec6948eabcdff9b5 Mon Sep 17 00:00:00 2001 From: ajimeno04 Date: Thu, 16 Jan 2025 13:52:03 +0100 Subject: [PATCH 1/4] feat: add safe logo partner at sidebar footer --- src/components/sidebar/SidebarFooter/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/sidebar/SidebarFooter/index.tsx b/src/components/sidebar/SidebarFooter/index.tsx index a64390a019..35812bbedc 100644 --- a/src/components/sidebar/SidebarFooter/index.tsx +++ b/src/components/sidebar/SidebarFooter/index.tsx @@ -21,6 +21,7 @@ import SuggestionIcon from '@/public/images/sidebar/lightbulb_icon.svg' export const NEW_SUGGESTION_FORM = 'https://docs.google.com/forms/d/e/1FAIpQLSfojsADYCiWq9AqbLqsUTzCDSpA8FMgdAQp0Pyl0BOeurlq9A/viewform' +import SafeLogo from '@/public/images/logo-text.svg' const SidebarFooter = (): ReactElement => { const chain = useCurrentChain() @@ -35,6 +36,13 @@ const SidebarFooter = (): ReactElement => { return ( + + + {!IS_PRODUCTION && ( From 8b2b0f98ff9b2b99022e2fa66e3f728a45293a29 Mon Sep 17 00:00:00 2001 From: ajimeno04 Date: Thu, 23 Jan 2025 20:18:41 +0100 Subject: [PATCH 2/4] feat: relocate safe wallet partner logo --- .../sidebar/SidebarFooter/index.tsx | 101 +++++++++++------- src/services/analytics/events/overview.ts | 4 + 2 files changed, 67 insertions(+), 38 deletions(-) diff --git a/src/components/sidebar/SidebarFooter/index.tsx b/src/components/sidebar/SidebarFooter/index.tsx index 35812bbedc..2167d813fd 100644 --- a/src/components/sidebar/SidebarFooter/index.tsx +++ b/src/components/sidebar/SidebarFooter/index.tsx @@ -7,7 +7,7 @@ import { SidebarListItemIcon, SidebarListItemText, } from '@/components/sidebar/SidebarList' -import { loadBeamer } from '@/services/beamer' +import { BEAMER_SELECTOR, loadBeamer } from '@/services/beamer' import { useAppSelector } from '@/store' import { CookieAndTermType, hasConsentFor } from '@/store/cookiesAndTermsSlice' import HelpCenterIcon from '@/public/images/sidebar/help-center.svg' @@ -18,17 +18,20 @@ import { useCurrentChain } from '@/hooks/useChains' import darkPalette from '@/components/theme/darkPalette' import ProtofireLogo from '@/public/images/protofire-logo.svg' import SuggestionIcon from '@/public/images/sidebar/lightbulb_icon.svg' +import SafeLogo from '@/public/images/logo-text.svg' +import ExternalLink from '@/components/common/ExternalLink' +import Track from '@/components/common/Track' +import { OVERVIEW_EVENTS } from '@/services/analytics' export const NEW_SUGGESTION_FORM = 'https://docs.google.com/forms/d/e/1FAIpQLSfojsADYCiWq9AqbLqsUTzCDSpA8FMgdAQp0Pyl0BOeurlq9A/viewform' -import SafeLogo from '@/public/images/logo-text.svg' const SidebarFooter = (): ReactElement => { const chain = useCurrentChain() const hasBeamerConsent = useAppSelector((state) => hasConsentFor(state, CookieAndTermType.UPDATES)) useEffect(() => { - // Initialise Beamer when consent was previously given + // Initialize Beamer when consent was previously given if (hasBeamerConsent && chain?.shortName) { loadBeamer(chain.shortName) } @@ -36,55 +39,77 @@ const SidebarFooter = (): ReactElement => { return ( - - - {!IS_PRODUCTION && ( )} - - - + + + - Need help? + What's New - - + + + + + + + + + + + + Need Help? + + + + + + + + + + + + + + New Features Suggestion? + + + + + - - - - - - New Features Suggestion? - - + + + + + + + Supported by{' '} + + + Protofire + + + - - - Supported by{' '} - - - Protofire - - - ) } diff --git a/src/services/analytics/events/overview.ts b/src/services/analytics/events/overview.ts index e2d2fbb4bd..6389f5df40 100644 --- a/src/services/analytics/events/overview.ts +++ b/src/services/analytics/events/overview.ts @@ -35,6 +35,10 @@ export const OVERVIEW_EVENTS = { action: 'Add new network', category: OVERVIEW_CATEGORY, }, + SUGGESTIONS: { + action: 'Suggestions', + category: OVERVIEW_CATEGORY, + }, SUBMIT_ADD_NEW_NETWORK: { action: 'Submit add new network', category: OVERVIEW_CATEGORY, From 82244b5aa2f1cb34371e8426a4f2833b137e42da Mon Sep 17 00:00:00 2001 From: ajimeno04 Date: Mon, 27 Jan 2025 13:13:35 +0100 Subject: [PATCH 3/4] fix: lint --- src/components/sidebar/SidebarFooter/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/sidebar/SidebarFooter/index.tsx b/src/components/sidebar/SidebarFooter/index.tsx index 2167d813fd..486c24e360 100644 --- a/src/components/sidebar/SidebarFooter/index.tsx +++ b/src/components/sidebar/SidebarFooter/index.tsx @@ -11,11 +11,10 @@ import { BEAMER_SELECTOR, loadBeamer } from '@/services/beamer' import { useAppSelector } from '@/store' import { CookieAndTermType, hasConsentFor } from '@/store/cookiesAndTermsSlice' import HelpCenterIcon from '@/public/images/sidebar/help-center.svg' -import { Link, ListItem, SvgIcon, Typography } from '@mui/material' +import { ListItem, SvgIcon, Typography } from '@mui/material' import DebugToggle from '../DebugToggle' import { HELP_CENTER_URL, IS_PRODUCTION } from '@/config/constants' import { useCurrentChain } from '@/hooks/useChains' -import darkPalette from '@/components/theme/darkPalette' import ProtofireLogo from '@/public/images/protofire-logo.svg' import SuggestionIcon from '@/public/images/sidebar/lightbulb_icon.svg' import SafeLogo from '@/public/images/logo-text.svg' From b42dbbfd29ab27bd183c9644d9eacec709771794 Mon Sep 17 00:00:00 2001 From: ajimeno04 Date: Thu, 6 Feb 2025 20:44:38 +0530 Subject: [PATCH 4/4] feat: disable safe github actions --- {.github => .github_disable}/ISSUE_TEMPLATE/bug-report.md | 0 {.github => .github_disable}/ISSUE_TEMPLATE/feature-request.md | 0 {.github => .github_disable}/PULL_REQUEST_TEMPLATE.md | 0 {.github => .github_disable}/dependabot.yml | 0 {.github => .github_disable}/workflows/build-storybook/action.yml | 0 {.github => .github_disable}/workflows/build/action.yml | 0 {.github => .github_disable}/workflows/cla.yml | 0 {.github => .github_disable}/workflows/cypress/action.yml | 0 {.github => .github_disable}/workflows/deploy-dev.yml | 0 {.github => .github_disable}/workflows/deploy-dockerhub.yml | 0 {.github => .github_disable}/workflows/deploy-production.yml | 0 {.github => .github_disable}/workflows/e2e-hp-ondemand.yml | 0 {.github => .github_disable}/workflows/e2e-ondemand.yml | 0 {.github => .github_disable}/workflows/e2e-prod-ondemand.yml | 0 {.github => .github_disable}/workflows/e2e-regression.yml | 0 {.github => .github_disable}/workflows/e2e-safe-apps.yml | 0 {.github => .github_disable}/workflows/e2e-smoke.yml | 0 {.github => .github_disable}/workflows/lint.yml | 0 {.github => .github_disable}/workflows/nextjs-bundle-analysis.yml | 0 {.github => .github_disable}/workflows/tag-release.yml | 0 {.github => .github_disable}/workflows/unit-tests.yml | 0 {.github => .github_disable}/workflows/yarn/action.yml | 0 22 files changed, 0 insertions(+), 0 deletions(-) rename {.github => .github_disable}/ISSUE_TEMPLATE/bug-report.md (100%) rename {.github => .github_disable}/ISSUE_TEMPLATE/feature-request.md (100%) rename {.github => .github_disable}/PULL_REQUEST_TEMPLATE.md (100%) rename {.github => .github_disable}/dependabot.yml (100%) rename {.github => .github_disable}/workflows/build-storybook/action.yml (100%) rename {.github => .github_disable}/workflows/build/action.yml (100%) rename {.github => .github_disable}/workflows/cla.yml (100%) rename {.github => .github_disable}/workflows/cypress/action.yml (100%) rename {.github => .github_disable}/workflows/deploy-dev.yml (100%) rename {.github => .github_disable}/workflows/deploy-dockerhub.yml (100%) rename {.github => .github_disable}/workflows/deploy-production.yml (100%) rename {.github => .github_disable}/workflows/e2e-hp-ondemand.yml (100%) rename {.github => .github_disable}/workflows/e2e-ondemand.yml (100%) rename {.github => .github_disable}/workflows/e2e-prod-ondemand.yml (100%) rename {.github => .github_disable}/workflows/e2e-regression.yml (100%) rename {.github => .github_disable}/workflows/e2e-safe-apps.yml (100%) rename {.github => .github_disable}/workflows/e2e-smoke.yml (100%) rename {.github => .github_disable}/workflows/lint.yml (100%) rename {.github => .github_disable}/workflows/nextjs-bundle-analysis.yml (100%) rename {.github => .github_disable}/workflows/tag-release.yml (100%) rename {.github => .github_disable}/workflows/unit-tests.yml (100%) rename {.github => .github_disable}/workflows/yarn/action.yml (100%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github_disable/ISSUE_TEMPLATE/bug-report.md similarity index 100% rename from .github/ISSUE_TEMPLATE/bug-report.md rename to .github_disable/ISSUE_TEMPLATE/bug-report.md diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github_disable/ISSUE_TEMPLATE/feature-request.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature-request.md rename to .github_disable/ISSUE_TEMPLATE/feature-request.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github_disable/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from .github/PULL_REQUEST_TEMPLATE.md rename to .github_disable/PULL_REQUEST_TEMPLATE.md diff --git a/.github/dependabot.yml b/.github_disable/dependabot.yml similarity index 100% rename from .github/dependabot.yml rename to .github_disable/dependabot.yml diff --git a/.github/workflows/build-storybook/action.yml b/.github_disable/workflows/build-storybook/action.yml similarity index 100% rename from .github/workflows/build-storybook/action.yml rename to .github_disable/workflows/build-storybook/action.yml diff --git a/.github/workflows/build/action.yml b/.github_disable/workflows/build/action.yml similarity index 100% rename from .github/workflows/build/action.yml rename to .github_disable/workflows/build/action.yml diff --git a/.github/workflows/cla.yml b/.github_disable/workflows/cla.yml similarity index 100% rename from .github/workflows/cla.yml rename to .github_disable/workflows/cla.yml diff --git a/.github/workflows/cypress/action.yml b/.github_disable/workflows/cypress/action.yml similarity index 100% rename from .github/workflows/cypress/action.yml rename to .github_disable/workflows/cypress/action.yml diff --git a/.github/workflows/deploy-dev.yml b/.github_disable/workflows/deploy-dev.yml similarity index 100% rename from .github/workflows/deploy-dev.yml rename to .github_disable/workflows/deploy-dev.yml diff --git a/.github/workflows/deploy-dockerhub.yml b/.github_disable/workflows/deploy-dockerhub.yml similarity index 100% rename from .github/workflows/deploy-dockerhub.yml rename to .github_disable/workflows/deploy-dockerhub.yml diff --git a/.github/workflows/deploy-production.yml b/.github_disable/workflows/deploy-production.yml similarity index 100% rename from .github/workflows/deploy-production.yml rename to .github_disable/workflows/deploy-production.yml diff --git a/.github/workflows/e2e-hp-ondemand.yml b/.github_disable/workflows/e2e-hp-ondemand.yml similarity index 100% rename from .github/workflows/e2e-hp-ondemand.yml rename to .github_disable/workflows/e2e-hp-ondemand.yml diff --git a/.github/workflows/e2e-ondemand.yml b/.github_disable/workflows/e2e-ondemand.yml similarity index 100% rename from .github/workflows/e2e-ondemand.yml rename to .github_disable/workflows/e2e-ondemand.yml diff --git a/.github/workflows/e2e-prod-ondemand.yml b/.github_disable/workflows/e2e-prod-ondemand.yml similarity index 100% rename from .github/workflows/e2e-prod-ondemand.yml rename to .github_disable/workflows/e2e-prod-ondemand.yml diff --git a/.github/workflows/e2e-regression.yml b/.github_disable/workflows/e2e-regression.yml similarity index 100% rename from .github/workflows/e2e-regression.yml rename to .github_disable/workflows/e2e-regression.yml diff --git a/.github/workflows/e2e-safe-apps.yml b/.github_disable/workflows/e2e-safe-apps.yml similarity index 100% rename from .github/workflows/e2e-safe-apps.yml rename to .github_disable/workflows/e2e-safe-apps.yml diff --git a/.github/workflows/e2e-smoke.yml b/.github_disable/workflows/e2e-smoke.yml similarity index 100% rename from .github/workflows/e2e-smoke.yml rename to .github_disable/workflows/e2e-smoke.yml diff --git a/.github/workflows/lint.yml b/.github_disable/workflows/lint.yml similarity index 100% rename from .github/workflows/lint.yml rename to .github_disable/workflows/lint.yml diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github_disable/workflows/nextjs-bundle-analysis.yml similarity index 100% rename from .github/workflows/nextjs-bundle-analysis.yml rename to .github_disable/workflows/nextjs-bundle-analysis.yml diff --git a/.github/workflows/tag-release.yml b/.github_disable/workflows/tag-release.yml similarity index 100% rename from .github/workflows/tag-release.yml rename to .github_disable/workflows/tag-release.yml diff --git a/.github/workflows/unit-tests.yml b/.github_disable/workflows/unit-tests.yml similarity index 100% rename from .github/workflows/unit-tests.yml rename to .github_disable/workflows/unit-tests.yml diff --git a/.github/workflows/yarn/action.yml b/.github_disable/workflows/yarn/action.yml similarity index 100% rename from .github/workflows/yarn/action.yml rename to .github_disable/workflows/yarn/action.yml