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

Yoast / wordpress-seo / 9d82db2fa4376da8b1b545367861abaf2605095d

02 Mar 2026 09:55AM UTC coverage: 56.496%. First build
9d82db2fa4376da8b1b545367861abaf2605095d

Pull #22972

github

web-flow
Merge pull request #23022 from Yoast/1080-task-lise-remove-extra-space-in-task-modal

remove extra space if there are not children
Pull Request #22972: Task List Phase 2

8964 of 16528 branches covered (54.24%)

Branch coverage included in aggregate %.

167 of 238 new or added lines in 18 files covered. (70.17%)

15128 of 26116 relevant lines covered (57.93%)

114553.68 hits per line

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

80.0
/packages/dashboard-frontend/src/task-list/components/task-analyzer.js
1
import { ScoreIcon } from "@yoast/ui-library";
2
import DOMPurify from "dompurify";
3

4
/**
5
 * The TaskAnalyzer component displays the analysis results for a task, such as SEO or readability analysis.
6
 *
7
 * @param {string} type The type of the analyzer result, e.g. "seo", "readability".
8
 * @param {string} title The title for the analyzer result, e.g. "SEO Analysis".
9
 * @param {string} result The analyzer result, e.g. "good", "bad", "ok".
10
 * @param {string} resultLabel The label for the analyzer result, e.g. "Good".
11
 * @param {string} resultDescription The description of the analyzer result.
12
 * @returns {JSX.Element} The TaskAnalyzer component.
13
 */
14
export const TaskAnalyzer = ( { type, title, result, resultLabel, resultDescription } ) => {
24✔
15
        const sanitizedDescription = DOMPurify.sanitize( resultDescription );
42✔
16

17
        const renderIcon = () => {
42✔
18
                switch ( type ) {
42!
19
                        case "score":
20
                                return <ScoreIcon score={ result } className="yst-mt-0.5" />;
42✔
21
                        default:
NEW
22
                                return null;
×
23
                }
24
        };
25

26
        return <div className="yst-flex yst-bg-slate-50 yst-border yst-border-slate-200 yst-rounded-md yst-w-full yst-p-4 yst-gap-4 yst-justify-between yst-mb-5">
42✔
27
                { renderIcon() }
28
                <div className="yst-flex-grow">
29
                        <div className="yst-text-black yst-mb-2">
30
                                <span>{ title }</span>: <span className="yst-font-semibold">{ resultLabel }</span>
31
                        </div>
32
                        <div className="yst-text-slate-600" dangerouslySetInnerHTML={ { __html: sanitizedDescription } } />
33
                </div>
34
        </div>;
35
};
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

© 2026 Coveralls, Inc