-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/bundles to recommendations (#40281)
* Fix console errors * Add cards for Complete, Security, and Growth * Add Security, Complete, and Growth interstitials * Fix bundles * Fix intro eligibility on recommendation cards * changelog * Remove a few unnecessary changes * Translate feature string
- Loading branch information
1 parent
1352759
commit 24a8e6b
Showing
35 changed files
with
485 additions
and
41 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
21 changes: 21 additions & 0 deletions
21
projects/packages/my-jetpack/_inc/components/product-cards-section/complete-card.tsx
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,21 @@ | ||
import { PRODUCT_SLUGS } from '../../data/constants'; | ||
import ProductCard from '../connected-product-card'; | ||
import type { FC } from 'react'; | ||
|
||
interface CompleteCardProps { | ||
admin?: boolean; | ||
recommendation?: boolean; | ||
} | ||
|
||
const CompleteCard: FC< CompleteCardProps > = ( { admin, recommendation } ) => { | ||
return ( | ||
<ProductCard | ||
slug={ PRODUCT_SLUGS.COMPLETE } | ||
showMenu | ||
admin={ admin } | ||
recommendation={ recommendation } | ||
/> | ||
); | ||
}; | ||
|
||
export default CompleteCard; |
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
21 changes: 21 additions & 0 deletions
21
projects/packages/my-jetpack/_inc/components/product-cards-section/growth-card.tsx
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,21 @@ | ||
import { PRODUCT_SLUGS } from '../../data/constants'; | ||
import ProductCard from '../connected-product-card'; | ||
import type { FC } from 'react'; | ||
|
||
interface GrowthCardProps { | ||
admin?: boolean; | ||
recommendation?: boolean; | ||
} | ||
|
||
const GrowthCard: FC< GrowthCardProps > = ( { admin, recommendation } ) => { | ||
return ( | ||
<ProductCard | ||
slug={ PRODUCT_SLUGS.GROWTH } | ||
showMenu | ||
admin={ admin } | ||
recommendation={ recommendation } | ||
/> | ||
); | ||
}; | ||
|
||
export default GrowthCard; |
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
21 changes: 21 additions & 0 deletions
21
projects/packages/my-jetpack/_inc/components/product-cards-section/security-card.tsx
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,21 @@ | ||
import { PRODUCT_SLUGS } from '../../data/constants'; | ||
import ProductCard from '../connected-product-card'; | ||
import type { FC } from 'react'; | ||
|
||
interface SecurityCardProps { | ||
admin?: boolean; | ||
recommendation?: boolean; | ||
} | ||
|
||
const SecurityCard: FC< SecurityCardProps > = ( { admin, recommendation } ) => { | ||
return ( | ||
<ProductCard | ||
slug={ PRODUCT_SLUGS.SECURITY } | ||
showMenu | ||
admin={ admin } | ||
recommendation={ recommendation } | ||
/> | ||
); | ||
}; | ||
|
||
export default SecurityCard; |
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
Binary file added
BIN
+485 KB
projects/packages/my-jetpack/_inc/components/product-interstitial/complete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.