Skip to content

Link the tool's repo from the site: checker results, home intro, page footers - #194

Merged
patrickballard merged 3 commits into
mainfrom
site/star-links
Nov 20, 2026
Merged

patrickballard merged 3 commits into
mainfrom
site/star-links

Conversation

@patrickballard

Copy link
Copy Markdown
Contributor

Why

The tracker and its repo checker get visitors, but nothing on the pages invites them to the tool itself, wheelgap/wheelgap. The generated pages (package, platform, campaign, drops, new wheels) had no footer at all, and the only repo they named was this data repo.

What changed

  • Repo checker (site/check/): one line under a result, shown for both "gaps found" and "all wheels" and hidden when there is no result (no lockfile, or a lockfile the browser can't check):

    wheelgap is open source. Run this check in CI with the GitHub Action, or ★ star the project on GitHub.

    It is static text in index.html with hidden, toggled by one line in hideResultSections; nothing is injected.

  • Home page: one "★ Star wheelgap on GitHub" link under the intro, with a short line saying what the tool is. The ★ is aria-hidden, so the link's name is the words. It wraps on a phone; no horizontal overflow at 320 px or 375 px.

  • Generated pages: a shared footer, build_campaigns.FOOTER, used by the package, platform, campaign (page and index), drops and new wheels pages:

    Check your own project: wheelgap (GitHub) · Data and source: wheelgap/tracker

    It uses the footer rule style.css already has.

Plain links only: no scripts, widgets, frames or remote images, so every page's Content-Security-Policy is unchanged.

Notes for review

  • The Action link goes to https://github.com/wheelgap/wheelgap/blob/main/docs/ci.md#github-action, the same page the checker already links. https://wheelgap.github.io/wheelgap/ci/ is in the docs nav (mkdocs.yml) but returns 404 today: the wheelgap repo has no Pages site. Worth switching once the docs site is published.
  • The checker change is three separate additions (one line in check.mjs, one <p> before </main>, one rule at the end of check.css). A trial merge with Show gap wheel fixes in the browser repo checker #193 is clean, and the checker tests pass on the merged tree.
  • The checker test is a new file, tests/site/check-page.test.mjs, so it doesn't touch the end of check-logic.test.mjs, where Show gap wheel fixes in the browser repo checker #193 adds a test. It is added to the node --test command in check.yml and the README.

Tests

New: tests/test_star_links.py (footer content, package, drops and new wheels pages, the home page link and its accessible name) and tests/site/check-page.test.mjs (the line's links and hidden, and hideResultSections showing and hiding it). The campaign and platform page tests assert the footer too.

Run locally, the commands from the README and check.yml:

  • uvx --python 3.14 [email protected]: 520 passed, 1 skipped
  • python3 scripts/check_notes.py: ok
  • pytest tests/test_check_driver.py with the pinned wheelgap 0.13.0: 11 passed
  • node --check on site/*.js and site/check/*.mjs: ok
  • node --test tests/site/... (with the new file): 121 passed

Also built the site as the README describes and checked it in a browser: the home page at 320 px and 375 px in light and dark, a package page footer, and a real check of karpathy/nanochat, where the line appears under the result.

🤖 Generated with Claude Code

patrickballard and others added 3 commits November 20, 2026 21:11
…generated-page footer

Visitors to the tracker and the repo checker had no clear way to the tool itself
(github.com/wheelgap/wheelgap); the generated pages had no footer at all.

- Repo checker: a static line under a result (gaps or none), hidden until then,
  linking the GitHub Action docs and the repo.
- Home page: one "Star wheelgap on GitHub" link under the intro.
- Package, platform, campaign, drops and new wheels pages: a shared footer
  (build_campaigns.FOOTER) with the tool first, then the data repo.

Plain links only, no scripts or remote content, so the pages' CSP is unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The link was announced as "black star star the project on GitHub"; the home page already
wraps its star in aria-hidden. Also match the home page test on the word "star", not the
letters, so a future "Get started" link does not trip it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@patrickballard
patrickballard merged commit 946f2c8 into main Nov 20, 2026
1 check passed
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.

1 participant