Repository navigation
Closed
Labels
Description
When a repo has no gaps, the checker shows a green verdict:
✓ All 212 packages have a wheel for all 6 targets
and then the same long page as a failing result. The README badge (#188) is at the bottom, inside a section titled "Fix it", under "Copy a fix prompt for your coding agent". A maintainer with a clean result has nothing to fix, so they never scroll there. The clean result is the moment a maintainer is most likely to add the badge, and the page hides it.
"Copy link to this result" copies a bare URL. Pasted into a chat or an issue, it says nothing about what was found.
Where
site/check/index.html: the verdict card (<section class="verdict-card">) and the#badgesection inside<section class="cta">.site/check/check.mjs: the render function that fills#verdictand#alerts, andrenderNext(), which fills#badge-md.site/check/check-logic.mjs:verdictText(),headline(),badgeMarkdown().
What to do
- When the verdict is clean (
headline()hasgaps === 0,unknown === 0andpackages > 0), show a short block in the verdict card: one line ("Keep it that way: add the check to your README"), the badge image, and a "Copy badge Markdown" button that copies the same text as the one below. Don't move the existing section: a result with gaps still has it under "Fix it". - Rename the bottom section's heading from "Fix it" to something that fits both cases when the result is clean (for example "Keep it green"), or leave the heading and hide the fix-prompt button when there is nothing to fix. Pick one and say which in the PR.
- Add
shareText(repoName, headline, pythons, platforms, url)tocheck-logic.mjs: one line that states the result and ends with the link. Clean:✓ owner/name: all 212 dependencies have a wheel on Python 3.13, 3.14 for 6 platforms (checked with wheelgap) URL. With gaps:owner/name: 3 of 212 dependencies have no wheel on at least one of 6 targets (checked with wheelgap) URL. Add a "Copy result as text" button next to "Copy link to this result" that uses it. - The text is built from the repo name the visitor typed and numbers. Build it as text, never as HTML.
Done when:
-
tests/site/check-logic.test.mjscoversshareText(): clean, with gaps, with unknowns (it must not say ✓), one target, and a repo name with characters that need no escaping in text but would in HTML. -
tests/site/check-page.test.mjsshows the badge block is in the verdict card for a clean result and absent for one with gaps or unknowns. - Both copy buttons use
copy()like the existing ones, and work with the keyboard. - The PR has screenshots of a clean result and a result with gaps, light and dark.
Activity
Repo checker: offer the README badge in a clean verdict, and a plain-…