Repository navigation
feat(check): show helpful hints for package names and non-GitHub URLs - #227
Conversation
- A hint from ?repo= (or one typed while Python loads) was replaced by the worker's start-up progress and Ready lines; it now stays until a check starts. - Bare domains (gitlab.com), scheme-less host URLs, ssh:// and git+https:// remotes get the other-host hint; GitHub's own hosts (raw, api, gist) keep the default message. - The getting-started link goes to docs/getting-started.md, as wheelgap#213 asks. - Long echoed names wrap in the status line on a phone. - Tests pin the wiring to the form, ?repo= and the worker messages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks, @dev-burnern! Building the hints from text nodes and We've made these changes so it can go in:
It'll merge once a final review passes. (Review assisted by Claude.) |
- parseRepo() rejects an owner with a dot (GitHub names have none), so "gitlab.com/owner/project" gets the other-host hint instead of a check of github.com/gitlab.com/owner. - pypi.org/project/NAME gets the package hint. - Only known forges' bare domains count as hosts, so dotted package names like jaraco.net get the package hint. - An unreadable @ref error also survives start-up progress lines. - Tests: every hinted input is one parseRepo() rejects. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks again, @dev-burnern! The final review turned up one more case, so we've made these changes so it can go in:
It'll merge once a final review passes. (Review assisted by Claude.) |
|
Thanks, @dev-burnern! The final review of our last changes found nothing that needs fixing: the hints are still built from text nodes, the (Review assisted by Claude.) |
Conflicts with wheelgap#227 resolved by keeping both: the imports are the union (inputHint and pickRequestedFile in check.mjs; inputHint, pickRequestedFile, isReadableFile and fileKind in the logic tests), and both PRs' appended tests are kept. start() keeps wheelgap#227's inputError reset first and wheelgap#226's fileNotice reset and named file; parseRepo() keeps wheelgap#227's dotted-owner refusal with wheelgap#226's file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
One conflict, in tests/site/check-page.test.mjs, where both sides appended tests: both kept (wheelgap#223's resultPage tests, then wheelgap#226's blob-link and wheelgap#227's hint tests). check.mjs, check-logic.mjs and driver.py merged without conflict: onResult() keeps the all-private fallback with its folder filter before wheelgap#226's fallback notice, renderVerdict() has both the private-pyproject verdict and the named-file notice, and driver.py has private_count with the reader-based offline check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged, thanks @dev-burnern! We pushed a few fixes to your branch before merging; the commits say what and why. (Posted with help from Claude.) |
Closes #213
What this changes
site/check/check-logic.mjs:inputHint(text)to classify rejected repo-checker inputs:{ kind: "package", name }(canonicalized viacanonicalName()) for a single valid PyPI package name;{ kind: "other-host", host }for HTTP(S) or SSH URLs on a host other thangithub.com;nullfor everything else (GitHub repos, empty strings, spaces, HTML characters).site/check/check.mjs:status()to accept either a plain string or an array of DOM nodes/strings viareplaceChildren(), keepingrole="status"andaria-live="polite"intact and never usinginnerHTML.showInputError(raw)used by both the form submit handler and invalid?repo=query values:../p/<canonical>/("See its wheel coverage") and../("search packages"), inserting the typed name as a text node.uvx wheelgapwith a link to getting started.tests/site/check-logic.test.mjs&tests/site/check-page.test.mjs:inputHint()(numpy,Pillow,ruamel.yaml, GitLab/Codeberg URLs,owner/repo, empty, spaces,<) andshowInputError()DOM node construction androle="status"preservation.AI tools used (if any): Antigravity (Gemini)
Checklist
node --check site/check/*.mjspassesnode --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjspasses (38/38)