-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Init project branch * Protect: Add Go to Cloud and Scan now button to Protect primary header (#40057) Co-authored-by: Nate Weller <hello@nateweller.com> * Protect: Update Scan and History headers (#40058) * Update Scan and History section header structure/content * changelog * Update projects/plugins/protect/src/js/routes/scan/scan-admin-section-hero.tsx Co-authored-by: Nate Weller <nate.weller@automattic.com> --------- Co-authored-by: Nate Weller <nate.weller@automattic.com> * Protect: de-emphasize cloud link by using link variant (#40211) * Protect: add ShieldIcon component * Protect: Add ShieldIcon Component (#40402) * Protect: Integrate ThreatsDataViews Component (#40076) * Components: Add ScanReport (#40419) * Fix type errors * Protect: add home page --------- Co-authored-by: Nate Weller <hello@nateweller.com> Co-authored-by: Nate Weller <nate.weller@automattic.com> Co-authored-by: Dean Kmyta <dkmyta@automattic.com>
- Loading branch information
1 parent
32e9291
commit bacace2
Showing
15 changed files
with
449 additions
and
93 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/js-packages/components/changelog/add-hide-value-prop-to-stat-card
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,4 @@ | ||
Significance: minor | ||
Type: added | ||
|
||
Stat Card: add hideValue prop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: added | ||
|
||
Adds a Home page and StatCards |
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
73 changes: 0 additions & 73 deletions
73
projects/plugins/protect/src/js/components/seventy-five-layout/index.tsx
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
projects/plugins/protect/src/js/components/seventy-five-layout/styles.module.scss
This file was deleted.
Oops, something went wrong.
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
50 changes: 50 additions & 0 deletions
50
projects/plugins/protect/src/js/routes/home/home-admin-section-hero.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,50 @@ | ||
import { Text, Button } from '@automattic/jetpack-components'; | ||
import { __ } from '@wordpress/i18n'; | ||
import { useCallback } from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import AdminSectionHero from '../../components/admin-section-hero'; | ||
import usePlan from '../../hooks/use-plan'; | ||
import HomeStatCards from './home-statcards'; | ||
import styles from './styles.module.scss'; | ||
|
||
const HomeAdminSectionHero: React.FC = () => { | ||
const { hasPlan } = usePlan(); | ||
const navigate = useNavigate(); | ||
const handleScanReportClick = useCallback( () => { | ||
navigate( '/scan' ); | ||
}, [ navigate ] ); | ||
|
||
return ( | ||
<AdminSectionHero> | ||
<AdminSectionHero.Main> | ||
<> | ||
<AdminSectionHero.Heading> | ||
{ __( 'Your site is safe with us', 'jetpack-protect' ) } | ||
</AdminSectionHero.Heading> | ||
<Text> | ||
{ hasPlan | ||
? __( | ||
'We stay ahead of security threats to keep your site protected.', | ||
'jetpack-protect' | ||
) | ||
: __( | ||
'We stay ahead of security vulnerabilities to keep your site protected.', | ||
'jetpack-protect' | ||
) } | ||
</Text> | ||
<Button | ||
className={ styles[ 'view-scan-report' ] } | ||
variant="primary" | ||
weight="regular" | ||
onClick={ handleScanReportClick } | ||
> | ||
{ __( 'View scan report', 'jetpack-protect' ) } | ||
</Button> | ||
</> | ||
</AdminSectionHero.Main> | ||
<AdminSectionHero.Aside>{ <HomeStatCards /> }</AdminSectionHero.Aside> | ||
</AdminSectionHero> | ||
); | ||
}; | ||
|
||
export default HomeAdminSectionHero; |
Oops, something went wrong.