Skip to content

Commit

Permalink
feat: adapted copy for checks discrepancies found
Browse files Browse the repository at this point in the history
  • Loading branch information
KoolTheba committed Oct 29, 2023
1 parent 7c337ca commit 70c1e07
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/components/ProjectComparator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { getRefinedChecks } from "../utils/comparator/getRefinedChecks";
import { areEqualElements } from "../utils/comparator/areEqualElements";

import "../styles/ProjectDetails.css";
import "../styles/ProjectComparator.css";

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

0 comments on commit 70c1e07

Please sign in to comment.