Skip to content

feat(site): guide visitors from missing package pages (#117) - #122

Merged
patrickballard merged 2 commits into
wheelgap:mainfrom
AdityaSreevatsaK:feat/site-package-404-117
Nov 16, 2026
Merged

patrickballard merged 2 commits into
wheelgap:mainfrom
AdityaSreevatsaK:feat/site-package-404-117

Conversation

@AdityaSreevatsaK

@AdityaSreevatsaK AdityaSreevatsaK commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #117

What this changes

  • Add site/404.html, using existing styling, strict CSP and root-absolute /tracker/ links.
  • Provide uvx wheelgap NAME -t all --explain for missing package pages. Decode and validate the URL segment with the existing isPackageName() helper, and only use textContent to render URL-derived text. Unknown and invalid paths retain the NAME placeholder.
  • Link to package lookup and repository checker.
  • Add offline Node regression tests and include the script and tests in the Check workflow.

Validation

  • Full fork Check CI passed, including Python tests, repo-checker driver, site syntax and site logic. Local isolated tests: 5/5 passed.
  • No changes to upstream or existing maintainer work.

AdityaSreevatsaK and others added 2 commits November 16, 2026 21:17
…k keeps the name

From review: pages exist only at the PEP 503 name and Pages paths are
case-sensitive, so /tracker/p/PyYAML/ 404ed and the page said PyYAML isn't
among the top 5,000, which is wrong. A valid name whose path isn't already
canonical now replaces the location with the canonical page (whose own
404, for a real miss, can't redirect again). The Look up link goes to the
home page's #package= lookup with the name. New tests cover the redirect,
the link, and the browser path (logic.js and not-found.js run together in
a vm context with a fake document and location).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard
patrickballard merged commit 6f8f028 into wheelgap:main Nov 16, 2026
1 check passed
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thanks @AdityaSreevatsaK! Someone who follows a link to a package the tracker doesn't cover now gets the one command that checks it, instead of GitHub's bare 404. Your validation and text-only rendering held up well, with nothing from the URL able to reach the page or the command. I pushed one change first:

  • package pages only exist at the PEP 503 name and Pages paths are case-sensitive, so /tracker/p/PyYAML/ said PyYAML isn't scanned. Other spellings now go to the canonical page, and a real miss can't loop.
  • the Look up link carries the name to the home page's #package= lookup.
  • a test now runs logic.js and not-found.js together, the way the browser loads them.

It goes live with tonight's site deploy. If you'd like another, #116 (tests for update_changes.py) is open.

(Comment assisted by Claude.)

@AdityaSreevatsaK
AdityaSreevatsaK deleted the feat/site-package-404-117 branch November 18, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A 404 page that points a missing package to uvx wheelgap

2 participants