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

Yoast / wordpress-seo / a7886492b145fdf70261f7ca2cb0fbcb3562b15b

25 Nov 2024 01:47PM UTC coverage: 54.184% (-0.03%) from 54.215%
a7886492b145fdf70261f7ca2cb0fbcb3562b15b

Pull #21852

github

web-flow
Merge b930e736a into 16577a01e
Pull Request #21852: 339 dashboard use request to get the actual scores

7593 of 13670 branches covered (55.54%)

Branch coverage included in aggregate %.

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

989 existing lines in 3 files now uncovered.

29764 of 55275 relevant lines covered (53.85%)

41521.03 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
 */
9

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