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

Yoast / wordpress-seo / 288b805388e31ecb55dff883f9700a1f6517ff30

25 Nov 2024 03:26PM CUT coverage: 54.166% (-0.001%) from 54.167%
288b805388e31ecb55dff883f9700a1f6517ff30

Pull #21862

github

web-flow
Merge 66a57fa3a into b00849231
Pull Request #21862: Dashboard: move to final copy

7593 of 13672 branches covered (55.54%)

Branch coverage included in aggregate %.

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

1 existing line in 1 file now uncovered.

29764 of 55295 relevant lines covered (53.83%)

41506.01 hits per line

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

0.0
/packages/js/src/dashboard/components/dashboard.js
1
import { Scores } from "../scores/components/scores";
2
import { PageTitle } from "./page-title";
3

4
/**
5
 * @type {import("../index").ContentType} ContentType
6
 * @type {import("../index").Features} Features
7
 * @type {import("../index").Endpoints} Endpoints
8
 * @type {import("../index").Links} Links
9
 */
10

11
/**
12
 * @param {ContentType[]} contentTypes The content types.
13
 * @param {string} userName The user name.
14
 * @param {Features} features Whether features are enabled.
15
 * @param {Endpoints} endpoints The endpoints.
16
 * @param {Object<string,string>} headers The headers for the score requests.
17
 * @param {Links} links The links.
18
 * @returns {JSX.Element} The element.
19
 */
NEW
20
export const Dashboard = ( { contentTypes, userName, features, endpoints, headers, links } ) => {
×
21
        return (
×
22
                <>
23
                        <PageTitle userName={ userName } features={ features } links={ links } />
24
                        <div className="yst-flex yst-flex-col @7xl:yst-flex-row yst-gap-6 yst-my-6">
25
                                { features.indexables && features.seoAnalysis && (
×
26
                                        <Scores analysisType="seo" contentTypes={ contentTypes } endpoint={ endpoints.seoScores } headers={ headers } />
27
                                ) }
28
                                { features.indexables && features.readabilityAnalysis && (
×
29
                                        <Scores analysisType="readability" contentTypes={ contentTypes } endpoint={ endpoints.readabilityScores } headers={ headers } />
30
                                ) }
31
                        </div>
32
                </>
33
        );
34
};
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