-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2481 from woocommerce/tweak/rebranding
Rebranding Google Listings and Ads
- Loading branch information
Showing
75 changed files
with
297 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.gla-rebranding-tour { | ||
&__heading { | ||
display: flex; | ||
align-items: center; | ||
gap: $grid-unit-10; | ||
fill: var(--wp-admin-theme-color); | ||
} | ||
|
||
// Hide the footer content but leave the padding-bottom because | ||
// TourKit doesn't offer a way not to use the primary button. | ||
.components-card__footer { | ||
padding-top: 0; | ||
|
||
> * { | ||
display: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import { __ } from '@wordpress/i18n'; | ||
import { createInterpolateElement } from '@wordpress/element'; | ||
import { TourKit } from '@woocommerce/components'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import useTour from '.~/hooks/useTour'; | ||
import './rebrading-tour.scss'; | ||
|
||
const TOUR_ID = 'rebranding-tour'; | ||
|
||
/** | ||
* Renders the tour for notifying about the new extension rebranding | ||
*/ | ||
export default function RebrandingTour() { | ||
const { tourChecked, setTourChecked } = useTour( TOUR_ID ); | ||
|
||
if ( tourChecked ) { | ||
return null; | ||
} | ||
|
||
const config = { | ||
steps: [ | ||
{ | ||
referenceElements: { | ||
desktop: | ||
'.toplevel_page_woocommerce-marketing a[href*="google"]', | ||
}, | ||
meta: { | ||
heading: ( | ||
<div className="gla-rebranding-tour__heading"> | ||
{ __( | ||
'New name, same great solution', | ||
'google-listings-and-ads' | ||
) } | ||
</div> | ||
), | ||
descriptions: { | ||
desktop: ( | ||
<> | ||
{ createInterpolateElement( | ||
__( | ||
'Google Listings & Ads is now <strong>Google for WooCommerce</strong>.', | ||
'google-listings-and-ads' | ||
), | ||
{ strong: <strong /> } | ||
) } | ||
</> | ||
), | ||
}, | ||
}, | ||
}, | ||
], | ||
options: { | ||
classNames: 'gla-admin-page,gla-rebranding-tour', | ||
effects: { overlay: false }, | ||
}, | ||
placement: 'top', | ||
closeHandler: () => setTourChecked( true ), | ||
}; | ||
|
||
return <TourKit config={ config } />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.