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

Yoast / wordpress-seo / 79498a351b2ddb942f3f0f8c97de97707acced3c

27 Feb 2024 03:31PM UTC coverage: 41.466% (-11.7%) from 53.156%
79498a351b2ddb942f3f0f8c97de97707acced3c

Pull #21121

github

web-flow
Merge 434fcab1a into d617035e7
Pull Request #21121: UI-Library / Align button heights with input fields

4568 of 10443 branches covered (43.74%)

Branch coverage included in aggregate %.

0 of 5 new or added lines in 3 files covered. (0.0%)

1 existing line in 1 file now uncovered.

12971 of 31854 relevant lines covered (40.72%)

70210.34 hits per line

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

0.0
/packages/js/src/first-time-configuration/tailwind-components/steps/finish/finish-step.js
1
import { ArrowNarrowRightIcon } from "@heroicons/react/outline";
2
import { __, sprintf } from "@wordpress/i18n";
3
import { get } from "lodash";
4
import { ReactComponent as ConfigurationFinishImage } from "../../../../../images/indexables_2_left_bubble_optm.svg";
5
import { Button, Link } from "@yoast/ui-library";
6

7
/**
8
 * Goes to the Dashboard tab by clicking the tab button.
9
 *
10
 * @param {Event} event The event object.
11
 *
12
 * @returns {void}
13
 */
14
function goToSEODashboard( event ) {
NEW
15
        event.preventDefault();
×
UNCOV
16
        window.location.href = "admin.php?page=wpseo_dashboard";
×
17
}
18

19
/**
20
 * The last step of the Stepper: the Finish step.
21
 *
22
 * @returns {WPElement} The Finish step.
23
 */
24
export default function FinishStep() {
25
        const webinarIntroFirstTimeConfigUrl = get( window, "wpseoScriptData.webinarIntroFirstTimeConfigUrl", "https://yoa.st/webinar-intro-first-time-config" );
×
26

27
        return (
×
28
                <div className="yst-flex yst-flex-row yst-justify-between yst-items-center yst--mt-4">
29
                        <div className="yst-mr-6">
30
                                <p className="yst-text-sm yst-mb-4">
31
                                        {
32
                                                sprintf(
33
                                                        /* translators: 1: Yoast. */
34
                                                        __( "Great work! Thanks to the details you've provided, %1$s has enhanced your site for search engines, giving them a clearer picture of what your site is all about.", "wordpress-seo" ),
35
                                                        "Yoast"
36
                                                )
37
                                         }
38
                                </p>
39
                                <p className="yst-text-sm yst-mb-6">
40
                                        { __( "If your goal is to increase your rankings, you need to work on your SEO regularly. That can be overwhelming, so let's tackle it one step at a time!", "wordpress-seo" ) }
41
                                </p>
42
                                <Button
43
                                        as="a"
44
                                        variant="primary"
45
                                        id="button-webinar-seo-dashboard"
46
                                        href={ webinarIntroFirstTimeConfigUrl }
47
                                        target="_blank"
48
                                        data-hiive-event-name="clicked_to_onboarding_page"
49
                                >
50
                                        { sprintf(
51
                                                /* translators: 1: Yoast SEO. */
52
                                                __( "Learn how to increase your rankings with %1$s", "wordpress-seo" ),
53
                                                "Yoast SEO"
54
                                        ) }
55
                                        <ArrowNarrowRightIcon className="yst-w-4 yst-h-4 yst-icon-rtl yst-ml-2" />
56
                                </Button>
57
                                <p className="yst-mt-4">
58
                                        <Link
59
                                                id="link-webinar-register"
60
                                                href="#"
61
                                                onClick={ goToSEODashboard }
62
                                                data-hiive-event-name="clicked_seo_dashboard"
63
                                        >
64
                                                { __( "Or go to your SEO dashboard", "wordpress-seo" ) }
65
                                        </Link>
66
                                </p>
67
                        </div>
68
                        <ConfigurationFinishImage className="yst-shrink-0 yst-h-28 yst-mb-24" />
69
                </div>
70
        );
71
}
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