• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 4c232b3228470d1c29bcc11ca8d55923bc803f45

18 Nov 2024 08:10AM CUT coverage: 54.486% (+3.1%) from 51.425%
4c232b3228470d1c29bcc11ca8d55923bc803f45

push

github

igorschoester
Add sidebar to dashboard

7593 of 13651 branches covered (55.62%)

Branch coverage included in aggregate %.

0 of 9 new or added lines in 2 files covered. (0.0%)

29754 of 54893 relevant lines covered (54.2%)

41809.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/general/routes/alert-center.js
1
import { useSelect } from "@wordpress/data";
2
import { __ } from "@wordpress/i18n";
3
import { Paper, Title } from "@yoast/ui-library";
4
import { PremiumUpsellList } from "../../shared-admin/components";
5
import { Notifications, Problems } from "../components";
6
import { STORE_NAME } from "../constants";
7
import { useSelectGeneralPage } from "../hooks";
8

9
/**
10
 * @returns {JSX.Element} The general page content placeholder.
11
 */
12
export const AlertCenter = () => {
×
13
        const isPremium = useSelectGeneralPage( "selectPreference", [], "isPremium" );
×
14
        const premiumLinkList = useSelectGeneralPage( "selectLink", [], "https://yoa.st/17h" );
×
15
        const premiumUpsellConfig = useSelectGeneralPage( "selectUpsellSettingsAsProps" );
×
16
        const { isPromotionActive } = useSelect( STORE_NAME );
×
17

NEW
18
        return (
×
19
                <>
20
                        <Paper className="yst-p-8 yst-grow">
21
                                <header className="yst-max-w-screen-sm">
22
                                        <Title>{ __( "Alert center", "wordpress-seo" ) }</Title>
23
                                        <p className="yst-text-tiny yst-mt-3">
24
                                                { __( "Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.", "wordpress-seo" ) }
25
                                        </p>
26
                                </header>
27
                        </Paper>
28
                        <div className="yst-grid yst-grid-cols-1 @3xl:yst-grid-cols-2 yst-gap-6 yst-my-6 yst-grow yst-items-start">
29
                                <Problems />
30
                                <Notifications />
31
                        </div>
32
                        { isPremium ? null : (
×
33
                                <PremiumUpsellList
34
                                        premiumLink={ premiumLinkList }
35
                                        premiumUpsellConfig={ premiumUpsellConfig }
36
                                        isPromotionActive={ isPromotionActive }
37
                                />
38
                        ) }
39
                </>
40
        );
41
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc