Skip to content

Commit

Permalink
Include new illustrations with the upcoming colour schema changes (#3415
Browse files Browse the repository at this point in the history
)

* refactor: include new illustrations

* Create kind-bobcats-fix.md

* chore: update browserslist and caniuse-lite dependencies

* refactor(website-custom-views): update docs-kit dependencies

---------

Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
  • Loading branch information
CarlosCortizasCT and emmenko authored Feb 27, 2024
1 parent 6d55ed8 commit e076438
Show file tree
Hide file tree
Showing 21 changed files with 2,470 additions and 693 deletions.
7 changes: 7 additions & 0 deletions .changeset/kind-bobcats-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@commercetools-frontend/application-components": patch
"@commercetools-frontend/application-shell": patch
"@commercetools-frontend/assets": patch
---

Include new illustrations with the upcoming colour schema changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useIntl, FormattedMessage } from 'react-intl';
import PageNotFoundSVGRebranding from '@commercetools-frontend/assets/images/page-not-found-rebranding.svg';
import PageNotFoundSVG from '@commercetools-frontend/assets/images/page-not-found.svg';
import { SUPPORT_PORTAL_URL } from '@commercetools-frontend/constants';
import { useTheme } from '@commercetools-uikit/design-system';
import MaintenancePageLayout from '../maintenance-page-layout';
import messages from './messages';

Expand All @@ -12,10 +14,11 @@ const getLink = (msg: string) => (
);
const PageNotFound = () => {
const intl = useIntl();
const { themedValue } = useTheme();

return (
<MaintenancePageLayout
imageSrc={PageNotFoundSVG}
imageSrc={themedValue(PageNotFoundSVG, PageNotFoundSVGRebranding)}
title={<FormattedMessage {...messages.title} />}
label={intl.formatMessage(messages.title)}
paragraph1={
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useIntl, FormattedMessage } from 'react-intl';
import FailedAuthorizationSVGRebranding from '@commercetools-frontend/assets/images/doors-closed-rebranding.svg';
import FailedAuthorizationSVG from '@commercetools-frontend/assets/images/doors-closed.svg';
import { SUPPORT_PORTAL_URL } from '@commercetools-frontend/constants';
import { useTheme } from '@commercetools-uikit/design-system';
import MaintenancePageLayout from '../maintenance-page-layout';
import messages from './messages';

Expand All @@ -13,10 +15,14 @@ const getSupportUrlLink = (msg: string) => (

export const PageUnauthorized = () => {
const intl = useIntl();
const { themedValue } = useTheme();

return (
<MaintenancePageLayout
imageSrc={FailedAuthorizationSVG}
imageSrc={themedValue(
FailedAuthorizationSVG,
FailedAuthorizationSVGRebranding
)}
title={<FormattedMessage {...messages.title} />}
label={intl.formatMessage(messages.title)}
paragraph1={<FormattedMessage {...messages.paragraph1} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
PublicPageLayout,
themesOverrides,
} from '@commercetools-frontend/application-components';
import FailedAuthenticationSVGRebranding from '@commercetools-frontend/assets/images/doors-closed-rebranding.svg';
import FailedAuthenticationSVG from '@commercetools-frontend/assets/images/doors-closed.svg';
import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';

Expand All @@ -13,6 +14,7 @@ import Constraints from '@commercetools-uikit/constraints';
import {
ThemeProvider,
customProperties,
useTheme,
} from '@commercetools-uikit/design-system';
import FlatButton from '@commercetools-uikit/flat-button';
import { AngleLeftIcon } from '@commercetools-uikit/icons';
Expand Down Expand Up @@ -40,6 +42,7 @@ const Divider = styled.div`

const AuthCallbackErrorPage = (props: TProps) => {
const history = useHistory();
const { themedValue } = useTheme();
return (
<AsyncLocaleData
locale={props.locale}
Expand All @@ -59,7 +62,10 @@ const AuthCallbackErrorPage = (props: TProps) => {
<Spacings.Inline justifyContent="center">
<img
width="100%"
src={FailedAuthenticationSVG}
src={themedValue(
FailedAuthenticationSVG,
FailedAuthenticationSVGRebranding
)}
alt="Failed authentication"
/>
</Spacings.Inline>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { useIntl, FormattedMessage } from 'react-intl';
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
import UnexpectedErrorSVGRebranding from '@commercetools-frontend/assets/images/unexpected-error-rebranding.svg';
import UnexpectedErrorSVG from '@commercetools-frontend/assets/images/unexpected-error.svg';
import { useTheme } from '@commercetools-uikit/design-system';
import messages from './messages';

const ErrorApologizer = () => {
const intl = useIntl();
const { themedValue } = useTheme();

return (
<MaintenancePageLayout
imageSrc={UnexpectedErrorSVG}
imageSrc={themedValue(UnexpectedErrorSVG, UnexpectedErrorSVGRebranding)}
title={<FormattedMessage {...messages.title} />}
label={intl.formatMessage(messages.title)}
paragraph1={<FormattedMessage {...messages.notifiedTeam} />}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import { useIntl, FormattedMessage } from 'react-intl';
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
import FailedAuthenticationSVGRebranding from '@commercetools-frontend/assets/images/doors-closed-rebranding.svg';
import FailedAuthenticationSVG from '@commercetools-frontend/assets/images/doors-closed.svg';
import { useTheme } from '@commercetools-uikit/design-system';
import messages from './messages';

const FailedAuthentication = () => {
const intl = useIntl();
const { themedValue } = useTheme();

return (
<MaintenancePageLayout
imageSrc={FailedAuthenticationSVG}
imageSrc={themedValue(
FailedAuthenticationSVG,
FailedAuthenticationSVGRebranding
)}
title={<FormattedMessage {...messages.title} />}
label={intl.formatMessage(messages.title)}
paragraph1={<FormattedMessage {...messages.paragraph1} />}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useIntl, FormattedMessage } from 'react-intl';
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
import ProjectExpiredIllustrationRebranding from '@commercetools-frontend/assets/images/hourglass-rebranding.svg';
import ProjectExpiredIllustration from '@commercetools-frontend/assets/images/hourglass.svg';
import { useTheme } from '@commercetools-uikit/design-system';
import ServicePageProjectSwitcher from '../service-page-project-switcher';
import messages from './messages';

Expand All @@ -17,10 +19,14 @@ EmailLink.displayName = 'EmailLink';

const ProjectExpired = () => {
const intl = useIntl();
const { themedValue } = useTheme();

return (
<MaintenancePageLayout
imageSrc={ProjectExpiredIllustration}
imageSrc={themedValue(
ProjectExpiredIllustration,
ProjectExpiredIllustrationRebranding
)}
title={<FormattedMessage {...messages.title} />}
label={intl.formatMessage(messages.title)}
paragraph1={
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { useIntl, FormattedMessage } from 'react-intl';
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
import ProjectNotFoundSVGRebranding from '@commercetools-frontend/assets/images/folder-full-locked-rebranding.svg';
import ProjectNotFoundSVG from '@commercetools-frontend/assets/images/folder-full-locked.svg';
import { useTheme } from '@commercetools-uikit/design-system';
import ServicePageProjectSwitcher from '../service-page-project-switcher';
import messages from './messages';

const ProjectNotFound = () => {
const intl = useIntl();
const { themedValue } = useTheme();

return (
<MaintenancePageLayout
imageSrc={ProjectNotFoundSVG}
imageSrc={themedValue(ProjectNotFoundSVG, ProjectNotFoundSVGRebranding)}
title={<FormattedMessage {...messages.title} />}
label={intl.formatMessage(messages.title)}
paragraph1={<FormattedMessage {...messages.paragraph1} />}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useIntl, FormattedMessage } from 'react-intl';
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
import ProjectNotInitializedSVGRebranding from '@commercetools-frontend/assets/images/hourglass-rebranding.svg';
import ProjectNotInitializedSVG from '@commercetools-frontend/assets/images/hourglass.svg';
import { useTheme } from '@commercetools-uikit/design-system';
import ServicePageProjectSwitcher from '../service-page-project-switcher';
import messages from './messages';

Expand All @@ -17,10 +19,14 @@ EmailLink.displayName = 'EmailLink';

const ProjectNotInitialized = () => {
const intl = useIntl();
const { themedValue } = useTheme();

return (
<MaintenancePageLayout
imageSrc={ProjectNotInitializedSVG}
imageSrc={themedValue(
ProjectNotInitializedSVG,
ProjectNotInitializedSVGRebranding
)}
title={<FormattedMessage {...messages.title} />}
label={intl.formatMessage(messages.title)}
paragraph1={
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useIntl, FormattedMessage, MessageDescriptor } from 'react-intl';
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
import ProjectSuspendedSVGRebranding from '@commercetools-frontend/assets/images/locked-diamond-rebranding.svg';
import ProjectSuspendedSVG from '@commercetools-frontend/assets/images/locked-diamond.svg';
import { useTheme } from '@commercetools-uikit/design-system';
import ServicePageProjectSwitcher from '../service-page-project-switcher';
import messages from './messages';

Expand All @@ -18,11 +20,12 @@ const getTitleMessage = (props: Props): MessageDescriptor => {

const ProjectSuspended = (props: Props) => {
const intl = useIntl();
const { themedValue } = useTheme();
const titleMessage = getTitleMessage(props);

return (
<MaintenancePageLayout
imageSrc={ProjectSuspendedSVG}
imageSrc={themedValue(ProjectSuspendedSVG, ProjectSuspendedSVGRebranding)}
title={<FormattedMessage {...titleMessage} />}
label={intl.formatMessage(titleMessage)}
paragraph1={<FormattedMessage {...messages.paragraph1} />}
Expand Down
30 changes: 30 additions & 0 deletions packages/assets/images/doors-closed-rebranding.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

1 comment on commit e076438

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for application-kit-custom-views ready!

✅ Preview
https://application-kit-custom-views-d35i0j3qf-commercetools.vercel.app

Built with commit e076438.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.