Skip to content

Commit 70c1e07

Browse files
committed
feat: adapted copy for checks discrepancies found
1 parent 7c337ca commit 70c1e07

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/components/ProjectComparator.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { getRefinedChecks } from "../utils/comparator/getRefinedChecks";
1313
import { areEqualElements } from "../utils/comparator/areEqualElements";
1414

1515
import "../styles/ProjectDetails.css";
16-
import "../styles/ProjectComparator.css";
1716

1817
function ProjectComparator() {
1918
const params = useParams();
@@ -138,12 +137,16 @@ function ProjectComparator() {
138137
</a>
139138
</p>
140139
{discrepancies.length > 0 && (
141-
<span
142-
className="warning-message"
143-
data-testid="discrepancies"
144-
>{`The report doesn't display certain checks (such as ${discrepancies.join(
145-
", ",
146-
)}) because they haven't been included in the analysis of both commits.`}</span>
140+
<span className="warning-message" data-testid="discrepancies">
141+
{`Scorecard API missing: ${discrepancies.join(", ")} checks. See `}
142+
<a
143+
href="https://github.com/KoolTheba/openssf-scorecard-api-visualizer/tree/main#discrepancies-management"
144+
target="_blank"
145+
rel="noreferrer"
146+
>
147+
details
148+
</a>
149+
</span>
147150
)}
148151
<hr />
149152
{Array.isArray(consolidatedData) &&

0 commit comments

Comments
 (0)