Repo checker: a result with only unknown or unchecked packages shows "Fix it" and copies a fix prompt that lists nothing
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
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()insite/check/check.mjs:isCleanis false whenh.unknown > 0, so the title is "Fix it" andcopy-prompt/prompt-notestay visible.fixPrompt()insite/check/check-logic.mjs: rows with no gaps are skipped (fixFor()returnsunchecked), 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 inrenderNext(). - The CLI command under it stays as it is (with
--index-url YOUR_INDEX_URLwhen packages weren't checked).
Done when
- Tests in
tests/site/check-logic.test.mjsfor the three cases, including gaps and unknowns together ("Fix it"). The unknown-only one fails onmain(or, if you add the function, show in the PR thatrenderNext()gave "Fix it" for it before). - In
tests/site/check-page.test.mjs, thewithUnknownsandwithPrivatecases (they assert "Fix it" today) now expect "Check it locally" withcopy-prompthidden;withGapsis unchanged. -
node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjspasses. 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wheelgap/tracker
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Maintainers usually reply within 1 day
All issues in wheelgap/tracker
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
data good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 92/100
pacocartones/free-llm-api-hub#747 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#481 ·
Maintainers usually reply within 7 days
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day