Repo checker: a result with only unknown or unchecked packages shows "Fix it" and copies a fix prompt that lists nothing

Open Beginner friendly
#253 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, node.js
Domain
frontend

Research direction

Start in renderNext() in site/check/check.mjs, where isClean goes false when h.unknown > 0, and in fixPrompt() in site/check/check-logic.mjs, where rows with no gaps fall through to unchecked. Add an exported nextSection(h, notChecked) in check-logic.mjs that returns the title and whether to show the prompt, then use it in renderNext(). Done when the unknown-only and not-checked-only cases show "Check it locally" with copy-prompt hidden, gaps-plus-unknowns still shows "Fix it", and node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjs passes offline.

Written by the indexing model from the issue text.

Description

bug good first issue

When the only problem in a result is packages that couldn't be checked (unknown, no gaps), the repo checker still shows the Fix it section with "Copy a fix prompt for your coding agent". The prompt it copies says gaps were found and then lists none:

Read from site/check/ on main, and fixPrompt() run in Node for a result with one unknown row and no gaps:

In o/r, wheelgap found dependencies in uv.lock with no prebuilt wheel for some of the platforms we target (Python 3.13 on linux-x86_64), so they'd be compiled from source or fail to install.

Check each bump against our version constraints (a new major version may need code changes), update the lockfile with the project's own tool, and confirm with:
  uvx wheelgap uv.lock -p 3.13 -t linux-x86_64
...

There is nothing to bump. The same happens for a result with no gaps where a private index's packages weren't checked (the page test pins "Fix it" for both cases today). The headline for the unknown-only result is right ("No package is missing a wheel, but 1 of 3 couldn't be checked …"); what's left to do is run the check locally, where it can see what the page couldn't.

Where

  • renderNext() in site/check/check.mjs: isClean is false when h.unknown > 0, so the title is "Fix it" and copy-prompt / prompt-note stay visible.
  • fixPrompt() in site/check/check-logic.mjs: rows with no gaps are skipped (fixFor() returns unchecked), so an unknown-only result gives the opening sentence and no list.

What to do

  • Add a small exported function in check-logic.mjs, e.g. nextSection(h, notChecked), that returns the title and whether to show the prompt: "Keep it green" (clean, as now), "Fix it" with the prompt (any gap, as now), and "Check it locally" without the prompt when there are no gaps but some unknowns or some packages not checked. Use it in renderNext().
  • The CLI command under it stays as it is (with --index-url YOUR_INDEX_URL when packages weren't checked).

Done when

  • Tests in tests/site/check-logic.test.mjs for the three cases, including gaps and unknowns together ("Fix it"). The unknown-only one fails on main (or, if you add the function, show in the PR that renderNext() gave "Fix it" for it before).
  • In tests/site/check-page.test.mjs, the withUnknowns and withPrivate cases (they assert "Fix it" today) now expect "Check it locally" with copy-prompt hidden; withGaps is unchanged.
  • node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjs passes. The tests need no network.
Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
1h 37m
Merged PRs (30d)
134

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wheelgap/tracker

All issues in wheelgap/tracker

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.