Skip to content

Commit

Permalink
Remove rebranding modal pop-up to announce visual changes (#3516)
Browse files Browse the repository at this point in the history
* chore: removing rebranding modal

* chore: remove local storage value for rebranding modal
  • Loading branch information
chloe0592 committed May 9, 2024
1 parent 49953c6 commit 179da9a
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 182 deletions.
7 changes: 7 additions & 0 deletions .changeset/tiny-pots-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@commercetools-frontend/application-shell': patch
'@commercetools-frontend/assets': patch
'@commercetools-frontend/i18n': patch
---

Removing the rebranding modal pup-up.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import { lazy } from 'react';
import { themesOverrides } from '@commercetools-frontend/application-components';
import { ThemeProvider } from '@commercetools-uikit/design-system';

const NewColoursSchemaAnnouncementDialog = lazy(
() => import('./new-colors-schema-announcement-dialog')
);

const ThemeSwitcher = () => {
const theme = 'default';
return (
<>
<ThemeProvider theme={theme} themeOverrides={themesOverrides[theme]} />
<NewColoursSchemaAnnouncementDialog />
</>
);
};
Expand Down
4 changes: 0 additions & 4 deletions packages/application-shell/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ export const DIMENSIONS = {
header: '56px',
} as const;

export const STORAGE_KEYS = {
IS_RECOLOURING_NOTIFICATION_CLOSED: 'isRecolouringNotificationClosed',
} as const;

export const NAVBAR = {
expanderHeight: '50px',
expanderSize: '40px',
Expand Down
95 changes: 0 additions & 95 deletions packages/assets/images/mc-recolouring-announcement.svg

This file was deleted.

7 changes: 0 additions & 7 deletions packages/cypress/src/add-commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,6 @@ function loginByOidc(
STORAGE_KEYS.SESSION_SCOPE,
sessionScope
);
// To hide the dialog for the rebranding colors.
// TODO: remove once the dialog has been removed from App Kit.
win.localStorage.setItem(
'isRecolouringNotificationClosed',
String(true)
);

if (commandOptions.onBeforeLoad) {
commandOptions.onBeforeLoad(win);
}
Expand Down
6 changes: 0 additions & 6 deletions packages/i18n/data/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@
"NavBar.MCSupport.title": {
"string": "Support"
},
"NewColoursSchemaAnnouncementDialog.content": {
"string": "From the new colors to an updated navigation, we've made a few changes to improve your experience within Merchant Center. You will also find that we are taking steps to ensure a consistent look and feel across all of our user tooling, from the Merchant Center to the Frontend Studio. Check out the updates!"
},
"NewColoursSchemaAnnouncementDialog.title": {
"string": "We've refreshed our Merchant Center!"
},
"Notification.hideNotification": {
"developer_comment": "Label for button to hide notification",
"string": "Hide notification"
Expand Down

0 comments on commit 179da9a

Please sign in to comment.