Skip to content

Repo checker: on a clean result, offer the README badge and a share line right under the green verdict #207

Closed

Description

@patrickballard

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 #badge section inside <section class="cta">.
  • site/check/check.mjs: the render function that fills #verdict and #alerts, and renderNext(), which fills #badge-md.
  • site/check/check-logic.mjs: verdictText(), headline(), badgeMarkdown().

What to do

  • When the verdict is clean (headline() has gaps === 0, unknown === 0 and packages > 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) to check-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.mjs covers shareText(): 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.mjs shows 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

  1. added
    enhancement
    good first issue
    on Nov 21, 2026
  2. added a commit that references this issue on Nov 22, 2026
    b45adad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions