Repository navigation
Link the tool's repo from the site: checker results, home intro, page footers - #194
Merged
Merged
Conversation
…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]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):It is static text in
index.htmlwithhidden, toggled by one line inhideResultSections; 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:It uses the
footerrulestyle.cssalready has.Plain links only: no scripts, widgets, frames or remote images, so every page's Content-Security-Policy is unchanged.
Notes for review
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.check.mjs, one<p>before</main>, one rule at the end ofcheck.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.tests/site/check-page.test.mjs, so it doesn't touch the end ofcheck-logic.test.mjs, where Show gap wheel fixes in the browser repo checker #193 adds a test. It is added to thenode --testcommand incheck.ymland 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) andtests/site/check-page.test.mjs(the line's links andhidden, andhideResultSectionsshowing 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 skippedpython3 scripts/check_notes.py: okpytest tests/test_check_driver.pywith the pinned wheelgap 0.13.0: 11 passednode --checkonsite/*.jsandsite/check/*.mjs: oknode --test tests/site/...(with the new file): 121 passedAlso 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